summaryrefslogtreecommitdiff
path: root/apps/codecs/libfaad/drm_dec.h
diff options
context:
space:
mode:
authorSean Bartell <wingedtachikoma@gmail.com>2011-06-25 21:32:25 -0400
committerNils Wallménius <nils@rockbox.org>2012-04-25 22:13:20 +0200
commitf40bfc9267b13b54e6379dfe7539447662879d24 (patch)
tree9b20069d5e62809ff434061ad730096836f916f2 /apps/codecs/libfaad/drm_dec.h
parenta0009907de7a0107d49040d8a180f140e2eff299 (diff)
downloadrockbox-f40bfc9267b13b54e6379dfe7539447662879d24.zip
rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.gz
rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.bz2
rockbox-f40bfc9267b13b54e6379dfe7539447662879d24.tar.xz
Add codecs to librbcodec.
Change-Id: Id7f4717d51ed02d67cb9f9cb3c0ada4a81843f97 Reviewed-on: http://gerrit.rockbox.org/137 Reviewed-by: Nils Wallménius <nils@rockbox.org> Tested-by: Nils Wallménius <nils@rockbox.org>
Diffstat (limited to 'apps/codecs/libfaad/drm_dec.h')
-rw-r--r--apps/codecs/libfaad/drm_dec.h98
1 files changed, 0 insertions, 98 deletions
diff --git a/apps/codecs/libfaad/drm_dec.h b/apps/codecs/libfaad/drm_dec.h
deleted file mode 100644
index d7ae9d0..0000000
--- a/apps/codecs/libfaad/drm_dec.h
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
-** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
-** 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
-** 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.
-**
-** Any non-GPL usage of this software or parts of this software is strictly
-** forbidden.
-**
-** Commercial non-GPL licensing of this software is possible.
-** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
-**
-** $Id$
-**/
-
-#ifndef __DRM_DEC_H__
-#define __DRM_DEC_H__
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include "bits.h"
-
-#define DRM_PARAMETRIC_STEREO 0
-#define DRM_NUM_SA_BANDS 8
-#define DRM_NUM_PAN_BANDS 20
-#define NUM_OF_LINKS 3
-#define NUM_OF_QMF_CHANNELS 64
-#define NUM_OF_SUBSAMPLES 30
-#define MAX_SA_BAND 46
-#define MAX_PAN_BAND 64
-#define MAX_DELAY 5
-
-typedef struct
-{
- uint8_t drm_ps_data_available;
- uint8_t bs_enable_sa;
- uint8_t bs_enable_pan;
-
- uint8_t bs_sa_dt_flag;
- uint8_t bs_pan_dt_flag;
-
- uint8_t g_last_had_sa;
- uint8_t g_last_had_pan;
-
- int8_t bs_sa_data[DRM_NUM_SA_BANDS];
- int8_t bs_pan_data[DRM_NUM_PAN_BANDS];
-
- int8_t g_sa_index[DRM_NUM_SA_BANDS];
- int8_t g_pan_index[DRM_NUM_PAN_BANDS];
- int8_t g_prev_sa_index[DRM_NUM_SA_BANDS];
- int8_t g_prev_pan_index[DRM_NUM_PAN_BANDS];
-
- int8_t sa_decode_error;
- int8_t pan_decode_error;
-
- int8_t g_last_good_sa_index[DRM_NUM_SA_BANDS];
- int8_t g_last_good_pan_index[DRM_NUM_PAN_BANDS];
-
- qmf_t SA[NUM_OF_SUBSAMPLES][MAX_SA_BAND];
-
- complex_t d_buff[2][MAX_SA_BAND];
- complex_t d2_buff[NUM_OF_LINKS][MAX_DELAY][MAX_SA_BAND];
-
- uint8_t delay_buf_index_ser[NUM_OF_LINKS];
-
- real_t prev_nrg[MAX_SA_BAND];
- real_t prev_peakdiff[MAX_SA_BAND];
- real_t peakdecay_fast[MAX_SA_BAND];
-} drm_ps_info;
-
-
-uint16_t drm_ps_data(drm_ps_info *ps, bitfile *ld);
-
-drm_ps_info *drm_ps_init(void);
-
-uint8_t drm_ps_decode(drm_ps_info *ps, uint8_t guess, uint32_t samplerate,
- qmf_t X_left[MAX_NTSRPS][64],
- qmf_t X_right[MAX_NTSRPS][64]);
-
-#ifdef __cplusplus
-}
-#endif
-#endif
-