• Haihao Xiang's avatar
    msdkdec: make sure mfx frame width/height meets MSDK's requirement · 20f61db2
    Haihao Xiang authored
    It is possible that the output region size (e.g. 192x144) is different
    from the coded picture size (e.g. 192x256). We may adjust the alignment
    parameters so that the padding is respected in GstVideoInfo and use
    GstVideoInfo to calculate mfx frame width and height
    
    This fixes the error below when decoding a stream which has different
    output region size and coded picture size
    
    0:00:00.057726900 28634 0x55df6c3220a0 ERROR                msdkdec
    gstmsdkdec.c:1065:gst_msdkdec_handle_frame:<msdkh265dec0>
    DecodeFrameAsync failed (failed to allocate memory)
    
    Sample pipeline:
    
    gst-launch-1.0 filesrc location=output.h265 ! h265parse ! msdkh265dec !
    glimagesink
    20f61db2
Name
Last commit
Last update
..
androidmedia Loading commit data...
applemedia Loading commit data...
bluez Loading commit data...
d3d11 Loading commit data...
d3dvideosink Loading commit data...
decklink Loading commit data...
directsound Loading commit data...
dshowdecwrapper Loading commit data...
dshowsrcwrapper Loading commit data...
dshowvideosink Loading commit data...
dvb Loading commit data...
fbdev Loading commit data...
ipcpipeline Loading commit data...
kms Loading commit data...
msdk Loading commit data...
nvcodec Loading commit data...
opensles Loading commit data...
shm Loading commit data...
tinyalsa Loading commit data...
uvch264 Loading commit data...
wasapi Loading commit data...
winks Loading commit data...
winscreencap Loading commit data...
Makefile.am Loading commit data...
meson.build Loading commit data...