00001 #ifndef CC_H 00002 #define CC_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #define CC_VBIBUFSIZE 65536*2 00009 00010 //cc is 32 columns per row, this allows for extra characters 00011 #define CC_BUFSIZE 256 00012 00013 struct cc 00014 { 00015 int fd; 00016 char buffer[CC_VBIBUFSIZE]; 00017 int code1; 00018 int code2; 00019 00020 int samples_per_line; 00021 int start_line; 00022 int line_count; 00023 int scale0, scale1; 00024 }; 00025 00026 void cc_decode(struct cc *cc); 00027 00028 struct cc *cc_open(const char *vbi_name); 00029 void cc_close(struct cc *cc); 00030 void cc_handler(struct cc *cc); 00031 00032 #ifdef __cplusplus 00033 } 00034 #endif 00035 00036 #endif