@@ -43,7 +43,7 @@ struct file_report
4343};
4444
4545// Stuff for telxcc.c
46- #define MAX_TLT_PAGES_EXTRACT 8 // Maximum number of teletext pages to extract simultaneously
46+ #define MAX_TLT_PAGES_EXTRACT 8 // Maximum number of teletext pages to extract simultaneously
4747
4848struct ccx_s_teletext_config
4949{
@@ -55,11 +55,11 @@ struct ccx_s_teletext_config
5555 uint8_t nonempty : 1 ; // produce at least one (dummy) frame
5656 // uint8_t se_mode : 1; // search engine compatible mode => Uses CCExtractor's write_format
5757 // uint64_t utc_refvalue; // UTC referential value => Moved to ccx_decoders_common, so can be used for other decoders (608/xds) too
58- uint16_t user_page ; // Page selected by user (legacy, first page)
58+ uint16_t user_page ; // Page selected by user (legacy, first page)
5959 // Multi-page teletext extraction (issue #665)
60- uint16_t user_pages [MAX_TLT_PAGES_EXTRACT ]; // Pages selected by user for extraction
61- int num_user_pages ; // Number of pages to extract (0 = auto-detect single page)
62- int extract_all_pages ; // If 1, extract all detected subtitle pages
60+ uint16_t user_pages [MAX_TLT_PAGES_EXTRACT ]; // Pages selected by user for extraction
61+ int num_user_pages ; // Number of pages to extract (0 = auto-detect single page)
62+ int extract_all_pages ; // If 1, extract all detected subtitle pages
6363 int dolevdist ; // 0=Don't attempt to correct errors
6464 int levdistmincnt , levdistmaxpct ; // Means 2 fails or less is "the same", 10% or less is also "the same"
6565 struct ccx_boundary_time extraction_start , extraction_end ; // Segment we actually process
@@ -183,6 +183,10 @@ size_t process_raw(struct lib_cc_decode *ctx, struct cc_subtitle *sub, unsigned
183183unsigned int ccxr_process_dvdraw (struct lib_cc_decode * ctx , struct cc_subtitle * sub , const unsigned char * buffer , unsigned int len );
184184int ccxr_is_dvdraw_header (const unsigned char * buffer , unsigned int len );
185185
186+ // Rust FFI: SCC (Scenarist Closed Caption) format processing (see src/rust/src/demuxer/scc.rs)
187+ unsigned int ccxr_process_scc (struct lib_cc_decode * ctx , struct cc_subtitle * sub , const unsigned char * buffer , unsigned int len , int framerate );
188+ int ccxr_is_scc_file (const unsigned char * buffer , unsigned int len );
189+
186190int general_loop (struct lib_ccx_ctx * ctx );
187191void process_hex (struct lib_ccx_ctx * ctx , char * filename );
188192int rcwt_loop (struct lib_ccx_ctx * ctx );
0 commit comments