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