source: titan/libdreamdvd/a52dec.h @ 42984

Last change on this file since 42984 was 14963, checked in by nit, 8 years ago

[titan] change to unix format

File size: 1.9 KB
Line 
1/*
2 * DreamDVD V0.9 - DVD-Player for Dreambox
3 * Copyright (C) 2007 by Seddi
4 *
5 * This DVD Player is based upon the great work from the libdvdnav project,
6 * a52dec library, ffmpeg and the knowledge from all the people who made
7 * watching DVD within linux possible.
8 *
9 * DreamDVD 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 * DreamDVD 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-1307, USA
22 *
23 * part of libdreamdvd
24 */
25
26#ifndef __A52DEC_H__
27
28#define __A52DEC_H__
29
30
31typedef int32_t sample_t;
32typedef int32_t level_t;
33
34typedef struct a52_state_s a52_state_t;
35
36#define A52_CHANNEL 0
37#define A52_MONO 1
38#define A52_STEREO 2
39#define A52_3F 3
40#define A52_2F1R 4
41#define A52_3F1R 5
42#define A52_2F2R 6
43#define A52_3F2R 7
44#define A52_CHANNEL1 8
45#define A52_CHANNEL2 9
46#define A52_DOLBY 10
47#define A52_CHANNEL_MASK 15
48
49#define A52_LFE 16
50#define A52_ADJUST_LEVEL 32
51
52// liba52 function defs for using dlsym
53a52_state_t * (*a52_init) (uint32_t);
54sample_t * (*a52_samples) (a52_state_t *);
55int (*a52_syncinfo) (uint8_t * , int * , int * , int * );
56int (*a52_frame) (a52_state_t * , uint8_t * , int * , level_t * , sample_t );
57int (*a52_block) (a52_state_t * );
58void (*a52_free) (a52_state_t * );
59
60void *a52_handle;
61
62a52_state_t * state;
63
64int ddvd_ac3_decode(const uint8_t *input, unsigned int len, int16_t *output);
65int ddvd_load_liba52();
66void ddvd_close_liba52();
67
68#endif
Note: See TracBrowser for help on using the repository browser.