exceptions.h
来自「H.263的编码程序,加了CPU指令优化,VC版.」· C头文件 代码 · 共 54 行
H
54 行
//This header file defines all the exceptions which may happen during encoding.
#ifndef _Exceptionsh
#define _Exceptionsh
#include "HEnc.h"
#define E_OPENENC_FORMAT "Exception Happened when open encoder!\n \
This encoder can only encode _SUBQCIP(0),_QCIF(1), _CIF(2), \
_4CIF(3) and _16CIF(4).\nThe encoder is not open.\n"
#define E_OPENENC_NO_MEMORY "Exception Happened when open encoder!\n \
There is not enough memory to run the encoder.\n"
#define E_INITENC_NO_PICTURE "Exception Happened when initiating encoder!\n \
The input picture pointer is NULL.\n \
The encoder has been closed.\n"
#define E_INITENC_NO_OUT_BUFFER "Exception Happened when initiating encoder!\n \
The output buffer pointer is NULL.\n \
The encoder has been closed.\n"
#define E_INITENC_LITTLE_OUT_BUFFER "Exception Happened when initiating encoder!\n \
The output buffer is not enough.Please ENLARGE the buffer.\n \
The encoder has been closed.\n"
#define E_INITENC_WRONG_SEARCH_RANGE "Exception Happened when initiating encoder!\n \
The search range should be [1,15].\n \
The encoder has been closed.\n"
#define E_INITENC_WRONG_QP "Exception Happened when initiating encoder!\n \
The QP should be [1,31].\n \
The encoder has been closed.\n"
#define E_INITENC_WRONG_QI "Exception Happened when initiating encoder!\n \
The QI should be [1,31].\n \
The encoder has been closed.\n"
#define E_INITENC_WRONG_SEARCH_METHOD "Exception Happened when initiating encoder!\n \
The search method should be [1,4].\n \
The encoder has been closed.\n"
#define E_INITENC_WRONG_P_RATE "Exception Happened when initiating encoder!\n \
The P_rate shoule >=0. \n \
The encoder has been closed.\n"
#define E_INITENC_WRONG_FRAMERATE "Exception Happened when initiating encoder!\n \
The framerate shoule >=0. \n \
The encoder has been closed.\n"
//This function is called to free the memories malloced when exception happened during malloc memory.
//errnr : indicates the memories have been malloced.
void deal_exceptions(int errnr, H263VencStatus *encoder, MCParam *mc);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?