frame.h
上传用户:hjq518
上传日期:2021-12-09
资源大小:5084k
文件大小:1k
源码类别:

Audio

开发平台:

Visual C++

  1. /*!
  2.  ************************************************************************
  3.  * file frame.h
  4.  *
  5.  * brief
  6.  *    headers for frame format related information
  7.  *
  8.  * author
  9.  *
  10.  ************************************************************************
  11.  */
  12. #ifndef _FRAME_H_
  13. #define _FRAME_H_
  14. typedef struct
  15. {
  16.   int yuv_format;                    //!< YUV format (0=4:0:0, 1=4:2:0, 2=4:2:2, 3=4:4:4)
  17.   int rgb_format;                    //!< 4:4:4 format (0: YUV, 1: RGB)
  18.   int width;                         //!< luma component frame width
  19.   int height;                        //!< luma component frame height    
  20.   int height_cr;                     //!< chroma component frame width
  21.   int width_cr;                      //!< chroma component frame height
  22.   int mb_width;                      //!< luma component frame width
  23.   int mb_height;                     //!< luma component frame height    
  24.   int size_cmp[3];                   //!< component sizes  
  25.   int size;                          //!< total image size
  26.   int bit_depth[3];                  //!< component bit depth  
  27.   int max_value[3];                  //!< component max value
  28.   int max_value_sq[3];                  //!< component max value squared
  29. } FrameFormat;
  30. #endif