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

📄 vis264enc.h

📁 测试版H.264编码器:基于TI公司TMS320DM642芯片开发的编码器; 该编码器只适合测试其各种编码功能
💻 H
字号:
/********************************************************************
* vis264enc.h: Vis264enc is based on h.264 baseline
*********************************************************************
*	Copyright (C) 2005 viscodec (http://www.viscodec.com)
*
*	Version:	2.0
*	Authors:	linxj	<zerolinxj@hotmail.com>
*				wxw		<wxw21st@gmail.com>
*	Tel:		(+86) 21-34293702
*
********************************************************************/
#ifndef __VIS264ENC_H__
#define __VIS264ENC_H__  

#ifdef __cplusplus
extern "C"
{
#endif
//video type	
#define VIS_CSP_I420			0x00000001  /* yuv 4:2:0  */
#define VIS_CSP_I422			0x00000002  /* yuv 4:2:2  */
#define VIS_CSP_NONEINTERLACE	0x00000100  /* yuv no interlace  */		
#define VIS_CSP_INTERLACE		0x00000200  /* yuv interlace  */
//speed type
#define VIS_SPEED_LEVEL1		0x00000001
#define VIS_SPEED_LEVEL2		0x00000002
#define VIS_SPEED_LEVEL3		0x00000003
#define VIS_SPEED_LEVEL4		0x00000004
#define VIS_SPEED_LEVEL5		0x00000005
#define VIS_SPEED_SLOW			VIS_SPEED_LEVEL1
#define VIS_SPEED_FAST			VIS_SPEED_LEVEL5
//quanlity type
#define VIS_VBR					0x00010000
#define VIS_CBR					0x00020000
#define VIS_QUALITY_HIGHER		0x00000001
#define VIS_QUALITY_HIGH		0x00000002
#define VIS_QUALITY_NORM		0x00000003
#define VIS_QUALITY_LOW			0x00000004
#define VIS_QUALITY_LOWER		0x00000005
#define VIS_100KBPS				( 100 & 0xffff)
#define VIS_300KBPS				( 300 & 0xffff)
#define VIS_600KBPS				( 600 & 0xffff)
#define VIS_1000KBPS			(1000 & 0xffff)
#define VIS_1500KBPS			(1500 & 0xffff)

#define VIS_HOLD				0x00000000

typedef struct vis264_t vis264_t;

//Create vis264_t for the codec
vis264_t *Vis264enc_Init(int Video_type,int Speed_type,int Quality_type,int width,int height);

//Encode ,the input should be yuv420 or yuv422
int		Vis264enc_Frame(void* Src_y,void* Src_u,void* Src_v,void *Dst,vis264_t *vis);

//Close , after Encode the all frame .
void	Vis264enc_Close(vis264_t *v);

//Reset, change the parameter when encode
int		Vis264enc_Reset(vis264_t * v,int Video_type,int Speed_type,int Quality_type,int width,int height,int restart);

//Get version of this lib
void	Vis264enc_Version(vis264_t * v,int *Version_big,int *Version_small,int *Product_ID);
	
#ifdef __cplusplus
};
#endif

#endif	//end of __VIS264ENC_H__

⌨️ 快捷键说明

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