Community
cancel
Showing results for 
Search instead for 
Did you mean: 
dong_x_
Beginner
91 Views

About H264 to YV12

 

Hi ,

   Base "simple_decode",  When I decode the H264 to YUV, I find the output is always NV12?

    How can I get the YV12 or YUV420 directly ?

   Don't use the " WriteRawFrame" to copy each bits.

 

0 Kudos
1 Reply
Surbhi_M_Intel
Employee
91 Views

Hi,

Media SDK HW only decodes to NV12 format in memory, psurface o/p in simple_decode is provided as a pointer where Y data is planar and U V are packed. Developer can choose any method to write it to a file. Our samples & tutorials uses fwrite to write the yuv from a memory to a file.

-Surbhi

 

Reply