shift 311 libavcodec/aacdec_fixed.c int shift = 28 - pv.exp; shift 313 libavcodec/aacdec_fixed.c if (shift < 31) { shift 314 libavcodec/aacdec_fixed.c if (shift > 0) { shift 315 libavcodec/aacdec_fixed.c *coef += (unsigned)((pv.mant + (1 << (shift - 1))) >> shift); shift 317 libavcodec/aacdec_fixed.c *coef += (unsigned)pv.mant << -shift; shift 372 libavcodec/aacdec_fixed.c int shift, round, c, tmp; shift 376 libavcodec/aacdec_fixed.c shift = (-gain-1024) >> 3; shift 380 libavcodec/aacdec_fixed.c shift = (gain-1024) >> 3; shift 383 libavcodec/aacdec_fixed.c if (shift < -31) { shift 385 libavcodec/aacdec_fixed.c } else if (shift < 0) { shift 386 libavcodec/aacdec_fixed.c shift = -shift; shift 387 libavcodec/aacdec_fixed.c round = 1 << (shift - 1); shift 393 libavcodec/aacdec_fixed.c dest[group * 128 + k] += (tmp + (int64_t)round) >> shift; shift 402 libavcodec/aacdec_fixed.c dest[group * 128 + k] += tmp * (1U << shift); shift 422 libavcodec/aacdec_fixed.c int i, c, shift, round, tmp; shift 429 libavcodec/aacdec_fixed.c shift = (gain-1024) >> 3; shift 430 libavcodec/aacdec_fixed.c if (shift < -31) { shift 432 libavcodec/aacdec_fixed.c } else if (shift < 0) { shift 433 libavcodec/aacdec_fixed.c shift = -shift; shift 434 libavcodec/aacdec_fixed.c round = 1 << (shift - 1); shift 438 libavcodec/aacdec_fixed.c dest[i] += (tmp + round) >> shift; shift 444 libavcodec/aacdec_fixed.c dest[i] += tmp * (1U << shift); shift 284 libavcodec/aacps_fixed_tablegen.h int shift, round; shift 293 libavcodec/aacps_fixed_tablegen.h shift = 30 - pd_mag.exp; shift 294 libavcodec/aacps_fixed_tablegen.h round = 1 << (shift-1); shift 295 libavcodec/aacps_fixed_tablegen.h pd_re_smooth[pd0*64+pd1*8+pd2] = (int)(((int64_t)re_smooth * pd_mag.mant + round) >> shift); shift 296 libavcodec/aacps_fixed_tablegen.h pd_im_smooth[pd0*64+pd1*8+pd2] = (int)(((int64_t)im_smooth * pd_mag.mant + round) >> shift); shift 241 libavcodec/aacsbr_fixed.c int shift, round; shift 288 libavcodec/aacsbr_fixed.c shift = a00.exp; shift 289 libavcodec/aacsbr_fixed.c if (shift >= 3) shift 291 libavcodec/aacsbr_fixed.c else if (shift <= -30) shift 294 libavcodec/aacsbr_fixed.c shift = 1-shift; shift 295 libavcodec/aacsbr_fixed.c if (shift <= 0) shift 296 libavcodec/aacsbr_fixed.c alpha0[k][0] = a00.mant * (1<<-shift); shift 298 libavcodec/aacsbr_fixed.c round = 1 << (shift-1); shift 299 libavcodec/aacsbr_fixed.c alpha0[k][0] = (a00.mant + round) >> shift; shift 303 libavcodec/aacsbr_fixed.c shift = a01.exp; shift 304 libavcodec/aacsbr_fixed.c if (shift >= 3) shift 306 libavcodec/aacsbr_fixed.c else if (shift <= -30) shift 309 libavcodec/aacsbr_fixed.c shift = 1-shift; shift 310 libavcodec/aacsbr_fixed.c if (shift <= 0) shift 311 libavcodec/aacsbr_fixed.c alpha0[k][1] = a01.mant * (1<<-shift); shift 313 libavcodec/aacsbr_fixed.c round = 1 << (shift-1); shift 314 libavcodec/aacsbr_fixed.c alpha0[k][1] = (a01.mant + round) >> shift; shift 317 libavcodec/aacsbr_fixed.c shift = a10.exp; shift 318 libavcodec/aacsbr_fixed.c if (shift >= 3) shift 320 libavcodec/aacsbr_fixed.c else if (shift <= -30) shift 323 libavcodec/aacsbr_fixed.c shift = 1-shift; shift 324 libavcodec/aacsbr_fixed.c if (shift <= 0) shift 325 libavcodec/aacsbr_fixed.c alpha1[k][0] = a10.mant * (1<<-shift); shift 327 libavcodec/aacsbr_fixed.c round = 1 << (shift-1); shift 328 libavcodec/aacsbr_fixed.c alpha1[k][0] = (a10.mant + round) >> shift; shift 332 libavcodec/aacsbr_fixed.c shift = a11.exp; shift 333 libavcodec/aacsbr_fixed.c if (shift >= 3) shift 335 libavcodec/aacsbr_fixed.c else if (shift <= -30) shift 338 libavcodec/aacsbr_fixed.c shift = 1-shift; shift 339 libavcodec/aacsbr_fixed.c if (shift <= 0) shift 340 libavcodec/aacsbr_fixed.c alpha1[k][1] = a11.mant * (1<<-shift); shift 342 libavcodec/aacsbr_fixed.c round = 1 << (shift-1); shift 343 libavcodec/aacsbr_fixed.c alpha1[k][1] = (a11.mant + round) >> shift; shift 347 libavcodec/aacsbr_fixed.c shift = (int)(((int64_t)(alpha1[k][0]>>1) * (alpha1[k][0]>>1) + \ shift 350 libavcodec/aacsbr_fixed.c if (shift >= 0x20000000){ shift 357 libavcodec/aacsbr_fixed.c shift = (int)(((int64_t)(alpha0[k][0]>>1) * (alpha0[k][0]>>1) + \ shift 360 libavcodec/aacsbr_fixed.c if (shift >= 0x20000000){ shift 571 libavcodec/aacsbr_fixed.c int shift; shift 577 libavcodec/aacsbr_fixed.c shift = 22 - in[m ].exp; shift 579 libavcodec/aacsbr_fixed.c if (shift < 1 || shift2 < 1) { shift 580 libavcodec/aacsbr_fixed.c av_log(NULL, AV_LOG_ERROR, "Overflow in sbr_hf_assemble, shift=%d,%d\n", shift, shift2); shift 583 libavcodec/aacsbr_fixed.c if (shift < 32) { shift 584 libavcodec/aacsbr_fixed.c round = 1 << (shift-1); shift 585 libavcodec/aacsbr_fixed.c out[2*m ] += (int)(in[m ].mant * A + round) >> shift; shift 595 libavcodec/aacsbr_fixed.c shift = 22 - in[m ].exp; shift 596 libavcodec/aacsbr_fixed.c if (shift < 1) { shift 597 libavcodec/aacsbr_fixed.c av_log(NULL, AV_LOG_ERROR, "Overflow in sbr_hf_assemble, shift=%d\n", shift); shift 599 libavcodec/aacsbr_fixed.c } else if (shift < 32) { shift 600 libavcodec/aacsbr_fixed.c round = 1 << (shift-1); shift 601 libavcodec/aacsbr_fixed.c out[2*m ] += (int)(in[m ].mant * A + round) >> shift; shift 67 libavcodec/ac3dec_fixed.c int i, shift; shift 72 libavcodec/ac3dec_fixed.c shift = 4 - (sign_extend(dynrng, 9) >> 5); shift 73 libavcodec/ac3dec_fixed.c if (shift > 0 ) { shift 74 libavcodec/ac3dec_fixed.c round = 1 << (shift-1); shift 83 libavcodec/ac3dec_fixed.c dst[i] = temp >> shift; shift 87 libavcodec/ac3dec_fixed.c dst[i+1] = temp1 >> shift; shift 90 libavcodec/ac3dec_fixed.c dst[i+2] = temp2 >> shift; shift 94 libavcodec/ac3dec_fixed.c dst[i+3] = temp3 >> shift; shift 97 libavcodec/ac3dec_fixed.c dst[i+4] = temp4 >> shift; shift 102 libavcodec/ac3dec_fixed.c dst[i+5] = temp5 >> shift; shift 104 libavcodec/ac3dec_fixed.c dst[i+6] = temp6 >> shift; shift 105 libavcodec/ac3dec_fixed.c dst[i+7] = temp7 >> shift; shift 109 libavcodec/ac3dec_fixed.c shift = -shift; shift 110 libavcodec/ac3dec_fixed.c mul <<= shift; shift 56 libavcodec/ac3dsp.c unsigned int shift) shift 59 libavcodec/ac3dsp.c const uint32_t mask = ~(((1 << shift) - 1) << 16); shift 63 libavcodec/ac3dsp.c src32[i ] = (src32[i ] << shift) & mask; shift 64 libavcodec/ac3dsp.c src32[i+1] = (src32[i+1] << shift) & mask; shift 65 libavcodec/ac3dsp.c src32[i+2] = (src32[i+2] << shift) & mask; shift 66 libavcodec/ac3dsp.c src32[i+3] = (src32[i+3] << shift) & mask; shift 67 libavcodec/ac3dsp.c src32[i+4] = (src32[i+4] << shift) & mask; shift 68 libavcodec/ac3dsp.c src32[i+5] = (src32[i+5] << shift) & mask; shift 69 libavcodec/ac3dsp.c src32[i+6] = (src32[i+6] << shift) & mask; shift 70 libavcodec/ac3dsp.c src32[i+7] = (src32[i+7] << shift) & mask; shift 75 libavcodec/ac3dsp.c unsigned int shift) shift 78 libavcodec/ac3dsp.c *src++ >>= shift; shift 79 libavcodec/ac3dsp.c *src++ >>= shift; shift 80 libavcodec/ac3dsp.c *src++ >>= shift; shift 81 libavcodec/ac3dsp.c *src++ >>= shift; shift 82 libavcodec/ac3dsp.c *src++ >>= shift; shift 83 libavcodec/ac3dsp.c *src++ >>= shift; shift 84 libavcodec/ac3dsp.c *src++ >>= shift; shift 85 libavcodec/ac3dsp.c *src++ >>= shift; shift 65 libavcodec/ac3dsp.h void (*ac3_lshift_int16)(int16_t *src, unsigned int len, unsigned int shift); shift 76 libavcodec/ac3dsp.h void (*ac3_rshift_int32)(int32_t *src, unsigned int len, unsigned int shift); shift 180 libavcodec/acelp_vectors.c int shift, shift 190 libavcodec/acelp_vectors.c rounder) >> shift); shift 220 libavcodec/acelp_vectors.h int shift, shift 267 libavcodec/adpcm.c static inline int16_t adpcm_ima_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int shift) shift 282 libavcodec/adpcm.c diff = ((2 * delta + 1) * step) >> shift; shift 293 libavcodec/adpcm.c static inline int16_t adpcm_ima_alp_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int shift) shift 305 libavcodec/adpcm.c diff = (delta * step) >> shift; shift 354 libavcodec/adpcm.c int nibble, step_index, predictor, sign, delta, diff, step, shift; shift 356 libavcodec/adpcm.c shift = bps - 1; shift 362 libavcodec/adpcm.c sign = nibble & (1 << shift); shift 363 libavcodec/adpcm.c delta = av_mod_uintp2(nibble, shift); shift 364 libavcodec/adpcm.c diff = ((2 * delta + 1) * step) >> shift; shift 462 libavcodec/adpcm.c static inline int16_t adpcm_sbpro_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int size, int shift) shift 468 libavcodec/adpcm.c diff = delta << (7 + c->step + shift); shift 545 libavcodec/adpcm.c int shift,filter,f0,f1; shift 556 libavcodec/adpcm.c shift = 12 - (in[4+i*2] & 15); shift 562 libavcodec/adpcm.c if (shift < 0) { shift 563 libavcodec/adpcm.c avpriv_request_sample(avctx, "unknown XA-ADPCM shift %d", shift); shift 564 libavcodec/adpcm.c shift = 0; shift 576 libavcodec/adpcm.c s = t*(1<<shift) + ((s_1*f0 + s_2*f1+32)>>6); shift 589 libavcodec/adpcm.c shift = 12 - (in[5+i*2] & 15); shift 591 libavcodec/adpcm.c if (filter >= FF_ARRAY_ELEMS(xa_adpcm_table) || shift < 0) { shift 595 libavcodec/adpcm.c if (shift < 0) { shift 596 libavcodec/adpcm.c avpriv_request_sample(avctx, "unknown XA-ADPCM shift %d", shift); shift 597 libavcodec/adpcm.c shift = 0; shift 607 libavcodec/adpcm.c s = t*(1<<shift) + ((s_1*f0 + s_2*f1+32)>>6); shift 685 libavcodec/adpcm.c static inline int16_t adpcm_argo_expand_nibble(ADPCMChannelStatus *cs, int nibble, int control, int shift) shift 687 libavcodec/adpcm.c int sample = nibble * (1 << shift); shift 1510 libavcodec/adpcm.c int coeff[2][2], shift[2]; shift 1516 libavcodec/adpcm.c shift[channel] = 20 - (byte & 0x0F); shift 1525 libavcodec/adpcm.c int sample = sign_extend(byte[channel] >> i, 4) * (1 << shift[channel]); shift 1548 libavcodec/adpcm.c int shift; shift 1582 libavcodec/adpcm.c shift = 20 - (byte & 0x0F); shift 1586 libavcodec/adpcm.c next_sample = (unsigned)sign_extend(byte, 4) << shift; shift 1589 libavcodec/adpcm.c next_sample = (unsigned)sign_extend(byte >> 4, 4) << shift; shift 1621 libavcodec/adpcm.c int coeff[2][4], shift[4]; shift 1630 libavcodec/adpcm.c shift[n] = 20 - (val & 0x0F); shift 1640 libavcodec/adpcm.c level = sign_extend(byte >> 4, 4) * (1 << shift[n]); shift 1644 libavcodec/adpcm.c level = sign_extend(byte, 4) * (1 << shift[n]); shift 1942 libavcodec/adpcm.c int filter, shift, flag, byte; shift 1945 libavcodec/adpcm.c shift = filter & 0xf; shift 1964 libavcodec/adpcm.c sample = (int)((scale >> shift) + (c->status[channel].sample1 * xa_adpcm_table[filter][0] + c->status[channel].sample2 * xa_adpcm_table[filter][1]) / 64); shift 1992 libavcodec/adpcm.c int control, shift; shift 1999 libavcodec/adpcm.c shift = (control >> 4) + 2; shift 2003 libavcodec/adpcm.c *samples++ = adpcm_argo_expand_nibble(cs, sign_extend(sample >> 4, 4), control, shift); shift 2004 libavcodec/adpcm.c *samples++ = adpcm_argo_expand_nibble(cs, sign_extend(sample >> 0, 4), control, shift); shift 416 libavcodec/agm.c int shift = plane == 0; shift 417 libavcodec/agm.c int mvpos = (y >> shift) * (s->blocks_w >> shift) + (x >> shift); shift 419 libavcodec/agm.c int mv_x = s->mvectors[mvpos].x / (1 + !shift); shift 420 libavcodec/agm.c int mv_y = s->mvectors[mvpos].y / (1 + !shift); shift 421 libavcodec/agm.c int h = s->avctx->coded_height >> !shift; shift 422 libavcodec/agm.c int w = s->avctx->coded_width >> !shift; shift 449 libavcodec/agm.c int shift = plane == 0; shift 450 libavcodec/agm.c int mvpos = (y >> shift) * (s->blocks_w >> shift) + (x >> shift); shift 452 libavcodec/agm.c int mv_x = s->mvectors[mvpos].x / (1 + !shift); shift 453 libavcodec/agm.c int mv_y = s->mvectors[mvpos].y / (1 + !shift); shift 454 libavcodec/agm.c int h = s->avctx->coded_height >> !shift; shift 455 libavcodec/agm.c int w = s->avctx->coded_width >> !shift; shift 88 libavcodec/alacenc.c int shift = av_get_bytes_per_sample(s->avctx->sample_fmt) * 8 - shift 96 libavcodec/alacenc.c bptr[i] = sptr[i] >> shift; \ shift 156 libavcodec/alacenc.c int shift[MAX_LPC_ORDER]; shift 173 libavcodec/alacenc.c ALAC_MAX_LPC_PRECISION, coefs, shift, shift 179 libavcodec/alacenc.c s->lpc[ch].lpc_quant = shift[opt_order-1]; shift 380 libavcodec/alacenc.c int shift = 32 - s->avctx->bits_per_raw_sample; shift 386 libavcodec/alacenc.c samples_s32[j][i] >> shift); shift 1791 libavcodec/alsdec.c unsigned int c, sample, ra_frame, bytes_read, shift; shift 1832 libavcodec/alsdec.c shift = bps - ctx->avctx->bits_per_raw_sample; \ shift 1836 libavcodec/alsdec.c *dest++ = raw_samples[c*raw_step + sample] * (1U << shift); \ shift 1840 libavcodec/alsdec.c *dest++ = raw_samples[sconf->chan_pos[c]*raw_step + sample] * (1U << shift);\ shift 361 libavcodec/apedec.c static inline int range_decode_culshift(APEContext *ctx, int shift) shift 364 libavcodec/apedec.c ctx->rc.help = ctx->rc.range >> shift; shift 870 libavcodec/apedec.c const int start, const int shift) shift 906 libavcodec/apedec.c p->filterB[filter] = p->lastA[filter] + (predictionB >> shift); shift 912 libavcodec/apedec.c static void long_filter_high_3800(int32_t *buffer, int order, int shift, int length) shift 931 libavcodec/apedec.c buffer[i] -= dotprod >> shift; shift 964 libavcodec/apedec.c int start = 4, shift = 10; shift 975 libavcodec/apedec.c shift++; shift 994 libavcodec/apedec.c start, shift); shift 997 libavcodec/apedec.c start, shift); shift 1018 libavcodec/apedec.c int start = 4, shift = 10; shift 1028 libavcodec/apedec.c shift++; shift 1042 libavcodec/apedec.c start, shift); shift 403 libavcodec/aptx.c int32_t qr, idx, shift, factor_select; shift 420 libavcodec/aptx.c shift = (tables->factor_max - invert_quantize->factor_select) >> 8; shift 421 libavcodec/aptx.c invert_quantize->quantization_factor = (quantization_factors[idx] << 11) >> shift; shift 117 libavcodec/aptx.h static int##size##_t rshift##size(int##size##_t value, int shift) \ shift 119 libavcodec/aptx.h int##size##_t rounding = (int##size##_t)1 << (shift - 1); \ shift 120 libavcodec/aptx.h int##size##_t mask = ((int##size##_t)1 << (shift + 1)) - 1; \ shift 121 libavcodec/aptx.h return ((value + rounding) >> shift) - ((value & mask) == rounding); \ shift 124 libavcodec/aptx.h static int##size##_t rshift##size##_clip24(int##size##_t value, int shift) \ shift 126 libavcodec/aptx.h return av_clip_intp2(rshift##size(value, shift), 23); \ shift 179 libavcodec/aptx.h int shift) shift 188 libavcodec/aptx.h return rshift64_clip24(e, shift); shift 33 libavcodec/aptxdec.c int shift, shift 46 libavcodec/aptxdec.c samples[i] = aptx_qmf_convolution(&signal[i], coeffs[i], shift); shift 34 libavcodec/aptxenc.c int shift, shift 44 libavcodec/aptxenc.c subbands[i] = aptx_qmf_convolution(&signal[i], coeffs[i], shift); shift 30 libavcodec/arm/ac3dsp_init_arm.c void ff_ac3_lshift_int16_neon(int16_t *src, unsigned len, unsigned shift); shift 31 libavcodec/arm/ac3dsp_init_arm.c void ff_ac3_rshift_int32_neon(int32_t *src, unsigned len, unsigned shift); shift 44 libavcodec/arm/mlpdsp_init_arm.c #define DECLARE_PACK(order,channels,shift) \ shift 45 libavcodec/arm/mlpdsp_init_arm.c int32_t ff_mlp_pack_output_##order##order_##channels##ch_##shift##shift_armv6(int32_t, uint16_t, int32_t (*)[], void *, uint8_t*, int8_t *, uint8_t, int); shift 46 libavcodec/arm/mlpdsp_init_arm.c #define ENUMERATE_PACK(order,channels,shift) \ shift 47 libavcodec/arm/mlpdsp_init_arm.c ff_mlp_pack_output_##order##order_##channels##ch_##shift##shift_armv6, shift 95 libavcodec/arm/mlpdsp_init_arm.c int shift = output_shift[0] < 0 || output_shift[0] > 5 ? 6 : output_shift[0]; shift 120 libavcodec/arm/mlpdsp_init_arm.c if (shift != 6 && output_shift[i] != shift) shift 121 libavcodec/arm/mlpdsp_init_arm.c shift = 6; // indicate mixed shifts shift 129 libavcodec/arm/mlpdsp_init_arm.c if (shift == 6 && !inorder) shift 133 libavcodec/arm/mlpdsp_init_arm.c return routine[(inorder*3+ch_index)*7+shift]; shift 45 libavcodec/arm/vp56_arith.h unsigned shift = ff_vp56_norm_shift[c->high]; shift 46 libavcodec/arm/vp56_arith.h unsigned code_word = c->code_word << shift; shift 47 libavcodec/arm/vp56_arith.h unsigned high = c->high << shift; shift 73 libavcodec/arm/vp56_arith.h "0"(shift), "1"(code_word) shift 82 libavcodec/arm/vp56_arith.h unsigned shift = ff_vp56_norm_shift[c->high]; shift 83 libavcodec/arm/vp56_arith.h unsigned code_word = c->code_word << shift; shift 84 libavcodec/arm/vp56_arith.h unsigned high = c->high << shift; shift 105 libavcodec/arm/vp56_arith.h : "r"(high), "r"(pr), "r"(c->end - 1), "0"(shift) shift 32 libavcodec/avr32/mathops.h static inline av_const int MULL(int a, int b, unsigned shift) shift 38 libavcodec/avr32/mathops.h : "=r"(x) : "r"(b), "r"(a), "i"(shift), "i"(32-shift)); shift 113 libavcodec/avrndec.c int shift = p->height - avctx->height; shift 118 libavcodec/avrndec.c p->data[0] += p->linesize[0] * shift; shift 120 libavcodec/avrndec.c p->data[1] += p->linesize[1] * (shift>>subsample_v); shift 121 libavcodec/avrndec.c p->data[2] += p->linesize[2] * (shift>>subsample_v); shift 79 libavcodec/bfi.c int shift = 16; shift 81 libavcodec/bfi.c for (j = 0; j < 3; j++, shift -= 8) shift 83 libavcodec/bfi.c (avctx->extradata[i * 3 + j] >> 4)) << shift; shift 83 libavcodec/bmvvideo.c int shift = 0; shift 104 libavcodec/bmvvideo.c if(shift>22) shift 109 libavcodec/bmvvideo.c shift += 2; shift 110 libavcodec/bmvvideo.c val |= (unsigned)*src << shift; shift 117 libavcodec/bmvvideo.c shift += 2; shift 118 libavcodec/bmvvideo.c mask = (1 << shift) - 1; shift 121 libavcodec/bmvvideo.c if ((val & (0xC << shift))) { shift 132 libavcodec/bmvvideo.c saved_val = val >> (4 + shift); shift 134 libavcodec/bmvvideo.c val &= (1 << (shift + 4)) - 1; shift 74 libavcodec/cabac_functions.h int shift= (uint32_t)(c->range - 0x100)>>31; shift 75 libavcodec/cabac_functions.h c->range<<= shift; shift 76 libavcodec/cabac_functions.h c->low <<= shift; shift 517 libavcodec/cavsdec.c int16_t *dst, int mul, int shift, int coeff_num) shift 519 libavcodec/cavsdec.c int round = 1 << (shift - 1); shift 532 libavcodec/cavsdec.c dst[scantab[pos]] = (level_buf[coeff_num] * mul + round) >> shift; shift 63 libavcodec/celp_filters.c int shift, int rounder) shift 72 libavcodec/celp_filters.c sum1 = ((-sum >> 12) + in[n]) >> shift; shift 128 libavcodec/celp_filters.h int shift, int rounder); shift 719 libavcodec/cinepakenc.c int x, y, i, j, k, x2, y2, x3, y3, plane, shift, mbn; shift 744 libavcodec/cinepakenc.c shift = y2 < 4 ? 0 : 1; shift 745 libavcodec/cinepakenc.c x3 = shift ? 0 : x2; shift 746 libavcodec/cinepakenc.c y3 = shift ? 0 : y2; shift 747 libavcodec/cinepakenc.c base[j] = (data[plane][((x + x3) >> shift) + ((y + y3) >> shift) * linesize[plane]] + shift 748 libavcodec/cinepakenc.c data[plane][((x + x3) >> shift) + 1 + ((y + y3) >> shift) * linesize[plane]] + shift 749 libavcodec/cinepakenc.c data[plane][((x + x3) >> shift) + (((y + y3) >> shift) + 1) * linesize[plane]] + shift 750 libavcodec/cinepakenc.c data[plane][((x + x3) >> shift) + 1 + (((y + y3) >> shift) + 1) * linesize[plane]]) >> 2; shift 130 libavcodec/clearvideo.c #define DCT_TEMPLATE(blk, step, bias, shift, dshift, OP) \ shift 145 libavcodec/clearvideo.c blk[0 * step] = (t6 + t5 + t8) >> shift; \ shift 146 libavcodec/clearvideo.c blk[1 * step] = (t7 + t4 + tA) >> shift; \ shift 147 libavcodec/clearvideo.c blk[2 * step] = (t7 - t4 + tB) >> shift; \ shift 148 libavcodec/clearvideo.c blk[3 * step] = (t6 - t5 + tC) >> shift; \ shift 149 libavcodec/clearvideo.c blk[4 * step] = (t6 - t5 - tC) >> shift; \ shift 150 libavcodec/clearvideo.c blk[5 * step] = (t7 - t4 - tB) >> shift; \ shift 151 libavcodec/clearvideo.c blk[6 * step] = (t7 + t4 - tA) >> shift; \ shift 152 libavcodec/clearvideo.c blk[7 * step] = (t6 + t5 - t8) >> shift; \ shift 225 libavcodec/clearvideo.c int shift = plane > 0; shift 233 libavcodec/clearvideo.c x + size > avctx->coded_width >> shift || shift 234 libavcodec/clearvideo.c y + size > avctx->coded_height >> shift || shift 235 libavcodec/clearvideo.c sx + size > avctx->coded_width >> shift || shift 236 libavcodec/clearvideo.c sy + size > avctx->coded_height >> shift) shift 261 libavcodec/clearvideo.c int shift = plane > 0; shift 273 libavcodec/clearvideo.c x + size > avctx->coded_width >> shift || shift 274 libavcodec/clearvideo.c y + size > avctx->coded_height >> shift || shift 275 libavcodec/clearvideo.c sx + size > avctx->coded_width >> shift || shift 276 libavcodec/clearvideo.c sy + size > avctx->coded_height >> shift) shift 465 libavcodec/clearvideo.c int shift = comp > 0; shift 466 libavcodec/clearvideo.c int w = buf->width >> shift; shift 467 libavcodec/clearvideo.c int h = buf->height >> shift; shift 232 libavcodec/dca_core.h int n, shift = 0; shift 236 libavcodec/dca_core.h shift = av_log2(step_scale >> 23) + 1; shift 237 libavcodec/dca_core.h step_scale >>= shift; shift 243 libavcodec/dca_core.h output[n] += clip23(norm__(input[n] * step_scale, 22 - shift)); shift 246 libavcodec/dca_core.h output[n] = clip23(norm__(input[n] * step_scale, 22 - shift)); shift 284 libavcodec/dca_lbr.c unsigned int diff, main_amp, shift; shift 346 libavcodec/dca_lbr.c shift = ff_dca_ph0_shift[(t->x_freq & 3) * 2 + (freq & 1)] shift 351 libavcodec/dca_lbr.c t->phs[ch] = 128 - phs[ch] * 32 + shift; shift 695 libavcodec/dca_xll.c int shift = c->bands[band].nscalablelsbs[ch]; shift 698 libavcodec/dca_xll.c shift = s->fixed_lsb_width; shift 699 libavcodec/dca_xll.c else if (shift && adj) shift 700 libavcodec/dca_xll.c shift += adj - 1; shift 702 libavcodec/dca_xll.c shift += adj; shift 704 libavcodec/dca_xll.c return shift; shift 713 libavcodec/dca_xll.c int shift = chs_get_lsb_width(s, c, band, ch); shift 714 libavcodec/dca_xll.c if (shift) { shift 720 libavcodec/dca_xll.c msb[n] = msb[n] * (SUINT)(1 << shift) + (lsb[n] << adj); shift 723 libavcodec/dca_xll.c msb[n] = msb[n] * (SUINT)(1 << shift); shift 1283 libavcodec/dca_xll.c int n, spkr, shift, round; shift 1297 libavcodec/dca_xll.c shift = 24 - c->pcm_bit_res + chs_get_lsb_width(s, c, 0, ch); shift 1298 libavcodec/dca_xll.c if (shift > 24) { shift 1299 libavcodec/dca_xll.c av_log(s->avctx, AV_LOG_WARNING, "Invalid core shift (%d bits)\n", shift); shift 1303 libavcodec/dca_xll.c round = shift > 0 ? 1 << (shift - 1) : 0; shift 1311 libavcodec/dca_xll.c dst[n] += (SUINT)clip23((mul16(src[n], scale_inv) + round) >> shift); shift 1315 libavcodec/dca_xll.c dst[n] += (unsigned)((src[n] + round) >> shift); shift 1329 libavcodec/dca_xll.c int i, j, k, ret, shift, nsamples, request_mask; shift 1418 libavcodec/dca_xll.c shift = 16 - p->pcm_bit_res; shift 1423 libavcodec/dca_xll.c shift = 24 - p->pcm_bit_res; shift 1449 libavcodec/dca_xll.c plane[k] = av_clip_int16(samples[k] * (SUINT)(1 << shift)); shift 1453 libavcodec/dca_xll.c plane[k] = clip23(samples[k] * (SUINT)(1 << shift)) * (1 << 8); shift 176 libavcodec/dcadct.c int i, k, mag, shift, round; shift 182 libavcodec/dcadct.c shift = mag > 0x400000 ? 2 : 0; shift 183 libavcodec/dcadct.c round = shift > 0 ? 1 << (shift - 1) : 0; shift 186 libavcodec/dcadct.c buf_a[i] = (input[i] + round) >> shift; shift 211 libavcodec/dcadct.c buf_b[i] = clip23(buf_b[i] * (1 << shift)); shift 295 libavcodec/dcadct.c int i, k, mag, shift, round; shift 301 libavcodec/dcadct.c shift = mag > 0x400000 ? 2 : 0; shift 302 libavcodec/dcadct.c round = shift > 0 ? 1 << (shift - 1) : 0; shift 305 libavcodec/dcadct.c buf_a[i] = (input[i] + round) >> shift; shift 350 libavcodec/dcadct.c buf_b[i] = clip23(buf_b[i] * (1 << shift)); shift 95 libavcodec/dirac_arith.h int shift = 14 - av_log2_16bit(c->range-1) + ((c->range-1)>>15); shift 97 libavcodec/dirac_arith.h c->low <<= shift; shift 98 libavcodec/dirac_arith.h c->range <<= shift; shift 99 libavcodec/dirac_arith.h c->counter += shift; shift 56 libavcodec/dirac_dwt_template.c int add, int shift) shift 60 libavcodec/dirac_dwt_template.c dst[2*i ] = ((int)(src0[i] + (unsigned)add)) >> shift; shift 61 libavcodec/dirac_dwt_template.c dst[2*i+1] = ((int)(src1[i] + (unsigned)add)) >> shift; shift 127 libavcodec/dirac_dwt_template.c int w, int shift) shift 137 libavcodec/dirac_dwt_template.c RENAME(interleave)(b, temp, temp+w2, w2, shift, shift); shift 1170 libavcodec/dnxhdenc.c static inline int get_bucket(int value, int shift) shift 1172 libavcodec/dnxhdenc.c value >>= shift; shift 1201 libavcodec/dnxhdenc.c int shift = pass * BUCKET_BITS; shift 1204 libavcodec/dnxhdenc.c int v = get_bucket(data[i].value, shift); shift 308 libavcodec/dpcm.c int shift[2] = { 4, 4 }; shift 319 libavcodec/dpcm.c shift[ch]++; shift 321 libavcodec/dpcm.c shift[ch] -= (2 * n); shift 325 libavcodec/dpcm.c shift[ch] = av_clip_uintp2(shift[ch], 5); shift 327 libavcodec/dpcm.c diff >>= shift[ch]; shift 55 libavcodec/dpx.c int *n_datum, int is_big, int shift) shift 66 libavcodec/dpx.c temp = *lbuf >> shift & 0x3FF; shift 73 libavcodec/dpx.c int *n_datum, int is_big, int shift) shift 82 libavcodec/dpx.c *lbuf = *lbuf << 10 | *lbuf >> shift & 0x3FFFFF; shift 406 libavcodec/dpx.c int shift = elements > 1 ? packing == 1 ? 22 : 20 : packing == 1 ? 2 : 0; shift 410 libavcodec/dpx.c &n_datum, endian, shift); shift 413 libavcodec/dpx.c &n_datum, endian, shift); shift 416 libavcodec/dpx.c &n_datum, endian, shift); shift 419 libavcodec/dpx.c &n_datum, endian, shift); shift 423 libavcodec/dpx.c &n_datum, endian, shift); shift 437 libavcodec/dpx.c int shift = packing == 1 ? 4 : 0; shift 441 libavcodec/dpx.c *dst[2]++ = read16(&buf, endian) >> shift & 0xFFF; shift 442 libavcodec/dpx.c *dst[0]++ = read16(&buf, endian) >> shift & 0xFFF; shift 444 libavcodec/dpx.c *dst[1]++ = read16(&buf, endian) >> shift & 0xFFF; shift 446 libavcodec/dpx.c *dst[3]++ = read16(&buf, endian) >> shift & 0xFFF; shift 72 libavcodec/dvaudiodec.c uint16_t shift, result; shift 75 libavcodec/dvaudiodec.c shift = (sample & 0xf00) >> 8; shift 77 libavcodec/dvaudiodec.c if (shift < 0x2 || shift > 0xd) { shift 79 libavcodec/dvaudiodec.c } else if (shift < 0x8) { shift 80 libavcodec/dvaudiodec.c shift--; shift 81 libavcodec/dvaudiodec.c result = (sample - (256 * shift)) << shift; shift 83 libavcodec/dvaudiodec.c shift = 0xe - shift; shift 84 libavcodec/dvaudiodec.c result = ((sample + ((256 * shift) + 1)) << shift) - 1; shift 861 libavcodec/exr.c unsigned short shift = (b[ 2] >> 2) & 15; shift 862 libavcodec/exr.c unsigned short bias = (0x20 << shift); shift 867 libavcodec/exr.c s[ 4] = s[ 0] + ((((b[ 2] << 4) | (b[ 3] >> 4)) & 0x3f) << shift) - bias; shift 868 libavcodec/exr.c s[ 8] = s[ 4] + ((((b[ 3] << 2) | (b[ 4] >> 6)) & 0x3f) << shift) - bias; shift 869 libavcodec/exr.c s[12] = s[ 8] + ((b[ 4] & 0x3f) << shift) - bias; shift 871 libavcodec/exr.c s[ 1] = s[ 0] + ((b[ 5] >> 2) << shift) - bias; shift 872 libavcodec/exr.c s[ 5] = s[ 4] + ((((b[ 5] << 4) | (b[ 6] >> 4)) & 0x3f) << shift) - bias; shift 873 libavcodec/exr.c s[ 9] = s[ 8] + ((((b[ 6] << 2) | (b[ 7] >> 6)) & 0x3f) << shift) - bias; shift 874 libavcodec/exr.c s[13] = s[12] + ((b[ 7] & 0x3f) << shift) - bias; shift 876 libavcodec/exr.c s[ 2] = s[ 1] + ((b[ 8] >> 2) << shift) - bias; shift 877 libavcodec/exr.c s[ 6] = s[ 5] + ((((b[ 8] << 4) | (b[ 9] >> 4)) & 0x3f) << shift) - bias; shift 878 libavcodec/exr.c s[10] = s[ 9] + ((((b[ 9] << 2) | (b[10] >> 6)) & 0x3f) << shift) - bias; shift 879 libavcodec/exr.c s[14] = s[13] + ((b[10] & 0x3f) << shift) - bias; shift 881 libavcodec/exr.c s[ 3] = s[ 2] + ((b[11] >> 2) << shift) - bias; shift 882 libavcodec/exr.c s[ 7] = s[ 6] + ((((b[11] << 4) | (b[12] >> 4)) & 0x3f) << shift) - bias; shift 883 libavcodec/exr.c s[11] = s[10] + ((((b[12] << 2) | (b[13] >> 6)) & 0x3f) << shift) - bias; shift 884 libavcodec/exr.c s[15] = s[14] + ((b[13] & 0x3f) << shift) - bias; shift 87 libavcodec/fic.c static av_always_inline void fic_idct(int16_t *blk, int step, int shift, int rnd) shift 101 libavcodec/fic.c blk[0 * step] = (int)( t4 + t9 + tB) >> shift; shift 102 libavcodec/fic.c blk[1 * step] = (int)( t6 + t7 + t8 + tA) >> shift; shift 103 libavcodec/fic.c blk[2 * step] = (int)( t6 - t7 - t8 + tA) >> shift; shift 104 libavcodec/fic.c blk[3 * step] = (int)( t5 - t9 + tB) >> shift; shift 105 libavcodec/fic.c blk[4 * step] = (int)( -t5 - t9 + tB) >> shift; shift 106 libavcodec/fic.c blk[5 * step] = (int)(-(t6 - t7) - t8 + tA) >> shift; shift 107 libavcodec/fic.c blk[6 * step] = (int)(-(t6 + t7) + t8 + tA) >> shift; shift 108 libavcodec/fic.c blk[7 * step] = (int)( -t4 + t9 + tB) >> shift; shift 28 libavcodec/flacdsp.h int len, int shift); shift 34 libavcodec/flacdsp.h const int32_t coefs[32], int shift); shift 36 libavcodec/flacdsp.h const int32_t coefs[32], int shift); shift 50 libavcodec/flacdsp_lpc_template.c const int32_t *coefs, int shift, int big) shift 103 libavcodec/flacdsp_lpc_template.c res[i ] = smp[i ] - CLIP(p0 >> shift); shift 104 libavcodec/flacdsp_lpc_template.c res[i+1] = smp[i+1] - CLIP(p1 >> shift); shift 109 libavcodec/flacdsp_lpc_template.c int order, const int32_t *coefs, int shift) shift 125 libavcodec/flacdsp_lpc_template.c res[i ] = smp[i ] - CLIP(p0 >> shift); shift 126 libavcodec/flacdsp_lpc_template.c res[i+1] = smp[i+1] - CLIP(p1 >> shift); shift 130 libavcodec/flacdsp_lpc_template.c case 1: FUNC(lpc_encode_unrolled)(res, smp, len, 1, coefs, shift, 0); break; shift 131 libavcodec/flacdsp_lpc_template.c case 2: FUNC(lpc_encode_unrolled)(res, smp, len, 2, coefs, shift, 0); break; shift 132 libavcodec/flacdsp_lpc_template.c case 3: FUNC(lpc_encode_unrolled)(res, smp, len, 3, coefs, shift, 0); break; shift 133 libavcodec/flacdsp_lpc_template.c case 4: FUNC(lpc_encode_unrolled)(res, smp, len, 4, coefs, shift, 0); break; shift 134 libavcodec/flacdsp_lpc_template.c case 5: FUNC(lpc_encode_unrolled)(res, smp, len, 5, coefs, shift, 0); break; shift 135 libavcodec/flacdsp_lpc_template.c case 6: FUNC(lpc_encode_unrolled)(res, smp, len, 6, coefs, shift, 0); break; shift 136 libavcodec/flacdsp_lpc_template.c case 7: FUNC(lpc_encode_unrolled)(res, smp, len, 7, coefs, shift, 0); break; shift 137 libavcodec/flacdsp_lpc_template.c case 8: FUNC(lpc_encode_unrolled)(res, smp, len, 8, coefs, shift, 0); break; shift 138 libavcodec/flacdsp_lpc_template.c default: FUNC(lpc_encode_unrolled)(res, smp, len, order, coefs, shift, 1); break; shift 52 libavcodec/flacdsp_template.c int channels, int len, int shift) shift 59 libavcodec/flacdsp_template.c S(samples, i, j) = (int)((unsigned)in[i][j] << shift); shift 63 libavcodec/flacdsp_template.c int channels, int len, int shift) shift 71 libavcodec/flacdsp_template.c S(samples, 0, i) = a << shift; shift 72 libavcodec/flacdsp_template.c S(samples, 1, i) = (a - b) << shift; shift 77 libavcodec/flacdsp_template.c int channels, int len, int shift) shift 85 libavcodec/flacdsp_template.c S(samples, 0, i) = (a + b) << shift; shift 86 libavcodec/flacdsp_template.c S(samples, 1, i) = b << shift; shift 91 libavcodec/flacdsp_template.c int channels, int len, int shift) shift 100 libavcodec/flacdsp_template.c S(samples, 0, i) = (a + b) << shift; shift 101 libavcodec/flacdsp_template.c S(samples, 1, i) = a << shift; shift 84 libavcodec/flacenc.c int shift; shift 519 libavcodec/flacenc.c int shift = av_get_bytes_per_sample(s->avctx->sample_fmt) * 8 - shift 527 libavcodec/flacenc.c frame->subframes[ch].samples[i] = samples0[j] >> shift; \ shift 829 libavcodec/flacenc.c int shift[MAX_LPC_ORDER]; shift 886 libavcodec/flacenc.c s->options.lpc_coeff_precision, coefs, shift, s->options.lpc_type, shift 907 libavcodec/flacenc.c shift[order]); shift 910 libavcodec/flacenc.c shift[order]); shift 926 libavcodec/flacenc.c s->flac_dsp.lpc16_encode(res, smp, n, i+1, coefs[i], shift[i]); shift 928 libavcodec/flacenc.c s->flac_dsp.lpc32_encode(res, smp, n, i+1, coefs[i], shift[i]); shift 948 libavcodec/flacenc.c s->flac_dsp.lpc32_encode(res, smp, n, i+1, coefs[i], shift[i]); shift 950 libavcodec/flacenc.c s->flac_dsp.lpc16_encode(res, smp, n, i+1, coefs[i], shift[i]); shift 989 libavcodec/flacenc.c s->flac_dsp.lpc16_encode(res, smp, n, opt_order, lpc_try, shift[opt_order-1]); shift 991 libavcodec/flacenc.c s->flac_dsp.lpc32_encode(res, smp, n, opt_order, lpc_try, shift[opt_order-1]); shift 1005 libavcodec/flacenc.c sub->shift = shift[sub->order-1]; shift 1010 libavcodec/flacenc.c s->flac_dsp.lpc16_encode(res, smp, n, sub->order, sub->coefs, sub->shift); shift 1012 libavcodec/flacenc.c s->flac_dsp.lpc32_encode(res, smp, n, sub->order, sub->coefs, sub->shift); shift 1275 libavcodec/flacenc.c put_sbits(&s->pb, 5, sub->shift); shift 139 libavcodec/g722.c const int shift = log_factor >> 11; shift 140 libavcodec/g722.c return shift < 0 ? wd1 >> -shift : wd1 << shift; shift 670 libavcodec/g723_1dec.c int i, shift, seg, seg2, t, val, val_add, x, y; shift 672 libavcodec/g723_1dec.c shift = 16 - p->cur_gain * 2; shift 673 libavcodec/g723_1dec.c if (shift > 0) { shift 676 libavcodec/g723_1dec.c } else if (shift >= 31 || (int32_t)((uint32_t)p->sid_gain << shift) >> shift != p->sid_gain) { shift 680 libavcodec/g723_1dec.c t = p->sid_gain * (1 << shift); shift 681 libavcodec/g723_1dec.c } else if(shift < -31) { shift 684 libavcodec/g723_1dec.c t = p->sid_gain >> -shift; shift 691 libavcodec/g723_1dec.c shift = 4; shift 694 libavcodec/g723_1dec.c shift = 3; shift 699 libavcodec/g723_1dec.c val = 1 << shift; shift 701 libavcodec/g723_1dec.c for (i = 0; i < shift; i++) { shift 738 libavcodec/g723_1dec.c int b0, c, delta, x, shift; shift 789 libavcodec/g723_1dec.c shift = 0; shift 791 libavcodec/g723_1dec.c shift = -10 + av_log2(t); shift 792 libavcodec/g723_1dec.c if (shift < -2) shift 793 libavcodec/g723_1dec.c shift = -2; shift 796 libavcodec/g723_1dec.c if (shift < 0) { shift 798 libavcodec/g723_1dec.c t = vector_ptr[j] * (1 << -shift); shift 804 libavcodec/g723_1dec.c t = vector_ptr[j] >> shift; shift 816 libavcodec/g723_1dec.c if (shift * 2 + 3 >= 0) shift 817 libavcodec/g723_1dec.c c >>= shift * 2 + 3; shift 819 libavcodec/g723_1dec.c c <<= -(shift * 2 + 3); shift 832 libavcodec/g723_1dec.c shift++; shift 833 libavcodec/g723_1dec.c if (shift < 0) shift 834 libavcodec/g723_1dec.c x >>= -shift; shift 836 libavcodec/g723_1dec.c x *= 1 << shift; shift 205 libavcodec/g723_1enc.c int max, shift, cur_val, prev_val, count, p; shift 233 libavcodec/g723_1enc.c shift = ff_g723_1_normalize_bits(max, 31); shift 236 libavcodec/g723_1enc.c f[i] = av_clipl_int32((int64_t) (f[i] << shift) + (1 << 15)) >> 16; shift 261 libavcodec/g723_1enc.c shift = ff_g723_1_normalize_bits(sum, 31); shift 262 libavcodec/g723_1enc.c sum <<= shift; shift 263 libavcodec/g723_1enc.c abs_prev = abs_prev << shift >> 8; shift 323 libavcodec/g723_1enc.c int shift, i; shift 343 libavcodec/g723_1enc.c shift = ff_g723_1_normalize_bits(max, 15); shift 345 libavcodec/g723_1enc.c weight[i] <<= shift; shift 120 libavcodec/g729postfilter.c int16_t shift; shift 150 libavcodec/g729postfilter.c shift = 3; shift 152 libavcodec/g729postfilter.c shift = av_log2(tmp) - 11; shift 154 libavcodec/g729postfilter.c if (shift > 0) shift 156 libavcodec/g729postfilter.c sig_scaled[i] = residual[i] >> shift; shift 159 libavcodec/g729postfilter.c sig_scaled[i] = (unsigned)residual[i] << -shift; shift 368 libavcodec/g729postfilter.c if (shift > 0) shift 370 libavcodec/g729postfilter.c selected_signal[i] *= 1 << shift; shift 373 libavcodec/g729postfilter.c selected_signal[i] >>= -shift; shift 662 libavcodec/h264_ps.c int shift = ff_h264_quant_div6[q]; shift 667 libavcodec/h264_ps.c pps->scaling_matrix8[i][x]) << shift; shift 688 libavcodec/h264_ps.c int shift = ff_h264_quant_div6[q] + 2; shift 693 libavcodec/h264_ps.c pps->scaling_matrix4[i][x]) << shift; shift 1059 libavcodec/hevc_cabac.c int qp,shift,add,scale,scale_m; shift 1121 libavcodec/hevc_cabac.c shift = s->ps.sps->bit_depth + log2_trafo_size - 5; shift 1122 libavcodec/hevc_cabac.c add = 1 << (shift-1); shift 1139 libavcodec/hevc_cabac.c shift = 0; shift 1466 libavcodec/hevc_cabac.c trans_coeff_level = (trans_coeff_level * (int64_t)scale * (int64_t)scale_m + add) >> shift; shift 109 libavcodec/hevcdsp_template.c int shift = 15 - BIT_DEPTH - log2_size; shift 113 libavcodec/hevcdsp_template.c if (shift > 0) { shift 114 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 117 libavcodec/hevcdsp_template.c *coeffs = (*coeffs + offset) >> shift; shift 124 libavcodec/hevcdsp_template.c *coeffs = *(uint16_t*)coeffs << -shift; shift 132 libavcodec/hevcdsp_template.c #define SCALE(dst, x) (dst) = av_clip_int16(((x) + add) >> shift) shift 152 libavcodec/hevcdsp_template.c int shift = 7; shift 153 libavcodec/hevcdsp_template.c int add = 1 << (shift - 1); shift 161 libavcodec/hevcdsp_template.c shift = 20 - BIT_DEPTH; shift 162 libavcodec/hevcdsp_template.c add = 1 << (shift - 1); shift 245 libavcodec/hevcdsp_template.c int shift = 7; \ shift 246 libavcodec/hevcdsp_template.c int add = 1 << (shift - 1); \ shift 257 libavcodec/hevcdsp_template.c shift = 20 - BIT_DEPTH; \ shift 258 libavcodec/hevcdsp_template.c add = 1 << (shift - 1); \ shift 269 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; \ shift 270 libavcodec/hevcdsp_template.c int add = 1 << (shift - 1); \ shift 271 libavcodec/hevcdsp_template.c int coeff = (((coeffs[0] + 1) >> 1) + add) >> shift; \ shift 307 libavcodec/hevcdsp_template.c int shift = BIT_DEPTH - 5; shift 316 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(src[x] + offset_table[src[x] >> shift]); shift 538 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 540 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 547 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((src[x] << (14 - BIT_DEPTH)) + src2[x] + offset) >> shift); shift 562 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 564 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 572 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((src[x] << (14 - BIT_DEPTH)) * wx + offset) >> shift) + ox); shift 589 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 590 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 691 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; shift 694 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 701 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + offset) >> shift); shift 719 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 721 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 728 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift); shift 745 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; shift 748 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 755 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + offset) >> shift); shift 774 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 776 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 783 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift); shift 802 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; shift 805 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 824 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((QPEL_FILTER(tmp, MAX_PB_SIZE) >> 6) + offset) >> shift); shift 842 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 844 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 863 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((QPEL_FILTER(tmp, MAX_PB_SIZE) >> 6) + src2[x] + offset) >> shift); shift 881 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 883 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 891 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((QPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox); shift 910 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 911 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 936 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 938 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 946 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((QPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox); shift 965 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 966 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 993 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 995 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1015 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((QPEL_FILTER(tmp, MAX_PB_SIZE) >> 6) * wx + offset) >> shift) + ox); shift 1034 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1035 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 1143 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; shift 1145 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1152 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + offset) >> shift); shift 1168 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1170 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1177 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift); shift 1194 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; shift 1196 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1203 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + offset) >> shift); shift 1219 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1221 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1228 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) + src2[x] + offset) >> shift); shift 1246 libavcodec/hevcdsp_template.c int shift = 14 - BIT_DEPTH; shift 1248 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1267 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((EPEL_FILTER(tmp, MAX_PB_SIZE) >> 6) + offset) >> shift); shift 1285 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1287 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1306 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel(((EPEL_FILTER(tmp, MAX_PB_SIZE) >> 6) + src2[x] + offset) >> shift); shift 1322 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 1324 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1332 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((EPEL_FILTER(src, 1) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox); shift 1350 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1351 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 1374 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 1376 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1384 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((EPEL_FILTER(src, srcstride) >> (BIT_DEPTH - 8)) * wx + offset) >> shift) + ox); shift 1402 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1403 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 1428 libavcodec/hevcdsp_template.c int shift = denom + 14 - BIT_DEPTH; shift 1430 libavcodec/hevcdsp_template.c int offset = 1 << (shift - 1); shift 1450 libavcodec/hevcdsp_template.c dst[x] = av_clip_pixel((((EPEL_FILTER(tmp, MAX_PB_SIZE) >> 6) * wx + offset) >> shift) + ox); shift 1469 libavcodec/hevcdsp_template.c int shift = 14 + 1 - BIT_DEPTH; shift 1470 libavcodec/hevcdsp_template.c int log2Wd = denom + shift - 1; shift 609 libavcodec/ilbcdec.c int length, int shift) shift 612 libavcodec/ilbcdec.c out[i] = (in[i] * win[-i]) >> shift; shift 617 libavcodec/ilbcdec.c int shift) shift 620 libavcodec/ilbcdec.c out[i] = (in[i] * win[i]) >> shift; shift 625 libavcodec/ilbcdec.c int shift) shift 628 libavcodec/ilbcdec.c out[i] = (in1[i] + in2[i]) >> shift; shift 272 libavcodec/ituh263dec.c int code, val, sign, shift; shift 281 libavcodec/ituh263dec.c shift = f_code - 1; shift 283 libavcodec/ituh263dec.c if (shift) { shift 284 libavcodec/ituh263dec.c val = (val - 1) << shift; shift 285 libavcodec/ituh263dec.c val |= get_bits(&s->gb, shift); shift 273 libavcodec/ivi_dsp.c int i, shift, sp1, sp2, sp3, sp4; shift 286 libavcodec/ivi_dsp.c shift = !(i & 4); shift 287 libavcodec/ivi_dsp.c sp1 = src[ 0] * (1 << shift); shift 288 libavcodec/ivi_dsp.c sp2 = src[ 8] * (1 << shift); shift 289 libavcodec/ivi_dsp.c sp3 = src[16] * (1 << shift); shift 290 libavcodec/ivi_dsp.c sp4 = src[24] * (1 << shift); shift 382 libavcodec/ivi_dsp.c int i, shift, sp1, sp2; shift 395 libavcodec/ivi_dsp.c shift = !(i & 2); shift 396 libavcodec/ivi_dsp.c sp1 = src[0] * (1 << shift); shift 397 libavcodec/ivi_dsp.c sp2 = src[4] * (1 << shift); shift 114 libavcodec/jpeglsdec.c int shift = 0; shift 118 libavcodec/jpeglsdec.c shift = 8 - s->avctx->bits_per_raw_sample; shift 124 libavcodec/jpeglsdec.c uint8_t k = i << shift; shift 354 libavcodec/jpeglsdec.c int off = 0, stride = 1, width, shift, ret = 0; shift 380 libavcodec/jpeglsdec.c shift = point_transform + (8 - s->bits); shift 382 libavcodec/jpeglsdec.c shift = point_transform + (16 - s->bits); shift 384 libavcodec/jpeglsdec.c if (shift >= 16) { shift 515 libavcodec/jpeglsdec.c if (shift) { /* we need to do point transform or normalize samples */ shift 525 libavcodec/jpeglsdec.c src[x] <<= shift; shift 533 libavcodec/jpeglsdec.c src[x] <<= shift; shift 68 libavcodec/lagarith.c int shift = av_log2(denom - 1) + 1; shift 71 libavcodec/lagarith.c ret <<= shift; shift 72 libavcodec/lagarith.c err <<= shift; shift 259 libavcodec/libopenjpegdec.c adjust[x] = FFMAX(FFMIN(desc->comp[x].depth - image->comps[x].prec, 8), 0) + desc->comp[x].shift; shift 296 libavcodec/libopenjpegdec.c adjust[x] = FFMAX(FFMIN(desc->comp[x].depth - image->comps[x].prec, 8), 0) + desc->comp[x].shift; shift 435 libavcodec/librav1e.c int shift = i ? desc->log2_chroma_h : 0; shift 438 libavcodec/librav1e.c (frame->height >> shift) * frame->linesize[i], shift 96 libavcodec/lpc.c int32_t *lpc_out, int *shift, int min_shift, shift 115 libavcodec/lpc.c *shift = zero_shift; shift 142 libavcodec/lpc.c *shift = sh; shift 203 libavcodec/lpc.c int32_t coefs[][MAX_LPC_ORDER], int *shift, shift 288 libavcodec/lpc.c quantize_lpc_coefs(lpc[i], i+1, precision, coefs[i], &shift[i], shift 292 libavcodec/lpc.c quantize_lpc_coefs(lpc[i], i+1, precision, coefs[i], &shift[i], shift 96 libavcodec/lpc.h int32_t coefs[][MAX_LPC_ORDER], int *shift, shift 132 libavcodec/mathops.h unsigned shift = 8 * sizeof(int) - bits; shift 133 libavcodec/mathops.h union { unsigned u; int s; } v = { (unsigned) val << shift }; shift 134 libavcodec/mathops.h return v.s >> shift; shift 66 libavcodec/mips/hevc_idct_msa.c sum0, sum1, sum2, sum3, shift) \ shift 90 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(sum0, sum1, sum2, sum3, shift); \ shift 94 libavcodec/mips/hevc_idct_msa.c #define HEVC_IDCT8x8_COL(in0, in1, in2, in3, in4, in5, in6, in7, shift) \ shift 131 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(sum0_r, sum0_l, sum3_r, sum3_l, shift); \ shift 144 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(sum1_r, sum1_l, sum2_r, sum2_l, shift); \ shift 170 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(sum0_r, sum0_l, sum3_r, sum3_l, shift); \ shift 183 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(sum1_r, sum1_l, sum2_r, sum2_l, shift); \ shift 191 libavcodec/mips/hevc_idct_msa.c src4_l, src5_l, src6_l, src7_l, shift) \ shift 245 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(res0_r, res0_l, res1_r, res1_l, shift); \ shift 253 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(res0_r, res0_l, res1_r, res1_l, shift); \ shift 278 libavcodec/mips/hevc_idct_msa.c res0, res1, res2, res3, shift) \ shift 304 libavcodec/mips/hevc_idct_msa.c SRARI_W4_SW(res0, res1, res2, res3, shift); \ shift 5922 libavcodec/mips/hevc_mc_biw_msa.c int shift = 14 + 1 - 8; \ shift 5923 libavcodec/mips/hevc_mc_biw_msa.c int log2Wd = denom + shift - 1; \ shift 5268 libavcodec/mips/hevc_mc_uniw_msa.c int shift = denom + 14 - 8; \ shift 5270 libavcodec/mips/hevc_mc_uniw_msa.c height, weight, offset, shift); \ shift 5301 libavcodec/mips/hevc_mc_uniw_msa.c int shift = denom + 14 - 8; \ shift 5305 libavcodec/mips/hevc_mc_uniw_msa.c weight, offset, shift); \ shift 5359 libavcodec/mips/hevc_mc_uniw_msa.c int shift = denom + 14 - 8; \ shift 5363 libavcodec/mips/hevc_mc_uniw_msa.c weight, offset, shift); \ shift 334 libavcodec/mips/hevcdsp_mmi.c int shift = 7; \ shift 435 libavcodec/mips/hevcdsp_mmi.c [filter]"r"(filter), [shift]"f"(shift) \ shift 468 libavcodec/mips/hevcdsp_mmi.c int shift = 7; \ shift 664 libavcodec/mips/hevcdsp_mmi.c [shift]"f"(shift) \ shift 697 libavcodec/mips/hevcdsp_mmi.c int shift = 7; \ shift 852 libavcodec/mips/hevcdsp_mmi.c [shift]"f"(shift) \ shift 880 libavcodec/mips/hevcdsp_mmi.c int shift = 7; \ shift 962 libavcodec/mips/hevcdsp_mmi.c : [dststride]"r"(dststride), [shift]"f"(shift), \ shift 994 libavcodec/mips/hevcdsp_mmi.c int shift = 6; \ shift 1171 libavcodec/mips/hevcdsp_mmi.c [shift]"f"(shift) \ shift 1658 libavcodec/mips/vc1dsp_mmi.c int rnd, int64_t shift) shift 1689 libavcodec/mips/vc1dsp_mmi.c [shift]"f"(shift), [rnd]"m"(rnd), shift 1889 libavcodec/mips/vc1dsp_mmi.c int rnd, int64_t shift) \ shift 1945 libavcodec/mips/vc1dsp_mmi.c [rnd]"m"(rnd), [shift]"f"(shift), \ shift 2068 libavcodec/mips/vc1dsp_mmi.c int64_t shift); shift 2106 libavcodec/mips/vc1dsp_mmi.c int shift = (shift_value[hmode]+shift_value[vmode])>>1; \ shift 2110 libavcodec/mips/vc1dsp_mmi.c r = (1<<(shift-1)) + rnd-1; \ shift 2111 libavcodec/mips/vc1dsp_mmi.c vc1_put_shift_ver_16bits[vmode](tmp, src-1, stride, r, shift); \ shift 325 libavcodec/mips/vc1dsp_msa.c int shift = (shift_value[hmode] + shift_value[vmode]) >> 1; shift 326 libavcodec/mips/vc1dsp_msa.c int r = (1 << (shift - 1)) + rnd - 1; shift 399 libavcodec/mips/vc1dsp_msa.c t0 >>= shift, t1 >>= shift, t2 >>= shift, t3 >>= shift; shift 400 libavcodec/mips/vc1dsp_msa.c t4 >>= shift, t5 >>= shift, t6 >>= shift, t7 >>= shift; shift 401 libavcodec/mips/vc1dsp_msa.c t8 >>= shift, t9 >>= shift, t10 >>= shift, t11 >>= shift; shift 402 libavcodec/mips/vc1dsp_msa.c t12 >>= shift, t13 >>= shift, t14 >>= shift, t15 >>= shift; shift 76 libavcodec/mlp.h uint8_t shift; ///< Right shift to apply to output of filter. shift 606 libavcodec/mlpdec.c cp->filter_params[FIR].shift = 0; shift 607 libavcodec/mlpdec.c cp->filter_params[IIR].shift = 0; shift 675 libavcodec/mlpdec.c fp->shift = get_bits(gbp, 4); shift 812 libavcodec/mlpdec.c fir->shift != iir->shift) { shift 823 libavcodec/mlpdec.c fir->shift = iir->shift; shift 937 libavcodec/mlpdec.c unsigned int filter_shift = fir->shift; shift 64 libavcodec/mlpenc.c int8_t shift[MAX_CHANNELS]; ///< Left shift to apply to decoded PCM values to get final 24-bit output. shift 243 libavcodec/mlpenc.c if (prev->shift != fp->shift) shift 306 libavcodec/mlpenc.c if (prev_mp->shift[ch] != mp->shift[ch]) { shift 349 libavcodec/mlpenc.c dst->shift = src->shift; shift 369 libavcodec/mlpenc.c dst->shift[channel] = src->shift[channel]; shift 396 libavcodec/mlpenc.c dp->matrix_params.shift[channel] = ctx->cur_decoding_params->matrix_params.shift[channel]; shift 888 libavcodec/mlpenc.c put_bits(pb, 4, fp->shift ); shift 942 libavcodec/mlpenc.c put_sbits(pb, 4, mp->shift[ch]); shift 1345 libavcodec/mlpenc.c dp->quant_step_size[channel] = number_trailing_zeroes(sample_mask[channel]) - mp->shift[channel]; shift 1355 libavcodec/mlpenc.c int bits, shift; shift 1372 libavcodec/mlpenc.c for (shift = 0; shift < 7 && bits + shift < 16 && !(coeff_mask & (1<<shift)); shift++); shift 1375 libavcodec/mlpenc.c fp->coeff_shift = shift; shift 1401 libavcodec/mlpenc.c int shift[MLP_MAX_LPC_ORDER]; shift 1412 libavcodec/mlpenc.c max_order, 11, coefs, shift, FF_LPC_TYPE_LEVINSON, 0, shift 1417 libavcodec/mlpenc.c fp->shift = shift[order-1]; shift 1504 libavcodec/mlpenc.c unsigned int shift = 0; shift 1545 libavcodec/mlpenc.c mp->shift[channel] = shift; shift 1813 libavcodec/mlpenc.c unsigned int filter_shift = fp[FIR]->shift; shift 1924 libavcodec/mlpenc.c unsigned int msb_mask_bits = (ctx->avctx->sample_fmt == AV_SAMPLE_FMT_S16 ? 8 : 0) - mp->shift[mat]; shift 571 libavcodec/motion_est.c static inline int h263_mv4_search(MpegEncContext *s, int mx, int my, int shift) shift 602 libavcodec/motion_est.c if(P_LEFT[0] > (c->xmax<<shift)) P_LEFT[0] = (c->xmax<<shift); shift 613 libavcodec/motion_est.c if(P_TOP[1] > (c->ymax<<shift)) P_TOP[1] = (c->ymax<<shift); shift 614 libavcodec/motion_est.c if(P_TOPRIGHT[0] < (c->xmin<<shift)) P_TOPRIGHT[0]= (c->xmin<<shift); shift 615 libavcodec/motion_est.c if(P_TOPRIGHT[0] > (c->xmax<<shift)) P_TOPRIGHT[0]= (c->xmax<<shift); shift 616 libavcodec/motion_est.c if(P_TOPRIGHT[1] > (c->ymax<<shift)) P_TOPRIGHT[1]= (c->ymax<<shift); shift 632 libavcodec/motion_est.c if(P[i][0] > (c->xmax<<shift)) P[i][0]= (c->xmax<<shift); shift 633 libavcodec/motion_est.c if(P[i][1] > (c->ymax<<shift)) P[i][1]= (c->ymax<<shift); shift 636 libavcodec/motion_est.c dmin4 = epzs_motion_search2(s, &mx4, &my4, P, block, block, s->p_mv_table, (1<<16)>>shift, 1); shift 894 libavcodec/motion_est.c const int shift= 1+s->quarter_sample; shift 929 libavcodec/motion_est.c if (P_LEFT[0] > (c->xmax << shift)) shift 930 libavcodec/motion_est.c P_LEFT[0] = c->xmax << shift; shift 937 libavcodec/motion_est.c if (P_TOP[1] > (c->ymax << shift)) shift 938 libavcodec/motion_est.c P_TOP[1] = c->ymax << shift; shift 939 libavcodec/motion_est.c if (P_TOPRIGHT[0] < (c->xmin * (1 << shift))) shift 940 libavcodec/motion_est.c P_TOPRIGHT[0] = c->xmin * (1 << shift); shift 941 libavcodec/motion_est.c if (P_TOPRIGHT[1] > (c->ymax * (1 << shift))) shift 942 libavcodec/motion_est.c P_TOPRIGHT[1] = c->ymax * (1 << shift); shift 958 libavcodec/motion_est.c dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, 0, s->p_mv_table, (1<<16)>>shift, 0, 16); shift 984 libavcodec/motion_est.c mx <<=shift; shift 985 libavcodec/motion_est.c my <<=shift; shift 989 libavcodec/motion_est.c if(h263_mv4_search(s, mx, my, shift) < INT_MAX) shift 1010 libavcodec/motion_est.c int dmin4= h263_mv4_search(s, mx, my, shift); shift 1067 libavcodec/motion_est.c const int shift= 1+s->quarter_sample; shift 1082 libavcodec/motion_est.c if(P_LEFT[0] < (c->xmin<<shift)) P_LEFT[0] = (c->xmin<<shift); shift 1095 libavcodec/motion_est.c if(P_TOP[1] < (c->ymin<<shift)) P_TOP[1] = (c->ymin<<shift); shift 1096 libavcodec/motion_est.c if(P_TOPRIGHT[0] > (c->xmax<<shift)) P_TOPRIGHT[0]= (c->xmax<<shift); shift 1097 libavcodec/motion_est.c if(P_TOPRIGHT[1] < (c->ymin<<shift)) P_TOPRIGHT[1]= (c->ymin<<shift); shift 1106 libavcodec/motion_est.c dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, 0, s->p_mv_table, (1<<16)>>shift, 0, 16); shift 1108 libavcodec/motion_est.c s->p_mv_table[xy][0] = mx<<shift; shift 1109 libavcodec/motion_est.c s->p_mv_table[xy][1] = my<<shift; shift 1120 libavcodec/motion_est.c const int shift= 1+s->quarter_sample; shift 1137 libavcodec/motion_est.c if (P_LEFT[0] > (c->xmax << shift)) P_LEFT[0] = (c->xmax << shift); shift 1145 libavcodec/motion_est.c if (P_TOP[1] > (c->ymax << shift)) P_TOP[1] = (c->ymax << shift); shift 1146 libavcodec/motion_est.c if (P_TOPRIGHT[0] < (c->xmin << shift)) P_TOPRIGHT[0] = (c->xmin << shift); shift 1147 libavcodec/motion_est.c if (P_TOPRIGHT[1] > (c->ymax << shift)) P_TOPRIGHT[1] = (c->ymax << shift); shift 1156 libavcodec/motion_est.c mv_scale= (s->pb_time<<16) / (s->pp_time<<shift); shift 1158 libavcodec/motion_est.c mv_scale= ((s->pb_time - s->pp_time)<<16) / (s->pp_time<<shift); shift 1257 libavcodec/motion_est.c const int shift= 1+qpel; shift 1258 libavcodec/motion_est.c const int xmin= c->xmin<<shift; shift 1259 libavcodec/motion_est.c const int ymin= c->ymin<<shift; shift 1260 libavcodec/motion_est.c const int xmax= c->xmax<<shift; shift 1261 libavcodec/motion_est.c const int ymax= c->ymax<<shift; shift 1394 libavcodec/motion_est.c const int shift= 1+s->quarter_sample; shift 1402 libavcodec/motion_est.c ymin= xmin=(-32)>>shift; shift 1403 libavcodec/motion_est.c ymax= xmax= 31>>shift; shift 1417 libavcodec/motion_est.c c->direct_basis_mv[i][0]= c->co_located_mv[i][0]*time_pb/time_pp + ((i& 1)<<(shift+3)); shift 1418 libavcodec/motion_est.c c->direct_basis_mv[i][1]= c->co_located_mv[i][1]*time_pb/time_pp + ((i>>1)<<(shift+3)); shift 1422 libavcodec/motion_est.c max= FFMAX(c->direct_basis_mv[i][0], c->direct_basis_mv[i][0] - c->co_located_mv[i][0])>>shift; shift 1423 libavcodec/motion_est.c min= FFMIN(c->direct_basis_mv[i][0], c->direct_basis_mv[i][0] - c->co_located_mv[i][0])>>shift; shift 1429 libavcodec/motion_est.c max= FFMAX(c->direct_basis_mv[i][1], c->direct_basis_mv[i][1] - c->co_located_mv[i][1])>>shift; shift 1430 libavcodec/motion_est.c min= FFMIN(c->direct_basis_mv[i][1], c->direct_basis_mv[i][1] - c->co_located_mv[i][1])>>shift; shift 1457 libavcodec/motion_est.c P_LEFT[0] = av_clip(mv_table[mot_xy - 1][0], xmin<<shift, xmax<<shift); shift 1458 libavcodec/motion_est.c P_LEFT[1] = av_clip(mv_table[mot_xy - 1][1], ymin<<shift, ymax<<shift); shift 1462 libavcodec/motion_est.c P_TOP[0] = av_clip(mv_table[mot_xy - mot_stride ][0], xmin<<shift, xmax<<shift); shift 1463 libavcodec/motion_est.c P_TOP[1] = av_clip(mv_table[mot_xy - mot_stride ][1], ymin<<shift, ymax<<shift); shift 1464 libavcodec/motion_est.c P_TOPRIGHT[0] = av_clip(mv_table[mot_xy - mot_stride + 1 ][0], xmin<<shift, xmax<<shift); shift 1465 libavcodec/motion_est.c P_TOPRIGHT[1] = av_clip(mv_table[mot_xy - mot_stride + 1 ][1], ymin<<shift, ymax<<shift); shift 1471 libavcodec/motion_est.c dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, 0, mv_table, 1<<(16-shift), 0, 16); shift 372 libavcodec/motion_est_template.c d += (mv_penalty[((x)*(1<<shift))-pred_x] + mv_penalty[((y)*(1<<shift))-pred_y])*penalty_factor;\ shift 394 libavcodec/motion_est_template.c d += (mv_penalty[(int)((unsigned)(x)<<shift)-pred_x] + mv_penalty[(int)((unsigned)(y)<<shift)-pred_y])*penalty_factor;\ shift 413 libavcodec/motion_est_template.c const int shift= 1+qpel;\ shift 660 libavcodec/motion_est_template.c d += (mv_penalty[((ax)<<shift)-pred_x] + mv_penalty[((ay)<<shift)-pred_y])*penalty_factor;\ shift 722 libavcodec/motion_est_template.c minima[j].height+= (mv_penalty[((minima[j].x)<<shift)-pred_x] + mv_penalty[((minima[j].y)<<shift)-pred_y])*penalty_factor; shift 904 libavcodec/motion_est_template.c CHECK_MV(P_LEFT[0]>>shift, P_LEFT[1]>>shift) shift 917 libavcodec/motion_est_template.c CHECK_MV( P_MEDIAN[0] >>shift , P_MEDIAN[1] >>shift) shift 918 libavcodec/motion_est_template.c CHECK_CLIPPED_MV((P_MEDIAN[0]>>shift) , (P_MEDIAN[1]>>shift)-1) shift 919 libavcodec/motion_est_template.c CHECK_CLIPPED_MV((P_MEDIAN[0]>>shift) , (P_MEDIAN[1]>>shift)+1) shift 920 libavcodec/motion_est_template.c CHECK_CLIPPED_MV((P_MEDIAN[0]>>shift)-1, (P_MEDIAN[1]>>shift) ) shift 921 libavcodec/motion_est_template.c CHECK_CLIPPED_MV((P_MEDIAN[0]>>shift)+1, (P_MEDIAN[1]>>shift) ) shift 924 libavcodec/motion_est_template.c CHECK_MV(P_LEFT[0] >>shift, P_LEFT[1] >>shift) shift 925 libavcodec/motion_est_template.c CHECK_MV(P_TOP[0] >>shift, P_TOP[1] >>shift) shift 926 libavcodec/motion_est_template.c CHECK_MV(P_TOPRIGHT[0]>>shift, P_TOPRIGHT[1]>>shift) shift 1019 libavcodec/motion_est_template.c CHECK_MV(P_LEFT[0]>>shift, P_LEFT[1]>>shift) shift 1022 libavcodec/motion_est_template.c CHECK_MV(P_MV1[0]>>shift, P_MV1[1]>>shift) shift 1024 libavcodec/motion_est_template.c CHECK_MV(P_MV1[0]>>shift, P_MV1[1]>>shift) shift 1026 libavcodec/motion_est_template.c CHECK_MV(P_MEDIAN[0]>>shift, P_MEDIAN[1]>>shift) shift 1027 libavcodec/motion_est_template.c CHECK_MV(P_LEFT[0]>>shift, P_LEFT[1]>>shift) shift 1028 libavcodec/motion_est_template.c CHECK_MV(P_TOP[0]>>shift, P_TOP[1]>>shift) shift 1029 libavcodec/motion_est_template.c CHECK_MV(P_TOPRIGHT[0]>>shift, P_TOPRIGHT[1]>>shift) shift 104 libavcodec/mpeg12dec.c int code, sign, val, shift; shift 113 libavcodec/mpeg12dec.c shift = fcode - 1; shift 115 libavcodec/mpeg12dec.c if (shift) { shift 116 libavcodec/mpeg12dec.c val = (val - 1) << shift; shift 117 libavcodec/mpeg12dec.c val |= get_bits(&s->gb, shift); shift 125 libavcodec/mpeg12dec.c return sign_extend(val, 5 + shift); shift 593 libavcodec/mpeg4videodec.c int x, y, mb_v, sum, dx, dy, shift; shift 608 libavcodec/mpeg4videodec.c shift = ctx->sprite_shift[0]; shift 610 libavcodec/mpeg4videodec.c dy -= 1 << (shift + a + 1); shift 612 libavcodec/mpeg4videodec.c dx -= 1 << (shift + a + 1); shift 622 libavcodec/mpeg4videodec.c sum += v >> shift; shift 1829 libavcodec/mpeg4videodec.c int shift = 3 - s->dct_precision; shift 1925 libavcodec/mpeg4videodec.c block[j] = ((block[j] * quant_matrix[j] * s->qscale) * (1 << shift)) / 16; shift 215 libavcodec/mpegaudiodec_template.c int shift, mod; shift 218 libavcodec/mpegaudiodec_template.c shift = scale_factor_modshift[scale_factor]; shift 219 libavcodec/mpegaudiodec_template.c mod = shift & 3; shift 220 libavcodec/mpegaudiodec_template.c shift >>= 2; shift 222 libavcodec/mpegaudiodec_template.c shift += n; shift 224 libavcodec/mpegaudiodec_template.c return (int)((val + (1LL << (shift - 1))) >> shift); shift 229 libavcodec/mpegaudiodec_template.c int shift, mod, val; shift 231 libavcodec/mpegaudiodec_template.c shift = scale_factor_modshift[scale_factor]; shift 232 libavcodec/mpegaudiodec_template.c mod = shift & 3; shift 233 libavcodec/mpegaudiodec_template.c shift >>= 2; shift 237 libavcodec/mpegaudiodec_template.c if (shift > 0) shift 238 libavcodec/mpegaudiodec_template.c val = (val + (1 << (shift - 1))) >> shift; shift 269 libavcodec/mpegaudiodec_template.c int shift, mod; shift 271 libavcodec/mpegaudiodec_template.c shift = i / 3; shift 273 libavcodec/mpegaudiodec_template.c scale_factor_modshift[i] = mod | (shift << 2); shift 789 libavcodec/mpegaudiodec_template.c int len, i, j, k, l, v0, shift, gain, gains[3]; shift 794 libavcodec/mpegaudiodec_template.c shift = g->scalefac_scale + 1; shift 799 libavcodec/mpegaudiodec_template.c v0 = gain - ((g->scale_factors[i] + pretab[i]) << shift) + 400; shift 814 libavcodec/mpegaudiodec_template.c v0 = gains[l] - (g->scale_factors[k++] << shift) + 400; shift 697 libavcodec/mpegaudioenc_template.c int q1, e, shift, mult; shift 699 libavcodec/mpegaudioenc_template.c shift = s->scale_factor_shift[e]; shift 703 libavcodec/mpegaudioenc_template.c if (shift < 0) shift 704 libavcodec/mpegaudioenc_template.c q1 = sample * (1 << -shift); shift 706 libavcodec/mpegaudioenc_template.c q1 = sample >> shift; shift 109 libavcodec/mpegutils.c const int shift = 1 + quarter_sample; shift 110 libavcodec/mpegutils.c const int scale = 1 << shift; shift 97 libavcodec/mpegvideo_enc.c int shift = 0; shift 162 libavcodec/mpegvideo_enc.c while (((max * qmat[qscale][i]) >> shift) > INT_MAX) { shift 163 libavcodec/mpegvideo_enc.c shift++; shift 167 libavcodec/mpegvideo_enc.c if (shift) { shift 170 libavcodec/mpegvideo_enc.c QMAT_SHIFT - shift); shift 651 libavcodec/mpegvideo_motion.c const int shift = s->quarter_sample ? 2 : 1; shift 652 libavcodec/mpegvideo_motion.c const int mx = (s->mv[dir][0][0] >> shift) + 16 * s->mb_x + 8; shift 653 libavcodec/mpegvideo_motion.c const int my = (s->mv[dir][0][1] >> shift) + 16 * s->mb_y; shift 48 libavcodec/mpegvideodsp.c int dxx, int dxy, int dyx, int dyy, int shift, int r, shift 52 libavcodec/mpegvideodsp.c const int s = 1 << shift; shift 69 libavcodec/mpegvideodsp.c src_x >>= shift; shift 70 libavcodec/mpegvideodsp.c src_y >>= shift; shift 80 libavcodec/mpegvideodsp.c r) >> (shift * 2); shift 86 libavcodec/mpegvideodsp.c r) >> (shift * 2); shift 94 libavcodec/mpegvideodsp.c r) >> (shift * 2); shift 25 libavcodec/mpegvideodsp.h int dxx, int dxy, int dyx, int dyy, int shift, int r, shift 40 libavcodec/mpegvideodsp.h int shift, int r, int width, int height); shift 75 libavcodec/msmpeg4dec.c int code, val, sign, shift; shift 85 libavcodec/msmpeg4dec.c shift = f_code - 1; shift 87 libavcodec/msmpeg4dec.c if (shift) { shift 88 libavcodec/msmpeg4dec.c val = (val - 1) << shift; shift 89 libavcodec/msmpeg4dec.c val |= get_bits(&s->gb, shift); shift 64 libavcodec/mss34dsp.c #define DCT_TEMPLATE(blk, step, SOP, shift) \ shift 78 libavcodec/mss34dsp.c blk[0 * step] = (int)( t1 + t6 + t9 + tB) >> shift; \ shift 79 libavcodec/mss34dsp.c blk[1 * step] = (int)( t3 + t7 + t8 + tA) >> shift; \ shift 80 libavcodec/mss34dsp.c blk[2 * step] = (int)( t2 + t6 - t8 + tA) >> shift; \ shift 81 libavcodec/mss34dsp.c blk[3 * step] = (int)( t0 + t7 - t9 + tB) >> shift; \ shift 82 libavcodec/mss34dsp.c blk[4 * step] = (int)(-(t0 + t7) - t9 + tB) >> shift; \ shift 83 libavcodec/mss34dsp.c blk[5 * step] = (int)(-(t2 + t6) - t8 + tA) >> shift; \ shift 84 libavcodec/mss34dsp.c blk[6 * step] = (int)(-(t3 + t7) + t8 + tA) >> shift; \ shift 85 libavcodec/mss34dsp.c blk[7 * step] = (int)(-(t1 + t6) + t9 + tB) >> shift; \ shift 356 libavcodec/mss4.c int vec_size, int component, int shift, int *prev) shift 362 libavcodec/mss4.c prev[component] = get_bits(gb, 8 - shift) << shift; shift 85 libavcodec/nellymoser.c static inline int signed_shift(int i, int shift) { shift 86 libavcodec/nellymoser.c if (shift > 0) shift 87 libavcodec/nellymoser.c return (unsigned)i << shift; shift 88 libavcodec/nellymoser.c return i >> -shift; shift 91 libavcodec/nellymoser.c static int sum_bits(short *buf, short shift, short off) shift 97 libavcodec/nellymoser.c b = ((b>>(shift-1))+1)>>1; shift 121 libavcodec/nellymoser.c short shift, shift_saved; shift 130 libavcodec/nellymoser.c shift = -16; shift 131 libavcodec/nellymoser.c shift += headroom(&max); shift 135 libavcodec/nellymoser.c sbuf[i] = signed_shift(buf[i], shift); shift 140 libavcodec/nellymoser.c shift += 11; shift 141 libavcodec/nellymoser.c shift_saved = shift; shift 142 libavcodec/nellymoser.c sum -= NELLY_DETAIL_BITS << shift; shift 143 libavcodec/nellymoser.c shift += headroom(&sum); shift 145 libavcodec/nellymoser.c shift = shift_saved - (NELLY_BASE_SHIFT+shift-31); shift 147 libavcodec/nellymoser.c small_off = signed_shift(small_off, shift); shift 154 libavcodec/nellymoser.c for(shift=0; FFABS(off) <= 16383; shift++) shift 158 libavcodec/nellymoser.c shift = shift_saved-(NELLY_BASE_SHIFT+shift-15); shift 160 libavcodec/nellymoser.c off = signed_shift(off, shift); shift 69 libavcodec/pcm.c #define ENCODE(type, endian, src, dst, n, shift, offset) \ shift 72 libavcodec/pcm.c register type v = (*samples_ ## type++ >> shift) + offset; \ shift 76 libavcodec/pcm.c #define ENCODE_PLANAR(type, endian, dst, n, shift, offset) \ shift 82 libavcodec/pcm.c register type v = (*samples_ ## type++ >> shift) + offset; \ shift 306 libavcodec/pcm.c #define DECODE(size, endian, src, dst, n, shift, offset) \ shift 309 libavcodec/pcm.c AV_WN ## size ## A(dst, (uint ## size ## _t)(v - offset) << shift); \ shift 313 libavcodec/pcm.c #define DECODE_PLANAR(size, endian, src, dst, n, shift, offset) \ shift 320 libavcodec/pcm.c AV_WN ## size ## A(dst, (uint ## size ##_t)(v - offset) << shift); \ shift 64 libavcodec/pictordec.c int shift = *plane * bits_per_plane; shift 65 libavcodec/pictordec.c unsigned mask = ((1U << bits_per_plane) - 1) << shift; shift 70 libavcodec/pictordec.c value <<= shift; shift 101 libavcodec/pixlet.c unsigned shift = plane > 0; shift 102 libavcodec/pixlet.c unsigned w = ctx->w >> shift; shift 103 libavcodec/pixlet.c unsigned h = ctx->h >> shift; shift 496 libavcodec/pixlet.c const unsigned shift = 16 - depth; shift 501 libavcodec/pixlet.c dstu[i] = av_clip_uintp2_c(add + srcu[i], depth) << shift; shift 502 libavcodec/pixlet.c dstv[i] = av_clip_uintp2_c(add + srcv[i], depth) << shift; shift 516 libavcodec/pixlet.c unsigned shift = plane > 0; shift 580 libavcodec/pixlet.c reconstruction(avctx, (int16_t *)frame->data[plane], ctx->w >> shift, shift 581 libavcodec/pixlet.c ctx->h >> shift, stride, ctx->scaling[plane][H], shift 64 libavcodec/png.c int shift, xmin, pass_width; shift 69 libavcodec/png.c shift = ff_png_pass_xshift[pass]; shift 70 libavcodec/png.c pass_width = (width - xmin + (1 << shift) - 1) >> shift; shift 45 libavcodec/ppc/hevcdsp.c vec_s32 res[4], const int shift, shift 61 libavcodec/ppc/hevcdsp.c switch(shift) { shift 78 libavcodec/ppc/hevcdsp.c const int shift) shift 83 libavcodec/ppc/hevcdsp.c switch(shift) { shift 23 libavcodec/ppc/hevcdsp_template.c const int shift = 7; shift 32 libavcodec/ppc/hevcdsp_template.c transform4x4(src_01, src_23, res, shift, coeffs); shift 35 libavcodec/ppc/hevcdsp_template.c scale(res, res_packed, shift); shift 95 libavcodec/ppc/idctdsp.c vec_u16 shift = vec_splat_u16(4); \ shift 97 libavcodec/ppc/idctdsp.c vec_s16 vx0 = vec_mradds(vec_sl(block[0], shift), constants[1], zero); \ shift 98 libavcodec/ppc/idctdsp.c vec_s16 vx1 = vec_mradds(vec_sl(block[1], shift), constants[2], zero); \ shift 99 libavcodec/ppc/idctdsp.c vec_s16 vx2 = vec_mradds(vec_sl(block[2], shift), constants[3], zero); \ shift 100 libavcodec/ppc/idctdsp.c vec_s16 vx3 = vec_mradds(vec_sl(block[3], shift), constants[4], zero); \ shift 101 libavcodec/ppc/idctdsp.c vec_s16 vx4 = vec_mradds(vec_sl(block[4], shift), constants[1], zero); \ shift 102 libavcodec/ppc/idctdsp.c vec_s16 vx5 = vec_mradds(vec_sl(block[5], shift), constants[4], zero); \ shift 103 libavcodec/ppc/idctdsp.c vec_s16 vx6 = vec_mradds(vec_sl(block[6], shift), constants[3], zero); \ shift 104 libavcodec/ppc/idctdsp.c vec_s16 vx7 = vec_mradds(vec_sl(block[7], shift), constants[2], zero); \ shift 137 libavcodec/ppc/idctdsp.c shift = vec_splat_u16(6); \ shift 138 libavcodec/ppc/idctdsp.c vx0 = vec_sra(vy0, shift); \ shift 139 libavcodec/ppc/idctdsp.c vx1 = vec_sra(vy1, shift); \ shift 140 libavcodec/ppc/idctdsp.c vx2 = vec_sra(vy2, shift); \ shift 141 libavcodec/ppc/idctdsp.c vx3 = vec_sra(vy3, shift); \ shift 142 libavcodec/ppc/idctdsp.c vx4 = vec_sra(vy4, shift); \ shift 143 libavcodec/ppc/idctdsp.c vx5 = vec_sra(vy5, shift); \ shift 144 libavcodec/ppc/idctdsp.c vx6 = vec_sra(vy6, shift); \ shift 145 libavcodec/ppc/idctdsp.c vx7 = vec_sra(vy7, shift) shift 282 libavcodec/prosumer.c static void fill_elements(uint32_t idx, uint32_t shift, uint32_t *e0, uint32_t *e1) shift 284 libavcodec/prosumer.c uint32_t b, h = idx << (32 - shift); shift 289 libavcodec/prosumer.c if (shift >= b && ((h & (0xFFF00000u << (12 - b))) >> 20) == table[2 * i + 1]) { shift 293 libavcodec/prosumer.c *e0 = (*e0 & 0xFFFFFFu) | (((12 + b - shift) | (0x40u<<j)) << 22); shift 296 libavcodec/prosumer.c shift -= b; shift 185 libavcodec/pthread_slice.c void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift) shift 195 libavcodec/pthread_slice.c while ((entries[field - 1] - entries[field]) < shift){ shift 439 libavcodec/ra144enc.c int shift[LPC_ORDER]; shift 477 libavcodec/ra144enc.c LPC_ORDER, 16, lpc_coefs, shift, FF_LPC_TYPE_LEVINSON, shift 481 libavcodec/ra144enc.c * (1 << (12 - shift[LPC_ORDER - 1])); shift 162 libavcodec/sbcdec.c uint32_t shift; shift 169 libavcodec/sbcdec.c shift = frame->scale_factor[ch][sb] + shift 184 libavcodec/sbcdec.c (((((uint64_t) audio_sample << 1) | 1) << shift) / shift 185 libavcodec/sbcdec.c levels[ch][sb]) - (1 << shift); shift 277 libavcodec/sbrdsp_fixed.c int shift, round; shift 279 libavcodec/sbrdsp_fixed.c shift = 22 - s_m[m].exp; shift 280 libavcodec/sbrdsp_fixed.c if (shift < 1) { shift 281 libavcodec/sbrdsp_fixed.c av_log(NULL, AV_LOG_ERROR, "Overflow in sbr_hf_apply_noise, shift=%d\n", shift); shift 283 libavcodec/sbrdsp_fixed.c } else if (shift < 30) { shift 284 libavcodec/sbrdsp_fixed.c round = 1 << (shift-1); shift 285 libavcodec/sbrdsp_fixed.c y0 += (s_m[m].mant * phi_sign0 + round) >> shift; shift 286 libavcodec/sbrdsp_fixed.c y1 += (s_m[m].mant * phi_sign1 + round) >> shift; shift 289 libavcodec/sbrdsp_fixed.c int shift, round, tmp; shift 292 libavcodec/sbrdsp_fixed.c shift = 22 - q_filt[m].exp; shift 293 libavcodec/sbrdsp_fixed.c if (shift < 1) { shift 294 libavcodec/sbrdsp_fixed.c av_log(NULL, AV_LOG_ERROR, "Overflow in sbr_hf_apply_noise, shift=%d\n", shift); shift 296 libavcodec/sbrdsp_fixed.c } else if (shift < 30) { shift 297 libavcodec/sbrdsp_fixed.c round = 1 << (shift-1); shift 301 libavcodec/sbrdsp_fixed.c y0 += (tmp + round) >> shift; shift 305 libavcodec/sbrdsp_fixed.c y1 += (tmp + round) >> shift; shift 37 libavcodec/snappy.c int shift = 0; shift 42 libavcodec/snappy.c if (shift > 31 || ((tmp & 127LL) << shift) > INT_MAX) shift 44 libavcodec/snappy.c val |= (tmp & 127) << shift; shift 45 libavcodec/snappy.c shift += 7; shift 218 libavcodec/snow.h static av_always_inline void snow_horizontal_compose_lift_lead_out(int i, IDWTELEM * dst, IDWTELEM * src, IDWTELEM * ref, int width, int w, int lift_high, int mul, int add, int shift){ shift 220 libavcodec/snow.h dst[i] = src[i] - ((mul * (ref[i] + ref[i + 1]) + add) >> shift); shift 224 libavcodec/snow.h dst[w] = src[w] - ((mul * 2 * ref[w] + add) >> shift); shift 117 libavcodec/snow_dwt.c int width, int mul, int add, int shift, shift 127 libavcodec/snow_dwt.c dst[0] = LIFT(src[0], ((mul * 2 * ref[0] + add) >> shift), inverse); shift 136 libavcodec/snow_dwt.c add) >> shift), shift 141 libavcodec/snow_dwt.c ((mul * 2 * ref[w * ref_step] + add) >> shift), shift 147 libavcodec/snow_dwt.c int width, int mul, int add, int shift, shift 155 libavcodec/snow_dwt.c av_assert1(shift == 4); shift 157 libavcodec/snow_dwt.c ((inv) ? (src) + (((ref) + 4 * (src)) >> shift) \ shift 265 libavcodec/snowenc.c const int shift= 1+qpel; shift 313 libavcodec/snowenc.c if(P_LEFT[0] > (c->xmax<<shift)) P_LEFT[0] = (c->xmax<<shift); shift 314 libavcodec/snowenc.c if(P_LEFT[1] > (c->ymax<<shift)) P_LEFT[1] = (c->ymax<<shift); shift 315 libavcodec/snowenc.c if(P_TOP[0] > (c->xmax<<shift)) P_TOP[0] = (c->xmax<<shift); shift 316 libavcodec/snowenc.c if(P_TOP[1] > (c->ymax<<shift)) P_TOP[1] = (c->ymax<<shift); shift 317 libavcodec/snowenc.c if(P_TOPRIGHT[0] < (c->xmin * (1<<shift))) P_TOPRIGHT[0]= (c->xmin * (1<<shift)); shift 318 libavcodec/snowenc.c if(P_TOPRIGHT[0] > (c->xmax<<shift)) P_TOPRIGHT[0]= (c->xmax<<shift); //due to pmx no clip shift 319 libavcodec/snowenc.c if(P_TOPRIGHT[1] > (c->ymax<<shift)) P_TOPRIGHT[1]= (c->ymax<<shift); shift 338 libavcodec/snowenc.c (1<<16)>>shift, level-LOG2_MB_SIZE+4, block_w); shift 754 libavcodec/sonic.c s->int_samples[i+1] -= shift(s->int_samples[i], 1); shift 1061 libavcodec/sonic.c s->int_samples[i+1] += shift(s->int_samples[i], 1); shift 1077 libavcodec/sonic.c s->int_samples[i] = shift(s->int_samples[i], SAMPLE_SHIFT); shift 1120 libavcodec/svq3.c int shift = ff_h264_quant_div6[q] + 2; shift 1124 libavcodec/svq3.c ((uint32_t)ff_h264_dequant4_coeff_init[idx][(x & 1) + ((x >> 2) & 1)] * 16) << shift; shift 168 libavcodec/takdec.c int shift; shift 171 libavcodec/takdec.c shift = 3; shift 173 libavcodec/takdec.c shift = 2; shift 175 libavcodec/takdec.c shift = 1; shift 177 libavcodec/takdec.c shift = 0; shift 179 libavcodec/takdec.c s->uval = FFALIGN(avctx->sample_rate + 511LL >> 9, 4) << shift; shift 142 libavcodec/thread.h void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift); shift 317 libavcodec/tiff.c uint8_t shift = is_dng ? 0 : 16 - bpp; shift 322 libavcodec/tiff.c dst16[i] = get_bits(&gb, bpp) << shift; shift 318 libavcodec/tta.c filter->shift, filter->round); shift 48 libavcodec/ttadata.c void ff_tta_filter_init(TTAFilter *c, int32_t shift) { shift 50 libavcodec/ttadata.c c->shift = shift; shift 51 libavcodec/ttadata.c c->round = ff_tta_shift_1[shift-1]; shift 28 libavcodec/ttadata.h int32_t shift, round, error; shift 49 libavcodec/ttadata.h void ff_tta_filter_init(TTAFilter *c, int32_t shift); shift 24 libavcodec/ttadsp.c int32_t *error, int32_t *in, int32_t shift, shift 48 libavcodec/ttadsp.c *in += (round >> shift); shift 26 libavcodec/ttadsp.h int32_t *error, int32_t *in, int32_t shift, shift 132 libavcodec/ttaenc.c filter->shift, filter->round); shift 24 libavcodec/ttaencdsp.c int32_t *error, int32_t *in, int32_t shift, shift 49 libavcodec/ttaencdsp.c *in -= (round >> shift); shift 26 libavcodec/ttaencdsp.h int32_t *error, int32_t *in, int32_t shift, shift 598 libavcodec/twinvq.c int shift; shift 604 libavcodec/twinvq.c shift = 0; shift 606 libavcodec/twinvq.c shift = i; shift 608 libavcodec/twinvq.c shift = i * i; shift 611 libavcodec/twinvq.c tab[i * num_vect + j] = i * num_vect + (j + shift) % num_vect; shift 1907 libavcodec/utils.c void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift) shift 570 libavcodec/vc1.c int scale, shift, i; \ shift 573 libavcodec/vc1.c shift = (255 - lumshift * 2) * 64; \ shift 575 libavcodec/vc1.c shift += 128 << 6; \ shift 579 libavcodec/vc1.c shift = (lumshift - 64) * 64; \ shift 581 libavcodec/vc1.c shift = lumshift << 6; \ shift 586 libavcodec/vc1.c luty[i] = av_clip_uint8((scale * iy + shift + 32) >> 6); \ shift 605 libavcodec/vc1dsp.c int shift = (shift_value[hmode] + shift_value[vmode]) >> 1; \ shift 608 libavcodec/vc1dsp.c r = (1 << (shift - 1)) + rnd - 1; \ shift 613 libavcodec/vc1dsp.c tptr[i] = (vc1_mspel_ver_filter_16bits(src + i, stride, vmode) + r) >> shift; \ shift 663 libavcodec/vc1dsp.c int shift = (shift_value[hmode] + shift_value[vmode]) >> 1; \ shift 666 libavcodec/vc1dsp.c r = (1 << (shift - 1)) + rnd - 1; \ shift 671 libavcodec/vc1dsp.c tptr[i] = (vc1_mspel_ver_filter_16bits(src + i, stride, vmode) + r) >> shift; \ shift 524 libavcodec/vc2enc.c #define QUANT(c, mul, add, shift) (((mul) * (c) + (add)) >> (shift)) shift 1025 libavcodec/vc2enc.c int i, level, o, shift, ret; shift 1146 libavcodec/vc2enc.c shift = (o > 1)*b->height*b->stride + (o & 1)*b->width; shift 1147 libavcodec/vc2enc.c b->buf = p->coef_buf + shift; shift 246 libavcodec/vp56.h int shift = ff_vp56_norm_shift[c->high]; shift 250 libavcodec/vp56.h c->high <<= shift; shift 251 libavcodec/vp56.h code_word <<= shift; shift 252 libavcodec/vp56.h bits += shift; shift 81 libavcodec/wavpack.c int and, or, shift; shift 319 libavcodec/wavpack.c bit = ((S + bit) << s->shift) - bit; shift 357 libavcodec/wavpack.c int shift = 23 - av_log2(S); shift 359 libavcodec/wavpack.c if (exp <= shift) shift 360 libavcodec/wavpack.c shift = --exp; shift 361 libavcodec/wavpack.c exp -= shift; shift 363 libavcodec/wavpack.c if (shift) { shift 364 libavcodec/wavpack.c S <<= shift; shift 369 libavcodec/wavpack.c S |= (1 << shift) - 1; shift 372 libavcodec/wavpack.c S |= get_bits(&s->gb_extra_bits, shift); shift 1112 libavcodec/wavpack.c s->and = s->or = s->shift = 0; shift 1309 libavcodec/wavpack.c s->shift = val[1]; shift 1312 libavcodec/wavpack.c s->shift = val[2]; shift 1315 libavcodec/wavpack.c s->shift = val[3]; shift 1317 libavcodec/wavpack.c if (s->shift > 31) { shift 1319 libavcodec/wavpack.c "Invalid INT32INFO, shift = %d (> 31)\n", s->shift); shift 1320 libavcodec/wavpack.c s->and = s->or = s->shift = 0; shift 1325 libavcodec/wavpack.c if (s->hybrid && bpp == 4 && s->post_shift < 8 && s->shift > 8) { shift 1327 libavcodec/wavpack.c s->shift -= 8; shift 118 libavcodec/wavpackenc.c int num_terms, shift, joint_stereo, false_stereo; shift 195 libavcodec/wavpackenc.c static void shift_mono(int32_t *samples, int nb_samples, int shift) shift 199 libavcodec/wavpackenc.c samples[i] >>= shift; shift 203 libavcodec/wavpackenc.c int nb_samples, int shift) shift 207 libavcodec/wavpackenc.c left [i] >>= shift; shift 208 libavcodec/wavpackenc.c right[i] >>= shift; shift 2507 libavcodec/wavpackenc.c int shift = (s->flags & SHIFT_MASK) >> SHIFT_LSB; shift 2511 libavcodec/wavpackenc.c shift_mono(samples_l, nb_samples, shift); shift 2513 libavcodec/wavpackenc.c shift_stereo(samples_l, samples_r, nb_samples, shift); shift 2515 libavcodec/wavpackenc.c if ((mag -= shift) < 0) shift 2518 libavcodec/wavpackenc.c s->flags -= (1 << MAG_LSB) * shift; shift 2536 libavcodec/wavpackenc.c if (s->shift != s->int32_zeros + s->int32_ones + s->int32_dups) { shift 2537 libavcodec/wavpackenc.c s->shift = s->int32_zeros + s->int32_ones + s->int32_dups; shift 2816 libavcodec/wavpackenc.c #define COPY_SAMPLES(type, offset, shift) do { \ shift 2819 libavcodec/wavpackenc.c dst[i] = (sptr[i] - offset) >> shift; \ shift 34 libavcodec/wnv1.c int shift; shift 53 libavcodec/wnv1.c return ff_reverse[get_bits(&w->gb, 8 - w->shift)]; shift 55 libavcodec/wnv1.c return base_value + ((v - 7U) << w->shift); shift 96 libavcodec/wnv1.c l->shift = 2; shift 98 libavcodec/wnv1.c l->shift = 8 - (buf[2] >> 4); shift 99 libavcodec/wnv1.c if (l->shift > 4) { shift 103 libavcodec/wnv1.c l->shift = 4; shift 105 libavcodec/wnv1.c if (l->shift < 1) { shift 109 libavcodec/wnv1.c l->shift = 1; shift 38 libavcodec/x86/ac3dsp_init.c void ff_ac3_lshift_int16_mmx (int16_t *src, unsigned int len, unsigned int shift); shift 39 libavcodec/x86/ac3dsp_init.c void ff_ac3_lshift_int16_sse2(int16_t *src, unsigned int len, unsigned int shift); shift 41 libavcodec/x86/ac3dsp_init.c void ff_ac3_rshift_int32_mmx (int32_t *src, unsigned int len, unsigned int shift); shift 42 libavcodec/x86/ac3dsp_init.c void ff_ac3_rshift_int32_sse2(int32_t *src, unsigned int len, unsigned int shift); shift 34 libavcodec/x86/flacdsp_init.c int len, int shift); \ shift 36 libavcodec/x86/flacdsp_init.c int len, int shift); \ shift 38 libavcodec/x86/flacdsp_init.c int len, int shift); \ shift 40 libavcodec/x86/flacdsp_init.c int len, int shift); \ shift 42 libavcodec/x86/flacdsp_init.c int len, int shift); \ shift 44 libavcodec/x86/flacdsp_init.c int len, int shift); \ shift 46 libavcodec/x86/flacdsp_init.c int len, int shift) shift 35 libavcodec/x86/mathops.h static av_always_inline av_const int MULL(int a, int b, unsigned shift) shift 42 libavcodec/x86/mathops.h :"a"(a), "rm"(b), "ci"((uint8_t)shift) shift 31 libavcodec/x86/mpegvideodsp.c int shift, int r, int width, int height) shift 34 libavcodec/x86/mpegvideodsp.c const int ix = ox >> (16 + shift); shift 35 libavcodec/x86/mpegvideodsp.c const int iy = oy >> (16 + shift); shift 45 libavcodec/x86/mpegvideodsp.c const uint64_t shift2 = 2 * shift; shift 51 libavcodec/x86/mpegvideodsp.c const int dxw = (dxx - (1 << (16 + shift))) * (w - 1); shift 52 libavcodec/x86/mpegvideodsp.c const int dyh = (dyy - (1 << (16 + shift))) * (h - 1); shift 61 libavcodec/x86/mpegvideodsp.c (oy ^ (oy + dyw)) | (oy ^ (oy + dyh)) | (oy ^ (oy + dyw + dyh))) >> (16 + shift) || shift 67 libavcodec/x86/mpegvideodsp.c shift, r, width, height); shift 82 libavcodec/x86/mpegvideodsp.c :: "r" (1 << shift)); shift 26 libavcodec/x86/ttadsp_init.c int32_t *error, int32_t *in, int32_t shift, shift 29 libavcodec/x86/ttadsp_init.c int32_t *error, int32_t *in, int32_t shift, shift 26 libavcodec/x86/ttaencdsp_init.c int32_t *error, int32_t *in, int32_t shift, shift 29 libavcodec/x86/ttaencdsp_init.c int32_t *error, int32_t *in, int32_t shift, shift 40 libavcodec/x86/vc1dsp_mmx.c int rnd, int64_t shift); shift 189 libavcodec/x86/vc1dsp_mmx.c int rnd, int64_t shift) \ shift 229 libavcodec/x86/vc1dsp_mmx.c "m"(rnd), "m"(shift) \ shift 323 libavcodec/x86/vc1dsp_mmx.c typedef void (*vc1_mspel_mc_filter_ver_16bits)(int16_t *dst, const uint8_t *src, x86_reg src_stride, int rnd, int64_t shift); shift 357 libavcodec/x86/vc1dsp_mmx.c int shift = (shift_value[hmode]+shift_value[vmode])>>1;\ shift 361 libavcodec/x86/vc1dsp_mmx.c r = (1<<(shift-1)) + rnd-1;\ shift 362 libavcodec/x86/vc1dsp_mmx.c vc1_put_shift_ver_16bits[vmode](tmp, src-1, stride, r, shift);\ shift 283 libavdevice/decklink_dec.cpp int shift = -1; shift 285 libavdevice/decklink_dec.cpp shift = line - 6; shift 287 libavdevice/decklink_dec.cpp shift = line - 318 + 17; shift 288 libavdevice/decklink_dec.cpp return shift >= 0 && ((1ULL << shift) & mask); shift 713 libavdevice/opengl_enc.c int shift; shift 728 libavdevice/opengl_enc.c shift = (desc->comp[i].depth - 1) >> 3; \ shift 729 libavdevice/opengl_enc.c opengl->color_map[(i << 2) + (desc->comp[i].offset >> shift)] = 1.0; \ shift 617 libavfilter/af_arnndn.c int shift; shift 633 libavfilter/af_arnndn.c shift = 0; shift 644 libavfilter/af_arnndn.c return shift; shift 96 libavfilter/af_volumedetect.c int i, max_volume, shift; shift 110 libavfilter/af_volumedetect.c shift = av_log2(nb_samples >> 33); shift 112 libavfilter/af_volumedetect.c nb_samples_shift += vd->histogram[i] >> shift; shift 113 libavfilter/af_volumedetect.c power += (i - 0x8000) * (i - 0x8000) * (vd->histogram[i] >> shift); shift 265 libavfilter/drawutils.c (draw->desc->comp[compn].depth + draw->desc->comp[compn].shift - 8) shift 527 libavfilter/drawutils.c unsigned w, unsigned h, unsigned shift, unsigned xm0) shift 545 libavfilter/drawutils.c alpha = (t >> shift) * alpha; shift 551 libavfilter/drawutils.c unsigned w, unsigned h, unsigned shift, unsigned xm0) shift 568 libavfilter/drawutils.c alpha = (t >> shift) * alpha; shift 722 libavfilter/drawutils.c unsigned shift = sub_dir ? draw->vsub_max : draw->hsub_max; shift 724 libavfilter/drawutils.c if (!shift) shift 727 libavfilter/drawutils.c value += round_dir ? (1 << shift) - 1 : 1 << (shift - 1); shift 728 libavfilter/drawutils.c return (value >> shift) << shift; shift 41 libavfilter/maskedmerge.h int half, int shift); shift 42 libavfilter/vf_deband.c int shift[2]; shift 379 libavfilter/vf_deband.c s->shift[0] = desc->log2_chroma_w; shift 380 libavfilter/vf_deband.c s->shift[1] = desc->log2_chroma_h; shift 214 libavfilter/vf_deshake.c static double block_angle(int x, int y, int cx, int cy, IntMotionVector *shift) shift 219 libavfilter/vf_deshake.c a2 = atan2(y - cy + shift->y, x - cx + shift->x); shift 150 libavfilter/vf_maskedmerge.c int half, int shift) shift 171 libavfilter/vf_maskedmerge.c int half, int shift) shift 181 libavfilter/vf_maskedmerge.c dst[x] = bsrc[x] + ((msrc[x] * (osrc[x] - bsrc[x]) + half) >> shift); shift 166 libavfilter/vf_noise.c int len, int shift) shift 170 libavfilter/vf_noise.c noise += shift; shift 179 libavfilter/vf_noise.c int len, const int8_t * const *shift) shift 185 libavfilter/vf_noise.c const int n = shift[0][i] + shift[1][i] + shift[2][i]; shift 210 libavfilter/vf_noise.c int shift = p->rand_shift[ix]; shift 214 libavfilter/vf_noise.c p->prev_shift[ix][shift & 3] = noise + shift; shift 216 libavfilter/vf_noise.c n->line_noise(dst + x, src + x, noise, w, shift); shift 55 libavfilter/vf_noise.h void (*line_noise)(uint8_t *dst, const uint8_t *src, const int8_t *noise, int len, int shift); shift 56 libavfilter/vf_noise.h void (*line_noise_avg)(uint8_t *dst, const uint8_t *src, int len, const int8_t * const *shift); shift 59 libavfilter/vf_noise.h void ff_line_noise_c(uint8_t *dst, const uint8_t *src, const int8_t *noise, int len, int shift); shift 60 libavfilter/vf_noise.h void ff_line_noise_avg_c(uint8_t *dst, const uint8_t *src, int len, const int8_t * const *shift); shift 161 libavfilter/vf_paletteuse.c static av_always_inline int dither_color(uint32_t px, int er, int eg, int eb, int scale, int shift) shift 164 libavfilter/vf_paletteuse.c | av_clip_uint8((px >> 16 & 0xff) + ((er * scale) / (1<<shift))) << 16 shift 165 libavfilter/vf_paletteuse.c | av_clip_uint8((px >> 8 & 0xff) + ((eg * scale) / (1<<shift))) << 8 shift 166 libavfilter/vf_paletteuse.c | av_clip_uint8((px & 0xff) + ((eb * scale) / (1<<shift))); shift 51 libavfilter/vf_premultiply.c int half, int shift, int offset); shift 97 libavfilter/vf_premultiply.c int half, int shift, int offset) shift 117 libavfilter/vf_premultiply.c int half, int shift, int offset) shift 137 libavfilter/vf_premultiply.c int half, int shift, int offset) shift 157 libavfilter/vf_premultiply.c int half, int shift, int offset) shift 166 libavfilter/vf_premultiply.c dst[x] = ((msrc[x] * (((asrc[x] >> 1) & 1) + asrc[x])) + half) >> shift; shift 180 libavfilter/vf_premultiply.c int half, int shift, int offset) shift 189 libavfilter/vf_premultiply.c dst[x] = ((((msrc[x] - half) * (int64_t)(((asrc[x] >> 1) & 1) + asrc[x]))) >> shift) + half; shift 203 libavfilter/vf_premultiply.c int half, int shift, int offset) shift 212 libavfilter/vf_premultiply.c dst[x] = ((((msrc[x] - offset) * (int64_t)(((asrc[x] >> 1) & 1) + asrc[x])) + half) >> shift) + offset; shift 80 libavfilter/vf_swapuv.c desc->comp[i].shift != 0 || shift 358 libavfilter/vf_vaguedenoiser.c const float shift = threshold * 0.01f * percent; shift 367 libavfilter/vf_vaguedenoiser.c block[x] = (block[x] < 0.f ? -1.f : (block[x] > 0.f ? 1.f : 0.f)) * (temp - shift); shift 146 libavfilter/vf_yadif_cuda.c pixel_size = (comp->depth + comp->shift) / 8; shift 31 libavfilter/x86/vf_maskedmerge_init.c int half, int shift); shift 29 libavfilter/x86/vf_noise.c const int8_t *noise, int len, int shift) shift 32 libavfilter/x86/vf_noise.c noise += shift; shift 58 libavfilter/x86/vf_noise.c int len, const int8_t * const *shift) shift 88 libavfilter/x86/vf_noise.c :: "r" (src+mmx_len), "r" (shift[0]+mmx_len), "r" (shift[1]+mmx_len), "r" (shift[2]+mmx_len), shift 94 libavfilter/x86/vf_noise.c const int8_t *shift2[3] = { shift[0]+mmx_len, shift[1]+mmx_len, shift[2]+mmx_len }; shift 101 libavfilter/x86/vf_noise.c const int8_t *noise, int len, int shift) shift 104 libavfilter/x86/vf_noise.c noise += shift; shift 57 libavformat/dv.c uint16_t shift, result; shift 60 libavformat/dv.c shift = (sample & 0xf00) >> 8; shift 62 libavformat/dv.c if (shift < 0x2 || shift > 0xd) { shift 64 libavformat/dv.c } else if (shift < 0x8) { shift 65 libavformat/dv.c shift--; shift 66 libavformat/dv.c result = (sample - (256 * shift)) << shift; shift 68 libavformat/dv.c shift = 0xe - shift; shift 69 libavformat/dv.c result = ((sample + ((256 * shift) + 1)) << shift) - 1; shift 36 libavformat/h261dec.c int shift = av_log2_16bit(p->buf[i+1]); shift 37 libavformat/h261dec.c uint32_t code = AV_RB64(&p->buf[FFMAX(i-1, 0)]) >> (24+shift); shift 38 libavformat/jacosubdec.c int shift; shift 128 libavformat/jacosubdec.c ts_start64 = (ts_start + jacosub->shift) * 100LL / jacosub->timeres; shift 129 libavformat/jacosubdec.c ts_end64 = (ts_end + jacosub->shift) * 100LL / jacosub->timeres; shift 220 libavformat/jacosubdec.c jacosub->shift = get_shift(jacosub->timeres, p); shift 1131 libavformat/utils.c uint64_t shift; shift 1142 libavformat/utils.c shift = (uint64_t)st->first_dts - RELATIVE_TS_BASE; shift 1145 libavformat/utils.c pts += shift; shift 1151 libavformat/utils.c pktl_it->pkt.pts += shift; shift 1154 libavformat/utils.c pktl_it->pkt.dts += shift; shift 154 libavformat/vapoursynth.c c->offset != 0 || c->shift != 0 || shift 585 libavformat/wtvenc.c static void write_fat(AVIOContext *pb, int start_sector, int nb_sectors, int shift) shift 589 libavformat/wtvenc.c avio_wl32(pb, start_sector + (i << shift)); shift 598 libavformat/wtvenc.c int shift = sector_bits - WTV_SECTOR_BITS; shift 601 libavformat/wtvenc.c write_fat(s->pb, start_sector, nb_sectors, shift); shift 102 libavutil/colorspace.h #define RGB_TO_U_CCIR(r1, g1, b1, shift)\ shift 104 libavutil/colorspace.h FIX(0.50000*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) shift 106 libavutil/colorspace.h #define RGB_TO_V_CCIR(r1, g1, b1, shift)\ shift 108 libavutil/colorspace.h FIX(0.08131*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) shift 130 libavutil/colorspace.h #define RGB_TO_U_BT709(r1, g1, b1, shift)\ shift 132 libavutil/colorspace.h FIX(0.50000*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) shift 134 libavutil/colorspace.h #define RGB_TO_V_BT709(r1, g1, b1, shift)\ shift 136 libavutil/colorspace.h FIX(0.04585*224.0/255.0) * b1 + (ONE_HALF << shift) - 1) >> (SCALEBITS + shift)) + 128) shift 482 libavutil/common.h int bytes, shift;\ shift 489 libavutil/common.h shift = (bytes - 1) * 6;\ shift 490 libavutil/common.h tmp = (256 - (256 >> bytes)) | (in >> shift);\ shift 492 libavutil/common.h while (shift >= 6) {\ shift 493 libavutil/common.h shift -= 6;\ shift 494 libavutil/common.h tmp = 0x80 | ((in >> shift) & 0x3f);\ shift 1407 libavutil/hwcontext_opencl.c if (comp->shift + comp->depth != 8 && shift 1408 libavutil/hwcontext_opencl.c comp->shift + comp->depth != 16) shift 476 libavutil/imgutils.c int h, shift = (i == 1 || i == 2) ? desc->log2_chroma_h : 0; shift 478 libavutil/imgutils.c h = (height + (1 << shift) - 1) >> shift; shift 1928 libavutil/mips/generic_macros_msa.h #define SLLI_2V(in0, in1, shift) \ shift 1930 libavutil/mips/generic_macros_msa.h in0 = in0 << shift; \ shift 1931 libavutil/mips/generic_macros_msa.h in1 = in1 << shift; \ shift 1933 libavutil/mips/generic_macros_msa.h #define SLLI_4V(in0, in1, in2, in3, shift) \ shift 1935 libavutil/mips/generic_macros_msa.h in0 = in0 << shift; \ shift 1936 libavutil/mips/generic_macros_msa.h in1 = in1 << shift; \ shift 1937 libavutil/mips/generic_macros_msa.h in2 = in2 << shift; \ shift 1938 libavutil/mips/generic_macros_msa.h in3 = in3 << shift; \ shift 1951 libavutil/mips/generic_macros_msa.h #define SRA_4V(in0, in1, in2, in3, shift) \ shift 1953 libavutil/mips/generic_macros_msa.h in0 = in0 >> shift; \ shift 1954 libavutil/mips/generic_macros_msa.h in1 = in1 >> shift; \ shift 1955 libavutil/mips/generic_macros_msa.h in2 = in2 >> shift; \ shift 1956 libavutil/mips/generic_macros_msa.h in3 = in3 >> shift; \ shift 1969 libavutil/mips/generic_macros_msa.h #define SRL_H4(RTYPE, in0, in1, in2, in3, shift) \ shift 1971 libavutil/mips/generic_macros_msa.h in0 = (RTYPE) __msa_srl_h((v8i16) in0, (v8i16) shift); \ shift 1972 libavutil/mips/generic_macros_msa.h in1 = (RTYPE) __msa_srl_h((v8i16) in1, (v8i16) shift); \ shift 1973 libavutil/mips/generic_macros_msa.h in2 = (RTYPE) __msa_srl_h((v8i16) in2, (v8i16) shift); \ shift 1974 libavutil/mips/generic_macros_msa.h in3 = (RTYPE) __msa_srl_h((v8i16) in3, (v8i16) shift); \ shift 1978 libavutil/mips/generic_macros_msa.h #define SRLR_H4(RTYPE, in0, in1, in2, in3, shift) \ shift 1980 libavutil/mips/generic_macros_msa.h in0 = (RTYPE) __msa_srlr_h((v8i16) in0, (v8i16) shift); \ shift 1981 libavutil/mips/generic_macros_msa.h in1 = (RTYPE) __msa_srlr_h((v8i16) in1, (v8i16) shift); \ shift 1982 libavutil/mips/generic_macros_msa.h in2 = (RTYPE) __msa_srlr_h((v8i16) in2, (v8i16) shift); \ shift 1983 libavutil/mips/generic_macros_msa.h in3 = (RTYPE) __msa_srlr_h((v8i16) in3, (v8i16) shift); \ shift 1988 libavutil/mips/generic_macros_msa.h #define SRLR_H8(RTYPE, in0, in1, in2, in3, in4, in5, in6, in7, shift) \ shift 1990 libavutil/mips/generic_macros_msa.h SRLR_H4(RTYPE, in0, in1, in2, in3, shift); \ shift 1991 libavutil/mips/generic_macros_msa.h SRLR_H4(RTYPE, in4, in5, in6, in7, shift); \ shift 2007 libavutil/mips/generic_macros_msa.h #define SRAR_H2(RTYPE, in0, in1, shift) \ shift 2009 libavutil/mips/generic_macros_msa.h in0 = (RTYPE) __msa_srar_h((v8i16) in0, (v8i16) shift); \ shift 2010 libavutil/mips/generic_macros_msa.h in1 = (RTYPE) __msa_srar_h((v8i16) in1, (v8i16) shift); \ shift 2015 libavutil/mips/generic_macros_msa.h #define SRAR_H3(RTYPE, in0, in1, in2, shift) \ shift 2017 libavutil/mips/generic_macros_msa.h SRAR_H2(RTYPE, in0, in1, shift) \ shift 2018 libavutil/mips/generic_macros_msa.h in2 = (RTYPE) __msa_srar_h((v8i16) in2, (v8i16) shift); \ shift 2022 libavutil/mips/generic_macros_msa.h #define SRAR_H4(RTYPE, in0, in1, in2, in3, shift) \ shift 2024 libavutil/mips/generic_macros_msa.h SRAR_H2(RTYPE, in0, in1, shift) \ shift 2025 libavutil/mips/generic_macros_msa.h SRAR_H2(RTYPE, in2, in3, shift) \ shift 2041 libavutil/mips/generic_macros_msa.h #define SRAR_W2(RTYPE, in0, in1, shift) \ shift 2043 libavutil/mips/generic_macros_msa.h in0 = (RTYPE) __msa_srar_w((v4i32) in0, (v4i32) shift); \ shift 2044 libavutil/mips/generic_macros_msa.h in1 = (RTYPE) __msa_srar_w((v4i32) in1, (v4i32) shift); \ shift 2048 libavutil/mips/generic_macros_msa.h #define SRAR_W4(RTYPE, in0, in1, in2, in3, shift) \ shift 2050 libavutil/mips/generic_macros_msa.h SRAR_W2(RTYPE, in0, in1, shift) \ shift 2051 libavutil/mips/generic_macros_msa.h SRAR_W2(RTYPE, in2, in3, shift) \ shift 2065 libavutil/mips/generic_macros_msa.h #define SRARI_H2(RTYPE, in0, in1, shift) \ shift 2067 libavutil/mips/generic_macros_msa.h in0 = (RTYPE) __msa_srari_h((v8i16) in0, shift); \ shift 2068 libavutil/mips/generic_macros_msa.h in1 = (RTYPE) __msa_srari_h((v8i16) in1, shift); \ shift 2073 libavutil/mips/generic_macros_msa.h #define SRARI_H4(RTYPE, in0, in1, in2, in3, shift) \ shift 2075 libavutil/mips/generic_macros_msa.h SRARI_H2(RTYPE, in0, in1, shift); \ shift 2076 libavutil/mips/generic_macros_msa.h SRARI_H2(RTYPE, in2, in3, shift); \ shift 2091 libavutil/mips/generic_macros_msa.h #define SRARI_W2(RTYPE, in0, in1, shift) \ shift 2093 libavutil/mips/generic_macros_msa.h in0 = (RTYPE) __msa_srari_w((v4i32) in0, shift); \ shift 2094 libavutil/mips/generic_macros_msa.h in1 = (RTYPE) __msa_srari_w((v4i32) in1, shift); \ shift 2098 libavutil/mips/generic_macros_msa.h #define SRARI_W4(RTYPE, in0, in1, in2, in3, shift) \ shift 2100 libavutil/mips/generic_macros_msa.h SRARI_W2(RTYPE, in0, in1, shift); \ shift 2101 libavutil/mips/generic_macros_msa.h SRARI_W2(RTYPE, in2, in3, shift); \ shift 2844 libavutil/mips/generic_macros_msa.h #define HORIZ_2TAP_FILT_UH(in0, in1, mask, coeff, shift) \ shift 2851 libavutil/mips/generic_macros_msa.h tmp1_m = (v8u16) __msa_srari_h((v8i16) tmp1_m, shift); \ shift 2852 libavutil/mips/generic_macros_msa.h tmp1_m = __msa_sat_u_h(tmp1_m, shift); \ shift 338 libavutil/mips/mmiutils.h #define PSRAH_4_MMI(fp1, fp2, fp3, fp4, shift) \ shift 339 libavutil/mips/mmiutils.h "psrah "#fp1", "#fp1", "#shift" \n\t" \ shift 340 libavutil/mips/mmiutils.h "psrah "#fp2", "#fp2", "#shift" \n\t" \ shift 341 libavutil/mips/mmiutils.h "psrah "#fp3", "#fp3", "#shift" \n\t" \ shift 342 libavutil/mips/mmiutils.h "psrah "#fp4", "#fp4", "#shift" \n\t" shift 344 libavutil/mips/mmiutils.h #define PSRAH_8_MMI(fp1, fp2, fp3, fp4, fp5, fp6, fp7, fp8, shift) \ shift 345 libavutil/mips/mmiutils.h PSRAH_4_MMI(fp1, fp2, fp3, fp4, shift) \ shift 346 libavutil/mips/mmiutils.h PSRAH_4_MMI(fp5, fp6, fp7, fp8, shift) shift 45 libavutil/pixdesc.c int shift = comp.shift; shift 54 libavutil/pixdesc.c int shift = 8 - depth - (skip & 7); shift 57 libavutil/pixdesc.c int val = (*p >> shift) & mask; shift 60 libavutil/pixdesc.c shift -= step; shift 61 libavutil/pixdesc.c p -= shift >> 3; shift 62 libavutil/pixdesc.c shift &= 7; shift 69 libavutil/pixdesc.c int is_8bit = shift + depth <= 8; shift 70 libavutil/pixdesc.c int is_16bit= shift + depth <=16; shift 80 libavutil/pixdesc.c val = (val >> shift) & mask; shift 117 libavutil/pixdesc.c int shift = 8 - depth - (skip & 7); shift 120 libavutil/pixdesc.c *p |= (src_element_size == 4 ? *src32++ : *src16++) << shift; shift 121 libavutil/pixdesc.c shift -= step; shift 122 libavutil/pixdesc.c p -= shift >> 3; shift 123 libavutil/pixdesc.c shift &= 7; shift 126 libavutil/pixdesc.c int shift = comp.shift; shift 130 libavutil/pixdesc.c if (shift + depth <= 8) { shift 133 libavutil/pixdesc.c *p |= ((src_element_size == 4 ? *src32++ : *src16++) << shift); shift 139 libavutil/pixdesc.c if (shift + depth <= 16) { shift 141 libavutil/pixdesc.c uint16_t val = AV_RB16(p) | (s << shift); shift 144 libavutil/pixdesc.c uint16_t val = AV_RL16(p) | (s << shift); shift 149 libavutil/pixdesc.c uint32_t val = AV_RB32(p) | (s << shift); shift 152 libavutil/pixdesc.c uint32_t val = AV_RL32(p) | (s << shift); shift 2626 libavutil/pixdesc.c av_assert0(!c->plane && !c->step && !c->offset && !c->shift && !c->depth); shift 53 libavutil/pixdesc.h int shift; shift 154 libavutil/rational.c int shift; shift 170 libavutil/rational.c shift = 23 + av_log2(q.den) - av_log2(q.num); shift 171 libavutil/rational.c if (shift >= 0) n = av_rescale(q.num, 1LL<<shift, q.den); shift 172 libavutil/rational.c else n = av_rescale(q.num, 1, ((int64_t)q.den) << -shift); shift 174 libavutil/rational.c shift -= n >= (1<<24); shift 175 libavutil/rational.c shift += n < (1<<23); shift 177 libavutil/rational.c if (shift >= 0) n = av_rescale(q.num, 1LL<<shift, q.den); shift 178 libavutil/rational.c else n = av_rescale(q.num, 1, ((int64_t)q.den) << -shift); shift 183 libavutil/rational.c return sign<<31 | (150-shift)<<23 | (n - (1<<23)); shift 349 libswresample/tests/swresample.c shift(ain, 1, in_ch_count, in_sample_fmt); shift 351 libswresample/tests/swresample.c shift(amid, mid_count, out_ch_count, out_sample_fmt); tmp_count = mid_count; shift 353 libswresample/tests/swresample.c shift(amid, mid_count-tmp_count, out_ch_count, out_sample_fmt); tmp_count = mid_count; shift 354 libswresample/tests/swresample.c shift(ain, 2, in_ch_count, in_sample_fmt); shift 356 libswresample/tests/swresample.c shift(amid, mid_count-tmp_count, out_ch_count, out_sample_fmt); tmp_count = mid_count; shift 357 libswresample/tests/swresample.c shift(ain, -3, in_ch_count, in_sample_fmt); shift 359 libswresample/tests/swresample.c shift(amid, -tmp_count, out_ch_count, out_sample_fmt); shift 389 libswresample/tests/swresample.c shift(aout, flush_i, in_ch_count, in_sample_fmt); shift 391 libswresample/tests/swresample.c shift(aout, -flush_i, in_ch_count, in_sample_fmt); shift 33 libswscale/alphablend.c unsigned shift = desc->comp[0].depth; shift 34 libswscale/alphablend.c unsigned max = (1<<shift) - 1; shift 70 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); shift 80 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); shift 106 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); shift 112 libswscale/alphablend.c d[x] = av_clip((u + (u >> shift)) >> shift, 0, max); shift 140 libswscale/alphablend.c d[plane_count*x + plane] = av_clip((u + (u >> shift)) >> shift, 0, max); shift 149 libswscale/alphablend.c d[plane_count*x + plane] = av_clip((u + (u >> shift)) >> shift, 0, max); shift 918 libswscale/input.c int shift = bpc < 16 ? bpc : 14; shift 924 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); shift 934 libswscale/input.c int shift = bpc < 16 ? bpc : 14; shift 937 libswscale/input.c dst[i] = rdpx(src[3] + i) << (14 - shift); shift 951 libswscale/input.c int shift = bpc < 16 ? bpc : 14; shift 957 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); shift 958 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); shift 985 libswscale/input.c int shift = 14; shift 991 libswscale/input.c dstU[i] = (ru*r + gu*g + bu*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); shift 992 libswscale/input.c dstV[i] = (rv*r + gv*g + bv*b + (257 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14); shift 1004 libswscale/input.c int shift = 14; shift 1010 libswscale/input.c dst[i] = ((ry*r + gy*g + by*b + (33 << (RGB2YUV_SHIFT + bpc - 9))) >> (RGB2YUV_SHIFT + shift - 14)); shift 138 libswscale/output.c AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ shift 140 libswscale/output.c AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ shift 148 libswscale/output.c int shift = 3; shift 152 libswscale/output.c int val = src[i] + (1 << (shift - 1)); shift 163 libswscale/output.c int shift = 15; shift 167 libswscale/output.c int val = 1 << (shift - 1); shift 190 libswscale/output.c int shift = 15; shift 195 libswscale/output.c int u = 1 << (shift - 1); shift 196 libswscale/output.c int v = 1 << (shift - 1); shift 215 libswscale/output.c static const int shift = 3; shift 221 libswscale/output.c val = src[i] + (1 << (shift - 1)); shift 231 libswscale/output.c static const int shift = 3; shift 237 libswscale/output.c val = src[i] + (1 << (shift - 1)); shift 248 libswscale/output.c static const int shift = 15; shift 254 libswscale/output.c val = (1 << (shift - 1)) - 0x40000000; shift 268 libswscale/output.c static const int shift = 15; shift 274 libswscale/output.c val = (1 << (shift - 1)) - 0x40000000; shift 314 libswscale/output.c AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \ shift 316 libswscale/output.c AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \ shift 324 libswscale/output.c int shift = 15 - output_bits; shift 327 libswscale/output.c int val = src[i] + (1 << (shift - 1)); shift 338 libswscale/output.c int shift = 11 + 16 - output_bits; shift 341 libswscale/output.c int val = 1 << (shift - 1); shift 445 libswscale/output.c AV_WB16(pos, av_clip_uintp2(val >> shift, 10) << 6); \ shift 447 libswscale/output.c AV_WL16(pos, av_clip_uintp2(val >> shift, 10) << 6); \ shift 455 libswscale/output.c int shift = 5; shift 458 libswscale/output.c int val = src[i] + (1 << (shift - 1)); shift 468 libswscale/output.c int shift = 17; shift 471 libswscale/output.c int val = 1 << (shift - 1); shift 485 libswscale/output.c int shift = 17; shift 490 libswscale/output.c int u = 1 << (shift - 1); shift 491 libswscale/output.c int v = 1 << (shift - 1); shift 112 libswscale/ppc/swscale_altivec.c AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ shift 114 libswscale/ppc/swscale_altivec.c AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ shift 121 libswscale/ppc/swscale_altivec.c static const int shift = 3; shift 127 libswscale/ppc/swscale_altivec.c val = src[i] + (1 << (shift - 1)); shift 137 libswscale/ppc/swscale_altivec.c static const int shift = 3; shift 143 libswscale/ppc/swscale_altivec.c val = src[i] + (1 << (shift - 1)); shift 152 libswscale/ppc/swscale_altivec.c const int shift = 3; shift 153 libswscale/ppc/swscale_altivec.c const int add = (1 << (shift - 1)); shift 157 libswscale/ppc/swscale_altivec.c const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); shift 185 libswscale/ppc/swscale_altivec.c const int shift = 3; shift 186 libswscale/ppc/swscale_altivec.c const int add = (1 << (shift - 1)); shift 190 libswscale/ppc/swscale_altivec.c const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); shift 140 libswscale/ppc/swscale_vsx.c AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \ shift 142 libswscale/ppc/swscale_vsx.c AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \ shift 149 libswscale/ppc/swscale_vsx.c int shift = 15 - output_bits; shift 152 libswscale/ppc/swscale_vsx.c int val = src[i] + (1 << (shift - 1)); shift 163 libswscale/ppc/swscale_vsx.c const int shift = 15 - output_bits; shift 164 libswscale/ppc/swscale_vsx.c const int add = (1 << (shift - 1)); shift 168 libswscale/ppc/swscale_vsx.c const vec_u16 vshift = (vec_u16) vec_splat_u16(shift); shift 192 libswscale/ppc/swscale_vsx.c int shift = 11 + 16 - output_bits; shift 195 libswscale/ppc/swscale_vsx.c int val = 1 << (shift - 1); shift 210 libswscale/ppc/swscale_vsx.c const int shift = 11 + 16 - output_bits; shift 211 libswscale/ppc/swscale_vsx.c const int add = (1 << (shift - 1)); shift 215 libswscale/ppc/swscale_vsx.c const vec_u32 vshift = (vec_u32) {shift, shift, shift, shift}; shift 261 libswscale/ppc/swscale_vsx.c AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ shift 263 libswscale/ppc/swscale_vsx.c AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ shift 270 libswscale/ppc/swscale_vsx.c const int shift = 3; shift 273 libswscale/ppc/swscale_vsx.c int val = src[i] + (1 << (shift - 1)); shift 284 libswscale/ppc/swscale_vsx.c const int shift = 3; shift 285 libswscale/ppc/swscale_vsx.c const int add = (1 << (shift - 1)); shift 288 libswscale/ppc/swscale_vsx.c const vec_u32 vshift = (vec_u32) vec_splat_u32(shift); shift 320 libswscale/ppc/swscale_vsx.c int shift = 15; shift 323 libswscale/ppc/swscale_vsx.c int val = 1 << (shift - 1); shift 344 libswscale/ppc/swscale_vsx.c const int shift = 15; shift 346 libswscale/ppc/swscale_vsx.c const int add = (1 << (shift - 1)) - 0x40000000; shift 349 libswscale/ppc/swscale_vsx.c const vec_u32 vshift = (vec_u32) {shift, shift, shift, shift}; shift 269 libswscale/swscale.h attribute_deprecated void sws_shiftVec(SwsVector *a, int shift); shift 237 libswscale/swscale_unscaled.c const int shift[3] = { shift 238 libswscale/swscale_unscaled.c dst_format->comp[0].depth + dst_format->comp[0].shift - shift 239 libswscale/swscale_unscaled.c src_format->comp[0].depth - src_format->comp[0].shift, shift 240 libswscale/swscale_unscaled.c dst_format->comp[1].depth + dst_format->comp[1].shift - shift 241 libswscale/swscale_unscaled.c src_format->comp[1].depth - src_format->comp[1].shift, shift 242 libswscale/swscale_unscaled.c dst_format->comp[2].depth + dst_format->comp[2].shift - shift 243 libswscale/swscale_unscaled.c src_format->comp[2].depth - src_format->comp[2].shift, shift 253 libswscale/swscale_unscaled.c *tdstY++ = *tsrc0++ << shift[0]; shift 263 libswscale/swscale_unscaled.c *tdstUV++ = *tsrc1++ << shift[1]; shift 264 libswscale/swscale_unscaled.c *tdstUV++ = *tsrc2++ << shift[2]; shift 570 libswscale/swscale_unscaled.c int src_alpha, int swap, int shift, int width) shift 580 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 581 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 582 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 583 libswscale/swscale_unscaled.c dst[3][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 587 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 588 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 589 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 594 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 595 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 596 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 601 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 602 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 603 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(av_bswap16(*src_line++) >> shift); shift 610 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++ >> shift); shift 611 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++ >> shift); shift 612 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++ >> shift); shift 613 libswscale/swscale_unscaled.c dst[3][x] = av_bswap16(*src_line++ >> shift); shift 617 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++ >> shift); shift 618 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++ >> shift); shift 619 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++ >> shift); shift 624 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++ >> shift); shift 625 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++ >> shift); shift 626 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++ >> shift); shift 631 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++ >> shift); shift 632 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++ >> shift); shift 633 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++ >> shift); shift 640 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++) >> shift; shift 641 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++) >> shift; shift 642 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++) >> shift; shift 643 libswscale/swscale_unscaled.c dst[3][x] = av_bswap16(*src_line++) >> shift; shift 647 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++) >> shift; shift 648 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++) >> shift; shift 649 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++) >> shift; shift 654 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++) >> shift; shift 655 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++) >> shift; shift 656 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++) >> shift; shift 661 libswscale/swscale_unscaled.c dst[0][x] = av_bswap16(*src_line++) >> shift; shift 662 libswscale/swscale_unscaled.c dst[1][x] = av_bswap16(*src_line++) >> shift; shift 663 libswscale/swscale_unscaled.c dst[2][x] = av_bswap16(*src_line++) >> shift; shift 670 libswscale/swscale_unscaled.c dst[0][x] = *src_line++ >> shift; shift 671 libswscale/swscale_unscaled.c dst[1][x] = *src_line++ >> shift; shift 672 libswscale/swscale_unscaled.c dst[2][x] = *src_line++ >> shift; shift 673 libswscale/swscale_unscaled.c dst[3][x] = *src_line++ >> shift; shift 677 libswscale/swscale_unscaled.c dst[0][x] = *src_line++ >> shift; shift 678 libswscale/swscale_unscaled.c dst[1][x] = *src_line++ >> shift; shift 679 libswscale/swscale_unscaled.c dst[2][x] = *src_line++ >> shift; shift 684 libswscale/swscale_unscaled.c dst[0][x] = *src_line++ >> shift; shift 685 libswscale/swscale_unscaled.c dst[1][x] = *src_line++ >> shift; shift 686 libswscale/swscale_unscaled.c dst[2][x] = *src_line++ >> shift; shift 691 libswscale/swscale_unscaled.c dst[0][x] = *src_line++ >> shift; shift 692 libswscale/swscale_unscaled.c dst[1][x] = *src_line++ >> shift; shift 693 libswscale/swscale_unscaled.c dst[2][x] = *src_line++ >> shift; shift 1693 libswscale/swscale_unscaled.c unsigned shift= src_depth-dst_depth, tmp;\ shift 1697 libswscale/swscale_unscaled.c dst[j+0] = dbswap(bswap(src[j+0])>>shift);\ shift 1698 libswscale/swscale_unscaled.c dst[j+1] = dbswap(bswap(src[j+1])>>shift);\ shift 1699 libswscale/swscale_unscaled.c dst[j+2] = dbswap(bswap(src[j+2])>>shift);\ shift 1700 libswscale/swscale_unscaled.c dst[j+3] = dbswap(bswap(src[j+3])>>shift);\ shift 1701 libswscale/swscale_unscaled.c dst[j+4] = dbswap(bswap(src[j+4])>>shift);\ shift 1702 libswscale/swscale_unscaled.c dst[j+5] = dbswap(bswap(src[j+5])>>shift);\ shift 1703 libswscale/swscale_unscaled.c dst[j+6] = dbswap(bswap(src[j+6])>>shift);\ shift 1704 libswscale/swscale_unscaled.c dst[j+7] = dbswap(bswap(src[j+7])>>shift);\ shift 1707 libswscale/swscale_unscaled.c dst[j] = dbswap(bswap(src[j])>>shift);\ shift 1714 libswscale/swscale_unscaled.c const uint8_t *dither= dithers[shift-1][i&7];\ shift 1716 libswscale/swscale_unscaled.c tmp = (bswap(src[j+0]) + dither[0])>>shift; dst[j+0] = dbswap(tmp - (tmp>>dst_depth));\ shift 1717 libswscale/swscale_unscaled.c tmp = (bswap(src[j+1]) + dither[1])>>shift; dst[j+1] = dbswap(tmp - (tmp>>dst_depth));\ shift 1718 libswscale/swscale_unscaled.c tmp = (bswap(src[j+2]) + dither[2])>>shift; dst[j+2] = dbswap(tmp - (tmp>>dst_depth));\ shift 1719 libswscale/swscale_unscaled.c tmp = (bswap(src[j+3]) + dither[3])>>shift; dst[j+3] = dbswap(tmp - (tmp>>dst_depth));\ shift 1720 libswscale/swscale_unscaled.c tmp = (bswap(src[j+4]) + dither[4])>>shift; dst[j+4] = dbswap(tmp - (tmp>>dst_depth));\ shift 1721 libswscale/swscale_unscaled.c tmp = (bswap(src[j+5]) + dither[5])>>shift; dst[j+5] = dbswap(tmp - (tmp>>dst_depth));\ shift 1722 libswscale/swscale_unscaled.c tmp = (bswap(src[j+6]) + dither[6])>>shift; dst[j+6] = dbswap(tmp - (tmp>>dst_depth));\ shift 1723 libswscale/swscale_unscaled.c tmp = (bswap(src[j+7]) + dither[7])>>shift; dst[j+7] = dbswap(tmp - (tmp>>dst_depth));\ shift 1726 libswscale/swscale_unscaled.c tmp = (bswap(src[j]) + dither[j&7])>>shift; dst[j] = dbswap(tmp - (tmp>>dst_depth));\ shift 1733 libswscale/swscale_unscaled.c const uint8_t *dither= dithers[shift-1][i&7];\ shift 1735 libswscale/swscale_unscaled.c tmp = bswap(src[j+0]); dst[j+0] = dbswap((tmp - (tmp>>dst_depth) + dither[0])>>shift);\ shift 1736 libswscale/swscale_unscaled.c tmp = bswap(src[j+1]); dst[j+1] = dbswap((tmp - (tmp>>dst_depth) + dither[1])>>shift);\ shift 1737 libswscale/swscale_unscaled.c tmp = bswap(src[j+2]); dst[j+2] = dbswap((tmp - (tmp>>dst_depth) + dither[2])>>shift);\ shift 1738 libswscale/swscale_unscaled.c tmp = bswap(src[j+3]); dst[j+3] = dbswap((tmp - (tmp>>dst_depth) + dither[3])>>shift);\ shift 1739 libswscale/swscale_unscaled.c tmp = bswap(src[j+4]); dst[j+4] = dbswap((tmp - (tmp>>dst_depth) + dither[4])>>shift);\ shift 1740 libswscale/swscale_unscaled.c tmp = bswap(src[j+5]); dst[j+5] = dbswap((tmp - (tmp>>dst_depth) + dither[5])>>shift);\ shift 1741 libswscale/swscale_unscaled.c tmp = bswap(src[j+6]); dst[j+6] = dbswap((tmp - (tmp>>dst_depth) + dither[6])>>shift);\ shift 1742 libswscale/swscale_unscaled.c tmp = bswap(src[j+7]); dst[j+7] = dbswap((tmp - (tmp>>dst_depth) + dither[7])>>shift);\ shift 1745 libswscale/swscale_unscaled.c tmp = bswap(src[j]); dst[j] = dbswap((tmp - (tmp>>dst_depth) + dither[j&7])>>shift);\ shift 1820 libswscale/swscale_unscaled.c unsigned shift = dst_depth - src_depth; shift 1822 libswscale/swscale_unscaled.c #define FAST_COPY_UP(shift) \ shift 1825 libswscale/swscale_unscaled.c AV_WN64A(dstPtr2 + j, v << shift); \ shift 1828 libswscale/swscale_unscaled.c #define FAST_COPY_UP(shift) \ shift 1831 libswscale/swscale_unscaled.c AV_WN32A(dstPtr2 + j, v << shift); \ shift 1834 libswscale/swscale_unscaled.c switch (shift) shift 69 libswscale/utils.c static void sws_shiftVec(SwsVector *a, int shift); shift 656 libswscale/utils.c int shift = (*filterPos)[i] + FFMIN(filterSize - srcW, 0); shift 666 libswscale/utils.c if (j < shift) { shift 669 libswscale/utils.c filter[i * filterSize + j] = filter[i * filterSize + j - shift]; shift 673 libswscale/utils.c (*filterPos)[i]-= shift; shift 2176 libswscale/utils.c static SwsVector *sws_getShiftedVec(SwsVector *a, int shift) shift 2178 libswscale/utils.c int length = a->length + FFABS(shift) * 2; shift 2187 libswscale/utils.c (a->length - 1) / 2 - shift] = a->coeff[i]; shift 2196 libswscale/utils.c void sws_shiftVec(SwsVector *a, int shift) shift 2198 libswscale/utils.c SwsVector *shifted = sws_getShiftedVec(a, shift); shift 147 libswscale/x86/hscale_fast_bilinear_simd.c int shift = 0; shift 167 libswscale/x86/hscale_fast_bilinear_simd.c shift = maxShift; // avoid overread shift 169 libswscale/x86/hscale_fast_bilinear_simd.c shift = filterPos[i / 2] & 3; // align shift 171 libswscale/x86/hscale_fast_bilinear_simd.c if (shift && i >= shift) { shift 172 libswscale/x86/hscale_fast_bilinear_simd.c filterCode[fragmentPos + imm8OfPShufW1] += 0x55 * shift; shift 173 libswscale/x86/hscale_fast_bilinear_simd.c filterCode[fragmentPos + imm8OfPShufW2] += 0x55 * shift; shift 174 libswscale/x86/hscale_fast_bilinear_simd.c filterPos[i / 2] -= shift; shift 52 tests/checkasm/alacdsp.c int shift = rnd() & 0x1F; shift 54 tests/checkasm/alacdsp.c declare_func(void, int32_t *buf[2], int len, int shift, int weight); shift 57 tests/checkasm/alacdsp.c call_ref(ref, len, shift, weight); shift 58 tests/checkasm/alacdsp.c call_new(new, len, shift, weight); shift 62 tests/checkasm/alacdsp.c bench_new(new, BUF_SIZE, shift, weight); shift 45 tests/checkasm/flacdsp.c declare_func(void, uint8_t **out, int32_t **in, int channels, int len, int shift); shift 133 tests/tiny_psnr.c static int run_psnr(FILE *f[2], int len, int shift, int skip_bytes) shift 169 tests/tiny_psnr.c fseek(f[shift < 0], abs(shift), SEEK_CUR); shift 272 tests/tiny_psnr.c int shift; shift 311 tests/tiny_psnr.c for (shift = shift_first; shift <= shift_last; shift++) { shift 312 tests/tiny_psnr.c int psnr = run_psnr(f, len, shift, skip_bytes); shift 313 tests/tiny_psnr.c if (psnr > max_psnr || (shift < 0 && psnr == max_psnr)) { shift 315 tests/tiny_psnr.c max_psnr_shift = shift;