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.
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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)
~igor