encore.h
资源名称:VC++视频传输.rar [点击查看]
上传用户:hxb_1234
上传日期:2010-03-30
资源大小:8328k
文件大小:1k
源码类别:
VC书籍
开发平台:
Visual C++
- #ifdef __cplusplus
- extern "C" {
- #endif
- typedef struct _ENC_PARAM_ {
- int x_dim;
- int y_dim;
- float framerate;
- long bitrate;
- long rc_period;
- long rc_reaction_period;
- long rc_reaction_ratio;
- long max_key_interval;
- int max_quantizer;
- int min_quantizer;
- int search_range;
- } ENC_PARAM;
- typedef struct _ENC_FRAME_ {
- void *image;
- void *bitstream;
- long length;
- } ENC_FRAME;
- typedef struct _ENC_RESULT_ {
- int isKeyFrame;
- } ENC_RESULT;
- int encore(
- unsigned long handle,
- unsigned long enc_opt,
- void *param1,
- void *param2);
- #define ENC_OPT_WRITE 1024
- #define ENC_OPT_INIT 32768
- #define ENC_OPT_RELEASE 65536
- #define ENC_OK 0
- #define ENC_MEMORY 1
- #define ENC_BAD_FORMAT 2
- #ifdef __cplusplus
- }
- #endif