Can HEVC decode to YV12

Can HEVC decode to YV12

Can the HEVC decoder plugin output YV12? I can decode to NV12, but not to YV12

In particular, this works

         pVideoParams->FrameInfo.FourCC          = MFX_FOURCC_NV12;
         sts = MFXVideoDECODE_Init(session, pVideoParams);

But this returns MFX_ERR_INVALID_VIDEO_PARAM:

         pVideoParams->FrameInfo.FourCC          = MFX_FOURCC_YV12;
         sts = MFXVideoDECODE_Init(session, pVideoParams);

Should I assume the HEVC video decoder plugin supports only NV12 for the decompressed output?

 

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Sorry for the delay in getting back to you.  In general, Media SDK's default format is NV12.  Most of the encoders/decoders only work with NV12, with the exception of MJPEG.  VPP can help with converting to/from other formats in some cases, but software or OpenCL color conversions may be required if the conversion isn't on VPP's short list.    (In this particular case VPP won't help -- it can do YV12 in/NV12 out but not the reverse).  Just mentioning it to illustrate the design.

 

Leave a Comment

Please sign in to add a comment. Not a member? Join today