From 0225cfa5933cbcb8c236b7cf9dbd05a6260ea911 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 13 Oct 2025 22:59:22 +0200 Subject: fixup! WIP: SCC support. --- src/scc_reader.cc | 212 +++++++++++++++++++++++++++++++++++------------------- src/sub_time.cc | 12 ++-- src/sub_time.h | 4 ++ 3 files changed, 151 insertions(+), 77 deletions(-) (limited to 'src') diff --git a/src/scc_reader.cc b/src/scc_reader.cc index 10fde09..deb853b 100644 --- a/src/scc_reader.cc +++ b/src/scc_reader.cc @@ -27,16 +27,23 @@ #include #include #include +#include +#include using std::pair; +using std::set; using std::string; +using std::unordered_map; using std::vector; using boost::function; using boost::optional; using namespace sub; +static Rational const frame_rate{30000, 1001}; + + /** @param s Subtitle string encoded in UTF-8 */ SCCReader::SCCReader(string s) { @@ -51,7 +58,7 @@ SCCReader::SCCReader(FILE* f) } -boost::optional