AnsweredAssumed Answered

H264 encode

Question asked by dongming zeng on Jan 18, 2016
Latest reply on Jan 19, 2016 by igorpadykov

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.

Outcomes