AnsweredAssumed Answered

How use g2d to convert image data from yuv422 to yuv420?

Question asked by Zoe Chen on Aug 3, 2015
Latest reply on Oct 27, 2015 by Saurabh Patel

Hello everyone,

     I want to use g2d to convert my image data from yuv422 to yuv420, so I set it as follow:

src.format = G2D_UYVY;

    src.planes[0] = src_buf->buf_paddr;

    src.left = 0;

    src.top = 0;

    src.right = width;

    src.bottom = height;

    src.stride = width;

    src.width = width;

    src.height = height;

    src.rot = G2D_ROTATION_0;

 

    dst.format = G2D_I420;

    dst.planes[0] = dst_buf->buf_paddr;

    dst.planes[1] = dst_buf->buf_paddr + width + height;

    dst.planes[2] = dst_buf->buf_paddr + width + height * 2;

    dst.left = 0;

    dst.top = 0;

    dst.right = width;

    dst.bottom = height;

    dst.stride = width;

    dst.width = width;

    dst.height = height;

    dst.rot = G2D_ROTATION_0;

 

Then the log tell me "g2d_blit_2d: Invalid dst format 21!", whether g2d do not support yuv format as dst format?

 

BR,

Zoe

Outcomes