2024-10-08 02:29:00 +00:00
|
|
|
#ifndef DECODER_H
|
|
|
|
#define DECODER_H
|
|
|
|
|
2024-10-10 07:23:13 +00:00
|
|
|
extern "C" {
|
2024-10-08 02:29:00 +00:00
|
|
|
#include <libavcodec/avcodec.h>
|
|
|
|
#include <libavformat/avformat.h>
|
2024-10-10 07:23:13 +00:00
|
|
|
}
|
2024-10-08 02:29:00 +00:00
|
|
|
|
|
|
|
int init_decoder(
|
2024-10-10 07:23:13 +00:00
|
|
|
AVHWDeviceType hw_type,
|
|
|
|
AVBufferRef *hw_ctx,
|
2024-10-21 23:54:22 +00:00
|
|
|
const char *in_fname,
|
2024-10-08 02:29:00 +00:00
|
|
|
AVFormatContext **fmt_ctx,
|
|
|
|
AVCodecContext **dec_ctx,
|
2024-10-21 23:54:22 +00:00
|
|
|
int *vstream_idx
|
2024-10-08 02:29:00 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
#endif // DECODER_H
|