⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h263enc.h

📁 DM643上采集视频信号
💻 H
字号:
/**************************************************************************************
*		Project:      h263 coding Source File			             **
*										     **
*		filename:     h263enc.h					     **
*		description:  define some macros that coding process uses    **
*       author:       U.Shinegun             **
*       date:         July,2006
***************************************************************************************/
#ifndef H263ENC_H_
#define H263ENC_H_

#define PSC        1
#define PSC_LENGTH 17
#define SE_CODE    31
#define GBSC     1

/* picture types */
#define PCT_INTRA                       0
#define PCT_INTER                       1


/* source formats */
#define SF_SQCIF                        1 /* 001 */
#define SF_QCIF                         2 /* 010 */
#define SF_CIF                          3 /* 011 */
#define SF_4CIF                         4 /* 100 */
#define SF_16CIF                        5 /* 101 */
#define SF_CUSTOM                       6 /* 110 */
#define EXTENDED_PTYPE                  7 /* 111 */

/* the MB type */
#define MODE_INTER                      0
#define MODE_INTER_Q                    1
#define MODE_INTER4V                    2
#define MODE_INTRA                      3
#define MODE_INTRA_Q                    4
#define MODE_INTER4V_Q                  5

/* length of  fixed length code */
#define LEN_TR 8
#define LEN_PQUANT 5
#define LEN_GFID 2
#define LEN_GQUANT 5
#define LEN_DQUANT 2
#define LEN_GBSC    17
#define LEN_GN   5

#define mmin(a, b)  ((a) < (b)? (a) : (b))
#define mmax(a, b)  ((a) > (b)? (a) : (b))
#define abs(a) ((a)>=0 ? (a) : (-(a)))
                      
/* motion estimation mode */
#define MOTION_INTEGER	   0
#define MOTION_SUB      1

typedef struct{
					unsigned char *Y_data;
					unsigned char *Cb_data;
					unsigned char *Cr_data;
			  } IMG;

#endif // endif H263ENC_H_

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -