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