mirror of
https://github.com/k4yt3x/video2x.git
synced 2024-12-28 23:19:11 +00:00
21 lines
356 B
C++
21 lines
356 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 *vstream_idx
|
|
);
|
|
|
|
#endif // DECODER_H
|