AnsweredAssumed Answered

What is the mean of "JPEG_ENC_YUV_FORMAT"

Question asked by yong tang on Sep 18, 2015
Latest reply on Sep 20, 2015 by igorpadykov

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;

Outcomes