~ubuntu-branches/ubuntu/jaunty/xvidcap/jaunty-proposed

« back to all changes in this revision

Viewing changes to src/video.h

  • Committer: Bazaar Package Importer
  • Author(s): John Dong
  • Date: 2008-02-25 15:47:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080225154712-qvr11ekcea4c9ry8
Tags: 1.1.6-0.1ubuntu1
* Merge from debian-multimedia (LP: #120003), Ubuntu Changes:
 - For ffmpeg-related build-deps, remove cvs from package names.
 - Standards-Version 3.7.3
 - Maintainer Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * video.h
3
 
 *
4
 
 * Copyright (C) 1998 Rasca, Berlin
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version.
10
 
 *
11
 
 * This program 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
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19
 
 */
20
 
 
21
 
#include <linux/types.h>
22
 
#include <linux/videodev.h>
23
 
#include <fcntl.h>
24
 
 
25
 
typedef struct vid_dev {
26
 
        int fd;
27
 
        char name[32];
28
 
        int type;
29
 
        int channels;
30
 
        int audios;
31
 
        int maxwidth;
32
 
        int maxheight;
33
 
        int minwidth;
34
 
        int minheight;
35
 
        /* */
36
 
        int frames;
37
 
        int size;
38
 
        int xx;
39
 
        char *mmap;
40
 
        /* picture */
41
 
        unsigned short brightness;
42
 
        unsigned short hue;
43
 
        unsigned short colour;
44
 
        unsigned short contrast;
45
 
        unsigned short whiteness;
46
 
        unsigned short depth;
47
 
        unsigned short palette;
48
 
} VIDEO;
49
 
 
50
 
VIDEO *video_open (const char *, int flags);
51
 
int video_close (VIDEO *);
52
 
int video_caps (VIDEO *);
53
 
int video_mmap (VIDEO *, int map);
54