hlsdemux: Enable support for external subtitles
[platform/upstream/gstreamer.git] / ext / closedcaption / sampling_par.h
1 /*
2  *  libzvbi -- Raw VBI sampling parameters
3  *
4  *  Copyright (C) 2000-2004 Michael H. Schimek
5  *
6  *  This library is free software; you can redistribute it and/or
7  *  modify it under the terms of the GNU Library General Public
8  *  License as published by the Free Software Foundation; either
9  *  version 2 of the License, or (at your option) any later version.
10  *
11  *  This library is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  *  Library General Public License for more details.
15  *
16  *  You should have received a copy of the GNU Library General Public
17  *  License along with this library; if not, write to the 
18  *  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 
19  *  Boston, MA  02110-1301  USA.
20  */
21
22 /* $Id: sampling_par.h,v 1.9 2008-02-24 14:17:06 mschimek Exp $ */
23
24 #ifndef __SAMPLING_PAR_H__
25 #define __SAMPLING_PAR_H__
26
27 #include "decoder.h"
28
29 VBI_BEGIN_DECLS
30
31 /* Public */
32
33 typedef vbi_raw_decoder vbi_sampling_par;
34
35 #define VBI_VIDEOSTD_SET_EMPTY 0
36 #define VBI_VIDEOSTD_SET_PAL_BG 1
37 #define VBI_VIDEOSTD_SET_625_50 1
38 #define VBI_VIDEOSTD_SET_525_60 2
39 #define VBI_VIDEOSTD_SET_ALL 3
40 typedef uint64_t vbi_videostd_set;
41
42 /* Private */
43
44 extern vbi_service_set
45 vbi_sampling_par_from_services (vbi_sampling_par *    sp,
46                                 unsigned int *         max_rate,
47                                 vbi_videostd_set      videostd_set,
48                                 vbi_service_set       services);
49 extern vbi_service_set
50 vbi_sampling_par_check_services
51                                 (const vbi_sampling_par *sp,
52                                  vbi_service_set       services,
53                                  unsigned int           strict)
54   _vbi_pure;
55
56 extern vbi_videostd_set
57 _vbi_videostd_set_from_scanning (int                    scanning);
58
59 extern vbi_service_set
60 _vbi_sampling_par_from_services_log
61                                 (vbi_sampling_par *    sp,
62                                  unsigned int *         max_rate,
63                                  vbi_videostd_set      videostd_set,
64                                  vbi_service_set       services,
65                                  _vbi_log_hook *       log);
66 extern vbi_service_set
67 _vbi_sampling_par_check_services_log
68                                 (const vbi_sampling_par *sp,
69                                  vbi_service_set       services,
70                                  unsigned int           strict,
71                                  _vbi_log_hook *       log)
72   _vbi_pure;
73 extern vbi_bool
74 _vbi_sampling_par_valid_log    (const vbi_sampling_par *sp,
75                                  _vbi_log_hook *       log)
76   _vbi_pure;
77
78 VBI_END_DECLS
79
80 #endif /* __SAMPLING_PAR_H__ */
81
82 /*
83 Local variables:
84 c-set-style: K&R
85 c-basic-offset: 8
86 End:
87 */