FFMPEG 主要函数

**1. AVCodecContext **
typedef struct AVCodecContext { const AVClass *av_class; AVMediaType codec_type; //编解码器处理的媒体类型,如AVMEDIA_TYPE_VIDEO或AVMEDIA_TYPE_AUDIO const AVCodec *codec; // 指向当前编解码器的指针 AVCodecID codec_id; // 编解码器的ID,例如CODEC_ID_H264 int width, height; // 视频的情况下,宽和高 AVRational time_base; // 时间基,用于计算时间戳 int bit_rate; // 编码时的目标比特率 /* 更多编解码相关的参数... */ AVFrame *frame; // 可选的,用于存储原始数据的帧 AVFrame *coded_frame; // 编码后的帧,解码时使用 /* 更多功能性、控制和状态字段... */ } AVCodecContext;

posted @ 2024-12-27 13:53  sz2022  阅读(20)  评论(0)    收藏  举报