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;
897 /* First patch */
902 patch = 0;
907 we need to check later again, since patch might be the highest patch
910 if (patch > MAX_NUM_PATCHES) {
914 patchParam[patch].guardStartBand = targetStopBand;
915 patchParam[patch].targetStartBand = targetStopBand;
917 numBandsInPatch = desiredBorder - targetStopBand; /* Get the desired range of the patch */
920 /* Desired number bands are not available -> patch whole source range */
933 patchParam[patch].sourceStartBand = targetStopBand - patchDistance;
934 patchParam[patch].targetBandOffs = patchDistance;
935 patchParam[patch].numBandsInPatch = numBandsInPatch;
936 patchParam[patch].sourceStopBand = patchParam[patch].sourceStartBand + numBandsInPatch;
938 targetStopBand += patchParam[patch].numBandsInPatch;
939 patch++;
953 patch--;
955 /* If highest patch contains less than three subband: skip it */
956 if ( (patch>0) && (patchParam[patch].numBandsInPatch < 3) ) {
957 patch--;
958 targetStopBand = patchParam[patch].targetStartBand + patchParam[patch].numBandsInPatch;
962 if (patch >= MAX_NUM_PATCHES) {
966 pSettings->noOfPatches = patch + 1;
971 for ( patch = 0; patch < pSettings->noOfPatches; patch++ ) {
972 pSettings->lbStartPatching = fixMin( pSettings->lbStartPatching, patchParam[patch].sourceStartBand );
973 pSettings->lbStopPatching = fixMax( pSettings->lbStopPatching, patchParam[patch].sourceStopBand );