What is the mean of "JPEG_ENC_YUV_FORMAT"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What is the mean of "JPEG_ENC_YUV_FORMAT"

679 Views
yongtang
Contributor I

I observed the define of "JPEG_ENC_YUV_FORMAT" in <jpeg_enc_interface.h>,but i could not understand the mean of "NONINTERLEAVED" and "INTERLEAVED",is means "packet" and "plain"? I want use g2d_blit to resize the image and then encode with jpeg,but there have two types of image format define as below,how can i use these?

enum g2d_format

{

//rgb formats

     G2D_RGB565               = 0,

     G2D_RGBA8888             = 1,

     G2D_RGBX8888             = 2,

     G2D_BGRA8888             = 3,

     G2D_BGRX8888             = 4,

     G2D_BGR565               = 5,

     G2D_ARGB8888             = 6,

     G2D_ABGR8888             = 7,

     G2D_XRGB8888             = 8,

     G2D_XBGR8888             = 9,

//yuv formats

     G2D_NV12                 = 20,

     G2D_I420                 = 21,

     G2D_YV12                 = 22,

     G2D_NV21                 = 23,

     G2D_YUYV                 = 24,

     G2D_YVYU                 = 25,

     G2D_UYVY                 = 26,

     G2D_VYUY                 = 27,

     G2D_NV16                 = 28,

     G2D_NV61                 = 29,

};

typedef enum

{

      JPEG_ENC_YUV_444_NONINTERLEAVED,

      JPEG_ENC_YUV_422_NONINTERLEAVED,

      JPEG_ENC_YUV_420_NONINTERLEAVED,

      JPEG_ENC_YU_YV_422_INTERLEAVED,

      JPEG_ENC_YV_YU_422_INTERLEAVED,

      JPEG_ENC_UY_VY_422_INTERLEAVED,

      JPEG_ENC_VY_UY_422_INTERLEAVED

}JPEG_ENC_YUV_FORMAT;

Labels (1)
0 Kudos
2 Replies

538 Views
igorpadykov
NXP Employee
NXP Employee

Hi yong

for interleaved format usage one can look at IPU, VPU presentations below

and VDOA description in Chapter 68 i.MX6Q Reference Manual

https://community.freescale.com/docs/DOC-95595 p.31

https://community.freescale.com/docs/DOC-100482   p.122

Best regards

igor

0 Kudos

538 Views
yongtang
Contributor I

And what is the memory layout of "JPEG_ENC_YUV_FORMAT"?

0 Kudos