20 #include "scanner/util/common.h" 21 #include "storehouse/storage_backend.h" 24 #include "libavcodec/avcodec.h" 25 #include "libavfilter/avfilter.h" 26 #include "libavformat/avformat.h" 27 #include "libavformat/avio.h" 28 #include "libavutil/error.h" 29 #include "libavutil/opt.h" 30 #include "libavutil/pixdesc.h" 31 #include "libswscale/swscale.h" 34 using storehouse::RandomReadFile;
38 struct FFStorehouseState {
39 std::unique_ptr<RandomReadFile> file =
nullptr;
45 std::vector<u8> buffer;
48 bool ffmpeg_storehouse_state_init(FFStorehouseState* file_state,
49 storehouse::StorageBackend* storage,
50 const std::string& path,
51 std::string& error_message);
54 i32 ffmpeg_storehouse_read_packet(
void* opaque, u8* buf, i32 buf_size);
56 i64 ffmpeg_storehouse_seek(
void* opaque, i64 offset, i32 whence);
Definition: database.cpp:36