Home | History | Annotate | Download | only in src

Lines Matching defs:patch

240   int    patch;
278 (because the last patch would be too short).
295 /* init bwIndex for each patch */
606 patch = 0;
608 while ( patch < pSettings->noOfPatches ) { /* inner loop over every patch */
610 int hiBand = loBand + patchParam[patch].targetBandOffs;
612 if ( loBand < patchParam[patch].sourceStartBand
613 || loBand >= patchParam[patch].sourceStopBand
616 /* Lowband not in current patch - proceed */
617 patch++;
623 /* bwIndex[patch] is already initialized with value from previous band inside this patch */
624 while (hiBand >= pSettings->bwBorders[bwIndex[patch]])
625 bwIndex[patch]++;
632 bw = FX_DBL2FX_SGL(bwVector[bwIndex[patch]]);
703 patch++;
718 patch = 0;
719 while ( patch < pSettings->noOfPatches ) {
721 UCHAR hiBand = loBand + patchParam[patch].targetBandOffs;
723 if ( loBand < patchParam[patch].sourceStartBand
724 || loBand >= patchParam[patch].sourceStopBand
727 /* Lowband not in current patch or highband out of range (might be caused by biterrors)- proceed */
728 patch++;
732 if(hiBand != patchParam[patch].targetStartBand)
735 patch++;
852 int i, patch;
883 /* First patch */
888 patch = 0;
893 we need to check later again, since patch might be the highest patch
896 if (patch > MAX_NUM_PATCHES) {
900 patchParam[patch].guardStartBand = targetStopBand;
901 patchParam[patch].targetStartBand = targetStopBand;
903 numBandsInPatch = desiredBorder - targetStopBand; /* Get the desired range of the patch */
906 /* Desired number bands are not available -> patch whole source range */
919 patchParam[patch].sourceStartBand = targetStopBand - patchDistance;
920 patchParam[patch].targetBandOffs = patchDistance;
921 patchParam[patch].numBandsInPatch = numBandsInPatch;
922 patchParam[patch].sourceStopBand = patchParam[patch].sourceStartBand + numBandsInPatch;
924 targetStopBand += patchParam[patch].numBandsInPatch;
925 patch++;
939 patch--;
941 /* If highest patch contains less than three subband: skip it */
942 if ( (patch>0) && (patchParam[patch].numBandsInPatch < 3) ) {
943 patch--;
944 targetStopBand = patchParam[patch].targetStartBand + patchParam[patch].numBandsInPatch;
948 if (patch >= MAX_NUM_PATCHES) {
952 pSettings->noOfPatches = patch + 1;
957 for ( patch = 0; patch < pSettings->noOfPatches; patch++ ) {
958 pSettings->lbStartPatching = fixMin( pSettings->lbStartPatching, patchParam[patch].sourceStartBand );
959 pSettings->lbStopPatching = fixMax( pSettings->lbStopPatching, patchParam[patch].sourceStopBand );