1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/**
* Copyright (c) 2002 Billy Biggs <vektor@dumbterm.net>.
* Copyright (c) 2002 Doug Bell <drbell@users.sourceforge.net>
*
* CC code from Nathan Laredo's ccdecode.
* Lots of 'hey what does this mean?' code from
* Billy Biggs and Doug Bell, like all the crap with
* XDS and stuff. Some help from Zapping's vbi library by
* Michael H. Schimek and others, released under the GPL.
*
* Modified and adapted to GStreamer by
* David I. Lehn <dlehn@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef VBIDATA_H_INCLUDED
#define VBIDATA_H_INCLUDED
#include "vbiscreen.h"
/*#include "tvtimeosd.h"*/
typedef struct vbidata_s vbidata_t;
#define CAPTURE_OFF 0
#define CAPTURE_CC1 1
#define CAPTURE_CC2 2
#define CAPTURE_CC3 4
#define CAPTURE_CC4 5
#define CAPTURE_T1 6
#define CAPTURE_T2 7
#define CAPTURE_T3 8
#define CAPTURE_T4 9
vbidata_t *vbidata_new_file( const char *filename, vbiscreen_t *vs,
/*tvtime_osd_t* osd,*/ int verbose );
vbidata_t *vbidata_new_line( vbiscreen_t *vs, int verbose );
void vbidata_delete( vbidata_t *vbi );
void vbidata_reset( vbidata_t *vbi );
void vbidata_set_verbose( vbidata_t *vbi, int verbose );
void vbidata_capture_mode( vbidata_t *vbi, int mode );
void vbidata_process_frame( vbidata_t *vbi, int printdebug );
void vbidata_process_line( vbidata_t *vbi, unsigned char *s, int bottom );
void vbidata_process_16b( vbidata_t *vbi, int bottom, int w );
#endif /* VBIDATA_H_INCLUDED */
|