我是靠谱客的博主 老实小伙,这篇文章主要介绍FFmpeg deprecated总结整理,现在分享给大家,希望可以做个参考。

PIX_FMT_YUV420P

PIX_FMT_YUV420P -> AV_PIX_FMT_YUV420P

AVStream::codec

pFormatCtx->streams[i]->codec->codec_type 
pFormatCtx->streams[i]->codecpar->codec_type

pCodecCtx = pFormatCtx->streams[videoindex]->codec
pCodecCtx = avcodec_alloc_context3(NULL);
avcodec_parameters_to_context(pCodecCtx, pFormatCtx->streams[videoindex]->codecpar);

avpicture_get_size

avpicture_get_size(AV_PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height)

#include "libavutil/imgutils.h"
av_image_get_buffer_size(AV_PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height, 1)

avpicture_fill

avpicture_fill((AVPicture *)pFrameYUV, out_buffer,
    AV_PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height);

av_image_fill_arrays(pFrameYUV->data, pFrameYUV->linesize, out_buffer, 
    AV_PIX_FMT_YUV420P, pCodecCtx->width, pCodecCtx->height, 1);

avcodec_decode_video2

ret = avcodec_decode_video2(pCodecCtx, pFrame, &got_picture, packet);

ret = avcodec_send_packet(pCodecCtx, packet);
got_picture = avcodec_receive_frame(pCodecCtx, pFrame); 

av_free_packet

av_free_packet(packet);

av_packet_unref(packet);

avcodec_decode_audio4

int ret = avcodec_send_packet(aCodecCtx, &pkt);
while( avcodec_receive_frame(aCodecCtx, &frame) == 0) {
}

最后

以上就是老实小伙最近收集整理的关于FFmpeg deprecated总结整理的全部内容,更多相关FFmpeg内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(118)

评论列表共有 0 条评论

立即
投稿
返回
顶部