2 * libzvbi -- Raw VBI sampling parameters
4 * Copyright (C) 2000-2004 Michael H. Schimek
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.
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.
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.
22 /* $Id: sampling_par.h,v 1.9 2008-02-24 14:17:06 mschimek Exp $ */
24 #ifndef __SAMPLING_PAR_H__
25 #define __SAMPLING_PAR_H__
33 typedef vbi_raw_decoder vbi_sampling_par;
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;
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,
56 extern vbi_videostd_set
57 _vbi_videostd_set_from_scanning (int scanning);
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,
66 extern vbi_service_set
67 _vbi_sampling_par_check_services_log
68 (const vbi_sampling_par *sp,
69 vbi_service_set services,
74 _vbi_sampling_par_valid_log (const vbi_sampling_par *sp,
80 #endif /* __SAMPLING_PAR_H__ */