18 #include "scanner/eval/evaluator.h" 19 #include "scanner/video/video_decoder.h" 22 #include "libavcodec/avcodec.h" 23 #include "libavfilter/avfilter.h" 24 #include "libavformat/avformat.h" 25 #include "libavformat/avio.h" 26 #include "libavutil/error.h" 27 #include "libavutil/opt.h" 28 #include "libavutil/pixdesc.h" 29 #include "libswscale/swscale.h" 45 void configure(
const InputFormat& metadata)
override;
47 bool feed(
const u8* encoded_buffer,
size_t encoded_size,
48 bool discontinuity =
false)
override;
50 bool discard_frame()
override;
52 bool get_frame(u8* decoded_buffer,
size_t decoded_size)
override;
54 int decoded_frames_buffered()
override;
56 void wait_until_frames_copied()
override;
60 DeviceType output_type_;
65 InputFormat metadata_;
66 std::vector<u8> conversion_buffer_;
68 SwsContext* sws_context_;
70 std::vector<AVFrame*> frame_pool_;
71 std::deque<AVFrame*> decoded_frame_queue_;
IntelVideoDecoder.
Definition: intel_video_decoder.h:39
IntelVideoDecoder(int device_id, DeviceType output_type)
IntelVideoDecoder.
Definition: intel_video_decoder.cpp:39
Definition: database.cpp:36