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

📄 ceapp_y264_enc.h

📁 ti的Davinic平台的DM6446的ARM测例子程序
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -