H264 encode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

H264 encode

Jump to solution
974 Views
505053487
Contributor I

I want to use H264codes,but the frame data is in YCbCr 4:2:2 format.  Do I need to translate it from  YCbCr 4:2:2 to YCbCr 4:2:0 first?

I have seen the demo mxc_vpu_text.

in struct frame_buf *framebuf_alloc(int stdMode, int format, int strideY, int height, int mvCol)  function,there is

fb->addrY = fb->desc.phy_addr;
fb->addrCb = fb->addrY + strideY * height;
fb->addrCr = fb->addrCb + strideY / divX * height / divY;
fb->strideY = strideY;
fb->strideC =  strideY / divX;

it means that the demo is only favor of planar format, not packed format, am i right?

thank you very much.

Labels (1)
0 Kudos
1 Solution
716 Views
igorpadykov
NXP Employee
NXP Employee

Hi dongming

it is not necessary to translate it from  YCbCr 4:2:2 to YCbCr 4:2:0,

but provide a 4:2:0 or 4:2:2 vertical formatted input YUV image with a

pre-defined size. Please refer to sect.4.2.3.1 YUV Input Loading

attached VPU Manual.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
717 Views
igorpadykov
NXP Employee
NXP Employee

Hi dongming

it is not necessary to translate it from  YCbCr 4:2:2 to YCbCr 4:2:0,

but provide a 4:2:0 or 4:2:2 vertical formatted input YUV image with a

pre-defined size. Please refer to sect.4.2.3.1 YUV Input Loading

attached VPU Manual.

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
716 Views
505053487
Contributor I

ok,thank you. But  i cannot find YUV Input Loading attached VPU Manual. Could you please offer it?

0 Kudos
716 Views
igorpadykov
NXP Employee
NXP Employee

attached doc will appear some time later (seems system is scanning it

for viruses), still you can find this document in BSP package

Board Support Packages (29)

L3.14.52_1.1.0_MX6QDLSOLO (REV L3.14.52_1.1.0)

http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...

~igor

0 Kudos