4
* Copyright (C) 1998 Rasca, Berlin
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.
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.
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.
33
#define VV_COD_RGB555 1
34
#define VV_COD_RGB565 2
35
#define VV_COD_RGB888 3
37
#define VS_COD_WAV_PCM 1
38
#define VS_COD_WAV_ALAW 6
39
#define VS_COD_WAV_MLAW 7
42
#define vid_swap2bytes(n) gv_swap2bytes(n)
43
#define vid_swap4bytes(n) gv_swap4bytes(n)
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 */
60
int snd_size; /* sample size */
61
int snd_chnl; /* sample size */
64
unsigned char *snd_buf;
71
unsigned char *out_buf;
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 *);
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
89
#endif /* __VIDEO_H__ */