Lines Matching refs:hEncoder
54 void FilterBankInit(faacEncStruct* hEncoder) in FilterBankInit() argument
58 for (channel = 0; channel < hEncoder->numChannels; channel++) { in FilterBankInit()
59 hEncoder->freqBuff[channel] = (double*)AllocMemory(2*FRAME_LEN*sizeof(double)); in FilterBankInit()
60 hEncoder->overlapBuff[channel] = (double*)AllocMemory(FRAME_LEN*sizeof(double)); in FilterBankInit()
61 SetMemory(hEncoder->overlapBuff[channel], 0, FRAME_LEN*sizeof(double)); in FilterBankInit()
64 hEncoder->sin_window_long = (double*)AllocMemory(BLOCK_LEN_LONG*sizeof(double)); in FilterBankInit()
65 hEncoder->sin_window_short = (double*)AllocMemory(BLOCK_LEN_SHORT*sizeof(double)); in FilterBankInit()
66 hEncoder->kbd_window_long = (double*)AllocMemory(BLOCK_LEN_LONG*sizeof(double)); in FilterBankInit()
67 hEncoder->kbd_window_short = (double*)AllocMemory(BLOCK_LEN_SHORT*sizeof(double)); in FilterBankInit()
70 hEncoder->sin_window_long[i] = sin((M_PI/(2*BLOCK_LEN_LONG)) * (i + 0.5)); in FilterBankInit()
72 hEncoder->sin_window_short[i] = sin((M_PI/(2*BLOCK_LEN_SHORT)) * (i + 0.5)); in FilterBankInit()
74 CalculateKBDWindow(hEncoder->kbd_window_long, 4, BLOCK_LEN_LONG*2); in FilterBankInit()
75 CalculateKBDWindow(hEncoder->kbd_window_short, 6, BLOCK_LEN_SHORT*2); in FilterBankInit()
78 void FilterBankEnd(faacEncStruct* hEncoder) in FilterBankEnd() argument
82 for (channel = 0; channel < hEncoder->numChannels; channel++) { in FilterBankEnd()
83 if (hEncoder->freqBuff[channel]) FreeMemory(hEncoder->freqBuff[channel]); in FilterBankEnd()
84 if (hEncoder->overlapBuff[channel]) FreeMemory(hEncoder->overlapBuff[channel]); in FilterBankEnd()
87 if (hEncoder->sin_window_long) FreeMemory(hEncoder->sin_window_long); in FilterBankEnd()
88 if (hEncoder->sin_window_short) FreeMemory(hEncoder->sin_window_short); in FilterBankEnd()
89 if (hEncoder->kbd_window_long) FreeMemory(hEncoder->kbd_window_long); in FilterBankEnd()
90 if (hEncoder->kbd_window_short) FreeMemory(hEncoder->kbd_window_short); in FilterBankEnd()
93 void FilterBank(faacEncStruct* hEncoder, in FilterBank() argument
122 first_window = hEncoder->sin_window_long; in FilterBank()
124 first_window = hEncoder->sin_window_short; in FilterBank()
129 first_window = hEncoder->kbd_window_long; in FilterBank()
131 first_window = hEncoder->kbd_window_short; in FilterBank()
139 second_window = hEncoder->sin_window_long; in FilterBank()
141 second_window = hEncoder->sin_window_short; in FilterBank()
145 second_window = hEncoder->kbd_window_long; in FilterBank()
147 second_window = hEncoder->kbd_window_short; in FilterBank()
152 first_window = hEncoder->sin_window_long; in FilterBank()
153 second_window = hEncoder->sin_window_long; in FilterBank()
166 MDCT( &hEncoder->fft_tables, p_out_mdct, 2*BLOCK_LEN_LONG ); in FilterBank()
176 MDCT( &hEncoder->fft_tables, p_out_mdct, 2*BLOCK_LEN_LONG ); in FilterBank()
186 MDCT( &hEncoder->fft_tables, p_out_mdct, 2*BLOCK_LEN_LONG ); in FilterBank()
196 MDCT( &hEncoder->fft_tables, p_out_mdct, 2*BLOCK_LEN_SHORT ); in FilterBank()
207 void IFilterBank(faacEncStruct* hEncoder, in IFilterBank() argument
229 first_window = hEncoder->sin_window_long; in IFilterBank()
231 first_window = hEncoder->sin_window_short; in IFilterBank()
244 second_window = hEncoder->sin_window_long; in IFilterBank()
246 second_window = hEncoder->sin_window_short; in IFilterBank()
257 first_window = hEncoder->sin_window_long; in IFilterBank()
258 second_window = hEncoder->sin_window_long; in IFilterBank()
269 IMDCT( &hEncoder->fft_tables, transf_buf, 2*BLOCK_LEN_LONG ); in IFilterBank()
285 IMDCT( &hEncoder->fft_tables, transf_buf, 2*BLOCK_LEN_LONG ); in IFilterBank()
304 IMDCT( &hEncoder->fft_tables, transf_buf, 2*BLOCK_LEN_LONG ); in IFilterBank()
328 IMDCT( &hEncoder->fft_tables, transf_buf, 2*BLOCK_LEN_SHORT ); in IFilterBank()