mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-09-28 06:50:59 +02:00
16 lines
351 B
C
16 lines
351 B
C
#ifndef AVUTILS_H
|
|
#define AVUTILS_H
|
|
|
|
extern "C" {
|
|
#include <libavformat/avformat.h>
|
|
}
|
|
|
|
#define CALC_FFMPEG_VERSION(a, b, c) (a << 16 | b << 8 | c)
|
|
|
|
int64_t get_video_frame_count(AVFormatContext *ifmt_ctx, int in_vstream_idx);
|
|
|
|
enum AVPixelFormat
|
|
get_encoder_default_pix_fmt(const AVCodec *encoder, AVPixelFormat target_pix_fmt);
|
|
|
|
#endif // AVUTILS_H
|