~ubuntu-branches/ubuntu/lucid/gavl/lucid

« back to all changes in this revision

Viewing changes to include/video.h

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis
  • Date: 2008-11-07 13:47:46 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20081107134746-s4s970fo1bcde9zw
Tags: 1.0.1-1
* Adopted package for debian, with the blessing of previous maintainer.
* Based new package on Christian Marillat's package for debian-multimedia.
* Removed support for ccache until I figure out how to make it work
  with cdbs.
* Changed library package name since ABI is not backward compatible, but
  upstream did not bump major soversion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*****************************************************************
2
 
 
3
 
  video.h
4
 
 
5
 
  Copyright (c) 2001-2002 by Burkhard Plaum - plaum@ipf.uni-stuttgart.de
6
 
 
7
 
  http://gmerlin.sourceforge.net
8
 
 
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.
13
 
 
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.
17
 
 
18
 
*****************************************************************/
 
2
 * gavl - a general purpose audio/video processing library
 
3
 *
 
4
 * Copyright (c) 2001 - 2008 Members of the Gmerlin project
 
5
 * gmerlin-general@lists.sourceforge.net
 
6
 * http://gmerlin.sourceforge.net
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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
 * *****************************************************************/
19
21
 
20
22
#ifndef _GAVL_VIDEO_H_
21
23
#define _GAVL_VIDEO_H_
48
50
  gavl_deinterlace_mode_t deinterlace_mode;
49
51
  gavl_deinterlace_drop_mode_t deinterlace_drop_mode;
50
52
 
51
 
  int deinterlace_force;
52
 
  
53
53
  /* Background color (Floating point and 16 bit int)background_float[3]; */
54
54
  float background_float[3];
55
55
 
70
70
 
71
71
struct gavl_video_convert_context_s
72
72
  {
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;
76
76
 
86
86
 
87
87
struct gavl_video_converter_s
88
88
  {
 
89
  gavl_video_format_t input_format;
 
90
  gavl_video_format_t output_format;
 
91
  
89
92
  gavl_video_options_t options;
90
93
 
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);
117
120
 
 
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|\
 
126
                        CLEAR_MASK_PLANE_1|\
 
127
                        CLEAR_MASK_PLANE_2|\
 
128
                        CLEAR_MASK_PLANE_3)
 
129
 
 
130
void gavl_video_frame_clear_mask(gavl_video_frame_t * frame,
 
131
                                 const gavl_video_format_t * format, int mask);
 
132
 
 
133
 
118
134
#endif // _GAVL_VIDEO_H_