mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 23:19:11 +00:00
d4d1e58f8d
Signed-off-by: k4yt3x <i@k4yt3x.com>
23 lines
558 B
C
23 lines
558 B
C
#ifndef AVUTILS_H
|
|
#define AVUTILS_H
|
|
|
|
extern "C" {
|
|
#include <libavformat/avformat.h>
|
|
}
|
|
|
|
AVRational get_video_frame_rate(AVFormatContext *ifmt_ctx, int in_vstream_idx);
|
|
|
|
int64_t get_video_frame_count(AVFormatContext *ifmt_ctx, int in_vstream_idx);
|
|
|
|
AVPixelFormat get_encoder_default_pix_fmt(const AVCodec *encoder, AVPixelFormat target_pix_fmt);
|
|
|
|
float get_frame_diff(AVFrame *frame1, AVFrame *frame2);
|
|
|
|
void av_bufferref_deleter(AVBufferRef *bufferref);
|
|
|
|
void av_frame_deleter(AVFrame *frame);
|
|
|
|
void av_packet_deleter(AVPacket *packet);
|
|
|
|
#endif // AVUTILS_H
|