Home
last modified time | relevance | path

Searched refs:SINT16 (Results 1 – 12 of 12) sorted by relevance

/system/bt/embdrv/sbc/encoder/srce/
Dsbc_dct_coeffs.c29 const SINT16 gas16AnalDCTcoeff4[] =
31 (SINT16)(0.7071*32768),
32 (SINT16)(0.9239*32768),
33 (SINT16)(1.0000*32767),
34 (SINT16)(0.9239*32768),
35 (SINT16)(0.7071*32768),
36 (SINT16)(0.3827*32768),
37 (SINT16)(0.0000*32768),
38 (SINT16)(-0.3827*32768),
40 (SINT16)(-0.7071*32768),
[all …]
Dsbc_enc_coeffs.c30 const SINT16 gas32CoeffFor4SBs[] =
32 (SINT16)((SINT32)0x00000000 >> 16), (SINT16)0x00000000,
33 (SINT16)((SINT32)0x001194E6 >> 16), (SINT16)0x001194E6,
34 (SINT16)((SINT32)0x0030E2D3 >> 16), (SINT16)0x0030E2D3,
35 (SINT16)((SINT32)0x00599403 >> 16), (SINT16)0x00599403,
36 (SINT16)((SINT32)0x007DBCC8 >> 16), (SINT16)0x007DBCC8,
37 (SINT16)((SINT32)0x007F88E4 >> 16), (SINT16)0x007F88E4,
38 (SINT16)((SINT32)0x003D239B >> 16), (SINT16)0x003D239B,
39 (SINT16)((SINT32)0xFF9BB9D5 >> 16), (SINT16)0xFF9BB9D5,
41 (SINT16)((SINT32)0x01659F45 >> 16), (SINT16)0x01659F45,
[all …]
Dsbc_enc_bit_alloc_ste.c31 extern const SINT16 sbc_enc_as16Offset4[4][4];
32 extern const SINT16 sbc_enc_as16Offset8[4][8];
51 SINT16 *ps16BitNeed; /*temp memory to store required number of bits*/ in sbc_enc_bit_alloc_ste()
53 SINT16 *ps16GenBufPtr,*pas16ScaleFactor; in sbc_enc_bit_alloc_ste()
54 SINT16 *ps16GenArrPtr; in sbc_enc_bit_alloc_ste()
55 SINT16 *ps16GenTabPtr; in sbc_enc_bit_alloc_ste()
75 ps16GenTabPtr = (SINT16 *)sbc_enc_as16Offset4[pstrCodecParams->s16SamplingFreq]; in sbc_enc_bit_alloc_ste()
79 ps16GenTabPtr = (SINT16 *)sbc_enc_as16Offset8[pstrCodecParams->s16SamplingFreq]; in sbc_enc_bit_alloc_ste()
91 *ps16GenBufPtr = (SINT16)(s32Loudness >> 1); in sbc_enc_bit_alloc_ste()
93 *ps16GenBufPtr = (SINT16)s32Loudness; in sbc_enc_bit_alloc_ste()
[all …]
Dsbc_enc_bit_alloc_mono.c31 const SINT16 sbc_enc_as16Offset4[4][4] = { {-1, 0, 0, 0}, {-2, 0, 0, 1},
33 const SINT16 sbc_enc_as16Offset8[4][8] = { {-2, 0, 0, 0, 0, 0, 0, 1},
53 SINT16 *ps16BitNeed; /*temp memory to store required number of bits*/ in sbc_enc_bit_alloc_mono()
55 SINT16 *ps16GenBufPtr; in sbc_enc_bit_alloc_mono()
56 SINT16 *ps16GenArrPtr; in sbc_enc_bit_alloc_mono()
57 SINT16 *ps16GenTabPtr; in sbc_enc_bit_alloc_mono()
78 ps16GenTabPtr = (SINT16 *) in sbc_enc_bit_alloc_mono()
83 ps16GenTabPtr = (SINT16 *) in sbc_enc_bit_alloc_mono()
96 *(ps16GenBufPtr) = (SINT16)(s32Loudness >>1); in sbc_enc_bit_alloc_mono()
98 *(ps16GenBufPtr) = (SINT16)s32Loudness; in sbc_enc_bit_alloc_mono()
[all …]
Dsbc_encoder.c30 SINT16 EncMaxShiftCounter;
44 SINT16 *ps16ScfL; in SBC_Encoder()
95 *ps16ScfL++ = (SINT16)u32Count; in SBC_Encoder()
140 … if ( (*ps16ScfL + *(ps16ScfL+s32NumOfSubBands)) > (SINT16)(u32CountSum + u32CountDiff) ) in SBC_Encoder()
149 *ps16ScfL = (SINT16)u32CountSum; in SBC_Encoder()
150 *(ps16ScfL+s32NumOfSubBands) = (SINT16)u32CountDiff; in SBC_Encoder()
178 pstrEncParams->s16MaxBitNeed = (SINT16)maxBit; in SBC_Encoder()
205 SINT16 s16Bitpool; /*to store bit pool value*/ in SBC_Encoder_Init()
206 SINT16 s16BitRate; /*to store bitrate*/ in SBC_Encoder_Init()
207 SINT16 s16FrameLen; /*to store frame length*/ in SBC_Encoder_Init()
[all …]
Dsbc_analysis.c93 #define WIND_4_SUBBANDS_0_1 (SINT16)0x0166 /* gas32CoeffFor4SBs[8] = -gas32CoeffFor4SBs[32] = 0x01…
94 #define WIND_4_SUBBANDS_0_2 (SINT16)0x115B /* gas32CoeffFor4SBs[16] = -gas32CoeffFor4SBs[24] = 0x1…
95 #define WIND_4_SUBBANDS_1_0 (SINT16)0x0012 /* gas32CoeffFor4SBs[1 et 39] = 0x001194E6 */
96 #define WIND_4_SUBBANDS_1_1 (SINT16)0x029E /* gas32CoeffFor4SBs[9 et 31] = 0x029DBAA3 */
97 #define WIND_4_SUBBANDS_1_2 (SINT16)0x18F5 /* gas32CoeffFor4SBs[17 et 23] = 0x18F55C90 */
98 #define WIND_4_SUBBANDS_1_3 (SINT16)0xF610 /* gas32CoeffFor4SBs[15 et 25] = 0xF60FAF37 */
99 #define WIND_4_SUBBANDS_1_4 (SINT16)0xFF9C /* gas32CoeffFor4SBs[7 et 33] = 0xFF9BB9D5 */
100 #define WIND_4_SUBBANDS_2_0 (SINT16)0x0031 /* gas32CoeffFor4SBs[2 et 38] = 0x0030E2D3 */
101 #define WIND_4_SUBBANDS_2_1 (SINT16)0x03B2 /* gas32CoeffFor4SBs[10 et 30] = 0x03B23341 */
102 #define WIND_4_SUBBANDS_2_2 (SINT16)0x1F91 /* gas32CoeffFor4SBs[18 et 22] = 0x1F91CA46 */
[all …]
Dsbc_packing.c70 SINT16 *ps16GenPtr; in EncPacking()
75 SINT16 *ps16ScfPtr; in EncPacking()
Dsbc_dct.c64 extern const SINT16 gas16AnalDCTcoeff8[];
65 extern const SINT16 gas16AnalDCTcoeff4[];
/system/bt/embdrv/sbc/encoder/include/
Dsbc_encoder.h156 SINT16 s16SamplingFreq; /* 16k, 32k, 44.1k or 48k*/
157 SINT16 s16ChannelMode; /* mono, dual, streo or joint streo*/
158 SINT16 s16NumOfSubBands; /* 4 or 8 */
159 SINT16 s16NumOfChannels;
160 SINT16 s16NumOfBlocks; /* 4, 8, 12 or 16*/
161 SINT16 s16AllocationMethod; /* loudness or SNR*/
162 SINT16 s16BitPool; /* 16*numOfSb for mono & dual;
167 SINT16 as16Join[SBC_MAX_NUM_OF_SUBBANDS]; /*1 if JS, 0 otherwise*/
170 SINT16 s16MaxBitNeed;
171 SINT16 as16ScaleFactor[SBC_MAX_NUM_OF_CHANNELS*SBC_MAX_NUM_OF_SUBBANDS];
[all …]
Dsbc_enc_func_declare.h31 extern const SINT16 gas32CoeffFor4SBs[];
32 extern const SINT16 gas32CoeffFor8SBs[];
Dsbc_types.h36 typedef short SINT16; typedef
/system/bt/btif/src/
Dbtif_media_task.c1873 SINT16 s16BitPool = 0; in btif_media_task_enc_update()
1874 SINT16 s16BitRate; in btif_media_task_enc_update()
1875 SINT16 s16FrameLen; in btif_media_task_enc_update()
1935 s16BitPool = (SINT16)((pstrEncParams->u16BitRate * in btif_media_task_enc_update()
1961 s16BitPool = (SINT16)(((pstrEncParams->s16NumOfSubBands * in btif_media_task_enc_update()