1
1
/*****************************************************************
5
Copyright (c) 2001-2002 by Burkhard Plaum - plaum@ipf.uni-stuttgart.de
7
http://gmerlin.sourceforge.net
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
18
*****************************************************************/
2
* gavl - a general purpose audio/video processing library
4
* Copyright (c) 2001 - 2008 Members of the Gmerlin project
5
* gmerlin-general@lists.sourceforge.net
6
* http://gmerlin.sourceforge.net
8
* This program is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 2 of the License, or
11
* (at your option) any later version.
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
* *****************************************************************/
20
22
#ifndef _GAVL_VIDEO_H_
21
23
#define _GAVL_VIDEO_H_
71
71
struct gavl_video_convert_context_s
73
gavl_video_frame_t * input_frame;
73
const gavl_video_frame_t * input_frame;
74
74
gavl_video_frame_t * output_frame;
75
75
gavl_video_options_t * options;
87
87
struct gavl_video_converter_s
89
gavl_video_format_t input_format;
90
gavl_video_format_t output_format;
89
92
gavl_video_options_t options;
91
94
gavl_video_convert_context_t * first_context;
115
118
gavl_pixelformat_t gavl_pixelformat_get_intermediate(gavl_pixelformat_t in_csp,
116
119
gavl_pixelformat_t out_csp);
121
#define CLEAR_MASK_PLANE_0 (1<<0)
122
#define CLEAR_MASK_PLANE_1 (1<<1)
123
#define CLEAR_MASK_PLANE_2 (1<<2)
124
#define CLEAR_MASK_PLANE_3 (1<<3)
125
#define CLEAR_MASK_ALL (CLEAR_MASK_PLANE_0|\
130
void gavl_video_frame_clear_mask(gavl_video_frame_t * frame,
131
const gavl_video_format_t * format, int mask);
118
134
#endif // _GAVL_VIDEO_H_