summaryrefslogtreecommitdiff
path: root/src/libfaad/rvlc.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-01-11 15:44:04 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-01-11 15:44:04 +0000
commitba65efaad16ddd1347de7af98f9494cee7a39419 (patch)
tree630d2e9b4581f45cbe85815ec881705be9cc045b /src/libfaad/rvlc.c
parent14019fd4a433078fb4466e910cd432489dd60bbc (diff)
downloadxine-lib-ba65efaad16ddd1347de7af98f9494cee7a39419.tar.gz
xine-lib-ba65efaad16ddd1347de7af98f9494cee7a39419.tar.bz2
the faad project accepted a huge compiler warning patch I sent them,
merging their CVS back to our copy everyone please check, if your AAC samples still work CVS patchset: 6024 CVS date: 2004/01/11 15:44:04
Diffstat (limited to 'src/libfaad/rvlc.c')
-rw-r--r--src/libfaad/rvlc.c25
1 files changed, 22 insertions, 3 deletions
diff --git a/src/libfaad/rvlc.c b/src/libfaad/rvlc.c
index 59034b6df..22aa8b0ca 100644
--- a/src/libfaad/rvlc.c
+++ b/src/libfaad/rvlc.c
@@ -1,6 +1,6 @@
/*
** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
-** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
+** Copyright (C) 2003-2004 M. Bakker, Ahead Software AG, http://www.nero.com
**
** 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
@@ -22,7 +22,7 @@
** Commercial non-GPL licensing of this software is possible.
** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
**
-** $Id: rvlc.c,v 1.3 2003/12/30 02:00:10 miguelfreitas Exp $
+** $Id: rvlc.c,v 1.4 2004/01/11 15:44:05 mroi Exp $
**/
/* RVLC scalefactor decoding
@@ -52,6 +52,22 @@
//#define PRINT_RVLC
+/* static function declarations */
+static uint8_t rvlc_decode_sf_forward(ic_stream *ics,
+ bitfile *ld_sf,
+ bitfile *ld_esc,
+ uint8_t *is_used);
+#if 0
+static uint8_t rvlc_decode_sf_reverse(ic_stream *ics,
+ bitfile *ld_sf,
+ bitfile *ld_esc,
+ uint8_t is_used);
+#endif
+static int8_t rvlc_huffman_sf(bitfile *ld_sf, bitfile *ld_esc,
+ int8_t direction);
+static int8_t rvlc_huffman_esc(bitfile *ld_esc, int8_t direction);
+
+
uint8_t rvlc_scale_factor_data(ic_stream *ics, bitfile *ld)
{
uint8_t bits = 9;
@@ -235,6 +251,7 @@ static uint8_t rvlc_decode_sf_forward(ic_stream *ics, bitfile *ld_sf, bitfile *l
return 0;
}
+#if 0 // not used right now, doesn't work correctly yet
static uint8_t rvlc_decode_sf_reverse(ic_stream *ics, bitfile *ld_sf, bitfile *ld_esc,
uint8_t intensity_used)
{
@@ -337,6 +354,7 @@ static uint8_t rvlc_decode_sf_reverse(ic_stream *ics, bitfile *ld_sf, bitfile *l
return 0;
}
+#endif
/* index == 99 means not allowed codeword */
static rvlc_huff_table book_rvlc[] = {
@@ -508,4 +526,5 @@ static int8_t rvlc_huffman_esc(bitfile *ld,
return h->index;
}
-#endif \ No newline at end of file
+#endif
+