Commit 56e4f663 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

remove redundant ROM tables

parent 8e975d70
Loading
Loading
Loading
Loading
Loading

lib_isar/isar_lcld_rom_tables.c

deleted100644 → 0
+0 −19855

File deleted.

Preview size limit exceeded, changes collapsed.

lib_isar/isar_lcld_rom_tables.h

deleted100644 → 0
+0 −219
Original line number Diff line number Diff line
/******************************************************************************************************

   (C) 2022-2024 IVAS codec Public Collaboration with portions copyright Dolby International AB, Ericsson AB,
   Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD.,
   Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange,
   Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other
   contributors to this repository. All Rights Reserved.

   This software is protected by copyright law and by international treaties.
   The IVAS codec Public Collaboration consisting of Dolby International AB, Ericsson AB,
   Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V., Huawei Technologies Co. LTD.,
   Koninklijke Philips N.V., Nippon Telegraph and Telephone Corporation, Nokia Technologies Oy, Orange,
   Panasonic Holdings Corporation, Qualcomm Technologies, Inc., VoiceAge Corporation, and other
   contributors to this repository retain full ownership rights in their respective contributions in
   the software. This notice grants no license of any kind, including but not limited to patent
   license, nor is any license granted by implication, estoppel or otherwise.

   Contributors are required to enter into the IVAS codec Public Collaboration agreement before making
   contributions.

   This software is provided "AS IS", without any express or implied warranties. The software is in the
   development stage. It is intended exclusively for experts who have experience with such software and
   solely for the purpose of inspection. All implied warranties of non-infringement, merchantability
   and fitness for a particular purpose are hereby disclaimed and excluded.

   Any dispute, controversy or claim arising under or in relation to providing this software shall be
   submitted to and settled by the final, binding jurisdiction of the courts of Munich, Germany in
   accordance with the laws of the Federal Republic of Germany excluding its conflict of law rules and
   the United Nations Convention on Contracts on the International Sales of Goods.

*******************************************************************************************************/

#ifndef _ISAR_ROM_LCLD_TABLES_H_
#define _ISAR_ROM_LCLD_TABLES_H_

#include <stdint.h>
#include "options.h"

#ifdef SPLIT_REND_WITH_HEAD_ROT
#ifndef M_PI

#define M_PI 3.14159265358979323846264338327950288f

#endif

#define LCLD_BLOCKS_PER_FRAME     ( 16 )
#define LCLD_MAX_BLOCKS_PER_FRAME ( 16 )
#define LCLD_BANDS                ( 60 )
#define LCLD_PRED_WIN_LEN         ( 16 )
#define LCLD_MAX_NUM_PRED_SUBSETS ( 8 )
#define MAX_BANDS                 ( 23 )
#define MAX_BANDS_48              ( 23 )
#define DEF_BANDS_48              ( 22 )

#define ENV_MIN ( -64 )
#define ENV_MAX ( 64 )

#define ENV0_BITS ( 7 )

#define ENV_DELTA_MIN ( -32 )
#define ENV_DELTA_MAX ( 31 )

#define ENV_RECONSTRUCT_TABLE_SIZE ( 129 )

#define ENV_RECONSTRUCT_TABLE_CENTER ( 64 )

#define MIN_ALLOC ( 0 )
#define MAX_ALLOC ( 31 )

#define ALLOC_OFFSET_SCALE ( 8 )

#define ALLOC_OFFSET_BITS ( 8 )

#define MIN_ALLOC_OFFSET ( -128 )
#define MAX_ALLOC_OFFSET ( 127 )
#define READ_LENGTH      ( 4 )

#define ALLOC_TABLE_SIZE ( 32 )

#ifndef _PI_
#define _PI_ ( 3.14159265358979f )
#endif
#define PRED_MAX_VAL      ( 12 )
#define PRED_MIN_VAL      ( -PRED_MAX_VAL )
#define PRED_QUANT_FACTOR ( (float) PRED_MAX_VAL )
#define PRED_BAND0_BITS   ( 5 )

#define PHASE_MAX_VAL      ( 12 )
#define PHASE_MIN_VAL      ( -PHASE_MAX_VAL )
#define PHASE_QUANT_FACTOR ( (float) PHASE_MAX_VAL / _PI_ )
#define PHASE_DIFF_DIM     ( 2 )
#define PHASE_BAND0_BITS   ( 5 )

#define PERCEPTUAL_MODEL_SLGAIN_SHIFT ( 8 )

#define HUFF_DEC_TABLE_SIZE ( 16 )

extern const int32_t c_aiNumLcldBandsPerBand[MAX_BANDS_48];
extern const int32_t c_aiBandIdPerLcldBand[LCLD_BANDS];
extern const float c_afRotRealImag[PRED_MAX_VAL - PRED_MIN_VAL + 1][2];
extern const int32_t c_aiDefaultTheta48[MAX_BANDS_48];

extern const float c_afScaleFactor[ALLOC_TABLE_SIZE];
extern const float c_afInvScaleFactor[ALLOC_TABLE_SIZE];
extern const float c_afRMSEnvReconstructTable[ENV_RECONSTRUCT_TABLE_SIZE];
extern const int32_t c_aiQuantMaxValues[ALLOC_TABLE_SIZE];
extern const int32_t c_aiHuffmanDim[ALLOC_TABLE_SIZE];
extern const int32_t c_aiHuffmanMod[ALLOC_TABLE_SIZE];
extern const int32_t c_aiHuffmanSize[ALLOC_TABLE_SIZE];


#define LOG_ADD_TABLE_LENGTH ( 512 )

extern const int32_t c_aiBandwidths48[MAX_BANDS_48];
extern const int32_t c_aiLogAddTable[LOG_ADD_TABLE_LENGTH];
extern const int32_t c_aiBandwidthAdjust48[MAX_BANDS_48];
extern const int32_t c_aiAbsoluteThresh48[MAX_BANDS_48];
extern const int32_t c_aiDefaultTheta48[MAX_BANDS_48];
extern const int32_t c_aaiSpreadFunction48[MAX_BANDS_48 * MAX_BANDS_48];


#define PRED_QUNAT_FILTER_MAG_BITS   ( 3 )
#define PRED_QUANT_FILTER_PHASE_BITS ( 5 )
#define PRED_QUANT_FILTER_MAG_MIN    ( 0 )
#define PRED_QUANT_FILTER_MAG_MAX    ( 7 )
#define PRED_QUANT_FILTER_PHASE_MIN  ( -16 )
#define PRED_QUANT_FILTER_PHASE_MAX  ( 15 )

extern const uint16_t c_aauiLCLDHuffEnc1[16][2];
extern const uint16_t c_aauiLCLDHuffEnc2[16][2];
extern const uint16_t c_aauiLCLDHuffEnc3[25][2];
extern const uint16_t c_aauiLCLDHuffEnc4[36][2];
extern const uint16_t c_aauiLCLDHuffEnc5[36][2];
extern const uint16_t c_aauiLCLDHuffEnc6[49][2];
extern const uint16_t c_aauiLCLDHuffEnc7[64][2];
extern const uint16_t c_aauiLCLDHuffEnc8[81][2];
extern const uint16_t c_aauiLCLDHuffEnc9[100][2];
extern const uint16_t c_aauiLCLDHuffEnc10[169][2];
extern const uint16_t c_aauiLCLDHuffEnc11[196][2];
extern const uint16_t c_aauiLCLDHuffEnc12[289][2];
extern const uint16_t c_aauiLCLDHuffEnc13[324][2];
extern const uint16_t c_aauiLCLDHuffEnc14[400][2];
extern const uint16_t c_aauiLCLDHuffEnc15[576][2];
extern const uint16_t c_aauiLCLDHuffEnc16[729][2];
extern const uint16_t c_aauiLCLDHuffEnc17[729][2];
extern const uint16_t c_aauiLCLDHuffEnc18[28][2];
extern const uint16_t c_aauiLCLDHuffEnc19[29][2];
extern const uint16_t c_aauiLCLDHuffEnc20[32][2];
extern const uint16_t c_aauiLCLDHuffEnc21[37][2];
extern const uint16_t c_aauiLCLDHuffEnc22[39][2];
extern const uint16_t c_aauiLCLDHuffEnc23[46][2];
extern const uint16_t c_aauiLCLDHuffEnc24[55][2];
extern const uint16_t c_aauiLCLDHuffEnc25[65][2];
extern const uint16_t c_aauiLCLDHuffEnc26[77][2];
extern const uint16_t c_aauiLCLDHuffEnc27[91][2];
extern const uint16_t c_aauiLCLDHuffEnc28[109][2];
extern const uint16_t c_aauiLCLDHuffEnc29[129][2];
extern const uint16_t c_aauiLCLDHuffEnc30[153][2];
extern const uint16_t c_aauiLCLDHuffEnc31[181][2];
extern const uint16_t c_aauiLCLDHuffEnc33[16][2];
extern const uint16_t c_aauiLCLDHuffEnc34[16][2];
extern const uint16_t c_aauiLCLDHuffEnc35[25][2];
extern const uint16_t c_aauiLCLDHuffEnc36[36][2];
extern const uint16_t c_aauiLCLDHuffEnc37[36][2];
extern const uint16_t c_aauiLCLDHuffEnc38[49][2];
extern const uint16_t c_aauiLCLDHuffEnc39[64][2];
extern const uint16_t c_aauiLCLDHuffEnc40[81][2];
extern const uint16_t c_aauiLCLDHuffEnc41[100][2];
extern const uint16_t c_aauiLCLDHuffEnc42[169][2];
extern const uint16_t c_aauiLCLDHuffEnc43[196][2];
extern const uint16_t c_aauiLCLDHuffEnc44[289][2];
extern const uint16_t c_aauiLCLDHuffEnc45[324][2];
extern const uint16_t c_aauiLCLDHuffEnc46[400][2];
extern const uint16_t c_aauiLCLDHuffEnc47[576][2];
extern const uint16_t c_aauiLCLDHuffEnc48[729][2];
extern const uint16_t c_aauiLCLDHuffEnc49[729][2];
extern const uint16_t c_aauiLCLDHuffEnc50[28][2];
extern const uint16_t c_aauiLCLDHuffEnc51[29][2];
extern const uint16_t c_aauiLCLDHuffEnc52[32][2];
extern const uint16_t c_aauiLCLDHuffEnc53[37][2];
extern const uint16_t c_aauiLCLDHuffEnc54[39][2];
extern const uint16_t c_aauiLCLDHuffEnc55[46][2];
extern const uint16_t c_aauiLCLDHuffEnc56[55][2];
extern const uint16_t c_aauiLCLDHuffEnc57[65][2];
extern const uint16_t c_aauiLCLDHuffEnc58[77][2];
extern const uint16_t c_aauiLCLDHuffEnc59[91][2];
extern const uint16_t c_aauiLCLDHuffEnc60[109][2];
extern const uint16_t c_aauiLCLDHuffEnc61[129][2];
extern const uint16_t c_aauiLCLDHuffEnc62[153][2];
extern const uint16_t c_aauiLCLDHuffEnc63[181][2];
extern const uint16_t ( *c_apauiHuffEncTabels[2 * ALLOC_TABLE_SIZE] )[2];
extern const uint32_t num_row_aauiLCLDHuff[2 * ALLOC_TABLE_SIZE];

#ifdef USE_DEMOD_TABLES
extern const int32_t c_aaiHuffDemod1[16][2];
extern const int32_t c_aaiHuffDemod2[16][2];
extern const int32_t c_aaiHuffDemod3[25][2];
extern const int32_t c_aaiHuffDemod4[36][2];
extern const int32_t c_aaiHuffDemod5[36][2];
extern const int32_t c_aaiHuffDemod6[49][2];
extern const int32_t c_aaiHuffDemod7[64][2];
extern const int32_t c_aaiHuffDemod8[81][2];
extern const int32_t c_aaiHuffDemod9[100][2];
extern const int32_t c_aaiHuffDemod10[169][2];
extern const int32_t c_aaiHuffDemod11[196][2];
extern const int32_t c_aaiHuffDemod12[289][2];
extern const int32_t c_aaiHuffDemod13[324][2];
extern const int32_t c_aaiHuffDemod14[400][2];
extern const int32_t c_aaiHuffDemod15[576][2];
extern const int32_t c_aaiHuffDemod16[729][2];
extern const int32_t c_aaiHuffDemod17[729][2];
extern const int32_t ( *c_apaiDemodTables[ALLOC_TABLE_SIZE] )[2];
#endif

extern const uint32_t c_aaiRMSEnvHuffEnc[64][2];
extern const uint32_t c_aaiRMSEnvHuffDec[13][HUFF_DEC_TABLE_SIZE];
#endif /*SPLIT_REND_WITH_HEAD_ROT*/

#endif /* _TABLES_H_ */
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@

*******************************************************************************************************/

#include "isar_lcld_rom_tables.h"
#include "isar_rom_lcld_tables.h"
#include "options.h"
#ifdef SPLIT_REND_WITH_HEAD_ROT
#include "wmc_auto.h"