ceapp_y264_enc.h
来自「ti的Davinic平台的DM6446的ARM测例子程序」· C头文件 代码 · 共 38 行
H
38 行
#ifndef _CEAPP_Y264_ENC_H_
#define _CEAPP_Y264_ENC_H_
#include <xdc/std.h>
#include <ti/sdo/ce/Engine.h>
#include <ti/sdo/ce/video/viddec.h>
#include <ti/sdo/ce/video/videnc.h>
#include <ti/sdo/ce/osal/Memory.h>
#include <ti/sdo/ce/CERuntime.h>
#include <ti/sdo/ce/utils/trace/TraceUtil.h>
#define LOG_MY_CE
//////////////////////////////////////////////////////////////////////////
typedef ceapp_Handle
{
/* define names of codecs to use */
String engine_Name;
String decoder_Name;
String encoder_Name;
/*
* define handles to the CodecEngine and codecs to be used across ceapp_*
* function calls; we are not reentrant.
*/
Engine_Handle ce_Handle;
VIDDEC_Handle dec_Handle;
VIDENC_Handle enc_Handle;
}ceapp_Handle;
int ceapp_init(ceapp_Handle *ceapphandle);
void* ceapp_allocContigBuf(int bufSize, int bufAlign);
void ceapp_freeContigBuf(char *buf, int bufSize);
int ceapp_validateBufSizes(ceapp_Handle *ceapphandle, int inBufSize0, int inBufSize1, int inBufSize2, int outBufSize);
int ceapp_encodeoneframe(ceapp_Handle *ceapphandle, char *inBufyuv[3], int inBufSize[3], char *encodedBuf, int encodedBufSize);
void ceapp_exit(ceapp_Handle *ceapphandle);
//////////////////////////////////////////////////////////////////////////
#endif //end of _CEAPP_Y264_ENC_H_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?