Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Ike_S_
Beginner
81 Views

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?

 

0 Kudos
1 Reply
Jeffrey_M_Intel1
Employee
81 Views

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.

 

Reply