]> git.sesse.net Git - vlc/blob - modules/demux/wav/wav.h
158e8d55f6d31477cc07cd51de5e1bec9a8168a3
[vlc] / modules / demux / wav / wav.h
1 /*****************************************************************************
2  * wav.h : wav file input module for vlc
3  *****************************************************************************
4  * Copyright (C) 2001 VideoLAN
5  * $Id: wav.h,v 1.3 2003/02/24 09:18:07 fenrir Exp $
6  * Authors: Laurent Aimar <fenrir@via.ecp.fr>
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, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
21  *****************************************************************************/
22
23
24
25 /*****************************************************************************
26  * Structure needed for decoder
27  *****************************************************************************/
28 struct demux_sys_t
29 {
30
31     mtime_t         i_pcr;
32     mtime_t         i_time;
33
34     vlc_fourcc_t    i_fourcc;
35     es_descriptor_t *p_es;
36
37     int             i_wf;  /* taille de p_wf */
38     WAVEFORMATEX    *p_wf;
39
40     off_t           i_data_pos;
41     uint64_t        i_data_size;
42
43     /* Two case:
44         - we have an internal demux(pcm)
45         - we use an external demux(mp3, a52 ..)
46     */
47
48     /* module for external demux */
49     module_t        *p_demux;
50     int             (*pf_demux)( input_thread_t * );
51     void            *p_demux_data;
52     char            *psz_demux;
53
54     /* getframe for internal demux */
55     int (*GetFrame)( input_thread_t *p_input,
56                      WAVEFORMATEX *p_wf,
57                      pes_packet_t **pp_pes,
58                      mtime_t *pi_length );
59 };
60
61
62