48 ReadFrame enqueue_frame(
const AVPacket* pkt)
noexcept;
49 std::pair<AVBufferRef*, const AVCodec*> open_hwdec(
const AVCodec&)
noexcept;
51 int init_codec_context(
52 const AVCodec* codec, AVBufferRef* hw_dev_ctx,
const AVStream* stream,
53 std::function<
void(AVCodecContext&)> setup);
54 bool open_codec_context(
56 std::function<
void(AVCodecContext&)> setup);
58 void load_packet_in_frame(
const AVPacket& packet, AVFrame& frame);
60 ReadFrame read_one_frame(AVPacket& packet);
61 ReadFrame read_one_frame_raw(AVPacket& packet);
62 ReadFrame read_one_frame_avcodec(AVPacket& packet);
66 AVFormatContext* m_formatContext{};
67 AVStream* m_avstream{};
68 const AVCodec* m_codec{};
69 AVCodecContext* m_codecContext{};