From cd0958260b54af3514ac12b936bb76ca6de6978b Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 May 2014 11:50:15 +0100 Subject: More STL binary reading stuff. --- src/stl_binary_reader.h | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) (limited to 'src/stl_binary_reader.h') diff --git a/src/stl_binary_reader.h b/src/stl_binary_reader.h index 0491cb8..b049b93 100644 --- a/src/stl_binary_reader.h +++ b/src/stl_binary_reader.h @@ -173,6 +173,25 @@ public: TIMECODE_STATUS_INTENDED_FOR_USE }; + enum CumulativeStatus { + CUMULATIVE_STATUS_NOT_CUMULATIVE, + CUMULATIVE_STATUS_FIRST, + CUMULATIVE_STATUS_INTERMEDIATE, + CUMULATIVE_STATUS_LAST + }; + + enum Justification { + JUSTIFICATION_NONE, + JUSTIFICATION_LEFT, + JUSTIFICATION_CENTRE, + JUSTIFICATION_RIGHT + }; + + enum Comment { + COMMENT_NO, + COMMENT_YES + }; + int code_page_number; int frame_rate; DisplayStandard display_standard; @@ -204,13 +223,19 @@ public: std::string editor_contact_details; private: - std::string fixed_string (int, int) const; - void create_maps (); + std::string get_string (int, int) const; + int get_int (int, int) const; + FrameTime get_timecode (int) const; + + void create_tables (); std::map > _display_standard_map; std::map > _language_group_map; std::map > _language_map; std::map > _timecode_status_map; + std::map > _cumulative_status_map; + std::map > _justification_map; + std::map > _comment_map; unsigned char* _buffer; }; -- cgit v1.2.3