#ifndef DECODER_H #define DECODER_H #include extern "C" { #include #include } 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