encore.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- #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