Lines Matching refs:inlength

139 static const interp_kernel *choose_interp_filter(int inlength, int outlength) {  in choose_interp_filter()  argument
141 if (outlength16 >= inlength * 16) in choose_interp_filter()
143 else if (outlength16 >= inlength * 13) in choose_interp_filter()
145 else if (outlength16 >= inlength * 11) in choose_interp_filter()
147 else if (outlength16 >= inlength * 9) in choose_interp_filter()
153 static void interpolate(const uint8_t *const input, int inlength, in interpolate() argument
156 (((uint64_t)inlength << 32) + outlength / 2) / outlength; in interpolate()
158 inlength > outlength in interpolate()
159 ? (((int64_t)(inlength - outlength) << 31) + outlength / 2) / in interpolate()
161 : -(((int64_t)(outlength - inlength) << 31) + outlength / 2) / in interpolate()
168 choose_interp_filter(inlength, outlength); in interpolate()
180 inlength) { in interpolate()
195 input[(pk < 0 ? 0 : (pk >= inlength ? inlength - 1 : pk))]; in interpolate()
232 sum += filter[k] * input[(int_pel - INTERP_TAPS / 2 + 1 + k >= inlength in interpolate()
233 ? inlength - 1 in interpolate()
455 static void highbd_interpolate(const uint16_t *const input, int inlength, in highbd_interpolate() argument
458 (((uint64_t)inlength << 32) + outlength / 2) / outlength; in highbd_interpolate()
460 inlength > outlength in highbd_interpolate()
461 ? (((int64_t)(inlength - outlength) << 31) + outlength / 2) / in highbd_interpolate()
463 : -(((int64_t)(outlength - inlength) << 31) + outlength / 2) / in highbd_interpolate()
470 choose_interp_filter(inlength, outlength); in highbd_interpolate()
482 inlength) { in highbd_interpolate()
497 input[(pk < 0 ? 0 : (pk >= inlength ? inlength - 1 : pk))]; in highbd_interpolate()
510 assert(int_pel - INTERP_TAPS / 2 + 1 + k < inlength); in highbd_interpolate()
536 sum += filter[k] * input[(int_pel - INTERP_TAPS / 2 + 1 + k >= inlength in highbd_interpolate()
537 ? inlength - 1 in highbd_interpolate()