18 #include "scanner/api/database.h" 19 #include "scanner/util/common.h" 20 #include "scanner/util/h264.h" 22 #include "storehouse/storage_backend.h" 23 #include "storehouse/storage_config.h" 34 bool feed_packet(u8* data,
size_t size);
36 const std::vector<u8>& metadata_bytes() {
return metadata_bytes_; }
37 const std::vector<u64>& sample_offsets() {
return sample_offsets_; }
38 const std::vector<u64>& sample_sizes() {
return sample_sizes_; }
39 const std::vector<u64>& keyframe_indices() {
return keyframe_indices_; }
41 i32 frames() {
return frame_; };
42 i32 num_non_ref_frames() {
return num_non_ref_frames_; };
43 i32 nals_parsed() {
return nals_parsed_; };
44 i64 bytestream_pos() {
return bytestream_pos_; }
46 std::string error_message() {
return error_message_; }
49 std::string error_message_;
51 storehouse::WriteFile* demuxed_bytestream_;
53 u64 bytestream_pos_ = 0;
54 std::vector<u8> metadata_bytes_;
55 std::vector<u64> sample_offsets_;
56 std::vector<u64> sample_sizes_;
57 std::vector<u64> keyframe_indices_;
60 bool in_meta_packet_sequence_ =
false;
61 i64 meta_packet_sequence_start_offset_ = 0;
62 bool saw_sps_nal_ =
false;
63 bool saw_pps_nal_ =
false;
64 std::map<u32, SPS> sps_map_;
65 std::map<u32, PPS> pps_map_;
68 std::map<u32, std::vector<u8>> sps_nal_bytes_;
69 std::map<u32, std::vector<u8>> pps_nal_bytes_;
72 i32 num_non_ref_frames_ = 0;
Definition: database.cpp:36
Definition: h264_byte_stream_index_creator.h:30