2 * libzvbi -- VBI device simulation
4 * Copyright (C) 2004, 2007 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: io-sim.h,v 1.11 2013-08-28 14:45:23 mschimek Exp $ */
24 #ifndef __ZVBI_IO_SIM_H__
25 #define __ZVBI_IO_SIM_H__
28 #include "sampling_par.h"
39 vbi_raw_video_image (uint8_t * raw,
40 unsigned long raw_size,
41 const vbi_sampling_par *sp,
45 unsigned int pixel_mask,
47 const vbi_sliced * sliced,
48 unsigned int n_sliced_lines);
50 vbi_raw_add_noise (uint8_t * raw,
51 const vbi_sampling_par *sp,
52 unsigned int min_freq,
53 unsigned int max_freq,
54 unsigned int amplitude,
57 vbi_raw_vbi_image (uint8_t * raw,
58 unsigned long raw_size,
59 const vbi_sampling_par *sp,
63 const vbi_sliced * sliced,
64 unsigned int n_sliced_lines);
66 #define _VBI_RAW_SWAP_FIELDS (1 << 0)
67 #define _VBI_RAW_SHIFT_CC_CRI (1 << 1)
68 #define _VBI_RAW_LOW_AMP_CC (1 << 2)
70 /* NB. Currently this flag has no effect in _vbi_raw_*_image().
71 Call vbi_raw_add_noise() instead. */
72 #define _VBI_RAW_NOISE_2 (1 << 17)
75 _vbi_raw_video_image (uint8_t * raw,
76 unsigned long raw_size,
77 const vbi_sampling_par *sp,
81 unsigned int pixel_mask,
83 const vbi_sliced * sliced,
84 unsigned int n_sliced_lines);
86 _vbi_raw_vbi_image (uint8_t * raw,
87 unsigned long raw_size,
88 const vbi_sampling_par *sp,
92 const vbi_sliced * sliced,
93 unsigned int n_sliced_lines);
97 #endif /* __ZVBI_IO_SIM_H__ */