H264 encode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,413件の閲覧回数
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,155件の閲覧回数
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,156件の閲覧回数
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,155件の閲覧回数
505053487
Contributor I

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

0 件の賞賛
返信
1,155件の閲覧回数
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 件の賞賛
返信