lpcm_decoder_thread.h 2.24 KB
Newer Older
1
2
3
4
/*****************************************************************************
 * lpcm_decoder_thread.h : lpcm decoder thread interface
 *****************************************************************************
 * Copyright (C) 1999, 2000 VideoLAN
5
 * $Id: lpcm_decoder_thread.h,v 1.7 2001/11/06 18:13:21 massiot Exp $
6
 *
Sam Hocevar's avatar
   
Sam Hocevar committed
7
 * Authors: Samuel Hocevar <sam@zoy.org>
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public
 * License along with this program; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 *****************************************************************************/

Henri Fallon's avatar
   
Henri Fallon committed
25
26
#define LPCMDEC_FRAME_SIZE (2008)

27
28
29
30
31
32
33
34
35
36
37
38
39
/*****************************************************************************
 * lpcmdec_thread_t : lpcm decoder thread descriptor
 *****************************************************************************/
typedef struct lpcmdec_thread_s
{
    /*
     * Thread properties
     */
    vlc_thread_t        thread_id;                /* id for thread functions */

    /*
     * Input properties
     */
40
    decoder_fifo_t *    p_fifo;                /* stores the PES stream data */
Sam Hocevar's avatar
   
Sam Hocevar committed
41
    int                 sync_ptr;         /* sync ptr from lpcm magic header */
42
    adec_config_t *     p_config;
43
44
45
46
47
48

    /*
     * Output properties
     */
    aout_fifo_t *       p_aout_fifo; /* stores the decompressed audio frames */

Henri Fallon's avatar
   
Henri Fallon committed
49
50
51
    /* The bit stream structure handles the PES stream at the bit level */
    bit_stream_t bit_stream;

52
53
54
55
56
} lpcmdec_thread_t;

/*****************************************************************************
 * Prototypes
 *****************************************************************************/
57
vlc_thread_t            lpcmdec_CreateThread( adec_config_t * p_config );