18 #include "scanner/api/kernel.h" 19 #include "scanner/util/queue.h" 20 #include "scanner/video/video_encoder.h" 23 #include "libavcodec/avcodec.h" 24 #include "libavfilter/avfilter.h" 25 #include "libavformat/avformat.h" 26 #include "libavformat/avio.h" 27 #include "libavutil/error.h" 28 #include "libavutil/opt.h" 29 #include "libavutil/pixdesc.h" 30 #include "libswscale/swscale.h" 50 bool feed(
const u8* frame_buffer,
size_t frame_size)
override;
52 bool flush()
override;
54 bool get_packet(u8* packet_buffer,
size_t packet_size,
55 size_t& actual_packet_size)
override;
57 int decoded_packets_buffered()
override;
59 void wait_until_packets_copied()
override;
62 void feed_frame(
bool flush);
65 DeviceType output_type_;
68 AVBitStreamFilterContext* annexb_;
73 SwsContext* sws_context_;
78 std::deque<AVPacket*> ready_packet_queue_;
Definition: video_encoder.h:34
SoftwareVideoEncoder(i32 device_id, DeviceType output_type, i32 thread_count)
SoftwareVideoEncoder.
Definition: software_video_encoder.cpp:48
Definition: database.cpp:36
VideoEncoder.
Definition: video_encoder.h:42
SoftwareVideoEncoder.
Definition: software_video_encoder.h:42
FrameInfo.
Definition: frame.h:34