x264.h
x264_t *x264_encoder_open ( x264_param_t * );
int x264_encoder_reconfig( x264_t *, x264_param_t * );
int x264_encoder_headers( x264_t *, x264_nal_t **, int * );
int x264_encoder_encode ( x264_t *, x264_nal_t **, int *, x264_picture_t *, x264_picture_t * );
void x264_encoder_close ( x264_t * );
x264_encoder_open创建一个新的编码器,返回值类型为x264_t*
x264_t * 即是编码器的标志,类似于句柄,后面的几个函数都用x264_t *为参数来指定编码器。
评论