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

« back to all changes in this revision

Viewing changes to gt/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
 
 * EMail: thron@gmx.de
6
 
 *
7
 
 * This library is free software; you can redistribute it and/or
8
 
 * modify it under the terms of the GNU Library General Public
9
 
 * License as published by the Free Software Foundation; either
10
 
 * version 2 of the License, or (at your option) any later version.
11
 
 *
12
 
 * This library is distributed in the hope that it will be useful,
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15
 
 * Library General Public License for more details.
16
 
 *
17
 
 * You should have received a copy of the GNU Library General Public
18
 
 * License along with this library; if not, write to the Free Software
19
 
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20
 
 */
21
 
#ifndef __VIDEO_H__
22
 
#define __VIDEO_H__
23
 
 
24
 
/* types */
25
 
#define VT_UNKNOWN      0
26
 
#define VT_AVI          1
27
 
#define VT_QT           2
28
 
 
29
 
#define VNI_VIDEO       1
30
 
#define VNI_SOUND       2
31
 
 
32
 
/* codecs */
33
 
#define VV_COD_RGB555   1
34
 
#define VV_COD_RGB565   2
35
 
#define VV_COD_RGB888   3
36
 
 
37
 
#define VS_COD_WAV_PCM  1
38
 
#define VS_COD_WAV_ALAW 6
39
 
#define VS_COD_WAV_MLAW 7
40
 
 
41
 
 
42
 
#define vid_swap2bytes(n) gv_swap2bytes(n)
43
 
#define vid_swap4bytes(n) gv_swap4bytes(n)
44
 
 
45
 
typedef struct {
46
 
        int type;               /* video type */
47
 
        int frames;             /* number of frames */
48
 
        int fps;                /* frames per second */
49
 
        int tpf;                /* time per frame in mili secs */
50
 
        int bps;                /* bytes per second */
51
 
        int width;
52
 
        int height;
53
 
        int size;
54
 
        int vid_no;
55
 
        int vid_depth;
56
 
        int vid_bpp;
57
 
        int vid_codec;
58
 
        int snd_codec;
59
 
        int snd_rate;
60
 
        int snd_size;   /* sample size */
61
 
        int snd_chnl;   /* sample size */
62
 
        int snd_no;
63
 
        int snd_buf_size;
64
 
        unsigned char *snd_buf;
65
 
        void *hdr;
66
 
        FILE *fp;               /* */
67
 
        FILE *fp_snd;   /* */
68
 
        /* */
69
 
        int out_pad;
70
 
        int out_codec;
71
 
        unsigned char *out_buf;
72
 
} video;
73
 
 
74
 
video *vid_open (char *);
75
 
void vid_close (video *);
76
 
void vid_reset (video *);
77
 
void vid_skip_frame (video *);
78
 
int vid_get_frame (video *, unsigned char *);
79
 
int vid_set_video_parms (video *vid, int codec, int pad);
80
 
void vid_skip_obj (video *);
81
 
int vid_next_in (video *);
82
 
int vid_get_sound (video *, unsigned char **, int *);
83
 
 
84
 
#define vid_snd_channels(v)     v->snd_chnl
85
 
#define vid_snd_sample_rate(v)  v->snd_rate
86
 
#define vid_snd_sample_size(v)  v->snd_size
87
 
#define vid_snd_format(v)       v->snd_codec
88
 
 
89
 
#endif /* __VIDEO_H__ */
90