您当前的位置: 首页 > 

柳鲲鹏

暂无认证

  • 0浏览

    0关注

    4642博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

FFMpeg新旧接口之间的一些对应关系

柳鲲鹏 发布时间:2020-02-23 10:52:25 ,浏览量:0

  • 错误类似:
src/codecs/h263/tdav_codec_h263.c: In function ‘tdav_codec_h263_ctor’:
src/codecs/h263/tdav_codec_h263.c:540:75: error: type of formal parameter 3 is incomplete
   tdav_codec_h263_init(TDAV_CODEC_H263(self), tdav_codec_h263_1996, CODEC_ID_H263, CODEC_ID_H263);
src/codecs/h263/tdav_codec_h263.c:181:93: error: parameter 3 (‘encoder’) has incomplete type
 (tdav_codec_h263_t* self, tdav_codec_h263_type_t type, enum CodecID encoder, enum CodecID decoder)

 

  • 普通项目:
avcodec_alloc_frame             av_frame_alloc
avcodec_get_frame_defaults      av_frame_unref
avcodec_free_frame              av_frame_free
avcodec_encode_video            avcodec_encode_video2
avcodec_open                    avcodec_open2
avcodec_alloc_context           avcodec_alloc_context3
avcodec_get_context_defaults    avcodec_get_context_defaults3
avcodec_get_frame_defaults      av_frame_unref

CODEC_ID_H263                   AV_CODEC_ID_H263

CodecID                         AVCodecID

PixelFormat                     AVPixelFormat

PIX_FMT_RGB24                   AV_PIX_FMT_RGB24(一大批类似的)

FF_INPUT_BUFFER_PADDING_SIZE    AV_INPUT_BUFFER_PADDING_SIZE
AVFilterBufferRef               AVBufferRef

av_buffersink_get_buffer_ref    av_frame_copy_props
avfilter_copy_buf_props         av_frame_copy_props

 

  • 特有项目:
libavfilter/motion_estimation.h

self->encoder.context->me_method = ME_UMH

改为

self->encoder.context->prediction_method = AV_ME_METHOD_UMH;

 

关注
打赏
1665724893
查看更多评论
立即登录/注册

微信扫码登录

0.0507s