MediaSDK
MediaSDK copied to clipboard
The SDK doesn't set mfxExtVideoSignalInfo::VideoFullRange for jpeg decoding.
call MFXVideoDECODE_DecodeHeader
with an attached MFX_EXTBUFF_VIDEO_SIGNAL_INFO
buffer for jpeg decoding, however mfxExtVideoSignalInfo::VideoFullRange is not set for a full-range jpeg file.
@chuanli1 Could you please take a look? If confirm it, we can assign one guy to fix it. Thanks
@chuanli1 Could you please take a look? If confirm it, we can assign one guy to fix it. Thanks Sure, I will check it.
Hi @xhaihao, could you provide related clip and an app patch of attached MFX_EXTBUFF_VIDEO_SIGNAL_INFO buffer? Thanks.
@chuanli1 you may use a yuvj420p jpeg file
$ ffprobe in.jpeg 2>&1 | grep yuvj420p
$ ffmpeg -hwaccel qsv -c:v mjpeg_qsv -i in.jpeg -f null -
A MFX_EXTBUFF_VIDEO_SIGNAL_INFO
buffer is attached when using FFmpeg with mjpeg_qsv decoder to decode a JPEG file
@chuanli1 @dmitryermilov any update on this issue?
I check jpeg spec(itu-t81) and don’t find this color range syntax, so RT don't parser this flag from Jpeg header, and HW don’t need this flag for decoder, and this issue is not a bug, but a new feature.
@chuanli1 If so , may you set mfxExtVideoSignalInfo::VideoFullRange to 1 by default for jpeg decoding ?
Yes, this is feasible, we will put this task in the to-do list.