H264 encode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

H264 encode

跳至解决方案
1,635 次查看
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.

标签 (1)
0 项奖励
回复
1 解答
1,377 次查看
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 项奖励
回复
3 回复数
1,378 次查看
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 项奖励
回复
1,377 次查看
505053487
Contributor I

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

0 项奖励
回复
1,377 次查看
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 项奖励
回复