MediaSDK icon indicating copy to clipboard operation
MediaSDK copied to clipboard

jpeg decoder can't output 444P format for YUV444 jpeg file

Open xhaihao opened this issue 5 years ago • 14 comments

Sample clip: https://github.com/Intel-Media-SDK/MediaSDK/files/2720196/smpte_444P.jpeg.zip.zip MSDK doesn't support 444P fourcc and the output is always NV12.

xhaihao avatar Aug 08 '19 06:08 xhaihao

What output format we should use (in sample_decode pipeline)? AYUV? we have no suitable FOURCC in api now.

IlyaSergeyev avatar Oct 14 '19 09:10 IlyaSergeyev

this case can decode successfully on local machine.

chuanli1 avatar Nov 10 '20 04:11 chuanli1

chuanli1 could you provide your command?

xhaihao avatar Nov 10 '20 05:11 xhaihao

Is this output format the default?I use the default and output format '-ayuv' command line: ./sample_decode jpeg -i smpte_444P.jpeg -o output_ayuv.yuv -hw ./sample_decode jpeg -i smpte_444P.jpeg -o output_ayuv.yuv -hw -ayuv

chuanli1 avatar Nov 10 '20 05:11 chuanli1

It is using VPP to convert NV12 to AYUV.

Output format   AYUV (using vpp)

xhaihao avatar Nov 10 '20 05:11 xhaihao

@chuanli1 Your result is converted by MSDK VPP. @xhaihao hopes sample_decode output AYUV directly because this JPEG is AYUV format. Could you please add this support in MSDK. Thanks.

wangyan-intel avatar Nov 10 '20 06:11 wangyan-intel

Thanks @xhaihao and @wangyan-intel ,I try to enable this output format in our msdk.

chuanli1 avatar Nov 10 '20 06:11 chuanli1

Hi, output format ayuv is supported in sample_decode

sbalandi avatar Nov 11 '21 13:11 sbalandi

Hi, it is using VPP to convert NV12 to AYUV, but sample app can't output 444P format for YUV444 jpeg file directly.

chuanli1 avatar Nov 12 '21 01:11 chuanli1

@SofyaBalandina Could you please confirm with @chuanli1's comments? If yes, could you please add it? Thanks.

wangyan-intel avatar Dec 08 '21 07:12 wangyan-intel

@xhaihao This issue is similar with https://github.com/Intel-Media-SDK/MediaSDK/issues/1960 and @SofyaBalandina has replied in it. Could you please check it? If OK, could we close this issue? Thanks.

wangyan-intel avatar Dec 13 '21 05:12 wangyan-intel

@SofyaBalandina Did you mean JPEG decoder in the SDK supports NV12, RGB32, and YUY2 only, right ? JPEG in the media driver may support other formats, see https://github.com/intel/media-driver/blob/master/docs/media_features.md#jpeg-decoding-format-support, e.g. 444P for 4:4:4 8-bit jpeg file and 400P for 4:0:0 8-bit jpeg file. Is it possible to support these formats in the SDK too ?

xhaihao avatar Dec 14 '21 04:12 xhaihao

@onabiull Could you please check @xhaihao's comments? Is it possible to add support in sample_decode?

wangyan-intel avatar Dec 22 '21 02:12 wangyan-intel

@wangyan-intel, adding more formats to sample_decode should be possible. But biggest part is in MSDK https://github.com/Intel-Media-SDK/MediaSDK/issues/1960#issuecomment-724479705.

onabiull avatar Dec 22 '21 08:12 onabiull