]> git.sesse.net Git - vlc/blob - src/lpcm_decoder/lpcm_decoder.c
* Header cleaning: filled all empty authors fields, added CVS $Id stuff.
[vlc] / src / lpcm_decoder / lpcm_decoder.c
1 /*****************************************************************************
2  * lpcm_decoder.c: core lpcm decoder
3  *****************************************************************************
4  * Copyright (C) 1999, 2000 VideoLAN
5  * $Id: lpcm_decoder.c,v 1.6 2001/03/21 13:42:34 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  * 
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
22  *****************************************************************************/
23 #include <stdio.h>
24 #include "defs.h"
25
26 #include "config.h"
27 #include "common.h"
28 #include "threads.h"
29 #include "mtime.h"
30
31 #include "intf_msg.h"
32
33 //#include "int_types.h"
34 #include "lpcm_decoder.h"
35
36 int lpcm_init (lpcmdec_t * p_lpcmdec)
37 {
38     intf_DbgMsg( "LPCM Debug: lpmcm init called" );
39     return 0;
40 }
41
42 int lpcm_decode_frame (lpcmdec_t * p_lpcmdec, s16 * buffer)
43 {
44 /*
45  * XXX was part of ac3dec, is to change
46     
47     int i;
48
49     if (parse_bsi (p_ac3dec))
50         return 1;
51
52     for (i = 0; i < 6; i++) {
53         if (parse_audblk (p_ac3dec, i))
54             return 1;
55         if (exponent_unpack (p_ac3dec))
56             return 1;
57         bit_allocate (p_ac3dec);
58         mantissa_unpack (p_ac3dec);
59         if  (p_ac3dec->bsi.acmod == 0x2)
60             rematrix (p_ac3dec);
61         imdct (p_ac3dec);
62         downmix (p_ac3dec, buffer);
63
64         buffer += 2*256;
65     }
66
67     parse_auxdata (p_ac3dec);
68 */
69     
70     return 0;
71 }