27 #ifndef MEDIAPROCESSORS_SRC_FFMPEG_VIDEO_H_ 28 #define MEDIAPROCESSORS_SRC_FFMPEG_VIDEO_H_ 30 #include <libmediaprocsutils/mem_utils.h> 31 #include <libmediaprocs/proc.h> 35 #define SCALE_FLAGS SWS_BICUBIC 38 typedef struct AVCodec AVCodec;
39 typedef struct AVCodecContext AVCodecContext;
40 typedef struct AVFrame AVFrame;
41 typedef struct AVPacket AVPacket;
42 typedef struct AVDictionary AVDictionary;
43 typedef struct SwsContext SwsContext;
75 struct SwsContext *sws_ctx;
209 volatile void *video_settings_opaque,
int flag_is_encoder,
struct ffmpeg_video_enc_ctx_s ffmpeg_video_enc_ctx_t
void ffmpeg_video_dec_ctx_deinit(ffmpeg_video_dec_ctx_t *ffmpeg_video_dec_ctx, log_ctx_t *log_ctx)
int ffmpeg_video_dec_frame(ffmpeg_video_dec_ctx_t *ffmpeg_video_dec_ctx, AVPacket *avpacket_iput, fifo_ctx_t *oput_fifo_ctx, log_ctx_t *log_ctx)
int ffmpeg_video_dec_ctx_init(ffmpeg_video_dec_ctx_t *ffmpeg_video_dec_ctx, int avcodecid, const video_settings_dec_ctx_t *video_settings_dec_ctx, log_ctx_t *log_ctx)
void ffmpeg_video_reset_on_new_settings(proc_ctx_t *proc_ctx, volatile void *video_settings_opaque, int flag_is_encoder, log_ctx_t *log_ctx)
AVDictionary * avdictionary
AVCodecContext * avcodecctx
struct proc_ctx_s proc_ctx
int ffmpeg_video_enc_ctx_init(ffmpeg_video_enc_ctx_t *ffmpeg_video_enc_ctx, int avcodecid, const video_settings_enc_ctx_t *video_settings_enc_ctx, log_ctx_t *log_ctx)
int ffmpeg_video_enc_frame(ffmpeg_video_enc_ctx_t *ffmpeg_video_enc_ctx, AVFrame *avframe_iput, fifo_ctx_t *oput_fifo_ctx, log_ctx_t *log_ctx)
AVCodecContext * avcodecctx
struct ffmpeg_video_dec_ctx_s ffmpeg_video_dec_ctx_t
void ffmpeg_video_enc_ctx_deinit(ffmpeg_video_enc_ctx_t *ffmpeg_video_enc_ctx, log_ctx_t *log_ctx)