Home
last modified time | relevance | path

Searched refs:band (Results 1 – 25 of 203) sorted by relevance

123456789

/external/webrtc/webrtc/modules/audio_coding/codecs/g722/
Dg722_decode.c65 static void block4(G722DecoderState *s, int band, int d);
67 static void block4(G722DecoderState *s, int band, int d) in block4() argument
75 s->band[band].d[0] = d; in block4()
76 s->band[band].r[0] = saturate(s->band[band].s + d); in block4()
79 s->band[band].p[0] = saturate(s->band[band].sz + d); in block4()
83 s->band[band].sg[i] = s->band[band].p[i] >> 15; in block4()
84 wd1 = saturate(s->band[band].a[1] << 2); in block4()
86 wd2 = (s->band[band].sg[0] == s->band[band].sg[1]) ? -wd1 : wd1; in block4()
89 wd3 = (s->band[band].sg[0] == s->band[band].sg[2]) ? 128 : -128; in block4()
91 wd3 += (s->band[band].a[2]*32512) >> 15; in block4()
[all …]
Dg722_encode.c65 static void block4(G722EncoderState *s, int band, int d) in block4() argument
73 s->band[band].d[0] = d; in block4()
74 s->band[band].r[0] = saturate(s->band[band].s + d); in block4()
77 s->band[band].p[0] = saturate(s->band[band].sz + d); in block4()
81 s->band[band].sg[i] = s->band[band].p[i] >> 15; in block4()
82 wd1 = saturate(s->band[band].a[1] << 2); in block4()
84 wd2 = (s->band[band].sg[0] == s->band[band].sg[1]) ? -wd1 : wd1; in block4()
87 wd3 = (wd2 >> 7) + ((s->band[band].sg[0] == s->band[band].sg[2]) ? 128 : -128); in block4()
88 wd3 += (s->band[band].a[2]*32512) >> 15; in block4()
93 s->band[band].ap[2] = wd3; in block4()
[all …]
/external/opencv3/3rdparty/libjasper/
Djpc_tsfb.c181 jpc_tsfb_band_t *band; in jpc_tsfb_getbands() local
183 band = bands; in jpc_tsfb_getbands()
186 &band, tsfb->numlvls); in jpc_tsfb_getbands()
189 band->xstart = xstart; in jpc_tsfb_getbands()
190 band->ystart = ystart; in jpc_tsfb_getbands()
191 band->xend = xend; in jpc_tsfb_getbands()
192 band->yend = yend; in jpc_tsfb_getbands()
193 band->locxstart = xstart; in jpc_tsfb_getbands()
194 band->locystart = ystart; in jpc_tsfb_getbands()
195 band->locxend = band->locxstart + band->xend - band->xstart; in jpc_tsfb_getbands()
[all …]
Djpc_enc.c131 static jpc_enc_band_t *band_create(jpc_enc_band_t *band, jpc_enc_cp_t *cp,
135 jpc_enc_band_t *band);
1106 jpc_enc_band_t *band; in jpc_enc_encodemainbody() local
1210 for (band = lvl->bands; band != endbands; ++band) { in jpc_enc_encodemainbody()
1211 if (!band->data) { in jpc_enc_encodemainbody()
1217 for (y = 0; y < JAS_CAST(uint_fast32_t, jas_matrix_numrows(band->data)); ++y) { in jpc_enc_encodemainbody()
1218 … for (x = 0; x < JAS_CAST(uint_fast32_t, jas_matrix_numcols(band->data)); ++x) { in jpc_enc_encodemainbody()
1219 mag = abs(jas_matrix_get(band->data, y, x)); in jpc_enc_encodemainbody()
1231 band->analgain); in jpc_enc_encodemainbody()
1233 jas_eprintf("%d %d mag=%d actual=%d numgbits=%d\n", cp->ccps[cmptno].prec, band->analgain, mxmag, a… in jpc_enc_encodemainbody()
[all …]
Djpc_t2enc.c165 jpc_enc_band_t *band; in jpc_enc_encpkt() local
218 for (band = lvl->bands; band != endbands; ++band) { in jpc_enc_encpkt()
219 if (!band->data) { in jpc_enc_encpkt()
222 prc = &band->prcs[prcno]; in jpc_enc_encpkt()
345 for (band = lvl->bands; band != endbands; ++band) { in jpc_enc_encpkt()
346 if (!band->data) { in jpc_enc_encpkt()
349 prc = &band->prcs[prcno]; in jpc_enc_encpkt()
396 jpc_enc_band_t *band; in jpc_save_t2state() local
414 for (band = lvl->bands; band != endbands; ++band) { in jpc_save_t2state()
415 if (!band->data) { in jpc_save_t2state()
[all …]
/external/aac/libAACdec/src/
Dstereo.cpp113 int group,band; in CJointStereo_Read() local
129 for (band=0; band<scaleFactorBandsTransmitted; band++) in CJointStereo_Read()
131 pJointStereoData->MsUsed[band] |= (FDKreadBits(bs,1) << group); in CJointStereo_Read()
138 for (band=0; band<scaleFactorBandsTransmitted; band++) in CJointStereo_Read()
140 pJointStereoData->MsUsed[band] = 255 ; /* set all flags to 1 */ in CJointStereo_Read()
168 int band; in CJointStereo_ApplyMS() local
176 for (band=0; band<scaleFactorBandsTransmitted; band++) in CJointStereo_ApplyMS()
178 if (pJointStereoData->MsUsed[band] & groupMask) in CJointStereo_ApplyMS()
180 int lScale=leftScale[band]; in CJointStereo_ApplyMS()
181 int rScale=rightScale[band]; in CJointStereo_ApplyMS()
[all …]
Daacdec_pns.cpp153 const int band) in CPns_IsPnsUsed() argument
155 unsigned pns_band = group*16+band; in CPns_IsPnsUsed()
167 const int band, in CPns_SetCorrelation() argument
171 unsigned pns_band = group*16+band; in CPns_SetCorrelation()
187 const int band) in CPns_IsCorrelated() argument
190 unsigned pns_band = group*16+band; in CPns_IsCorrelated()
206 const int band) in CPns_IsOutOfPhase() argument
209 unsigned pns_band = group*16+band; in CPns_IsOutOfPhase()
224 int band, in CPns_Read() argument
228 UINT pns_band = group*16+band; in CPns_Read()
[all …]
Drvlcconceal.cpp116 int band,bnds,group,startBand; in calcRefValFwd() local
140 for (band=startBand; band >= 0; band--) { in calcRefValFwd()
141 bnds = 16*group+band; in calcRefValFwd()
191 int band,bnds,group,startBand; in calcRefValBwd() local
216 for (band=startBand; band < pRvlc->maxSfbTransmitted; band++) { in calcRefValBwd()
217 bnds = 16*group+band; in calcRefValBwd()
269 int band,bnds,startBand,endBand,group; in BidirectionalEstimation_UseLowerScfOfCurrentFrame() local
340 for (band=startBand; band <= endBand; band++) { in BidirectionalEstimation_UseLowerScfOfCurrentFrame()
341 bnds = 16*group+band; in BidirectionalEstimation_UseLowerScfOfCurrentFrame()
359 for (band=0; band < endBand; band++) { in BidirectionalEstimation_UseLowerScfOfCurrentFrame()
[all …]
Dblock.cpp167 int band; in CBlock_ReadScaleFactorData() local
178 for (band=0; band < ScaleFactorBandsTransmitted; band++) in CBlock_ReadScaleFactorData()
180 switch (pCodeBook[group*16+band]) { in CBlock_ReadScaleFactorData()
183 pScaleFactor[group*16+band] = 0; in CBlock_ReadScaleFactorData()
191 pScaleFactor[group*16+band] = factor - 100; in CBlock_ReadScaleFactorData()
198 pScaleFactor[group*16+band] = position - 100; in CBlock_ReadScaleFactorData()
205 …fo->pDynData->aScaleFactor, pAacDecoderChannelInfo->pDynData->RawDataInfo.GlobalGain, band, group); in CBlock_ReadScaleFactorData()
216 int band; in CBlock_ScaleSpectralData() local
236 for (band=0; band < max_band; band++) in CBlock_ScaleSpectralData()
238 SpecScale_window = fMax(SpecScale_window, (int)pSfbScale[window*16+band]); in CBlock_ScaleSpectralData()
[all …]
Daacdec_drc.cpp855 int band, top, bin, numBands; in aacDecoder_drcApply() local
937 for (band = 0; band < numBands; band++) in aacDecoder_drcApply()
939 UCHAR drcVal = pDrcChData->drcValue[band]; in aacDecoder_drcApply()
940 top = fixMin((int)( (pDrcChData->bandTop[band]+1)<<2 ), aacFrameSize); in aacDecoder_drcApply()
942 fact_mantissa[band] = FL2FXCONST_DBL(0.5f); in aacDecoder_drcApply()
943 fact_exponent[band] = 1; in aacDecoder_drcApply()
958 fact_mantissa[band] = in aacDecoder_drcApply()
965 fact_mantissa[band] = fMult(FL2FXCONST_DBL(0.99990790084), fact_mantissa[band]); in aacDecoder_drcApply()
967 fact_exponent[band] = DVB_COMPRESSION_SCALE - valX + compressionFactorVal_e; in aacDecoder_drcApply()
984 fact_mantissa[band] = in aacDecoder_drcApply()
[all …]
Drvlc.cpp196 int group, band, bnds; in rvlcCheckIntensityCb() local
201 for (band=0; band < pRvlc->maxSfbTransmitted; band++) { in rvlcCheckIntensityCb()
202 bnds = 16*group+band; in rvlcCheckIntensityCb()
419 int band = 0; in rvlcDecodeForward() local
448 for (band=0; band < pRvlc->maxSfbTransmitted; band++) { in rvlcDecodeForward()
449 bnds = 16*group+band; in rvlcDecodeForward()
610 SHORT band, group, dpcm, offset; in rvlcDecodeBackward() local
664 for (band=pRvlc->maxSfbTransmitted-1; band >= 0; band--) { in rvlcDecodeBackward()
665 bnds = 16*group+band; in rvlcDecodeBackward()
666 if ((band == 0) && (pRvlc->numWindowGroups != 1)) in rvlcDecodeBackward()
[all …]
/external/aac/libSBRenc/src/
Dcode_env.cpp427 INT i, no_of_bands, band; in FDKsbrEnc_codeEnvelope() local
526 for (band = no_of_bands - 1; band > 0; band--) { in FDKsbrEnc_codeEnvelope()
527 if ( ptr_nrg[band] - ptr_nrg[band-1] > codeBookScfLavBalanceFreq ) { in FDKsbrEnc_codeEnvelope()
528 ptr_nrg[band-1] = ptr_nrg[band] - codeBookScfLavBalanceFreq; in FDKsbrEnc_codeEnvelope()
531 for (band = 1; band < no_of_bands; band++) { in FDKsbrEnc_codeEnvelope()
532 if ( ptr_nrg[band-1] - ptr_nrg[band] > codeBookScfLavBalanceFreq ) { in FDKsbrEnc_codeEnvelope()
533 ptr_nrg[band] = ptr_nrg[band-1] - codeBookScfLavBalanceFreq; in FDKsbrEnc_codeEnvelope()
538 for (band = no_of_bands - 1; band > 0; band--) { in FDKsbrEnc_codeEnvelope()
539 if ( ptr_nrg[band] - ptr_nrg[band-1] > codeBookScfLavLevelFreq ) { in FDKsbrEnc_codeEnvelope()
540 ptr_nrg[band-1] = ptr_nrg[band] - codeBookScfLavLevelFreq; in FDKsbrEnc_codeEnvelope()
[all …]
Dnf_est.cpp128 INT i,band,env; in smoothingOfNoiseLevels() local
144 for (band = 0; band < noNoiseBands; band++){ in smoothingOfNoiseLevels()
147 accu += fMultDiv2(smoothFilter[i], prevNoiseLevels[i][band]); in smoothingOfNoiseLevels()
149 FDK_ASSERT( (band + env*noNoiseBands) < MAX_NUM_NOISE_VALUES); in smoothingOfNoiseLevels()
150 NoiseLevels[band+ env*noNoiseBands] = accu<<1; in smoothingOfNoiseLevels()
309 INT nNoiseEnvelopes, startPos[2], stopPos[2], env, band; in FDKsbrEnc_sbrNoiseFloorEstimateQmf() local
336 for(band = 0; band < noNoiseBands; band++){ in FDKsbrEnc_sbrNoiseFloorEstimateQmf()
337 FDK_ASSERT( (band + env*noNoiseBands) < MAX_NUM_NOISE_VALUES); in FDKsbrEnc_sbrNoiseFloorEstimateQmf()
338 qmfBasedNoiseFloorDetection(&noiseLevels[band + env*noNoiseBands], in FDKsbrEnc_sbrNoiseFloorEstimateQmf()
343 freqBandTable[band], in FDKsbrEnc_sbrNoiseFloorEstimateQmf()
[all …]
Dps_encode.cpp220 INT idx, band; in quantizeCoef() local
223 for (band=0; band<nBands;band++) { in quantizeCoef()
225 if( fixp_abs((input[band]>>1)-(quantTable[idx+1]>>1)) > in quantizeCoef()
226 fixp_abs((input[band]>>1)-(quantTable[idx]>>1)) ) in quantizeCoef()
231 …quantErr += (fixp_abs(input[band]-quantTable[idx])>>PS_QUANT_SCALE); /* don't scale before … in quantizeCoef()
232 quantOut[band] = idx - idxOffset; in quantizeCoef()
352 INT env, band; in processIidData() local
373 for(band=0;band<psBands;band++) { in processIidData()
374 loudnDiff += fixp_abs(iidIdxCoarse[env][band]); in processIidData()
583 INT env, band; in processIccData() local
[all …]
/external/autotest/server/cros/ap_configurators/
Dap_spec_unittest.py21 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
29 spec = ap_spec.APSpec(band=ap_spec.BAND_2GHZ)
36 spec = ap_spec.APSpec(band=ap_spec.BAND_5GHZ)
44 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
51 self.assertEquals(spec.band, ap_spec.BAND_5GHZ)
58 self.assertEquals(spec.band, ap_spec.DEFAULT_BAND)
65 self.assertEquals(spec.band, ap_spec.BAND_2GHZ)
72 self.assertEquals(spec.band, ap_spec.BAND_5GHZ)
78 spec = ap_spec.APSpec(band=ap_spec.BAND_2GHZ, mode=ap_spec.MODE_G)
84 spec = ap_spec.APSpec(band=ap_spec.BAND_5GHZ, mode=ap_spec.MODE_A)
[all …]
Dasus_qis_ap_configurator.py63 def set_mode(self, mode, band=None): argument
66 self.add_item_to_command_list(self._set_mode, (mode, band), 1, 800)
69 def _set_mode(self, mode, band=None): argument
70 if band:
71 self._set_band(band)
110 def set_band(self, band): argument
111 if band == ap_spec.BAND_2GHZ:
114 elif band == ap_spec.BAND_5GHZ:
118 raise RuntimeError('Invalid band sent %s' % band)
122 def _set_band(self, band): argument
[all …]
Dap_spec.py83 def band_string_for_band(band): argument
89 if band == BAND_2GHZ:
91 elif band == BAND_5GHZ:
133 band=None, mode=None, channel=None, hostnames=None, argument
149 if band == BAND_2GHZ or not band:
153 elif band == BAND_5GHZ:
162 if ((band == BAND_2GHZ and self._mode not in VALID_2GHZ_MODES) or
163 (band == BAND_5GHZ and self._mode not in VALID_5GHZ_MODES)):
177 band_string_for_band(self.band),
202 def band(self): member in APSpec
Dlinksyse2000_ap_configurator.py80 def set_mode(self, mode, band=None): argument
81 if band:
82 self.add_item_to_command_list(self._set_band, (band,), 1, 700)
83 self.add_item_to_command_list(self._set_mode, (mode, band), 1, 800)
86 def _set_mode(self, mode, band=None): argument
95 if self.current_band == ap_spec.BAND_5GHZ or band == ap_spec.BAND_5GHZ:
177 def set_band(self, band): argument
178 self.add_item_to_command_list(self._set_band, (band,), 1, 800)
181 def _set_band(self, band): argument
182 if band == ap_spec.BAND_2GHZ:
[all …]
Ddlink_ap_configurator.py126 def set_mode(self, mode, band=None): argument
129 self.add_item_to_command_list(self._set_mode, (mode, band), 1, 800)
132 def _set_mode(self, mode, band=None): argument
162 if band:
163 band_value = band
240 def set_band(self, band): argument
241 if band != ap_spec.BAND_2GHZ or band != ap_spec.BAND_5GHZ:
242 raise RuntimeError('Invalid band sent %s' % band)
243 self.add_item_to_command_list(self._set_band, (band,), 1, 900)
246 def _set_band(self, band): argument
[all …]
/external/aac/libSBRdec/src/
Dsbrdec_drc.cpp111 int band; in sbrDecoder_drcInitChannel() local
117 for (band = 0; band < (64); band++) { in sbrDecoder_drcInitChannel()
118 hDrcData->prevFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
121 for (band = 0; band < SBRDEC_MAX_DRC_BANDS; band++) { in sbrDecoder_drcInitChannel()
122 hDrcData->currFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
123 hDrcData->nextFact_mag[band] = FL2FXCONST_DBL(0.5f); in sbrDecoder_drcInitChannel()
202 int band, bottomMdct, topMdct, bin, useLP; in sbrDecoder_drcApplySlot() local
322 for (band = 0; band < (int)numBands; band++) { in sbrDecoder_drcApplySlot()
327 topMdct = (bandTop[band]+1) << 2; in sbrDecoder_drcApplySlot()
347 if (band == ((int)numBands-1)) { in sbrDecoder_drcApplySlot()
[all …]
Dpsdec_hybrid.cpp489 int k, band; in slotBasedHybridAnalysis() local
506 for(band = 0; band < hHybrid->nQmfBands; band++) { in slotBasedHybridAnalysis()
517 hybridRes = (HYBRID_RES)hHybrid->pResolution[band]; in slotBasedHybridAnalysis()
519 …FDKmemcpy(pWorkRealSlot, hHybrid->mQmfBufferRealSlot[band], hHybrid->qmfBufferMove * sizeof(FIXP_D… in slotBasedHybridAnalysis()
520 …FDKmemcpy(pWorkImagSlot, hHybrid->mQmfBufferImagSlot[band], hHybrid->qmfBufferMove * sizeof(FIXP_D… in slotBasedHybridAnalysis()
522 pWorkRealSlot[hHybrid->qmfBufferMove] = fixpQmfReal[band]; in slotBasedHybridAnalysis()
523 pWorkImagSlot[hHybrid->qmfBufferMove] = fixpQmfImag[band]; in slotBasedHybridAnalysis()
525 …FDKmemcpy(hHybrid->mQmfBufferRealSlot[band], pWorkRealSlot + 1, hHybrid->qmfBufferMove * sizeof(FI… in slotBasedHybridAnalysis()
526 …FDKmemcpy(hHybrid->mQmfBufferImagSlot[band], pWorkImagSlot + 1, hHybrid->qmfBufferMove * sizeof(FI… in slotBasedHybridAnalysis()
628 int k, band; in slotBasedHybridSynthesis() local
[all …]
/external/libvpx/libvpx/vp8/encoder/
Dtokenize.c118 int band, rc, v, token; in tokenize2nd_order_b() local
157 band = vp8_coef_bands[c]; in tokenize2nd_order_b()
164 t->context_tree = cpi->common.fc.coef_probs [1] [band] [pt]; in tokenize2nd_order_b()
168 ++x->coef_counts [1] [band] [pt] [token]; in tokenize2nd_order_b()
175 band = vp8_coef_bands[c]; in tokenize2nd_order_b()
177 t->context_tree = cpi->common.fc.coef_probs [1] [band] [pt]; in tokenize2nd_order_b()
181 ++x->coef_counts [1] [band] [pt] [DCT_EOB_TOKEN]; in tokenize2nd_order_b()
209 int band, rc, v; in tokenize1st_order_b() local
258 band = vp8_coef_bands[c]; in tokenize1st_order_b()
265 t->context_tree = cpi->common.fc.coef_probs [type] [band] [pt]; in tokenize1st_order_b()
[all …]
/external/libvorbis/lib/
Denvelope.c53 e->band[0].begin=2; e->band[0].end=4; in _ve_envelope_init()
54 e->band[1].begin=4; e->band[1].end=5; in _ve_envelope_init()
55 e->band[2].begin=6; e->band[2].end=6; in _ve_envelope_init()
56 e->band[3].begin=9; e->band[3].end=8; in _ve_envelope_init()
57 e->band[4].begin=13; e->band[4].end=8; in _ve_envelope_init()
58 e->band[5].begin=17; e->band[5].end=8; in _ve_envelope_init()
59 e->band[6].begin=22; e->band[6].end=8; in _ve_envelope_init()
62 n=e->band[j].end; in _ve_envelope_init()
63 e->band[j].window=_ogg_malloc(n*sizeof(*e->band[0].window)); in _ve_envelope_init()
65 e->band[j].window[i]=sin((i+.5)/n*M_PI); in _ve_envelope_init()
[all …]
/external/opencv3/3rdparty/libwebp/enc/
Dcost.c358 int ctype, band, ctx; in VP8CalculateLevelCosts() local
363 for (band = 0; band < NUM_BANDS; ++band) { in VP8CalculateLevelCosts()
365 const uint8_t* const p = proba->coeffs_[ctype][band][ctx]; in VP8CalculateLevelCosts()
366 uint16_t* const table = proba->level_cost_[ctype][band][ctx]; in VP8CalculateLevelCosts()
/external/aac/libAACdec/src/arm/
Dblock_arm.cpp110 for (int band=0; band < max_band; band++) in CBlock_ScaleSpectralData_func1() local
113 band_offset = BandOffsets[band+1]; in CBlock_ScaleSpectralData_func1()
115 int scale = SpecScale_window-pSfbScale[window*16+band]; in CBlock_ScaleSpectralData_func1()

123456789