mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-29 16:09:10 +00:00
33b7c53e16
Signed-off-by: k4yt3x <i@k4yt3x.com>
21 lines
359 B
C++
21 lines
359 B
C++
#ifndef DECODER_H
|
|
#define DECODER_H
|
|
|
|
#include <filesystem>
|
|
|
|
extern "C" {
|
|
#include <libavcodec/avcodec.h>
|
|
#include <libavformat/avformat.h>
|
|
}
|
|
|
|
int init_decoder(
|
|
AVHWDeviceType hw_type,
|
|
AVBufferRef *hw_ctx,
|
|
std::filesystem::path in_fpath,
|
|
AVFormatContext **fmt_ctx,
|
|
AVCodecContext **dec_ctx,
|
|
int *in_vstream_idx
|
|
);
|
|
|
|
#endif // DECODER_H
|