开发工具:
文件大小: 96kb
下载次数: 0
上传时间: 2019-09-03
详细说明:mpeg4编码库源代码,C++完整源代码,有需要饿同学尽管拿去。
// This is the header file describing
// the entrance function of the encoder core
// or the encore ...
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _ENC_PARAM_ {
int x_dim; // the x dimension of the frames to be encoded
int y_dim; // the y dimension of the frames to be encoded
float framerate;// the frame rate of the sequence to be encoded
long bitrate; // the bitrate of the target encoded stream
long rc_period; // the intended rate control averaging period
long rc_reaction_period; // the reation period for rate control
long rc_reaction_ratio; // the ratio for down/up rate control
long max_key_interval; // the maximum interval between key frames
int max_quantizer; // the upper limit of the quantizer
int min_quantizer; // the lower limit of the quantizer
int search_range; // the forward search range for motion estimation
} ENC_PARAM;
typedef struct _ENC_FRAME_ {
void *image; // the image frame to be encoded
void *bitstream;// the buffer for encoded bitstream
long length; // the length of the encoded bitstream
} ENC_FRAME;
typedef struct _ENC_RESULT_ {
int isKeyFrame; // the current frame is encoded as a key frame
} ENC_RESULT;
// the prototype of the encore() - main encode engine entrance
int encore(
unsigned long handle, // handle - the handle of the calling entity, must be unique
unsigned long enc_opt, // enc_opt - the option for encoding, see below
void *param1, // param1 - the parameter 1 (its actually meaning depends on enc_opt
void *param2); // param2 - the parameter 2 (its actually meaning depends on enc_opt
// encore options (the enc_opt parameter of encore())
#define ENC_OPT_WRITE 1024 // write the reconstruct image to files (for debuging)
#define ENC_OPT_INIT 32768 // initialize the encoder for an handle
#define ENC_OPT_RELEASE 65536 // release all the resource associated with the handle
// return code of encore()
#define ENC_OK 0
#define ENC_MEMORY 1
#define ENC_BA
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.