mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 06:59:11 +00:00
627f3d84a4
* feat: add RIFE files and processor/interpolator abstractions * feat: add `rife` as processor option * feat: add frame interpolation math except first frame * feat: complete motion interpolation and add scene detection * feat: improve Vulkan device validation * fix: fix casting issues and variable names * refactor: improve error-checking; add abstractions and factories * refactor: improve readability of the frames processor * docs: update changelog Signed-off-by: k4yt3x <i@k4yt3x.com>
20 lines
489 B
C
20 lines
489 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)
|
|
|
|
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);
|
|
|
|
enum AVPixelFormat
|
|
get_encoder_default_pix_fmt(const AVCodec *encoder, AVPixelFormat target_pix_fmt);
|
|
|
|
float get_frame_diff(AVFrame *frame1, AVFrame *frame2);
|
|
|
|
#endif // AVUTILS_H
|