Lines Matching refs:filterPos
296 static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos,
315 FF_ALLOC_ARRAY_OR_GOTO(NULL, *filterPos, (dstW + 3), sizeof(**filterPos), fail);
325 (*filterPos)[i] = i;
338 (*filterPos)[i] = xx;
355 (*filterPos)[i] = xx;
395 (*filterPos)[i] = xx;
513 (*filterPos)[i] += (filterSize - 1) / 2 - (filter2Size - 1) / 2;
535 if (i < dstW - 1 && (*filterPos)[i] >= (*filterPos)[i + 1])
542 (*filterPos)[i]++;
609 // FIXME try to align filterPos if possible
614 if ((*filterPos)[i] < 0) {
615 // move filter coefficients left to compensate for filterPos
617 int left = FFMAX(j + (*filterPos)[i], 0);
621 (*filterPos)[i]= 0;
624 if ((*filterPos)[i] + filterSize > srcW) {
625 int shift = (*filterPos)[i] + filterSize - srcW;
626 // move filter coefficients right to compensate for filterPos
632 (*filterPos)[i]= srcW - filterSize;
663 (*filterPos)[dstW + 0] =
664 (*filterPos)[dstW + 1] =
665 (*filterPos)[dstW + 2] = (*filterPos)[dstW - 1]; /* the MMX/SSE scaler will
686 int16_t *filter, int32_t *filterPos,
812 filterPos[i / 2] = xx;
826 else if ((filterPos[i / 2] & 3) <= maxShift)
827 shift = filterPos[i / 2] & 3; // align
832 filterPos[i / 2] -= shift;
844 filterPos[((i / 2) + 1) & (~1)] = xpos >> 16; // needed to jump to the next part