Skip to content
This repository was archived by the owner on May 17, 2023. It is now read-only.

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

Open
xhaihao opened this issue Aug 8, 2019 · 14 comments
Open

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

xhaihao opened this issue Aug 8, 2019 · 14 comments

Comments

@xhaihao
Copy link
Contributor

xhaihao commented Aug 8, 2019

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 xhaihao changed the title jpeg coder can't output 444P format for YUV444 jpeg file jpeg decoder can't output 444P format for YUV444 jpeg file Aug 8, 2019
@IlyaSergeyev
Copy link
Contributor

IlyaSergeyev commented Oct 14, 2019

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

@chuanli1
Copy link
Contributor

this case can decode successfully on local machine.

@xhaihao
Copy link
Contributor Author

xhaihao commented Nov 10, 2020

chuanli1 could you provide your command?

@chuanli1
Copy link
Contributor

chuanli1 commented Nov 10, 2020

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

@xhaihao
Copy link
Contributor Author

xhaihao commented Nov 10, 2020

It is using VPP to convert NV12 to AYUV.

Output format   AYUV (using vpp)

@wangyan-intel
Copy link

@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.

@chuanli1
Copy link
Contributor

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

@sbalandi
Copy link
Contributor

Hi, output format ayuv is supported in sample_decode

@chuanli1
Copy link
Contributor

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

@wangyan-intel
Copy link

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

@wangyan-intel
Copy link

@xhaihao This issue is similar with #1960 and @SofyaBalandina has replied in it. Could you please check it? If OK, could we close this issue? Thanks.

@xhaihao
Copy link
Contributor Author

xhaihao commented Dec 14, 2021

@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 ?

@wangyan-intel
Copy link

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

@onabiull
Copy link
Contributor

@wangyan-intel, adding more formats to sample_decode should be possible. But biggest part is in MSDK #1960 (comment).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants