Lines Matching refs:filterPos
183 static int initFilter(int16_t **outFilter, int32_t **filterPos, int *outFilterSize, int xInc,
199 FF_ALLOC_OR_GOTO(NULL, *filterPos, (dstW+3)*sizeof(**filterPos), fail);
208 (*filterPos)[i]=i;
221 (*filterPos)[i]= xx;
236 (*filterPos)[i]= xx;
274 (*filterPos)[i]= xx;
375 (*filterPos)[i]+= (filterSize-1)/2 - (filter2Size-1)/2;
395 if (i<dstW-1 && (*filterPos)[i] >= (*filterPos)[i+1]) break;
401 (*filterPos)[i]++;
459 //FIXME try to align filterPos if possible
465 if ((*filterPos)[i] < 0) {
466 // move filter coefficients left to compensate for filterPos
468 int left = FFMAX(j + (*filterPos)[i], 0);
472 (*filterPos)[i] = 0;
475 if ((*filterPos)[i] + filterSize > srcW) {
476 int shift = (*filterPos)[i] + filterSize - srcW;
477 // move filter coefficients right to compensate for filterPos
483 (*filterPos)[i] = srcW - filterSize;
510 (*filterPos)[dstW+0] =
511 (*filterPos)[dstW+1] =
512 (*filterPos)[dstW+2] = (*filterPos)[dstW-1]; // the MMX/SSE scaler will read over the end
528 static int initMMX2HScaler(int dstW, int xInc, uint8_t *filterCode, int16_t *filter, int32_t *filterPos, int numSplits)
654 filterPos[i/2]= xx;
664 else if ((filterPos[i/2]&3) <= maxShift) shift=filterPos[i/2]&3; //Align
669 filterPos[i/2]-=shift;
681 filterPos[((i/2)+1)&(~1)]= xpos>>16; // needed to jump to the next part