Lines Matching refs:sfb
126 INT sfb,sfboffs, j; /* loop counters */
135 for(sfb=0; sfb<sfbCnt; sfb+=sfbPerGroup) {
138 if ( (isBook==NULL) ? 1 : (isBook[sfb+sfboffs] == 0) ) {
142 minThreshold=min(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs])*scaleMinThres;
143 pnlr = (sfbThresholdLeft[sfb+sfboffs]/
144 max(sfbEnergyLeft[sfb+sfboffs],sfbThresholdLeft[sfb+sfboffs]))*
145 (sfbThresholdRight[sfb+sfboffs]/
146 max(sfbEnergyRight[sfb+sfboffs],sfbThresholdRight[sfb+sfboffs]));
147 pnms = (minThreshold/max(sfbEnergyMid[sfb+sfboffs],minThreshold))*
148 (minThreshold/max(sfbEnergySide[sfb+sfboffs],minThreshold));
153 minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]);
155 /* pnlrLdData = sfbThresholdLeftLdData[sfb+sfboffs] -
156 max(sfbEnergyLeftLdData[sfb+sfboffs], sfbThresholdLeftLdData[sfb+sfboffs]) +
157 sfbThresholdRightLdData[sfb+sfboffs] -
158 max(sfbEnergyRightLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]); */
159 tmp = fixMax(sfbEnergyLeftLdData[sfb+sfboffs], sfbThresholdLeftLdData[sfb+sfboffs]);
160 pnlrLdData = (sfbThresholdLeftLdData[sfb+sfboffs]>>1) - (tmp>>1);
161 pnlrLdData = pnlrLdData + (sfbThresholdRightLdData[sfb+sfboffs]>>1);
162 tmp = fixMax(sfbEnergyRightLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]);
165 /* pnmsLdData = minThresholdLdData - max(sfbEnergyMidLdData[sfb+sfboffs], minThresholdLdData) +
166 minThresholdLdData - max(sfbEnergySideLdData[sfb+sfboffs], minThresholdLdData); */
167 tmp = fixMax(sfbEnergyMidLdData[sfb+sfboffs], minThresholdLdData);
169 tmp = fixMax(sfbEnergySideLdData[sfb+sfboffs], minThresholdLdData);
175 msMask[sfb+sfboffs] = 1;
177 for(j=sfbOffset[sfb+sfboffs]; j<sfbOffset[sfb+sfboffs+1]; j++) {
184 minThreshold = fixMin(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs]);
185 sfbThresholdLeft[sfb+sfboffs] = sfbThresholdRight[sfb+sfboffs] = minThreshold;
186 sfbThresholdLeftLdData[sfb+sfboffs] = sfbThresholdRightLdData[sfb+sfboffs] = minThresholdLdData;
187 sfbEnergyLeft[sfb+sfboffs] = sfbEnergyMid[sfb+sfboffs];
188 sfbEnergyRight[sfb+sfboffs] = sfbEnergySide[sfb+sfboffs];
189 sfbEnergyLeftLdData[sfb+sfboffs] = sfbEnergyMidLdData[sfb+sfboffs];
190 sfbEnergyRightLdData[sfb+sfboffs] = sfbEnergySideLdData[sfb+sfboffs];
192 sfbSpreadEnLeft[sfb+sfboffs] = sfbSpreadEnRight[sfb+sfboffs] =
193 fixMin( sfbSpreadEnLeft[sfb+sfboffs],
194 sfbSpreadEnRight[sfb+sfboffs] ) >> 1;
198 msMask[sfb+sfboffs] = 0;
204 if (msMask[sfb+sfboffs]) {
211 } /* sfb */
218 for (sfb = 0; sfb < sfbCnt; sfb += sfbPerGroup) {
220 if (( (isBook == NULL) ? 1 : (isBook[sfb+sfboffs] == 0) ) && (msMask[sfb+sfboffs] == 0)) {
221 msMask[sfb+sfboffs] = 1;
223 for(j=sfbOffset[sfb+sfboffs]; j<sfbOffset[sfb+sfboffs+1]; j++) {
230 minThreshold = fixMin(sfbThresholdLeft[sfb+sfboffs], sfbThresholdRight[sfb+sfboffs]);
231 sfbThresholdLeft[sfb+sfboffs] = sfbThresholdRight[sfb+sfboffs] = minThreshold;
232 minThresholdLdData = fixMin(sfbThresholdLeftLdData[sfb+sfboffs], sfbThresholdRightLdData[sfb+sfboffs]);
233 sfbThresholdLeftLdData[sfb+sfboffs] = sfbThresholdRightLdData[sfb+sfboffs] = minThresholdLdData;
234 sfbEnergyLeft[sfb+sfboffs] = sfbEnergyMid[sfb+sfboffs];
235 sfbEnergyRight[sfb+sfboffs] = sfbEnergySide[sfb+sfboffs];
236 sfbEnergyLeftLdData[sfb+sfboffs] = sfbEnergyMidLdData[sfb+sfboffs];
237 sfbEnergyRightLdData[sfb+sfboffs] = sfbEnergySideLdData[sfb+sfboffs];
239 sfbSpreadEnLeft[sfb+sfboffs] = sfbSpreadEnRight[sfb+sfboffs] =
240 fixMin( sfbSpreadEnLeft[sfb+sfboffs],
241 sfbSpreadEnRight[sfb+sfboffs] ) >> 1;