v 527 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_defined(AVS_Value v) { return v.type != 'v'; } v 528 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_clip(AVS_Value v) { return v.type == 'c'; } v 529 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_bool(AVS_Value v) { return v.type == 'b'; } v 530 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_int(AVS_Value v) { return v.type == 'i'; } v 531 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_float(AVS_Value v) { return v.type == 'f' || v.type == 'i'; } v 532 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_string(AVS_Value v) { return v.type == 's'; } v 533 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_array(AVS_Value v) { return v.type == 'a'; } v 534 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_is_error(AVS_Value v) { return v.type == 'e'; } v 539 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_as_bool(AVS_Value v) v 540 compat/avisynth/avisynth_c.h { return v.d.boolean; } v 541 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_as_int(AVS_Value v) v 542 compat/avisynth/avisynth_c.h { return v.d.integer; } v 543 compat/avisynth/avisynth_c.h AVSC_INLINE const char * avs_as_string(AVS_Value v) v 544 compat/avisynth/avisynth_c.h { return avs_is_error(v) || avs_is_string(v) ? v.d.string : 0; } v 545 compat/avisynth/avisynth_c.h AVSC_INLINE double avs_as_float(AVS_Value v) v 546 compat/avisynth/avisynth_c.h { return avs_is_int(v) ? v.d.integer : v.d.floating_pt; } v 547 compat/avisynth/avisynth_c.h AVSC_INLINE const char * avs_as_error(AVS_Value v) v 548 compat/avisynth/avisynth_c.h { return avs_is_error(v) ? v.d.string : 0; } v 549 compat/avisynth/avisynth_c.h AVSC_INLINE const AVS_Value * avs_as_array(AVS_Value v) v 550 compat/avisynth/avisynth_c.h { return v.d.array; } v 551 compat/avisynth/avisynth_c.h AVSC_INLINE int avs_array_size(AVS_Value v) v 552 compat/avisynth/avisynth_c.h { return avs_is_array(v) ? v.array_size : 1; } v 553 compat/avisynth/avisynth_c.h AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index) v 554 compat/avisynth/avisynth_c.h { return avs_is_array(v) ? v.d.array[index] : v; } v 559 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 'b'; v.d.boolean = v0 == 0 ? 0 : 1; return v; } v 561 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 'i'; v.d.integer = v0; return v; } v 563 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 's'; v.d.string = v0; return v; } v 565 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 'f'; v.d.floating_pt = v0; return v;} v 567 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 'e'; v.d.string = v0; return v; } v 570 compat/avisynth/avisynth_c.h { AVS_Value v; avs_set_to_clip(&v, v0); return v; } v 573 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; } v 477 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_defined(AVS_Value v) { return v.type != 'v'; } v 478 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_clip(AVS_Value v) { return v.type == 'c'; } v 479 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_bool(AVS_Value v) { return v.type == 'b'; } v 480 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_int(AVS_Value v) { return v.type == 'i'; } v 481 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_float(AVS_Value v) { return v.type == 'f' || v.type == 'i'; } v 482 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_string(AVS_Value v) { return v.type == 's'; } v 483 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_array(AVS_Value v) { return v.type == 'a'; } v 484 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_is_error(AVS_Value v) { return v.type == 'e'; } v 496 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_as_bool(AVS_Value v) v 497 compat/avisynth/avxsynth_c.h { return v.d.boolean; } v 498 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_as_int(AVS_Value v) v 499 compat/avisynth/avxsynth_c.h { return v.d.integer; } v 500 compat/avisynth/avxsynth_c.h AVSC_INLINE const char * avs_as_string(AVS_Value v) v 501 compat/avisynth/avxsynth_c.h { return avs_is_error(v) || avs_is_string(v) ? v.d.string : 0; } v 502 compat/avisynth/avxsynth_c.h AVSC_INLINE double avs_as_float(AVS_Value v) v 503 compat/avisynth/avxsynth_c.h { return avs_is_int(v) ? v.d.integer : v.d.floating_pt; } v 504 compat/avisynth/avxsynth_c.h AVSC_INLINE const char * avs_as_error(AVS_Value v) v 505 compat/avisynth/avxsynth_c.h { return avs_is_error(v) ? v.d.string : 0; } v 506 compat/avisynth/avxsynth_c.h AVSC_INLINE const AVS_Value * avs_as_array(AVS_Value v) v 507 compat/avisynth/avxsynth_c.h { return v.d.array; } v 508 compat/avisynth/avxsynth_c.h AVSC_INLINE int avs_array_size(AVS_Value v) v 509 compat/avisynth/avxsynth_c.h { return avs_is_array(v) ? v.array_size : 1; } v 510 compat/avisynth/avxsynth_c.h AVSC_INLINE AVS_Value avs_array_elt(AVS_Value v, int index) v 511 compat/avisynth/avxsynth_c.h { return avs_is_array(v) ? v.d.array[index] : v; } v 516 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 'b'; v.d.boolean = v0 == 0 ? 0 : 1; return v; } v 518 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 'i'; v.d.integer = v0; return v; } v 520 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 's'; v.d.string = v0; return v; } v 522 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 'f'; v.d.floating_pt = v0; return v;} v 524 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 'e'; v.d.string = v0; return v; } v 527 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; avs_set_to_clip(&v, v0); return v; } v 530 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; } v 270 doc/examples/muxing.c int j, i, v; v 279 doc/examples/muxing.c v = (int)(sin(ost->t) * 10000); v 281 doc/examples/muxing.c *q++ = v; v 833 ffplay.c unsigned int v = ((const uint32_t *)(s))[0];\ v 834 ffplay.c a = (v >> 24) & 0xff;\ v 835 ffplay.c r = (v >> 16) & 0xff;\ v 836 ffplay.c g = (v >> 8) & 0xff;\ v 837 ffplay.c b = v & 0xff;\ v 840 ffplay.c #define YUVA_IN(y, u, v, a, s, pal)\ v 846 ffplay.c v = val & 0xff;\ v 849 ffplay.c #define YUVA_OUT(d, y, u, v, a)\ v 851 ffplay.c ((uint32_t *)(d))[0] = (a << 24) | (y << 16) | (u << 8) | v;\ v 860 ffplay.c int y, u, v, a, u1, v1, a1, w, h; v 887 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 890 ffplay.c cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0); v 897 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 899 ffplay.c v1 = v; v 903 ffplay.c YUVA_IN(y, u, v, a, p + BPP, pal); v 905 ffplay.c v1 += v; v 916 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 919 ffplay.c cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0); v 934 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 936 ffplay.c v1 = v; v 941 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 943 ffplay.c v1 += v; v 954 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 956 ffplay.c v1 = v; v 960 ffplay.c YUVA_IN(y, u, v, a, p + BPP, pal); v 962 ffplay.c v1 += v; v 968 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 970 ffplay.c v1 += v; v 974 ffplay.c YUVA_IN(y, u, v, a, p + BPP, pal); v 976 ffplay.c v1 += v; v 989 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 991 ffplay.c v1 = v; v 996 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 998 ffplay.c v1 += v; v 1020 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 1023 ffplay.c cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0); v 1030 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 1032 ffplay.c v1 = v; v 1036 ffplay.c YUVA_IN(y, u, v, a, p + BPP, pal); v 1038 ffplay.c v1 += v; v 1042 ffplay.c cr[0] = ALPHA_BLEND(a1 >> 2, cr[0], v, 1); v 1049 ffplay.c YUVA_IN(y, u, v, a, p, pal); v 1052 ffplay.c cr[0] = ALPHA_BLEND(a >> 2, cr[0], v, 0); v 2323 ffplay.c int r, g, b, y, u, v, a; v 2347 ffplay.c v = RGB_TO_V_CCIR(r, g, b, 0); v 2348 ffplay.c YUVA_OUT((uint32_t*)sp->sub.rects[i]->pict.data[1] + j, y, u, v, a); v 1654 ffprobe.c #define print_int(k, v) writer_print_integer(w, k, v) v 1655 ffprobe.c #define print_q(k, v, s) writer_print_rational(w, k, v, s) v 1656 ffprobe.c #define print_str(k, v) writer_print_string(w, k, v, 0) v 1657 ffprobe.c #define print_str_opt(k, v) writer_print_string(w, k, v, PRINT_STRING_OPT) v 1658 ffprobe.c #define print_str_validate(k, v) writer_print_string(w, k, v, PRINT_STRING_VALIDATE) v 1659 ffprobe.c #define print_time(k, v, tb) writer_print_time(w, k, v, tb, 0) v 1660 ffprobe.c #define print_ts(k, v) writer_print_ts(w, k, v, 0) v 1661 ffprobe.c #define print_duration_time(k, v, tb) writer_print_time(w, k, v, tb, 1) v 1662 ffprobe.c #define print_duration_ts(k, v) writer_print_ts(w, k, v, 1) v 1663 ffprobe.c #define print_val(k, v, u) do { \ v 1665 ffprobe.c uv.val.i = v; \ v 44 libavcodec/012v.c uint16_t *y, *u, *v; v 78 libavcodec/012v.c v = (uint16_t *)(pic->data[2] + line * pic->linesize[2]); v 86 libavcodec/012v.c v = v_temp; v 96 libavcodec/012v.c *v++ = t >> 14 & 0xFFC0; v 112 libavcodec/012v.c *v++ = t << 6 & 0xFFC0; v 122 libavcodec/012v.c *v++ = t >> 4 & 0xFFC0; v 132 libavcodec/012v.c v = x/2 + (uint16_t *)(pic->data[2] + line * pic->linesize[2]); v 135 libavcodec/012v.c memcpy(v, v_temp, sizeof(*v) * (width - x + 1) / 2); v 1014 libavcodec/aacdec.c union { unsigned u; int s; } v = { previous_val * 1664525u + 1013904223 }; v 1015 libavcodec/aacdec.c return v.s; v 1537 libavcodec/aacdec.c static inline float *VMUL2(float *dst, const float *v, unsigned idx, v 1541 libavcodec/aacdec.c *dst++ = v[idx & 15] * s; v 1542 libavcodec/aacdec.c *dst++ = v[idx>>4 & 15] * s; v 1548 libavcodec/aacdec.c static inline float *VMUL4(float *dst, const float *v, unsigned idx, v 1552 libavcodec/aacdec.c *dst++ = v[idx & 3] * s; v 1553 libavcodec/aacdec.c *dst++ = v[idx>>2 & 3] * s; v 1554 libavcodec/aacdec.c *dst++ = v[idx>>4 & 3] * s; v 1555 libavcodec/aacdec.c *dst++ = v[idx>>6 & 3] * s; v 1561 libavcodec/aacdec.c static inline float *VMUL2S(float *dst, const float *v, unsigned idx, v 1570 libavcodec/aacdec.c *dst++ = v[idx & 15] * s0.f; v 1571 libavcodec/aacdec.c *dst++ = v[idx>>4 & 15] * s1.f; v 1578 libavcodec/aacdec.c static inline float *VMUL4S(float *dst, const float *v, unsigned idx, v 1586 libavcodec/aacdec.c *dst++ = v[idx & 3] * t.f; v 1590 libavcodec/aacdec.c *dst++ = v[idx>>2 & 3] * t.f; v 1594 libavcodec/aacdec.c *dst++ = v[idx>>4 & 3] * t.f; v 1598 libavcodec/aacdec.c *dst++ = v[idx>>6 & 3] * t.f; v 1794 libavcodec/aacdec.c unsigned v = ((const uint32_t*)vq)[cb_idx & 15]; v 1795 libavcodec/aacdec.c *icf++ = (bits & 1U<<31) | v; v 1796 libavcodec/aacdec.c bits <<= !!v; v 403 libavcodec/aacpsy.c float s[8], v; v 410 libavcodec/aacpsy.c v = iir_filter(la[i*128+j], pch->iir_state); v 411 libavcodec/aacpsy.c sum += v*v; v 888 libavcodec/aacpsy.c float const v = energy_short[i]; v 889 libavcodec/aacpsy.c float const m = FFMAX(u, v); v 891 libavcodec/aacpsy.c if (u < 1.7f * v && v < 1.7f * u) { /* (1) */ v 1215 libavcodec/aacsbr.c float *v; v 1224 libavcodec/aacsbr.c v = v0 + *v_off; v 1231 libavcodec/aacsbr.c sbrdsp->qmf_deint_neg(v, mdct_buf[0]); v 1236 libavcodec/aacsbr.c sbrdsp->qmf_deint_bfly(v, mdct_buf[1], mdct_buf[0]); v 1238 libavcodec/aacsbr.c dsp->vector_fmul (out, v , sbr_qmf_window , 64 >> div); v 1239 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 192 >> div), sbr_qmf_window + ( 64 >> div), out , 64 >> div); v 1240 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 256 >> div), sbr_qmf_window + (128 >> div), out , 64 >> div); v 1241 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 448 >> div), sbr_qmf_window + (192 >> div), out , 64 >> div); v 1242 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 512 >> div), sbr_qmf_window + (256 >> div), out , 64 >> div); v 1243 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 704 >> div), sbr_qmf_window + (320 >> div), out , 64 >> div); v 1244 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 768 >> div), sbr_qmf_window + (384 >> div), out , 64 >> div); v 1245 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + ( 960 >> div), sbr_qmf_window + (448 >> div), out , 64 >> div); v 1246 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + (1024 >> div), sbr_qmf_window + (512 >> div), out , 64 >> div); v 1247 libavcodec/aacsbr.c dsp->vector_fmul_add(out, v + (1216 >> div), sbr_qmf_window + (576 >> div), out , 64 >> div); v 111 libavcodec/ac3.c int v = psd[bin++]; v 114 libavcodec/ac3.c int max = FFMAX(v, psd[bin]); v 116 libavcodec/ac3.c int adr = FFMIN(max - ((v + psd[bin] + 1) >> 1), 255); v 117 libavcodec/ac3.c v = max + ff_ac3_log_add_tab[adr]; v 119 libavcodec/ac3.c band_psd[band++] = v; v 165 libavcodec/ac3dec.c int v = (i >> 5) - ((i >> 7) << 3) - 5; v 166 libavcodec/ac3dec.c dynamic_range_tab[i] = powf(2.0f, v) * ((i & 0x1F) | 0x20); v 172 libavcodec/ac3dec.c int v = (i >> 4) - ((i >> 7) << 4) - 4; v 173 libavcodec/ac3dec.c heavy_dynamic_range_tab[i] = powf(2.0f, v) * ((i & 0xF) | 0x10); v 50 libavcodec/ac3dsp.c int i, v = 0; v 52 libavcodec/ac3dsp.c v |= abs(src[i]); v 53 libavcodec/ac3dsp.c return v; v 170 libavcodec/ac3dsp.c int v = abs(coef[i]); v 171 libavcodec/ac3dsp.c exp[i] = v ? 23 - av_log2(v) : 24; v 1167 libavcodec/ac3enc.c int v = (((levels * c) >> (24 - e)) + levels) >> 1; v 1168 libavcodec/ac3enc.c av_assert2(v >= 0 && v < levels); v 1169 libavcodec/ac3enc.c return v; v 1215 libavcodec/ac3enc.c int v = bap[i]; v 1216 libavcodec/ac3enc.c if (v) v 1217 libavcodec/ac3enc.c switch (v) { v 1219 libavcodec/ac3enc.c v = sym_quant(c, e, 3); v 1223 libavcodec/ac3enc.c v = 9 * v; v 1227 libavcodec/ac3enc.c *s->qmant1_ptr += 3 * v; v 1229 libavcodec/ac3enc.c v = 128; v 1232 libavcodec/ac3enc.c *s->qmant1_ptr += v; v 1234 libavcodec/ac3enc.c v = 128; v 1239 libavcodec/ac3enc.c v = sym_quant(c, e, 5); v 1243 libavcodec/ac3enc.c v = 25 * v; v 1247 libavcodec/ac3enc.c *s->qmant2_ptr += 5 * v; v 1249 libavcodec/ac3enc.c v = 128; v 1252 libavcodec/ac3enc.c *s->qmant2_ptr += v; v 1254 libavcodec/ac3enc.c v = 128; v 1259 libavcodec/ac3enc.c v = sym_quant(c, e, 7); v 1262 libavcodec/ac3enc.c v = sym_quant(c, e, 11); v 1266 libavcodec/ac3enc.c v = 11 * v; v 1270 libavcodec/ac3enc.c *s->qmant4_ptr += v; v 1272 libavcodec/ac3enc.c v = 128; v 1277 libavcodec/ac3enc.c v = sym_quant(c, e, 15); v 1280 libavcodec/ac3enc.c v = asym_quant(c, e, 14); v 1283 libavcodec/ac3enc.c v = asym_quant(c, e, 16); v 1286 libavcodec/ac3enc.c v = asym_quant(c, e, v - 1); v 1289 libavcodec/ac3enc.c qmant[i] = v; v 1792 libavcodec/ac3enc.c static int validate_float_option(float v, const float *v_list, int v_list_size) v 1797 libavcodec/ac3enc.c if (v < (v_list[i] + FLT_OPTION_THRESHOLD) && v 1798 libavcodec/ac3enc.c v > (v_list[i] - FLT_OPTION_THRESHOLD)) v 80 libavcodec/ac3enc_fixed.c int v = s->ac3dsp.ac3_max_msb_abs_int16(s->windowed_samples, AC3_WINDOW_SIZE); v 81 libavcodec/ac3enc_fixed.c v = 14 - av_log2(v); v 82 libavcodec/ac3enc_fixed.c if (v > 0) v 83 libavcodec/ac3enc_fixed.c s->ac3dsp.ac3_lshift_int16(s->windowed_samples, AC3_WINDOW_SIZE, v); v 85 libavcodec/ac3enc_fixed.c return v + 6; v 185 libavcodec/ac3enc_template.c CoefType v = block->mdct_coef[ch][i+j]; v 186 libavcodec/ac3enc_template.c MAC_COEF(energy[blk][ch][bnd], v, v); v 54 libavcodec/acelp_filters.c int v = 0x4000; v 67 libavcodec/acelp_filters.c v += in[n + i] * filter_coeffs[idx + frac_pos]; v 70 libavcodec/acelp_filters.c v += in[n - i] * filter_coeffs[idx - frac_pos]; v 72 libavcodec/acelp_filters.c if (av_clip_int16(v >> 15) != (v >> 15)) v 74 libavcodec/acelp_filters.c out[n] = v >> 15; v 86 libavcodec/acelp_filters.c float v = 0; v 89 libavcodec/acelp_filters.c v += in[n + i] * filter_coeffs[idx + frac_pos]; v 92 libavcodec/acelp_filters.c v += in[n - i] * filter_coeffs[idx - frac_pos]; v 94 libavcodec/acelp_filters.c out[n] = v; v 778 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 779 libavcodec/adpcm.c samples[m ] = adpcm_ima_expand_nibble(cs, v & 0x0F, 3); v 780 libavcodec/adpcm.c samples[m + 1] = adpcm_ima_expand_nibble(cs, v >> 4 , 3); v 803 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 804 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(cs, v & 0x0F, 4); v 805 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(cs, v >> 4 , 4); v 864 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 865 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[0 ], v >> 4 , 3); v 866 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[st], v & 0x0F, 3); v 947 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 950 libavcodec/adpcm.c v1 = v >> 4; v 951 libavcodec/adpcm.c v2 = v & 0x0F; v 953 libavcodec/adpcm.c v2 = v >> 4; v 954 libavcodec/adpcm.c v1 = v & 0x0F; v 962 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 963 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[0], v >> 4 , 3); v 964 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[st], v & 0x0F, 3); v 969 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 970 libavcodec/adpcm.c *samples++ = adpcm_ima_oki_expand_nibble(&c->status[0], v >> 4 ); v 971 libavcodec/adpcm.c *samples++ = adpcm_ima_oki_expand_nibble(&c->status[st], v & 0x0F); v 1005 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 1006 libavcodec/adpcm.c *smp++ = adpcm_ima_expand_nibble(&c->status[channel], v >> 4 , 3); v 1007 libavcodec/adpcm.c *smp++ = adpcm_ima_expand_nibble(&c->status[channel], v & 0x0F, 3); v 1013 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 1014 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[channel], v >> 4 , 3); v 1015 libavcodec/adpcm.c samples[st] = adpcm_ima_expand_nibble(&c->status[channel], v & 0x0F, 3); v 1272 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 1274 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[0], v >> 4, 3); v 1275 libavcodec/adpcm.c *samples++ = adpcm_ima_expand_nibble(&c->status[0], v & 0xf, 3); v 1291 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 1293 libavcodec/adpcm.c *samples++ = adpcm_ima_qt_expand_nibble(&c->status[0 ], v >> 4, 3); v 1294 libavcodec/adpcm.c *samples++ = adpcm_ima_qt_expand_nibble(&c->status[st], v & 0xf, 3); v 1299 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 1300 libavcodec/adpcm.c *samples++ = adpcm_ct_expand_nibble(&c->status[0 ], v >> 4 ); v 1301 libavcodec/adpcm.c *samples++ = adpcm_ct_expand_nibble(&c->status[st], v & 0x0F); v 1353 libavcodec/adpcm.c int v = bytestream2_get_byteu(&gb); v 1354 libavcodec/adpcm.c *samples++ = adpcm_yamaha_expand_nibble(&c->status[0 ], v & 0x0F); v 1355 libavcodec/adpcm.c *samples++ = adpcm_yamaha_expand_nibble(&c->status[st], v >> 4 ); v 532 libavcodec/adpcmenc.c uint8_t v = adpcm_ima_compress_sample(status, smp[j ]); v 533 libavcodec/adpcmenc.c v |= adpcm_ima_compress_sample(status, smp[j + 1]) << 4; v 534 libavcodec/adpcmenc.c *dst++ = v; v 165 libavcodec/alac.c static inline int sign_only(int v) v 167 libavcodec/alac.c return v ? FFSIGN(v) : 0; v 26 libavcodec/alpha/me_cmp_alpha.c int pix_abs16x16_mvi_asm(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h); v 47 libavcodec/alpha/me_cmp_alpha.c static int pix_abs8x8_mvi(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) v 122 libavcodec/alpha/me_cmp_alpha.c static int pix_abs16x16_x2_mvi(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) v 195 libavcodec/alpha/me_cmp_alpha.c static int pix_abs16x16_y2_mvi(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) v 248 libavcodec/alpha/me_cmp_alpha.c static int pix_abs16x16_xy2_mvi(void *v, uint8_t *pix1, uint8_t *pix2, int line_size, int h) v 274 libavcodec/alpha/simple_idct_alpha.c uint64_t v = (uint16_t) block[0]; v 277 libavcodec/alpha/simple_idct_alpha.c v |= v << 16; v 279 libavcodec/alpha/simple_idct_alpha.c v |= v << 32; v 281 libavcodec/alpha/simple_idct_alpha.c stq(v, block + 0 * 4); v 282 libavcodec/alpha/simple_idct_alpha.c stq(v, block + 1 * 4); v 1541 libavcodec/alsdec.c int32_t v; v 1544 libavcodec/alsdec.c v = av_bswap32(src[sample]); v 1546 libavcodec/alsdec.c v = src[sample]; v 1548 libavcodec/alsdec.c v >>= 8; v 1550 libavcodec/alsdec.c ctx->crc = av_crc(ctx->crc_table, ctx->crc, (uint8_t*)(&v), 3); v 29 libavcodec/arm/aac.h static inline float *VMUL2(float *dst, const float *v, unsigned idx, v 42 libavcodec/arm/aac.h : "r"(v), "r"(idx), "r"(scale) v 48 libavcodec/arm/aac.h static inline float *VMUL4(float *dst, const float *v, unsigned idx, v 67 libavcodec/arm/aac.h : "r"(v), "r"(idx), "r"(scale) v 73 libavcodec/arm/aac.h static inline float *VMUL2S(float *dst, const float *v, unsigned idx, v 92 libavcodec/arm/aac.h : "r"(v), "r"(idx), "r"(scale), "r"(sign) v 98 libavcodec/arm/aac.h static inline float *VMUL4S(float *dst, const float *v, unsigned idx, v 136 libavcodec/arm/aac.h : "r"(v), "r"(idx), "r"(scale) v 31 libavcodec/arm/sbrdsp_init_arm.c void ff_sbr_qmf_deint_neg_neon(float *v, const float *src); v 32 libavcodec/arm/sbrdsp_init_arm.c void ff_sbr_qmf_deint_bfly_neon(float *v, const float *src0, const float *src1); v 49 libavcodec/arm/vp8dsp.h VP8_LF_Y(v, inner, opt); \ v 51 libavcodec/arm/vp8dsp.h VP8_LF_UV(v, inner, opt) v 57 libavcodec/arm/vp8dsp.h VP8_LF_SIMPLE(v, opt) v 38 libavcodec/asvenc.c static inline void asv2_put_bits(PutBitContext *pb, int n, int v) v 40 libavcodec/asvenc.c put_bits(pb, n, ff_reverse[v << (8 - n)]); v 5175 libavcodec/avcodec.h unsigned int av_xiphlacing(unsigned char *s, unsigned int v); v 40 libavcodec/avuidec.c uint8_t *y, *u, *v, *a; v 88 libavcodec/avuidec.c v = pic->data[2] + (1 - i) * pic->linesize[2]; v 93 libavcodec/avuidec.c v = pic->data[2] + i * pic->linesize[2]; v 103 libavcodec/avuidec.c v[ k ] = *src++; v 111 libavcodec/avuidec.c v += (interlaced + 1) * pic->linesize[2]; v 489 libavcodec/bgmc.c unsigned int *l, unsigned int *v) v 493 libavcodec/bgmc.c *v = get_bits_long(gb, VALUE_BITS); v 507 libavcodec/bgmc.c unsigned int *h, unsigned int *l, unsigned int *v, v 516 libavcodec/bgmc.c unsigned int value = *v; v 559 libavcodec/bgmc.c *v = value; v 44 libavcodec/bgmc.h unsigned int *h, unsigned int *l, unsigned int *v); v 52 libavcodec/bgmc.h unsigned int *h, unsigned int *l, unsigned int *v, v 318 libavcodec/bink.c int t, v; v 328 libavcodec/bink.c v = get_bits(gb, 4); v 329 libavcodec/bink.c memset(b->cur_dec, v, t); v 340 libavcodec/bink.c int t, sign, v; v 350 libavcodec/bink.c v = get_bits(gb, 4); v 351 libavcodec/bink.c if (v) { v 353 libavcodec/bink.c v = (v ^ sign) - sign; v 355 libavcodec/bink.c memset(b->cur_dec, v, t); v 359 libavcodec/bink.c v = GET_HUFF(gb, b->tree); v 360 libavcodec/bink.c if (v) { v 362 libavcodec/bink.c v = (v ^ sign) - sign; v 364 libavcodec/bink.c *b->cur_dec++ = v; v 374 libavcodec/bink.c int t, v; v 385 libavcodec/bink.c v = get_bits(gb, 4); v 386 libavcodec/bink.c memset(b->cur_dec, v, t); v 390 libavcodec/bink.c v = GET_HUFF(gb, b->tree); v 391 libavcodec/bink.c if (v < 12) { v 392 libavcodec/bink.c last = v; v 393 libavcodec/bink.c *b->cur_dec++ = v; v 395 libavcodec/bink.c int run = bink_rlelens[v - 12]; v 409 libavcodec/bink.c int t, v; v 419 libavcodec/bink.c v = GET_HUFF(gb, b->tree); v 420 libavcodec/bink.c v |= GET_HUFF(gb, b->tree) << 4; v 421 libavcodec/bink.c *b->cur_dec++ = v; v 429 libavcodec/bink.c int t, sign, v; v 440 libavcodec/bink.c v = GET_HUFF(gb, b->tree); v 441 libavcodec/bink.c v = (c->col_lastval << 4) | v; v 443 libavcodec/bink.c sign = ((int8_t) v) >> 7; v 444 libavcodec/bink.c v = ((v & 0x7F) ^ sign) - sign; v 445 libavcodec/bink.c v += 0x80; v 447 libavcodec/bink.c memset(b->cur_dec, v, t); v 452 libavcodec/bink.c v = GET_HUFF(gb, b->tree); v 453 libavcodec/bink.c v = (c->col_lastval << 4) | v; v 455 libavcodec/bink.c sign = ((int8_t) v) >> 7; v 456 libavcodec/bink.c v = ((v & 0x7F) ^ sign) - sign; v 457 libavcodec/bink.c v += 0x80; v 459 libavcodec/bink.c *b->cur_dec++ = v; v 471 libavcodec/bink.c int i, j, len, len2, bsize, sign, v, v2; v 476 libavcodec/bink.c v = get_bits(gb, start_bits - has_sign); v 477 libavcodec/bink.c if (v && has_sign) { v 479 libavcodec/bink.c v = (v ^ sign) - sign; v 483 libavcodec/bink.c *dst++ = v; v 497 libavcodec/bink.c v += v2; v 498 libavcodec/bink.c *dst++ = v; v 499 libavcodec/bink.c if (v < -32768 || v > 32767) { v 500 libavcodec/bink.c av_log(avctx, AV_LOG_ERROR, "DC value went out of bounds: %d\n", v); v 506 libavcodec/bink.c *dst++ = v; v 813 libavcodec/bink.c int v, col[2]; v 860 libavcodec/bink.c v = binkb_get_value(c, BINKB_SRC_COLORS); v 862 libavcodec/bink.c dst[coordmap[*scan++]] = v; v 890 libavcodec/bink.c v = binkb_get_value(c, BINKB_SRC_INTER_COEFS); v 891 libavcodec/bink.c read_residue(gb, block, v); v 912 libavcodec/bink.c v = binkb_get_value(c, BINKB_SRC_COLORS); v 913 libavcodec/bink.c c->bdsp.fill_block_tab[1](dst, v, stride, 8); v 919 libavcodec/bink.c v = binkb_get_value(c, BINKB_SRC_PATTERN); v 920 libavcodec/bink.c for (j = 0; j < 8; j++, v >>= 1) v 921 libavcodec/bink.c dst[i*stride + j] = col[v & 1]; v 959 libavcodec/bink.c int v, col[2]; v 1037 libavcodec/bink.c v = get_value(c, BINK_SRC_COLORS); v 1039 libavcodec/bink.c ublock[*scan++] = v; v 1055 libavcodec/bink.c v = get_value(c, BINK_SRC_COLORS); v 1056 libavcodec/bink.c c->bdsp.fill_block_tab[0](dst, v, stride, 16); v 1062 libavcodec/bink.c v = get_value(c, BINK_SRC_PATTERN); v 1063 libavcodec/bink.c for (i = 0; i < 8; i++, v >>= 1) v 1064 libavcodec/bink.c ublock[i + j*8] = col[v & 1]; v 1105 libavcodec/bink.c v = get_value(c, BINK_SRC_COLORS); v 1107 libavcodec/bink.c dst[coordmap[*scan++]] = v; v 1127 libavcodec/bink.c v = get_bits(gb, 7); v 1128 libavcodec/bink.c read_residue(gb, block, v); v 1138 libavcodec/bink.c v = get_value(c, BINK_SRC_COLORS); v 1139 libavcodec/bink.c c->bdsp.fill_block_tab[1](dst, v, stride, 8); v 1160 libavcodec/bink.c v = get_value(c, BINK_SRC_PATTERN); v 1161 libavcodec/bink.c for (j = 0; j < 8; j++, v >>= 1) v 1162 libavcodec/bink.c dst[i*stride + j] = col[v & 1]; v 204 libavcodec/binkaudio.c int v = get_bits1(gb); v 205 libavcodec/binkaudio.c if (v) { v 206 libavcodec/binkaudio.c v = get_bits(gb, 4); v 207 libavcodec/binkaudio.c j = i + rle_length_tab[v] * 8; v 227 libavcodec/binkaudio.c int v; v 228 libavcodec/binkaudio.c v = get_bits1(gb); v 229 libavcodec/binkaudio.c if (v) v 88 libavcodec/bitstream.c #define GET_DATA(v, table, i, wrap, size) \ v 93 libavcodec/bitstream.c v = *(const uint8_t *)ptr; \ v 96 libavcodec/bitstream.c v = *(const uint16_t *)ptr; \ v 99 libavcodec/bitstream.c v = *(const uint32_t *)ptr; \ v 54 libavcodec/bmvvideo.c #define NEXT_BYTE(v) (v) = forward ? (v) + 1 : (v) - 1; v 28 libavcodec/cabac_tablegen.c av_const int av_log2(unsigned v) { int r = 0; while (v >>= 1) r++; return r; } v 112 libavcodec/cinepak.c int r, g, b, u, v; v 114 libavcodec/cinepak.c v = *(int8_t *)data++; v 117 libavcodec/cinepak.c r = *p++ + v*2; v 118 libavcodec/cinepak.c g = *p++ - (u/2) - v; v 400 libavcodec/cook.c int exp_idx, bias, tmpbias1, tmpbias2, bits_left, num_bits, index, v, i, j; v 445 libavcodec/cook.c v = (-2 * exp_index1[i]) - quant_index_table[i] + bias; v 446 libavcodec/cook.c if (v >= max) { v 447 libavcodec/cook.c max = v; v 463 libavcodec/cook.c v = (-2 * exp_index2[i]) - quant_index_table[i] + bias; v 464 libavcodec/cook.c if (v < min) { v 465 libavcodec/cook.c min = v; v 758 libavcodec/cook.c int v = get_bits(&q->gb, p->js_vlc_bits); v 759 libavcodec/cook.c if (v == (1<<p->js_vlc_bits)-1) { v 763 libavcodec/cook.c decouple_tab[start + i] = v; v 31 libavcodec/cos_tablegen.c static int clip_f15(int v) v 33 libavcodec/cos_tablegen.c return v < -32767 ? -32767 : v 34 libavcodec/cos_tablegen.c v > 32767 ? 32767 : v 35 libavcodec/cos_tablegen.c v; v 63 libavcodec/cpia.c uint8_t *y, *u, *v, *y_end, *u_end, *v_end; v 131 libavcodec/cpia.c v = &frame->data[2][(i >> 1) * frame->linesize[2]]; v 134 libavcodec/cpia.c v_end = v + frame->linesize[2] - 1; v 161 libavcodec/cpia.c if (y + 1 > y_end || u > u_end || v > v_end) { v 171 libavcodec/cpia.c v += skip >> 1; v 178 libavcodec/cpia.c *(v++) = src[j+3]; v 670 libavcodec/dcadec.c v = samples[r][i]; \ v 671 libavcodec/dcadec.c samples[0][i] = t * coef[0][0] + u * coef[1][0] + v * coef[2][0]; \ v 672 libavcodec/dcadec.c samples[1][i] = t * coef[0][1] + u * coef[1][1] + v * coef[2][1]; v 686 libavcodec/dcadec.c float t, u, v; v 85 libavcodec/dcadsp.c uint32_t v = AV_RN32A(&samples_in[i][subindex]) ^ sign << 30; v 86 libavcodec/dcadsp.c AV_WN32A(&raXin[i], v); v 177 libavcodec/dct-test.c int err_inf, v; v 216 libavcodec/dct-test.c v = abs(err); v 217 libavcodec/dct-test.c if (v > err_inf) v 218 libavcodec/dct-test.c err_inf = v; v 219 libavcodec/dct-test.c err2 += v * v; v 221 libavcodec/dct-test.c blockSumErr += v; v 286 libavcodec/dct-test.c double s, sum, v; v 352 libavcodec/dct-test.c v = block3[8 * i + j]; v 353 libavcodec/dct-test.c if (v < 0) v = 0; v 354 libavcodec/dct-test.c else if (v > 255) v = 255; v 355 libavcodec/dct-test.c dest[i * linesize + j] = (int) rint(v); v 365 libavcodec/dct-test.c int it, i, it1, ti, ti1, err_max, v; v 388 libavcodec/dct-test.c v = abs((int) img_dest[i] - (int) img_dest1[i]); v 389 libavcodec/dct-test.c if (v == 255) v 391 libavcodec/dct-test.c if (v > err_max) v 392 libavcodec/dct-test.c err_max = v; v 70 libavcodec/dfa.c int v, count, segments; v 90 libavcodec/dfa.c v = bytestream2_get_le16(gb); v 91 libavcodec/dfa.c offset = (v & 0x1FFF) << 1; v 92 libavcodec/dfa.c count = ((v >> 13) + 2) << 1; v 112 libavcodec/dfa.c int v, offset, count, segments; v 125 libavcodec/dfa.c v = bytestream2_get_le16(gb); v 126 libavcodec/dfa.c offset = (v & 0x1FFF) << 1; v 127 libavcodec/dfa.c count = ((v >> 13) + 2) << 1; v 149 libavcodec/dfa.c int i, v, offset, count, segments; v 161 libavcodec/dfa.c v = bytestream2_get_le16(gb); v 162 libavcodec/dfa.c offset = (v & 0x1FFF) << 2; v 163 libavcodec/dfa.c count = ((v >> 13) + 2) << 1; v 173 libavcodec/dfa.c v = bytestream2_get_le16(gb)*2; v 174 libavcodec/dfa.c if (frame - frame_end < v) v 176 libavcodec/dfa.c frame += v; v 239 libavcodec/dfa.c int count, i, v, lines, segments; v 286 libavcodec/dfa.c v = bytestream2_get_le16(gb); v 288 libavcodec/dfa.c bytestream_put_le16(&line_ptr, v); v 132 libavcodec/dirac_dwt.c IDWTELEM v[8]; v 136 libavcodec/dirac_dwt.c v[i] = b[av_clip(x-3+i, 0, w2-1)]; v 137 libavcodec/dirac_dwt.c tmp[x] = COMPOSE_FIDELITYiH0(v[0], v[1], v[2], v[3], b[x+w2], v[4], v[5], v[6], v[7]); v 142 libavcodec/dirac_dwt.c v[i] = tmp[av_clip(x-4+i, 0, w2-1)]; v 143 libavcodec/dirac_dwt.c tmp[x+w2] = COMPOSE_FIDELITYiL0(v[0], v[1], v[2], v[3], b[x], v[4], v[5], v[6], v[7]); v 945 libavcodec/dnxhdenc.c int v = data[i].value; v 947 libavcodec/dnxhdenc.c buckets[j][get_bucket(v, 0)]++; v 948 libavcodec/dnxhdenc.c v >>= BUCKET_BITS; v 950 libavcodec/dnxhdenc.c av_assert1(!v); v 966 libavcodec/dnxhdenc.c int v = get_bucket(data[i].value, shift); v 967 libavcodec/dnxhdenc.c int pos = buckets[v]++; v 47 libavcodec/dvbsub.c int x, y, len, x1, v, color; v 68 libavcodec/dvbsub.c v = len - 3; v 70 libavcodec/dvbsub.c PUTBITS2((v >> 2) | 2); v 71 libavcodec/dvbsub.c PUTBITS2(v & 3); v 74 libavcodec/dvbsub.c v = len - 12; v 78 libavcodec/dvbsub.c PUTBITS2(v >> 2); v 79 libavcodec/dvbsub.c PUTBITS2(v & 3); v 85 libavcodec/dvbsub.c v = len - 29; v 89 libavcodec/dvbsub.c PUTBITS2((v >> 6)); v 90 libavcodec/dvbsub.c PUTBITS2((v >> 4) & 3); v 91 libavcodec/dvbsub.c PUTBITS2((v >> 2) & 3); v 92 libavcodec/dvbsub.c PUTBITS2(v & 3); v 135 libavcodec/dvbsub.c int x, y, len, x1, v, color; v 169 libavcodec/dvbsub.c v = len - 25; v 172 libavcodec/dvbsub.c PUTBITS4(v >> 4); v 173 libavcodec/dvbsub.c PUTBITS4(v & 0xf); v 42 libavcodec/dvbsubdec.c int x, y, v; v 60 libavcodec/dvbsubdec.c v = rgba_palette[bitmap[y * w + x]]; v 61 libavcodec/dvbsubdec.c putc((v >> 16) & 0xff, f); v 62 libavcodec/dvbsubdec.c putc((v >> 8) & 0xff, f); v 63 libavcodec/dvbsubdec.c putc((v >> 0) & 0xff, f); v 82 libavcodec/dvbsubdec.c v = rgba_palette[bitmap[y * w + x]]; v 83 libavcodec/dvbsubdec.c putc((v >> 24) & 0xff, f); v 98 libavcodec/dvbsubdec.c int x, y, v; v 116 libavcodec/dvbsubdec.c v = bitmap[y * w + x]; v 117 libavcodec/dvbsubdec.c putc((v >> 16) & 0xff, f); v 118 libavcodec/dvbsubdec.c putc((v >> 8) & 0xff, f); v 119 libavcodec/dvbsubdec.c putc((v >> 0) & 0xff, f); v 138 libavcodec/dvbsubdec.c v = bitmap[y * w + x]; v 139 libavcodec/dvbsubdec.c putc((v >> 24) & 0xff, f); v 69 libavcodec/dvdsubdec.c unsigned int v, t; v 71 libavcodec/dvdsubdec.c v = 0; v 72 libavcodec/dvdsubdec.c for (t = 1; v < t && t <= 0x40; t <<= 2) v 73 libavcodec/dvdsubdec.c v = (v << 4) | get_bits(gb, 4); v 74 libavcodec/dvdsubdec.c *color = v & 3; v 75 libavcodec/dvdsubdec.c if (v < 4) { /* Code for fill rest of line */ v 78 libavcodec/dvdsubdec.c return v >> 2; v 488 libavcodec/dvdsubdec.c uint32_t v; v 503 libavcodec/dvdsubdec.c v = rgba_palette[bitmap[y * w + x]]; v 504 libavcodec/dvdsubdec.c alpha = v >> 24; v 505 libavcodec/dvdsubdec.c putc(ALPHA_MIX(alpha, back[0], (v >> 16) & 0xff), f); v 506 libavcodec/dvdsubdec.c putc(ALPHA_MIX(alpha, back[1], (v >> 8) & 0xff), f); v 507 libavcodec/dvdsubdec.c putc(ALPHA_MIX(alpha, back[2], (v >> 0) & 0xff), f); v 37 libavcodec/dxva2_vc1.c struct dxva_context *ctx, const VC1Context *v, v 40 libavcodec/dxva2_vc1.c const MpegEncContext *s = &v->s; v 46 libavcodec/dxva2_vc1.c if ((v->fcm == ILACE_FRAME && v->intcomp) || (v->fcm != ILACE_FRAME && v->mv_mode == MV_PMODE_INTENSITY_COMP)) { v 47 libavcodec/dxva2_vc1.c if (v->lumscale != 32 || v->lumshift != 0 || (s->picture_structure != PICT_FRAME && (v->lumscale2 != 32 || v->lumshift2 != 0))) v 55 libavcodec/dxva2_vc1.c if (s->pict_type != AV_PICTURE_TYPE_I && !v->bi_type) v 59 libavcodec/dxva2_vc1.c if (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type) v 63 libavcodec/dxva2_vc1.c if (v->profile == PROFILE_ADVANCED) { v 81 libavcodec/dxva2_vc1.c pp->bSecondField = v->interlace && v->fcm == ILACE_FIELD && v->second_field; v 82 libavcodec/dxva2_vc1.c pp->bPicIntra = s->pict_type == AV_PICTURE_TYPE_I || v->bi_type; v 83 libavcodec/dxva2_vc1.c pp->bPicBackwardPrediction = s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type; v 88 libavcodec/dxva2_vc1.c ((v->profile == PROFILE_ADVANCED) << 3); v 89 libavcodec/dxva2_vc1.c pp->bMVprecisionAndChromaRelation = ((v->mv_mode == MV_PMODE_1MV_HPEL_BILIN) << 3) | v 93 libavcodec/dxva2_vc1.c pp->bChromaFormat = v->chromaformat; v 100 libavcodec/dxva2_vc1.c pp->bRcontrol = v->rnd; v 101 libavcodec/dxva2_vc1.c pp->bPicSpatialResid8 = (v->panscanflag << 7) | v 102 libavcodec/dxva2_vc1.c (v->refdist_flag << 6) | v 104 libavcodec/dxva2_vc1.c (v->fastuvmc << 4) | v 105 libavcodec/dxva2_vc1.c (v->extended_mv << 3) | v 106 libavcodec/dxva2_vc1.c (v->dquant << 1) | v 107 libavcodec/dxva2_vc1.c (v->vstransform ); v 108 libavcodec/dxva2_vc1.c pp->bPicOverflowBlocks = (v->quantizer_mode << 6) | v 109 libavcodec/dxva2_vc1.c (v->multires << 5) | v 110 libavcodec/dxva2_vc1.c (v->resync_marker << 4) | v 111 libavcodec/dxva2_vc1.c (v->rangered << 3) | v 113 libavcodec/dxva2_vc1.c pp->bPicExtrapolation = (!v->interlace || v->fcm == PROGRESSIVE) ? 1 : 2; v 114 libavcodec/dxva2_vc1.c pp->bPicDeblocked = ((!pp->bPicBackwardPrediction && v->overlap) << 6) | v 115 libavcodec/dxva2_vc1.c ((v->profile != PROFILE_ADVANCED && v->rangeredfrm) << 5) | v 117 libavcodec/dxva2_vc1.c pp->bPicDeblockConfined = (v->postprocflag << 7) | v 118 libavcodec/dxva2_vc1.c (v->broadcast << 6) | v 119 libavcodec/dxva2_vc1.c (v->interlace << 5) | v 120 libavcodec/dxva2_vc1.c (v->tfcntrflag << 4) | v 121 libavcodec/dxva2_vc1.c (v->finterpflag << 3) | v 123 libavcodec/dxva2_vc1.c (v->psf << 1) | v 124 libavcodec/dxva2_vc1.c (v->extended_dmv ); v 126 libavcodec/dxva2_vc1.c pp->bPic4MVallowed = v->mv_mode == MV_PMODE_MIXED_MV || v 127 libavcodec/dxva2_vc1.c (v->mv_mode == MV_PMODE_INTENSITY_COMP && v 128 libavcodec/dxva2_vc1.c v->mv_mode2 == MV_PMODE_MIXED_MV); v 129 libavcodec/dxva2_vc1.c if (v->profile == PROFILE_ADVANCED) v 130 libavcodec/dxva2_vc1.c pp->bPicOBMC = (v->range_mapy_flag << 7) | v 131 libavcodec/dxva2_vc1.c (v->range_mapy << 4) | v 132 libavcodec/dxva2_vc1.c (v->range_mapuv_flag << 3) | v 133 libavcodec/dxva2_vc1.c (v->range_mapuv ); v 135 libavcodec/dxva2_vc1.c pp->bMV_RPS = (v->fcm == ILACE_FIELD && pp->bPicBackwardPrediction) ? v->refdist + 9 : 0; v 136 libavcodec/dxva2_vc1.c pp->bReservedBits = v->pq; v 139 libavcodec/dxva2_vc1.c pp->wBitstreamFcodes = v->lumscale; v 140 libavcodec/dxva2_vc1.c pp->wBitstreamPCEelements = v->lumshift; v 148 libavcodec/dxva2_vc1.c pp->wBitstreamFcodes = (v->lumscale << 8) | v->lumscale2; v 149 libavcodec/dxva2_vc1.c pp->wBitstreamPCEelements = (v->lumshift << 8) | v->lumshift2; v 162 libavcodec/dxva2_vc1.c const VC1Context *v = avctx->priv_data; v 163 libavcodec/dxva2_vc1.c const MpegEncContext *s = &v->s; v 171 libavcodec/dxva2_vc1.c slice->bReservedBits = (s->pict_type == AV_PICTURE_TYPE_B && !v->bi_type) ? v->bfraction_lut_index + 9 : 0; v 172 libavcodec/dxva2_vc1.c slice->wMBbitOffset = v->p_frame_skipped ? 0xffff : get_bits_count(&s->gb) + (avctx->codec_id == AV_CODEC_ID_VC1 ? 32 : 0); v 174 libavcodec/dxva2_vc1.c slice->wQuantizerScaleCode = v->pq; v 182 libavcodec/dxva2_vc1.c const VC1Context *v = avctx->priv_data; v 184 libavcodec/dxva2_vc1.c const MpegEncContext *s = &v->s; v 210 libavcodec/dxva2_vc1.c if (v->second_field) v 240 libavcodec/dxva2_vc1.c const VC1Context *v = avctx->priv_data; v 242 libavcodec/dxva2_vc1.c struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private; v 248 libavcodec/dxva2_vc1.c fill_picture_parameters(avctx, ctx, v, &ctx_pic->pp); v 259 libavcodec/dxva2_vc1.c const VC1Context *v = avctx->priv_data; v 260 libavcodec/dxva2_vc1.c const Picture *current_picture = v->s.current_picture_ptr; v 281 libavcodec/dxva2_vc1.c VC1Context *v = avctx->priv_data; v 282 libavcodec/dxva2_vc1.c struct dxva2_picture_context *ctx_pic = v->s.current_picture_ptr->hwaccel_picture_private; v 288 libavcodec/dxva2_vc1.c ret = ff_dxva2_common_end_frame(avctx, v->s.current_picture_ptr->f, v 293 libavcodec/dxva2_vc1.c ff_mpeg_draw_horiz_band(&v->s, 0, avctx->height); v 253 libavcodec/eac3dec.c int v = get_bits(gbc, bits); v 255 libavcodec/eac3dec.c s->pre_mantissa[ch][bin][blk] = ff_eac3_mantissa_vq[hebap][v][blk] << 8; v 215 libavcodec/eamad.c int v = decode210(&s->gb); v 216 libavcodec/eamad.c if (v < 2) { v 217 libavcodec/eamad.c mv_map = v ? get_bits(&s->gb, 6) : 63; v 187 libavcodec/exr.c static inline uint16_t exr_flt2uint(uint32_t v) v 189 libavcodec/exr.c unsigned int exp = v >> 23; v 196 libavcodec/exr.c v &= 0x007fffff; v 197 libavcodec/exr.c return (v + (1 << 23)) >> (127 + 7 - exp); v 207 libavcodec/exr.c static inline uint16_t exr_halflt2uint(uint16_t v) v 209 libavcodec/exr.c unsigned exp = 14 - (v >> 10); v 212 libavcodec/exr.c return (v >> 9) & 1; v 214 libavcodec/exr.c return (v & 0x8000) ? 0 : 0xffff; v 216 libavcodec/exr.c v <<= 6; v 217 libavcodec/exr.c return (v + (1 << 16)) >> (exp + 1); v 24 libavcodec/fft-internal.h #define FIX15(v) (v) v 184 libavcodec/ffv1.h static inline void update_vlc_state(VlcState *const state, const int v) v 188 libavcodec/ffv1.h state->error_sum += FFABS(v); v 189 libavcodec/ffv1.h drift += v; v 70 libavcodec/ffv1dec.c int k, i, v, ret; v 79 libavcodec/ffv1dec.c v = get_sr_golomb(gb, k, 12, bits); v 81 libavcodec/ffv1dec.c v, state->bias, state->error_sum, state->drift, state->count, k); v 85 libavcodec/ffv1dec.c v ^= (-1); v 87 libavcodec/ffv1dec.c v ^= ((2 * state->drift + state->count) >> 31); v 90 libavcodec/ffv1dec.c ret = fold(v + state->bias, bits); v 92 libavcodec/ffv1dec.c update_vlc_state(state, v); v 111 libavcodec/ffv1dec.c int v = 0; v 114 libavcodec/ffv1dec.c v += v + get_rac(c, &state); v 116 libavcodec/ffv1dec.c sample[1][x] = v; v 453 libavcodec/ffv1dec.c int v; v 455 libavcodec/ffv1dec.c v = fs->c.bytestream_end - fs->c.bytestream - 2 - 5*f->ec; v 456 libavcodec/ffv1dec.c if (v) { v 457 libavcodec/ffv1dec.c av_log(f->avctx, AV_LOG_ERROR, "bytestream end mismatching by %d\n", v); v 471 libavcodec/ffv1dec.c int v; v 477 libavcodec/ffv1dec.c for (v = 0; i < 128; v++) { v 484 libavcodec/ffv1dec.c quant_table[i] = scale * v; v 493 libavcodec/ffv1dec.c return 2 * v - 1; v 587 libavcodec/ffv1dec.c unsigned v; v 588 libavcodec/ffv1dec.c v = av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, v 590 libavcodec/ffv1dec.c if (v) { v 591 libavcodec/ffv1dec.c av_log(f->avctx, AV_LOG_ERROR, "CRC mismatch %X!\n", v); v 623 libavcodec/ffv1dec.c unsigned v= get_symbol(c, state, 0); v 624 libavcodec/ffv1dec.c if (v >= 2) { v 625 libavcodec/ffv1dec.c av_log(f->avctx, AV_LOG_ERROR, "invalid version %d in ver01 header\n", v); v 628 libavcodec/ffv1dec.c f->version = v; v 912 libavcodec/ffv1dec.c int v; v 914 libavcodec/ffv1dec.c if (i || f->version > 2) v = AV_RB24(buf_p-trailer) + trailer; v 915 libavcodec/ffv1dec.c else v = buf_p - c->bytestream_start; v 916 libavcodec/ffv1dec.c if (buf_p - c->bytestream_start < v) { v 920 libavcodec/ffv1dec.c buf_p -= v; v 923 libavcodec/ffv1dec.c unsigned crc = av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, buf_p, v); v 939 libavcodec/ffv1dec.c ff_init_range_decoder(&fs->c, buf_p, v); v 941 libavcodec/ffv1dec.c fs->c.bytestream_end = buf_p + v; v 181 libavcodec/ffv1enc.c uint8_t *state, int v, v 197 libavcodec/ffv1enc.c if (v) { v 198 libavcodec/ffv1enc.c const int a = FFABS(v); v 210 libavcodec/ffv1enc.c put_rac(c, state + 11 + e, v < 0); // 11..21 v 220 libavcodec/ffv1enc.c put_rac(c, state + 11 + 10, v < 0); // 11..21 v 229 libavcodec/ffv1enc.c int v, int is_signed) v 231 libavcodec/ffv1enc.c put_symbol_inline(c, state, v, is_signed, NULL, NULL); v 236 libavcodec/ffv1enc.c int v, int bits) v 239 libavcodec/ffv1enc.c v = fold(v - state->bias, bits); v 252 libavcodec/ffv1enc.c code = v ^ (-1); v 254 libavcodec/ffv1enc.c code = v; v 256 libavcodec/ffv1enc.c code = v ^ ((2 * state->drift + state->count) >> 31); v 259 libavcodec/ffv1enc.c av_dlog(NULL, "v:%d/%d bias:%d error:%d drift:%d count:%d k:%d\n", v, code, v 263 libavcodec/ffv1enc.c update_vlc_state(state, v); v 292 libavcodec/ffv1enc.c int v = sample[0][x]; v 295 libavcodec/ffv1enc.c put_rac(c, &state, (v>>i) & 1); v 431 libavcodec/ffv1enc.c unsigned v = *((const uint32_t*)(src[0] + x*4 + stride[0]*y)); v 432 libavcodec/ffv1enc.c b = v & 0xFF; v 433 libavcodec/ffv1enc.c g = (v >> 8) & 0xFF; v 434 libavcodec/ffv1enc.c r = (v >> 16) & 0xFF; v 435 libavcodec/ffv1enc.c a = v >> 24; v 546 libavcodec/ffv1enc.c unsigned v; v 609 libavcodec/ffv1enc.c v = av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, f->avctx->extradata, f->avctx->extradata_size); v 610 libavcodec/ffv1enc.c AV_WL32(f->avctx->extradata + f->avctx->extradata_size, v); v 1056 libavcodec/ffv1enc.c unsigned v = *((const uint32_t*)(src[0] + x*4 + stride[0]*y)); v 1057 libavcodec/ffv1enc.c b = v & 0xFF; v 1058 libavcodec/ffv1enc.c g = (v >> 8) & 0xFF; v 1059 libavcodec/ffv1enc.c r = (v >> 16) & 0xFF; v 1295 libavcodec/ffv1enc.c unsigned v; v 1297 libavcodec/ffv1enc.c v = av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, buf_p, bytes); v 1298 libavcodec/ffv1enc.c AV_WL32(buf_p + bytes, v); v 145 libavcodec/ffwavesynth.c int32_t vt[7] = { 0 }, v = 0; v 155 libavcodec/ffwavesynth.c v -= vt[j]; v 157 libavcodec/ffwavesynth.c v += vt[j]; v 159 libavcodec/ffwavesynth.c ws->pink_pool[i] = v + ((int32_t)lcg_next(&ws->pink_state) >> 3); v 513 libavcodec/flacenc.c int32_t v = -2 * res[i] - 1; v 514 libavcodec/flacenc.c v ^= v >> 31; v 515 libavcodec/flacenc.c count += (v >> k) + 1 + k; v 958 libavcodec/flacenc.c int32_t v = 0; v 961 libavcodec/flacenc.c v |= sub->samples[i]; v 962 libavcodec/flacenc.c if (v & 1) v 966 libavcodec/flacenc.c if (v && !(v & 1)) { v 967 libavcodec/flacenc.c v = av_ctz(v); v 970 libavcodec/flacenc.c sub->samples[i] >>= v; v 972 libavcodec/flacenc.c sub->wasted = v; v 973 libavcodec/flacenc.c sub->obits -= v; v 1223 libavcodec/flacenc.c int32_t v = samples0[i] >> 8; v 1224 libavcodec/flacenc.c *tmp++ = (v ) & 0xFF; v 1225 libavcodec/flacenc.c *tmp++ = (v >> 8) & 0xFF; v 1226 libavcodec/flacenc.c *tmp++ = (v >> 16) & 0xFF; v 67 libavcodec/frame_thread_encoder.c static void * attribute_align_arg worker(void *v){ v 68 libavcodec/frame_thread_encoder.c AVCodecContext *avctx = v; v 1221 libavcodec/g723_1.c int v = av_clip_int16(vector_ptr[j] << 1); v 1222 libavcodec/g723_1.c vector_ptr[j] = av_clip_int16(v + acb_vector[j]); v 152 libavcodec/gif.c const uint32_t v = palette[i]; v 153 libavcodec/gif.c bytestream_put_be24(bytestream, v); v 256 libavcodec/gif.c const uint32_t v = palette[i]; v 257 libavcodec/gif.c if (v >> 24 < smallest_alpha) { v 258 libavcodec/gif.c smallest_alpha = v >> 24; v 370 libavcodec/gifdec.c int v, n; v 387 libavcodec/gifdec.c v = bytestream2_get_byteu(&s->gb); v 388 libavcodec/gifdec.c s->color_resolution = ((v & 0x70) >> 4) + 1; v 389 libavcodec/gifdec.c s->has_global_palette = (v & 0x80); v 390 libavcodec/gifdec.c s->bits_per_pixel = (v & 0x07) + 1; v 365 libavcodec/golomb.h int v = get_ur_golomb(gb, k, limit, esc_len); v 368 libavcodec/golomb.h v++; v 369 libavcodec/golomb.h sign = (v & 1) - 1; v 370 libavcodec/golomb.h return ((v >> 1) ^ sign) - sign; v 379 libavcodec/golomb.h int v = get_ur_golomb_jpegls(gb, k, limit, esc_len); v 380 libavcodec/golomb.h return (v >> 1) ^ -(v & 1); v 568 libavcodec/golomb.h int v; v 570 libavcodec/golomb.h v = -2 * i - 1; v 571 libavcodec/golomb.h v ^= (v >> 31); v 573 libavcodec/golomb.h set_ur_golomb(pb, v, k, limit, esc_len); v 582 libavcodec/golomb.h int v; v 584 libavcodec/golomb.h v = -2 * i - 1; v 585 libavcodec/golomb.h v ^= (v >> 31); v 587 libavcodec/golomb.h set_ur_golomb_jpegls(pb, v, k, limit, esc_len); v 34 libavcodec/gsmdec_data.h int v[9]; v 79 libavcodec/gsmdec_template.c static int filter_value(int in, int rrp[8], int v[9]) v 83 libavcodec/gsmdec_template.c in -= gsm_mult(rrp[i], v[i]); v 84 libavcodec/gsmdec_template.c v[i + 1] = v[i] + gsm_mult(rrp[i], in); v 86 libavcodec/gsmdec_template.c v[0] = in; v 99 libavcodec/gsmdec_template.c dst[i] = filter_value(src[i], rrp, ctx->v); v 104 libavcodec/gsmdec_template.c dst[i] = filter_value(src[i], rrp, ctx->v); v 109 libavcodec/gsmdec_template.c dst[i] = filter_value(src[i], rrp, ctx->v); v 114 libavcodec/gsmdec_template.c dst[i] = filter_value(src[i], rrp, ctx->v); v 236 libavcodec/h261dec.c static int decode_mv_component(GetBitContext *gb, int v) v 242 libavcodec/h261dec.c return v; v 249 libavcodec/h261dec.c v += mv_diff; v 250 libavcodec/h261dec.c if (v <= -16) v 251 libavcodec/h261dec.c v += 32; v 252 libavcodec/h261dec.c else if (v >= 16) v 253 libavcodec/h261dec.c v -= 32; v 255 libavcodec/h261dec.c return v; v 321 libavcodec/h263dec.c int v = show_bits(&s->gb, 8); v 322 libavcodec/h263dec.c v |= 0x7F >> (7 - (bits_count & 7)); v 324 libavcodec/h263dec.c if (v == 0x7F && bits_left <= 8) v 326 libavcodec/h263dec.c else if (v == 0x7F && ((get_bits_count(&s->gb) + 8) & 8) && v 352 libavcodec/h264.c int v = *src; v 355 libavcodec/h264.c tprintf(h->avctx, "rbsp trailing %X\n", v); v 358 libavcodec/h264.c if (v & 1) v 360 libavcodec/h264.c v >>= 1; v 393 libavcodec/h264_loopfilter.c FILTER(v,0,0,1); v 398 libavcodec/h264_loopfilter.c FILTER(v,0,2,0); v 403 libavcodec/h264_loopfilter.c FILTER(v,0,1,0); v 404 libavcodec/h264_loopfilter.c FILTER(v,0,2,0); v 405 libavcodec/h264_loopfilter.c FILTER(v,0,3,0); v 435 libavcodec/h264_loopfilter.c int v; v 437 libavcodec/h264_loopfilter.c v= h->ref_cache[0][b_idx] != h->ref_cache[0][bn_idx]; v 438 libavcodec/h264_loopfilter.c if(!v && h->ref_cache[0][b_idx]!=-1) v 439 libavcodec/h264_loopfilter.c v= h->mv_cache[0][b_idx][0] - h->mv_cache[0][bn_idx][0] + 3 >= 7U | v 443 libavcodec/h264_loopfilter.c if(!v) v 444 libavcodec/h264_loopfilter.c v = h->ref_cache[1][b_idx] != h->ref_cache[1][bn_idx] | v 448 libavcodec/h264_loopfilter.c if(v){ v 460 libavcodec/h264_loopfilter.c return v; v 632 libavcodec/h264_ps.c | run_length[i] |1 |ue(v) | v 638 libavcodec/h264_ps.c | top_left_mb[i] |1 |ue(v) | v 639 libavcodec/h264_ps.c | bottom_right_mb[i] |1 |ue(v) | v 648 libavcodec/h264_ps.c | slice_group_change_rate_minus1 |1 |ue(v) | v 653 libavcodec/h264_ps.c | slice_group_id_cnt_minus1 |1 |ue(v) | v 655 libavcodec/h264_ps.c | slice_group_id[i] |1 |u(v) | v 60 libavcodec/h264pred.c uint32_t v = PACK_4U8((lt + 2*t0 + t1 + 2) >> 2, v 65 libavcodec/h264pred.c AV_WN32A(src+0*stride, v); v 66 libavcodec/h264pred.c AV_WN32A(src+1*stride, v); v 67 libavcodec/h264pred.c AV_WN32A(src+2*stride, v); v 68 libavcodec/h264pred.c AV_WN32A(src+3*stride, v); v 363 libavcodec/h264pred_template.c #define PREDICT_16x16_DC(v)\ v 365 libavcodec/h264pred_template.c AV_WN4PA(src+ 0, v);\ v 366 libavcodec/h264pred_template.c AV_WN4PA(src+ 4, v);\ v 367 libavcodec/h264pred_template.c AV_WN4PA(src+ 8, v);\ v 368 libavcodec/h264pred_template.c AV_WN4PA(src+12, v);\ v 421 libavcodec/h264pred_template.c #define PRED16x16_X(n, v) \ v 427 libavcodec/h264pred_template.c PREDICT_16x16_DC(PIXEL_SPLAT_X4(v));\ v 541 libavcodec/h264pred_template.c #define PRED8x8_X(n, v)\ v 545 libavcodec/h264pred_template.c const pixel4 a = PIXEL_SPLAT_X4(v);\ v 877 libavcodec/h264pred_template.c #define PREDICT_8x8_DC(v) \ v 880 libavcodec/h264pred_template.c AV_WN4PA(((pixel4*)src)+0, v); \ v 881 libavcodec/h264pred_template.c AV_WN4PA(((pixel4*)src)+1, v); \ v 1148 libavcodec/h264pred_template.c pixel v = pix[i]; v 1149 libavcodec/h264pred_template.c src[0*stride]= v += block[0]; v 1150 libavcodec/h264pred_template.c src[1*stride]= v += block[8]; v 1151 libavcodec/h264pred_template.c src[2*stride]= v += block[16]; v 1152 libavcodec/h264pred_template.c src[3*stride]= v += block[24]; v 1153 libavcodec/h264pred_template.c src[4*stride]= v += block[32]; v 1154 libavcodec/h264pred_template.c src[5*stride]= v += block[40]; v 1155 libavcodec/h264pred_template.c src[6*stride]= v += block[48]; v 1156 libavcodec/h264pred_template.c src[7*stride]= v + block[56]; v 1184 libavcodec/h264pred_template.c pixel v = pix[i]; v 1185 libavcodec/h264pred_template.c src[0]= v += block[0]; v 1186 libavcodec/h264pred_template.c src[1]= v += block[1]; v 1187 libavcodec/h264pred_template.c src[2]= v += block[2]; v 1188 libavcodec/h264pred_template.c src[3]= v += block[3]; v 1189 libavcodec/h264pred_template.c src[4]= v += block[4]; v 1190 libavcodec/h264pred_template.c src[5]= v += block[5]; v 1191 libavcodec/h264pred_template.c src[6]= v += block[6]; v 1192 libavcodec/h264pred_template.c src[7]= v + block[7]; v 1219 libavcodec/h264pred_template.c pixel v = pix[0]; v 1220 libavcodec/h264pred_template.c pix[1*stride]= v += block[0]; v 1221 libavcodec/h264pred_template.c pix[2*stride]= v += block[4]; v 1222 libavcodec/h264pred_template.c pix[3*stride]= v += block[8]; v 1223 libavcodec/h264pred_template.c pix[4*stride]= v + block[12]; v 1239 libavcodec/h264pred_template.c pixel v = pix[-1]; v 1240 libavcodec/h264pred_template.c pix[0]= v += block[0]; v 1241 libavcodec/h264pred_template.c pix[1]= v += block[1]; v 1242 libavcodec/h264pred_template.c pix[2]= v += block[2]; v 1243 libavcodec/h264pred_template.c pix[3]= v + block[3]; v 1260 libavcodec/h264pred_template.c pixel v = pix[0]; v 1261 libavcodec/h264pred_template.c pix[1*stride]= v += block[0]; v 1262 libavcodec/h264pred_template.c pix[2*stride]= v += block[8]; v 1263 libavcodec/h264pred_template.c pix[3*stride]= v += block[16]; v 1264 libavcodec/h264pred_template.c pix[4*stride]= v += block[24]; v 1265 libavcodec/h264pred_template.c pix[5*stride]= v += block[32]; v 1266 libavcodec/h264pred_template.c pix[6*stride]= v += block[40]; v 1267 libavcodec/h264pred_template.c pix[7*stride]= v += block[48]; v 1268 libavcodec/h264pred_template.c pix[8*stride]= v + block[56]; v 1284 libavcodec/h264pred_template.c pixel v = pix[-1]; v 1285 libavcodec/h264pred_template.c pix[0]= v += block[0]; v 1286 libavcodec/h264pred_template.c pix[1]= v += block[1]; v 1287 libavcodec/h264pred_template.c pix[2]= v += block[2]; v 1288 libavcodec/h264pred_template.c pix[3]= v += block[3]; v 1289 libavcodec/h264pred_template.c pix[4]= v += block[4]; v 1290 libavcodec/h264pred_template.c pix[5]= v += block[5]; v 1291 libavcodec/h264pred_template.c pix[6]= v += block[6]; v 1292 libavcodec/h264pred_template.c pix[7]= v + block[7]; v 584 libavcodec/hevc_filter.c int v = 1 << s->sps->vshift[chroma]; v 587 libavcodec/hevc_filter.c for (y = y0; y < y_end; y += (8 * v)) { v 590 libavcodec/hevc_filter.c const int bs1 = s->vertical_bs[(x + (y + (4 * v)) * s->bs_width) >> 2]; v 594 libavcodec/hevc_filter.c const int qp1 = (get_qPy(s, x - 1, y + (4 * v)) + get_qPy(s, x, y + (4 * v)) + 1) >> 1; v 601 libavcodec/hevc_filter.c no_p[1] = get_pcm(s, x - 1, y + (4 * v)); v 603 libavcodec/hevc_filter.c no_q[1] = get_pcm(s, x, y + (4 * v)); v 205 libavcodec/hevc_mvs.c #define TAB_MVF_PU(v) \ v 206 libavcodec/hevc_mvs.c TAB_MVF(((x ## v) >> s->sps->log2_min_pu_size), \ v 207 libavcodec/hevc_mvs.c ((y ## v) >> s->sps->log2_min_pu_size)) v 272 libavcodec/hevc_mvs.c #define AVAILABLE(cand, v) \ v 273 libavcodec/hevc_mvs.c (cand && !(TAB_MVF_PU(v).pred_flag == PF_INTRA)) v 275 libavcodec/hevc_mvs.c #define PRED_BLOCK_AVAILABLE(v) \ v 276 libavcodec/hevc_mvs.c z_scan_block_avail(s, x0, y0, x ## v, y ## v) v 569 libavcodec/hevc_mvs.c #define MP_MX(v, pred, mx) \ v 571 libavcodec/hevc_mvs.c (x ## v) >> s->sps->log2_min_pu_size, \ v 572 libavcodec/hevc_mvs.c (y ## v) >> s->sps->log2_min_pu_size, \ v 575 libavcodec/hevc_mvs.c #define MP_MX_LT(v, pred, mx) \ v 577 libavcodec/hevc_mvs.c (x ## v) >> s->sps->log2_min_pu_size, \ v 578 libavcodec/hevc_mvs.c (y ## v) >> s->sps->log2_min_pu_size, \ v 185 libavcodec/hqx.c int v = av_clip(block[j + i * 8] + 0x800, 0, 0x1000); v 186 libavcodec/hqx.c dst[j] = (v << 4) | (v >> 8); v 441 libavcodec/huffyuvenc.c const uint8_t *v = s->temp[2] + offset / 2; v 452 libavcodec/huffyuvenc.c int v0 = v[i]; v 177 libavcodec/idcinvideo.c unsigned char v = 0; v 194 libavcodec/idcinvideo.c v = s->buf[dat_pos++]; v 197 libavcodec/idcinvideo.c node_num = hnodes[node_num].children[v & 0x01]; v 198 libavcodec/idcinvideo.c v = v >> 1; v 62 libavcodec/iff.c #define LUT8_PART(plane, v) \ v 63 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0000000)<<32 | v) << plane, \ v 64 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1000000)<<32 | v) << plane, \ v 65 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0010000)<<32 | v) << plane, \ v 66 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1010000)<<32 | v) << plane, \ v 67 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0000100)<<32 | v) << plane, \ v 68 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1000100)<<32 | v) << plane, \ v 69 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0010100)<<32 | v) << plane, \ v 70 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1010100)<<32 | v) << plane, \ v 71 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0000001)<<32 | v) << plane, \ v 72 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1000001)<<32 | v) << plane, \ v 73 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0010001)<<32 | v) << plane, \ v 74 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1010001)<<32 | v) << plane, \ v 75 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0000101)<<32 | v) << plane, \ v 76 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1000101)<<32 | v) << plane, \ v 77 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x0010101)<<32 | v) << plane, \ v 78 libavcodec/iff.c AV_LE2NE64C(UINT64_C(0x1010101)<<32 | v) << plane v 401 libavcodec/iff.c uint64_t v = AV_RN64A(dst) | lut[*buf++]; v 402 libavcodec/iff.c AV_WN64A(dst, v); v 857 libavcodec/ituh263dec.c int v= show_bits(&s->gb, 16); v 860 libavcodec/ituh263dec.c v >>= 16 - get_bits_left(&s->gb); v 863 libavcodec/ituh263dec.c if(v==0) v 1150 libavcodec/ituh263dec.c int v= get_bits(&s->gb, 8); v 1151 libavcodec/ituh263dec.c v |= get_sbits(&s->gb, 8)<<8; v 1152 libavcodec/ituh263dec.c av_log(s->avctx, AV_LOG_DEBUG, " %5d", v); v 97 libavcodec/jpeg2000.c int h, v, d; v 101 libavcodec/jpeg2000.c v = ((flag & JPEG2000_T1_SIG_N) ? 1 : 0) + v 110 libavcodec/jpeg2000.c FFSWAP(int, h, v); v 113 libavcodec/jpeg2000.c if (v >= 1) return 7; v 117 libavcodec/jpeg2000.c if (v == 2) return 4; v 118 libavcodec/jpeg2000.c if (v == 1) return 3; v 124 libavcodec/jpeg2000.c if (h+v >= 1) return 7; v 128 libavcodec/jpeg2000.c if (h+v >= 2) return 5; v 129 libavcodec/jpeg2000.c if (h+v == 1) return 4; v 132 libavcodec/jpeg2000.c if (h+v >= 2) return 2; v 133 libavcodec/jpeg2000.c if (h+v == 1) return 1; v 770 libavcodec/jpeg2000dec.c int v = expn[bandno] + numgbits - 1 - v 772 libavcodec/jpeg2000dec.c if (v < 0) { v 774 libavcodec/jpeg2000dec.c "nonzerobits %d invalid\n", v); v 777 libavcodec/jpeg2000dec.c cblk->nonzerobits = v; v 53 libavcodec/jpegls.c static inline int iso_clip(int v, int vmin, int vmax) v 55 libavcodec/jpegls.c if (v > vmax || v < vmin) v 58 libavcodec/jpegls.c return v; v 55 libavcodec/jpegls.h static inline int ff_jpegls_quantize(JLSState *s, int v) v 57 libavcodec/jpegls.h if (v == 0) v 59 libavcodec/jpegls.h if (v < 0) { v 60 libavcodec/jpegls.h if (v <= -s->T3) v 62 libavcodec/jpegls.h if (v <= -s->T2) v 64 libavcodec/jpegls.h if (v <= -s->T1) v 66 libavcodec/jpegls.h if (v < -s->near) v 70 libavcodec/jpegls.h if (v <= s->near) v 72 libavcodec/jpegls.h if (v < s->T1) v 74 libavcodec/jpegls.h if (v < s->T2) v 76 libavcodec/jpegls.h if (v < s->T3) v 122 libavcodec/jpegls.h #define W(a, i, v) (bits == 8 ? (((uint8_t *)(a))[i] = v) : (((uint16_t *)(a))[i] = v)) v 382 libavcodec/jpeglsenc.c int v; v 383 libavcodec/jpeglsenc.c v = get_bits(&gb, 8); v 384 libavcodec/jpeglsenc.c put_bits(&pb, 8, v); v 385 libavcodec/jpeglsenc.c if (v == 0xFF) { v 386 libavcodec/jpeglsenc.c v = get_bits(&gb, 7); v 387 libavcodec/jpeglsenc.c put_bits(&pb, 8, v); v 255 libavcodec/jrevdct.c register int v = (dcval & 0xffff) | ((dcval * (1 << 16)) & 0xffff0000); v 257 libavcodec/jrevdct.c idataptr[0] = v; v 258 libavcodec/jrevdct.c idataptr[1] = v; v 259 libavcodec/jrevdct.c idataptr[2] = v; v 260 libavcodec/jrevdct.c idataptr[3] = v; v 989 libavcodec/jrevdct.c register int v = (dcval & 0xffff) | ((dcval << 16) & 0xffff0000); v 991 libavcodec/jrevdct.c idataptr[0] = v; v 992 libavcodec/jrevdct.c idataptr[1] = v; v 67 libavcodec/jvdec.c int i, j, v[2]; v 71 libavcodec/jvdec.c v[0] = get_bits(gb, 8); v 73 libavcodec/jvdec.c memset(dst + j * linesize, v[0], 2); v 76 libavcodec/jvdec.c v[0] = get_bits(gb, 8); v 77 libavcodec/jvdec.c v[1] = get_bits(gb, 8); v 80 libavcodec/jvdec.c dst[j * linesize + i] = v[get_bits1(gb)]; v 94 libavcodec/jvdec.c int i, j, v[2]; v 98 libavcodec/jvdec.c v[0] = get_bits(gb, 8); v 100 libavcodec/jvdec.c memset(dst + j * linesize, v[0], 4); v 103 libavcodec/jvdec.c v[0] = get_bits(gb, 8); v 104 libavcodec/jvdec.c v[1] = get_bits(gb, 8); v 107 libavcodec/jvdec.c dst[j * linesize + i] = v[get_bits1(gb)]; v 109 libavcodec/jvdec.c dst[(j + 1) * linesize + i] = v[get_bits1(gb)]; v 125 libavcodec/jvdec.c int i, j, v[2]; v 129 libavcodec/jvdec.c v[0] = get_bits(gb, 8); v 130 libavcodec/jvdec.c bdsp->fill_block_tab[1](dst, v[0], linesize, 8); v 133 libavcodec/jvdec.c v[0] = get_bits(gb, 8); v 134 libavcodec/jvdec.c v[1] = get_bits(gb, 8); v 137 libavcodec/jvdec.c dst[j * linesize + i] = v[get_bits1(gb)]; v 181 libavcodec/jvdec.c int v = *buf++; v 184 libavcodec/jvdec.c v, avctx->width); v 169 libavcodec/libutvideodec.cpp uint16_t *y, *u, *v; v 181 libavcodec/libutvideodec.cpp v = (uint16_t*)pic->data[2]; v 192 libavcodec/libutvideodec.cpp *v++ = (a>>20) & 0x3FF; v 202 libavcodec/libutvideodec.cpp *v++ = (a ) & 0x3FF; v 212 libavcodec/libutvideodec.cpp *v++ = (b>>10) & 0x3FF; v 141 libavcodec/libutvideoenc.cpp uint8_t *y, *u, *v; v 155 libavcodec/libutvideoenc.cpp v = u + w * h / 4; v 162 libavcodec/libutvideoenc.cpp memcpy(v, pic->data[1] + i * pic->linesize[1], w >> 1); v 164 libavcodec/libutvideoenc.cpp v += w >> 1; v 228 libavcodec/libwebpenc.c pic->v = frame->data[2]; v 131 libavcodec/ljpegenc.c int x, y, h, v, linesize; v 133 libavcodec/ljpegenc.c v = s->vsample[i]; v 136 libavcodec/ljpegenc.c for (y = 0; y < v; y++) { v 140 libavcodec/ljpegenc.c ptr = frame->data[i] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap v 165 libavcodec/ljpegenc.c int x, y, h, v, linesize; v 167 libavcodec/ljpegenc.c v = s->vsample[i]; v 170 libavcodec/ljpegenc.c for (y = 0; y < v; y++) { v 174 libavcodec/ljpegenc.c ptr = frame->data[i] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap v 85 libavcodec/loco.c int v; v 91 libavcodec/loco.c v = get_ur_golomb_jpegls(&r->gb, loco_get_rice_param(r), INT_MAX, 0); v 92 libavcodec/loco.c loco_update_rice_param(r, (v + 1) >> 1); v 93 libavcodec/loco.c if (!v) { v 103 libavcodec/loco.c v = ((v >> 1) + r->lossy) ^ -(v & 1); v 113 libavcodec/loco.c return v; v 142 libavcodec/mathops.h union { unsigned u; int s; } v = { (unsigned) val << shift }; v 143 libavcodec/mathops.h return v.s >> shift; v 34 libavcodec/me_cmp.c static int sse4_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 51 libavcodec/me_cmp.c static int sse8_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 72 libavcodec/me_cmp.c static int sse16_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 114 libavcodec/me_cmp.c static inline int pix_abs16_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 142 libavcodec/me_cmp.c static int pix_abs16_x2_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 170 libavcodec/me_cmp.c static int pix_abs16_y2_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 200 libavcodec/me_cmp.c static int pix_abs16_xy2_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 230 libavcodec/me_cmp.c static inline int pix_abs8_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 250 libavcodec/me_cmp.c static int pix_abs8_x2_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 270 libavcodec/me_cmp.c static int pix_abs8_y2_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 292 libavcodec/me_cmp.c static int pix_abs8_xy2_c(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 601 libavcodec/me_cmp.c #define DST(x, v) dct[i][x] = v v 608 libavcodec/me_cmp.c #define DST(x, v) sum += FFABS(v) v 109 libavcodec/mips/aacdec_mips.c union { unsigned u; int s; } v = { previous_val * 1664525u + 1013904223 }; v 110 libavcodec/mips/aacdec_mips.c return v.s; v 64 libavcodec/mips/aacdec_mips.h static inline float *VMUL2_mips(float *dst, const float *v, unsigned idx, v 88 libavcodec/mips/aacdec_mips.h : [idx]"r"(idx), [scale]"r"(scale), [v]"r"(v), v 95 libavcodec/mips/aacdec_mips.h static inline float *VMUL4_mips(float *dst, const float *v, unsigned idx, v 130 libavcodec/mips/aacdec_mips.h : [idx]"r"(idx), [scale]"r"(scale), [v]"r"(v), v 137 libavcodec/mips/aacdec_mips.h static inline float *VMUL2S_mips(float *dst, const float *v, unsigned idx, v 171 libavcodec/mips/aacdec_mips.h : [idx]"r"(idx), [scale]"r"(scale), [v]"r"(v), v 178 libavcodec/mips/aacdec_mips.h static inline float *VMUL4S_mips(float *dst, const float *v, unsigned idx, v 238 libavcodec/mips/aacdec_mips.h : [idx]"r"(idx), [scale]"r"(scale), [v]"r"(v), v 162 libavcodec/mips/aacsbr_mips.h float *v; v 176 libavcodec/mips/aacsbr_mips.h v = v0 + *v_off; v 183 libavcodec/mips/aacsbr_mips.h sbrdsp->qmf_deint_neg(v, mdct_buf[0]); v 188 libavcodec/mips/aacsbr_mips.h sbrdsp->qmf_deint_bfly(v, mdct_buf[1], mdct_buf[0]); v 194 libavcodec/mips/aacsbr_mips.h vv0 = v; v 195 libavcodec/mips/aacsbr_mips.h v0_end = v + 60; v 473 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul (out, v , sbr_qmf_window , 64 >> div); v 474 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 192 >> div), sbr_qmf_window + ( 64 >> div), out , 64 >> div); v 475 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 256 >> div), sbr_qmf_window + (128 >> div), out , 64 >> div); v 476 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 448 >> div), sbr_qmf_window + (192 >> div), out , 64 >> div); v 477 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 512 >> div), sbr_qmf_window + (256 >> div), out , 64 >> div); v 478 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 704 >> div), sbr_qmf_window + (320 >> div), out , 64 >> div); v 479 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 768 >> div), sbr_qmf_window + (384 >> div), out , 64 >> div); v 480 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + ( 960 >> div), sbr_qmf_window + (448 >> div), out , 64 >> div); v 481 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + (1024 >> div), sbr_qmf_window + (512 >> div), out , 64 >> div); v 482 libavcodec/mips/aacsbr_mips.h fdsp->vector_fmul_add(out, v + (1216 >> div), sbr_qmf_window + (576 >> div), out , 64 >> div); v 78 libavcodec/mips/acelp_filters_mips.c float v = 0; v 93 libavcodec/mips/acelp_filters_mips.c : [v] "+&f" (v),[p_in_p] "+r" (p_in_p), [p_in_m] "+r" (p_in_m), v 102 libavcodec/mips/acelp_filters_mips.c out[n] = v; v 315 libavcodec/mips/sbrdsp_mips.c static void sbr_qmf_deint_bfly_mips(float *v, const float *src0, const float *src1) v 320 libavcodec/mips/sbrdsp_mips.c float *v0 = v; v 321 libavcodec/mips/sbrdsp_mips.c float *v1 = &v[127]; v 193 libavcodec/mjpegdec.c int len, index, i, class, n, v, code_max; v 220 libavcodec/mjpegdec.c v = get_bits(&s->gb, 8); v 221 libavcodec/mjpegdec.c if (v > code_max) v 222 libavcodec/mjpegdec.c code_max = v; v 223 libavcodec/mjpegdec.c val_table[i] = v; v 1045 libavcodec/mjpegdec.c int n, h, v, x, y, c, j, linesize; v 1049 libavcodec/mjpegdec.c v = s->v_scount[i]; v 1063 libavcodec/mjpegdec.c ptr = s->picture_ptr->data[c] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap v 1083 libavcodec/mjpegdec.c ptr16 = (uint16_t*)(s->picture_ptr->data[c] + 2*(linesize * (v * mb_y + y)) + 2*(h * mb_x + x)); //FIXME optimize this crap v 1113 libavcodec/mjpegdec.c int n, h, v, x, y, c, j, linesize, dc; v 1117 libavcodec/mjpegdec.c v = s->v_scount[i]; v 1132 libavcodec/mjpegdec.c (linesize * (v * mb_y + y)) + v 1139 libavcodec/mjpegdec.c ptr16 = (uint16_t*)(s->picture_ptr->data[c] + 2*(linesize * (v * mb_y + y)) + 2*(h * mb_x + x)); //FIXME optimize this crap v 1237 libavcodec/mjpegdec.c int n, h, v, x, y, c, j; v 1242 libavcodec/mjpegdec.c v = s->v_scount[i]; v 1246 libavcodec/mjpegdec.c block_offset = (((linesize[c] * (v * mb_y + y) * 8) + v 1252 libavcodec/mjpegdec.c && 8*(v * mb_y + y) < s->height) { v 1278 libavcodec/mjpegdec.c int block_idx = s->block_stride[c] * (v * mb_y + y) + v 1295 libavcodec/mjpegdec.c (v * mb_y + y) * 8, (h * mb_x + x) * 8); v 1377 libavcodec/mjpegdec.c int len, nb_components, i, h, v, predictor, point_transform; v 1454 libavcodec/mjpegdec.c v = s->v_max / s->v_scount[0]; v 1456 libavcodec/mjpegdec.c s->mb_height = (s->height + v * block_size - 1) / (v * block_size); v 1824 libavcodec/mjpegdec.c unsigned int v, v2; v 1830 libavcodec/mjpegdec.c v = *buf_ptr++; v 1832 libavcodec/mjpegdec.c if ((v == 0xff) && (v2 >= 0xc0) && (v2 <= 0xfe) && buf_ptr < buf_end) { v 303 libavcodec/mjpegenc_common.c int acc, v; v 305 libavcodec/mjpegenc_common.c v= *(uint32_t*)(&buf[i]); v 306 libavcodec/mjpegenc_common.c acc= (((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010; v 307 libavcodec/mjpegenc_common.c v= *(uint32_t*)(&buf[i+4]); v 308 libavcodec/mjpegenc_common.c acc+=(((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010; v 309 libavcodec/mjpegenc_common.c v= *(uint32_t*)(&buf[i+8]); v 310 libavcodec/mjpegenc_common.c acc+=(((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010; v 311 libavcodec/mjpegenc_common.c v= *(uint32_t*)(&buf[i+12]); v 312 libavcodec/mjpegenc_common.c acc+=(((v & (v>>4))&0x0F0F0F0F)+0x01010101)&0x10101010; v 329 libavcodec/mjpegenc_common.c int v= buf[i]; v 331 libavcodec/mjpegenc_common.c if(v==0xFF){ v 336 libavcodec/mjpegenc_common.c buf[i+ff_count]= v; v 403 libavcodec/motion_est_template.c #define check(x,y,S,v)\ v 404 libavcodec/motion_est_template.c if( (x)<(xmin<<(S)) ) av_log(NULL, AV_LOG_ERROR, "%d %d %d %d %d xmin" #v, xmin, (x), (y), s->mb_x, s->mb_y);\ v 405 libavcodec/motion_est_template.c if( (x)>(xmax<<(S)) ) av_log(NULL, AV_LOG_ERROR, "%d %d %d %d %d xmax" #v, xmax, (x), (y), s->mb_x, s->mb_y);\ v 406 libavcodec/motion_est_template.c if( (y)<(ymin<<(S)) ) av_log(NULL, AV_LOG_ERROR, "%d %d %d %d %d ymin" #v, ymin, (x), (y), s->mb_x, s->mb_y);\ v 407 libavcodec/motion_est_template.c if( (y)>(ymax<<(S)) ) av_log(NULL, AV_LOG_ERROR, "%d %d %d %d %d ymax" #v, ymax, (x), (y), s->mb_x, s->mb_y);\ v 174 libavcodec/motionpixels.c static int mp_gradient(MotionPixelsContext *mp, int component, int v) v 178 libavcodec/motionpixels.c delta = (v - 7) * mp->gradient_scale[component]; v 179 libavcodec/motionpixels.c mp->gradient_scale[component] = (v == 0 || v == 14) ? 2 : 1; v 195 libavcodec/motionpixels.c color = mp_yuv_to_rgb(p->y, p->v, p->u, 1); v 238 libavcodec/motionpixels.c p.v += mp_gradient(mp, 1, mp_get_vlc(mp, gb)); v 239 libavcodec/motionpixels.c p.v = av_clip_intp2(p.v, 5); v 244 libavcodec/motionpixels.c p.v = mp->hpt[((y / 4) * mp->avctx->width + x) / 4].v; v 269 libavcodec/motionpixels.c p.v += mp_gradient(mp, 1, mp_get_vlc(mp, gb)); v 270 libavcodec/motionpixels.c p.v = av_clip_intp2(p.v, 5); v 30 libavcodec/motionpixels_tablegen.h int8_t y, v, u; v 33 libavcodec/motionpixels_tablegen.h static int mp_yuv_to_rgb(int y, int v, int u, int clip_rgb) { v 37 libavcodec/motionpixels_tablegen.h r = (1000 * y + 701 * v) / 1000; v 38 libavcodec/motionpixels_tablegen.h g = (1000 * y - 357 * v - 172 * u) / 1000; v 59 libavcodec/motionpixels_tablegen.h if (!(p[j].u | p[j].v | p[j].y)) v 62 libavcodec/motionpixels_tablegen.h if (!(p[j].u | p[j].v | p[j].y)) v 69 libavcodec/motionpixels_tablegen.h int y, v, u, i; v 72 libavcodec/motionpixels_tablegen.h for (v = -31; v <= 31; ++v) v 74 libavcodec/motionpixels_tablegen.h i = mp_yuv_to_rgb(y, v, u, 0); v 75 libavcodec/motionpixels_tablegen.h if (i < (1 << 15) && !(p[i].u | p[i].v | p[i].y)) { v 77 libavcodec/motionpixels_tablegen.h p[i].v = v; v 1539 libavcodec/mpeg12dec.c int v = get_bits(&s->gb, 8); v 1540 libavcodec/mpeg12dec.c if (v == 0) { v 1544 libavcodec/mpeg12dec.c if (intra && i == 0 && v != 8) { v 1545 libavcodec/mpeg12dec.c av_log(s->avctx, AV_LOG_DEBUG, "intra matrix specifies invalid DC quantizer %d, ignoring\n", v); v 1546 libavcodec/mpeg12dec.c v = 8; // needed by pink.mpg / issue1046 v 1548 libavcodec/mpeg12dec.c matrix0[j] = v; v 1550 libavcodec/mpeg12dec.c matrix1[j] = v; v 2109 libavcodec/mpeg12dec.c int i, v, j; v 2150 libavcodec/mpeg12dec.c v = ff_mpeg1_default_intra_matrix[i]; v 2151 libavcodec/mpeg12dec.c s->intra_matrix[j] = v; v 2152 libavcodec/mpeg12dec.c s->chroma_intra_matrix[j] = v; v 2160 libavcodec/mpeg12dec.c v = ff_mpeg1_default_non_intra_matrix[i]; v 2161 libavcodec/mpeg12dec.c s->inter_matrix[j] = v; v 2162 libavcodec/mpeg12dec.c s->chroma_inter_matrix[j] = v; v 2196 libavcodec/mpeg12dec.c int i, v, ret; v 2219 libavcodec/mpeg12dec.c v = ff_mpeg1_default_intra_matrix[i]; v 2220 libavcodec/mpeg12dec.c s->intra_matrix[j] = v; v 2221 libavcodec/mpeg12dec.c s->chroma_intra_matrix[j] = v; v 2223 libavcodec/mpeg12dec.c v = ff_mpeg1_default_non_intra_matrix[i]; v 2224 libavcodec/mpeg12dec.c s->inter_matrix[j] = v; v 2225 libavcodec/mpeg12dec.c s->chroma_inter_matrix[j] = v; v 240 libavcodec/mpeg12enc.c unsigned int vbv_buffer_size, fps, v; v 277 libavcodec/mpeg12enc.c v = (s->avctx->rc_max_rate + 399) / 400; v 278 libavcodec/mpeg12enc.c if (v > 0x3ffff && s->codec_id == AV_CODEC_ID_MPEG1VIDEO) v 279 libavcodec/mpeg12enc.c v = 0x3ffff; v 281 libavcodec/mpeg12enc.c v = 0x3FFFF; v 292 libavcodec/mpeg12enc.c put_sbits(&s->pb, 18, v); v 305 libavcodec/mpeg12enc.c v <= 1856000 / 400 && v 331 libavcodec/mpeg12enc.c put_bits(&s->pb, 12, v >> 18); // bitrate ext v 119 libavcodec/mpeg4videodec.c int v = show_bits(&s->gb, 16); v 124 libavcodec/mpeg4videodec.c while (v <= 0xFF) { v 126 libavcodec/mpeg4videodec.c (v >> (8 - s->pict_type) != 1) || s->partitioned_frame) v 130 libavcodec/mpeg4videodec.c v = show_bits(&s->gb, 16); v 134 libavcodec/mpeg4videodec.c v >>= 8; v 135 libavcodec/mpeg4videodec.c v |= 0x7F >> (7 - (bits_count & 7)); v 137 libavcodec/mpeg4videodec.c if (v == 0x7F) v 140 libavcodec/mpeg4videodec.c if (v == ff_mpeg4_resync_prefix[bits_count & 7]) { v 516 libavcodec/mpeg4videodec.c int v; v 518 libavcodec/mpeg4videodec.c v = mb_v + dy * y; v 521 libavcodec/mpeg4videodec.c sum += v >> shift; v 522 libavcodec/mpeg4videodec.c v += dx; v 1858 libavcodec/mpeg4videodec.c int i, v; v 1863 libavcodec/mpeg4videodec.c v = ff_mpeg4_default_intra_matrix[i]; v 1864 libavcodec/mpeg4videodec.c s->intra_matrix[j] = v; v 1865 libavcodec/mpeg4videodec.c s->chroma_intra_matrix[j] = v; v 1867 libavcodec/mpeg4videodec.c v = ff_mpeg4_default_non_intra_matrix[i]; v 1868 libavcodec/mpeg4videodec.c s->inter_matrix[j] = v; v 1869 libavcodec/mpeg4videodec.c s->chroma_inter_matrix[j] = v; v 1877 libavcodec/mpeg4videodec.c v = get_bits(gb, 8); v 1878 libavcodec/mpeg4videodec.c if (v == 0) v 1881 libavcodec/mpeg4videodec.c last = v; v 1900 libavcodec/mpeg4videodec.c v = get_bits(gb, 8); v 1901 libavcodec/mpeg4videodec.c if (v == 0) v 1904 libavcodec/mpeg4videodec.c last = v; v 1906 libavcodec/mpeg4videodec.c s->inter_matrix[j] = v; v 1907 libavcodec/mpeg4videodec.c s->chroma_inter_matrix[j] = v; v 2503 libavcodec/mpeg4videodec.c unsigned startcode, v; v 2527 libavcodec/mpeg4videodec.c v = get_bits(gb, 8); v 2528 libavcodec/mpeg4videodec.c startcode = ((startcode << 8) | v) & 0xffffffff; v 270 libavcodec/mpeg4videoenc.c int size, v; v 273 libavcodec/mpeg4videoenc.c v = abs(level); v 274 libavcodec/mpeg4videoenc.c while (v) { v 275 libavcodec/mpeg4videoenc.c v >>= 1; v 1147 libavcodec/mpeg4videoenc.c int size, v, l; v 1150 libavcodec/mpeg4videoenc.c v = abs(level); v 1151 libavcodec/mpeg4videoenc.c while (v) { v 1152 libavcodec/mpeg4videoenc.c v >>= 1; v 132 libavcodec/mpegaudiodec_template.c #define SCALE_GEN(v) \ v 133 libavcodec/mpegaudiodec_template.c { FIXR_OLD(1.0 * (v)), FIXR_OLD(0.7937005259 * (v)), FIXR_OLD(0.6299605249 * (v)) } v 360 libavcodec/mpegaudiodec_template.c INTFLOAT v; v 363 libavcodec/mpegaudiodec_template.c v = FIXR(f / (1.0 + f)); v 365 libavcodec/mpegaudiodec_template.c v = FIXR(1.0); v 367 libavcodec/mpegaudiodec_template.c is_table[0][ i] = v; v 368 libavcodec/mpegaudiodec_template.c is_table[1][6 - i] = v; v 503 libavcodec/mpegaudiodec_template.c int bound, i, v, n, ch, j, mant; v 542 libavcodec/mpegaudiodec_template.c v = l1_unscale(n, mant, scale_factors[ch][i]); v 544 libavcodec/mpegaudiodec_template.c v = 0; v 546 libavcodec/mpegaudiodec_template.c s->sb_samples[ch][j][i] = v; v 553 libavcodec/mpegaudiodec_template.c v = l1_unscale(n, mant, scale_factors[0][i]); v 554 libavcodec/mpegaudiodec_template.c s->sb_samples[0][j][i] = v; v 555 libavcodec/mpegaudiodec_template.c v = l1_unscale(n, mant, scale_factors[1][i]); v 556 libavcodec/mpegaudiodec_template.c s->sb_samples[1][j][i] = v; v 570 libavcodec/mpegaudiodec_template.c int table, bit_alloc_bits, i, j, ch, bound, v; v 603 libavcodec/mpegaudiodec_template.c v = get_bits(&s->gb, bit_alloc_bits); v 604 libavcodec/mpegaudiodec_template.c bit_alloc[0][i] = v; v 605 libavcodec/mpegaudiodec_template.c bit_alloc[1][i] = v; v 664 libavcodec/mpegaudiodec_template.c v = get_bits(&s->gb, -bits); v 665 libavcodec/mpegaudiodec_template.c v2 = division_tabs[qindex][v]; v 676 libavcodec/mpegaudiodec_template.c v = get_bits(&s->gb, bits); v 677 libavcodec/mpegaudiodec_template.c v = l1_unscale(bits - 1, v, scale); v 678 libavcodec/mpegaudiodec_template.c s->sb_samples[ch][k * 12 + l + m][i] = v; v 702 libavcodec/mpegaudiodec_template.c v = get_bits(&s->gb, -bits); v 704 libavcodec/mpegaudiodec_template.c mant = v % steps; v 705 libavcodec/mpegaudiodec_template.c v = v / steps; v 710 libavcodec/mpegaudiodec_template.c mant = v % steps; v 711 libavcodec/mpegaudiodec_template.c v = v / steps; v 717 libavcodec/mpegaudiodec_template.c l2_unscale_group(steps, v, scale0); v 719 libavcodec/mpegaudiodec_template.c l2_unscale_group(steps, v, scale1); v 848 libavcodec/mpegaudiodec_template.c v = AV_RN32A(src) ^ (get_bits1(&s->gb) << 31); \ v 849 libavcodec/mpegaudiodec_template.c AV_WN32A(dst, v); v 852 libavcodec/mpegaudiodec_template.c v = -get_bits1(&s->gb); \ v 853 libavcodec/mpegaudiodec_template.c *(dst) = (*(src) ^ v) - v; v 887 libavcodec/mpegaudiodec_template.c int v; v 915 libavcodec/mpegaudiodec_template.c v = l3_unscale(x, exponent); v 917 libavcodec/mpegaudiodec_template.c v = -v; v 918 libavcodec/mpegaudiodec_template.c g->sb_hybrid[s_index] = v; v 924 libavcodec/mpegaudiodec_template.c v = l3_unscale(y, exponent); v 926 libavcodec/mpegaudiodec_template.c v = -v; v 927 libavcodec/mpegaudiodec_template.c g->sb_hybrid[s_index+1] = v; v 937 libavcodec/mpegaudiodec_template.c v = l3_unscale(x, exponent); v 939 libavcodec/mpegaudiodec_template.c v = -v; v 940 libavcodec/mpegaudiodec_template.c g->sb_hybrid[s_index+!!y] = v; v 979 libavcodec/mpegaudiodec_template.c int v; v 201 libavcodec/mpegaudiodsp_template.c INTFLOAT v; v 202 libavcodec/mpegaudiodsp_template.c v = ff_mpa_enwindow[i]; v 204 libavcodec/mpegaudiodsp_template.c v *= 1.0 / (1LL<<(16 + FRAC_BITS)); v 206 libavcodec/mpegaudiodsp_template.c window[i] = v; v 208 libavcodec/mpegaudiodsp_template.c v = -v; v 210 libavcodec/mpegaudiodsp_template.c window[512 - i] = v; v 82 libavcodec/mpegaudioenc_template.c int i, v, table; v 149 libavcodec/mpegaudioenc_template.c int v; v 150 libavcodec/mpegaudioenc_template.c v = ff_mpa_enwindow[i]; v 152 libavcodec/mpegaudioenc_template.c v = (v + (1 << (16 - WFRAC_BITS - 1))) >> (16 - WFRAC_BITS); v 154 libavcodec/mpegaudioenc_template.c s->filter_bank[i] = v; v 156 libavcodec/mpegaudioenc_template.c v = -v; v 158 libavcodec/mpegaudioenc_template.c s->filter_bank[512 - i] = v; v 162 libavcodec/mpegaudioenc_template.c v = (int)(exp2((3 - i) / 3.0) * (1 << 20)); v 163 libavcodec/mpegaudioenc_template.c if (v <= 0) v 164 libavcodec/mpegaudioenc_template.c v = 1; v 165 libavcodec/mpegaudioenc_template.c s->scale_factor_table[i] = v; v 175 libavcodec/mpegaudioenc_template.c v = i - 64; v 176 libavcodec/mpegaudioenc_template.c if (v <= -3) v 177 libavcodec/mpegaudioenc_template.c v = 0; v 178 libavcodec/mpegaudioenc_template.c else if (v < 0) v 179 libavcodec/mpegaudioenc_template.c v = 1; v 180 libavcodec/mpegaudioenc_template.c else if (v == 0) v 181 libavcodec/mpegaudioenc_template.c v = 2; v 182 libavcodec/mpegaudioenc_template.c else if (v < 3) v 183 libavcodec/mpegaudioenc_template.c v = 3; v 185 libavcodec/mpegaudioenc_template.c v = 4; v 186 libavcodec/mpegaudioenc_template.c s->scale_diff_table[i] = v; v 190 libavcodec/mpegaudioenc_template.c v = ff_mpa_quant_bits[i]; v 191 libavcodec/mpegaudioenc_template.c if (v < 0) v 192 libavcodec/mpegaudioenc_template.c v = -v; v 194 libavcodec/mpegaudioenc_template.c v = v * 3; v 195 libavcodec/mpegaudioenc_template.c s->total_quant_bits[i] = 12 * v; v 382 libavcodec/mpegaudioenc_template.c int *p, vmax, v, n, i, j, k, code; v 393 libavcodec/mpegaudioenc_template.c v = abs(*p); v 394 libavcodec/mpegaudioenc_template.c if (v > vmax) v 395 libavcodec/mpegaudioenc_template.c vmax = v; v 2442 libavcodec/mpegvideo.c uint64_t u,v; v 2446 libavcodec/mpegvideo.c v = (int)(128 + r * sin(theta * 3.141592 / 180)); v 2449 libavcodec/mpegvideo.c u = v = 128; v 2477 libavcodec/mpegvideo.c v *= 0x0101010101010101ULL; v 2482 libavcodec/mpegvideo.c (block_height * mb_y + y) * pict->linesize[2]) = v; v 1235 libavcodec/mpegvideo_enc.c int v = s->mecc.frame_skip_cmp[1](s, dptr, rptr, stride, 8); v 1238 libavcodec/mpegvideo_enc.c case 0: score = FFMAX(score, v); break; v 1239 libavcodec/mpegvideo_enc.c case 1: score += FFABS(v); break; v 1240 libavcodec/mpegvideo_enc.c case 2: score64 += v * (int64_t)v; break; v 1241 libavcodec/mpegvideo_enc.c case 3: score64 += FFABS(v * (int64_t)v * v); break; v 1242 libavcodec/mpegvideo_enc.c case 4: score64 += (v * (int64_t)v) * (v * (int64_t)v); break; v 2032 libavcodec/mpegvideo_enc.c int v = ptr[x2 + y2 * stride]; v 2033 libavcodec/mpegvideo_enc.c sum += v; v 2034 libavcodec/mpegvideo_enc.c sqr += v * v; v 59 libavcodec/msmpeg4.c int size, v, l; v 62 libavcodec/msmpeg4.c v = abs(level); v 63 libavcodec/msmpeg4.c while (v) { v 64 libavcodec/msmpeg4.c v >>= 1; v 37 libavcodec/mss2.c VC1Context v; v 376 libavcodec/mss2.c VC1Context *v = avctx->priv_data; v 377 libavcodec/mss2.c MpegEncContext *s = &v->s; v 388 libavcodec/mss2.c if (ff_vc1_parse_frame_header(v, &s->gb) < 0) { v 389 libavcodec/mss2.c av_log(v->s.avctx, AV_LOG_ERROR, "header error\n"); v 394 libavcodec/mss2.c av_log(v->s.avctx, AV_LOG_ERROR, "expected I-frame\n"); v 401 libavcodec/mss2.c av_log(v->s.avctx, AV_LOG_ERROR, "ff_mpv_frame_start error\n"); v 408 libavcodec/mss2.c v->bits = buf_size * 8; v 410 libavcodec/mss2.c v->end_mb_x = (w + 15) >> 4; v 412 libavcodec/mss2.c if (v->respic & 1) v 413 libavcodec/mss2.c v->end_mb_x = v->end_mb_x + 1 >> 1; v 414 libavcodec/mss2.c if (v->respic & 2) v 417 libavcodec/mss2.c ff_vc1_decode_blocks(v); v 425 libavcodec/mss2.c if (v->respic == 3) { v 429 libavcodec/mss2.c } else if (v->respic) v 430 libavcodec/mss2.c avpriv_request_sample(v->s.avctx, v 741 libavcodec/mss2.c VC1Context *v = avctx->priv_data; v 744 libavcodec/mss2.c v->s.avctx = avctx; v 746 libavcodec/mss2.c if ((ret = ff_vc1_init_common(v)) < 0) v 748 libavcodec/mss2.c ff_vc1dsp_init(&v->vc1dsp); v 750 libavcodec/mss2.c v->profile = PROFILE_MAIN; v 752 libavcodec/mss2.c v->zz_8x4 = ff_wmv2_scantableA; v 753 libavcodec/mss2.c v->zz_4x8 = ff_wmv2_scantableB; v 754 libavcodec/mss2.c v->res_y411 = 0; v 755 libavcodec/mss2.c v->res_sprite = 0; v 757 libavcodec/mss2.c v->frmrtq_postproc = 7; v 758 libavcodec/mss2.c v->bitrtq_postproc = 31; v 760 libavcodec/mss2.c v->res_x8 = 0; v 761 libavcodec/mss2.c v->multires = 0; v 762 libavcodec/mss2.c v->res_fasttx = 1; v 764 libavcodec/mss2.c v->fastuvmc = 0; v 766 libavcodec/mss2.c v->extended_mv = 0; v 768 libavcodec/mss2.c v->dquant = 1; v 769 libavcodec/mss2.c v->vstransform = 1; v 771 libavcodec/mss2.c v->res_transtab = 0; v 773 libavcodec/mss2.c v->overlap = 0; v 775 libavcodec/mss2.c v->resync_marker = 0; v 776 libavcodec/mss2.c v->rangered = 0; v 778 libavcodec/mss2.c v->s.max_b_frames = avctx->max_b_frames = 0; v 779 libavcodec/mss2.c v->quantizer_mode = 0; v 781 libavcodec/mss2.c v->finterpflag = 0; v 783 libavcodec/mss2.c v->res_rtm_flag = 1; v 785 libavcodec/mss2.c ff_vc1_init_transposed_scantables(v); v 788 libavcodec/mss2.c (ret = ff_vc1_decode_init_alloc_tables(v)) < 0) v 792 libavcodec/mss2.c v->s.me.qpel_put = v->s.qdsp.put_qpel_pixels_tab; v 793 libavcodec/mss2.c v->s.me.qpel_avg = v->s.qdsp.avg_qpel_pixels_tab; v 52 libavcodec/mss2dsp.c int v = srcv[j] - 128; v 53 libavcodec/mss2dsp.c dst[k] = av_clip_uint8(y + ( 91881 * v + 32768 >> 16)); v 54 libavcodec/mss2dsp.c dst[k + 1] = av_clip_uint8(y + (-22554 * u - 46802 * v + 32768 >> 16)); v 69 libavcodec/mvcdec.c uint16_t v[8]; v 78 libavcodec/mvcdec.c v[0] = bytestream2_get_be16u(gb); v 79 libavcodec/mvcdec.c v[1] = bytestream2_get_be16u(gb); v 80 libavcodec/mvcdec.c if ((v[0] & 0x8000)) { v 86 libavcodec/mvcdec.c v[i] = bytestream2_get_be16u(gb); v 88 libavcodec/mvcdec.c v[2] = v[4] = v[6] = v[0]; v 89 libavcodec/mvcdec.c v[3] = v[5] = v[7] = v[1]; v 94 libavcodec/mvcdec.c AV_WN16A(dst, v[i] & 0x7FFF); \ v 122 libavcodec/mvcdec.c AV_WN32A(dst, (mask & target) ? v[true] : v[false]); \ v 143 libavcodec/mvcdec.c uint32_t color[128], v[8]; v 202 libavcodec/mvcdec.c v[0] = v[2] = v[4] = v[6] = color[p0 & 0x7F]; v 203 libavcodec/mvcdec.c v[1] = v[3] = v[5] = v[7] = color[p1 & 0x7F]; v 210 libavcodec/mvcdec.c v[0] = color[p0 & 0x7F]; v 211 libavcodec/mvcdec.c v[1] = color[p1 & 0x7F]; v 213 libavcodec/mvcdec.c v[i] = color[bytestream2_get_byteu(gb) & 0x7F]; v 68 libavcodec/nellymoserdec.c unsigned char v; v 100 libavcodec/nellymoserdec.c v = get_bits(&s->gb, bits[j]); v 101 libavcodec/nellymoserdec.c aptr[j] = ff_nelly_dequantization_table[(1<<bits[j])-1+v]*pows[j]; v 187 libavcodec/on2avc.c static inline float on2avc_scale(int v, float scale) v 189 libavcodec/on2avc.c return v * sqrtf(fabsf(v)) * scale; v 212 libavcodec/on2avc.c int v = 4; v 214 libavcodec/on2avc.c while (get_bits1(gb)) v++; v 216 libavcodec/on2avc.c return (1 << v) + get_bits(gb, v); v 68 libavcodec/pcm.c register type v = (*samples_ ## type++ >> shift) + offset; \ v 69 libavcodec/pcm.c bytestream_put_ ## endian(&dst, v); \ v 78 libavcodec/pcm.c register type v = (*samples_ ## type++ >> shift) + offset; \ v 79 libavcodec/pcm.c bytestream_put_ ## endian(&dst, v); \ v 86 libavcodec/pcm.c int n, c, sample_size, v, ret; v 204 libavcodec/pcm.c v = *samples++; v 205 libavcodec/pcm.c *dst++ = linear_to_alaw[(v + 32768) >> 2]; v 210 libavcodec/pcm.c v = *samples++; v 211 libavcodec/pcm.c *dst++ = linear_to_ulaw[(v + 32768) >> 2]; v 269 libavcodec/pcm.c uint ## size ## _t v = bytestream_get_ ## endian(&src); \ v 270 libavcodec/pcm.c AV_WN ## size ## A(dst, (v - offset) << shift); \ v 280 libavcodec/pcm.c uint ## size ## _t v = bytestream_get_ ## endian(&src); \ v 281 libavcodec/pcm.c AV_WN ## size ## A(dst, (v - offset) << shift); \ v 366 libavcodec/pcm.c uint32_t v = bytestream_get_be24(&src); v 367 libavcodec/pcm.c v >>= 4; // sync flags are here v 368 libavcodec/pcm.c AV_WN16A(samples, ff_reverse[(v >> 8) & 0xff] + v 369 libavcodec/pcm.c (ff_reverse[v & 0xff] << 8)); v 449 libavcodec/pcm.c int v = *src++; v 450 libavcodec/pcm.c if (v < 128) v 451 libavcodec/pcm.c v = 128 - v; v 452 libavcodec/pcm.c *samples++ = v; v 88 libavcodec/pcm_tablegen.h int i, j, v, v1, v2; v 95 libavcodec/pcm_tablegen.h v = (v1 + v2 + 4) >> 3; v 97 libavcodec/pcm_tablegen.h v = 8192; v 99 libavcodec/pcm_tablegen.h for(;j<v;j++) { v 206 libavcodec/pcx.c int m = 0x80 >> (x & 7), v = 0; v 208 libavcodec/pcx.c v <<= 1; v 209 libavcodec/pcx.c v += !!(scanline[i * bytes_per_line + (x >> 3)] & m); v 211 libavcodec/pcx.c ptr[x] = v; v 715 libavcodec/pngdec.c int v, i; v 723 libavcodec/pngdec.c v = bytestream2_get_byte(&s->gb); v 724 libavcodec/pngdec.c s->palette[i] = (s->palette[i] & 0x00ffffff) | (v << 24); v 431 libavcodec/pngenc.c unsigned int v; v 440 libavcodec/pngenc.c v = palette[i]; v 441 libavcodec/pngenc.c alpha = v >> 24; v 445 libavcodec/pngenc.c bytestream_put_be24(&ptr, v); v 135 libavcodec/pnmdec.c int v=0; v 143 libavcodec/pnmdec.c v = (*s->bytestream++)&1; v 147 libavcodec/pnmdec.c v = 10*v + c; v 152 libavcodec/pnmdec.c ((uint16_t*)ptr)[j] = (((1<<sample_len)-1)*v + (s->maxval>>1))/s->maxval; v 154 libavcodec/pnmdec.c put_bits(&pb, sample_len, (((1<<sample_len)-1)*v + (s->maxval>>1))/s->maxval); v 169 libavcodec/pnmdec.c unsigned int j, v, f = (65535 * 32768 + s->maxval / 2) / s->maxval; v 171 libavcodec/pnmdec.c v = av_be2ne16(((uint16_t *)s->bytestream)[j]); v 172 libavcodec/pnmdec.c ((uint16_t *)ptr)[j] = (v * f + 16384) >> 15; v 216 libavcodec/pnmdec.c unsigned int j, v; v 225 libavcodec/pnmdec.c v = av_be2ne16(((uint16_t *)s->bytestream)[j]); v 226 libavcodec/pnmdec.c ((uint16_t *)ptr)[j] = (v * f + 16384) >> 15; v 237 libavcodec/pnmdec.c v = av_be2ne16(((uint16_t *)s->bytestream)[j]); v 238 libavcodec/pnmdec.c ptr1[j] = (v * f + 16384) >> 15; v 243 libavcodec/pnmdec.c v = av_be2ne16(((uint16_t *)s->bytestream)[j]); v 244 libavcodec/pnmdec.c ptr2[j] = (v * f + 16384) >> 15; v 34 libavcodec/ppc/fdctdsp.c #define vs16(v) ((vector signed short) (v)) v 35 libavcodec/ppc/fdctdsp.c #define vs32(v) ((vector signed int) (v)) v 36 libavcodec/ppc/fdctdsp.c #define vu8(v) ((vector unsigned char) (v)) v 37 libavcodec/ppc/fdctdsp.c #define vu16(v) ((vector unsigned short) (v)) v 38 libavcodec/ppc/fdctdsp.c #define vu32(v) ((vector unsigned int) (v)) v 74 libavcodec/ppc/fft_init.c #define STORE2(v,dst)\ v 76 libavcodec/ppc/fft_init.c vec_ste(v, 0, output+j*2);\ v 77 libavcodec/ppc/fft_init.c vec_ste(v, 4, output+j*2); v 35 libavcodec/ppc/fmtconvert_altivec.c vector float v; v 43 libavcodec/ppc/fmtconvert_altivec.c mul_v = vec_splat(mul_u.v, 0); v 44 libavcodec/ppc/me_cmp.c #define LOAD_PIX(v, iv, pix, per1, per2) {\ v 47 libavcodec/ppc/me_cmp.c v = vec_perm(pix2l, pix2r, per1);\ v 52 libavcodec/ppc/me_cmp.c #define LOAD_PIX(v, iv, pix, per1, per2) {\ v 53 libavcodec/ppc/me_cmp.c v = vec_vsx_ld(0, pix);\ v 57 libavcodec/ppc/me_cmp.c static int sad16_x2_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 97 libavcodec/ppc/me_cmp.c static int sad16_y2_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 147 libavcodec/ppc/me_cmp.c static int sad16_xy2_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 236 libavcodec/ppc/me_cmp.c static int sad16_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 271 libavcodec/ppc/me_cmp.c static int sad8_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 315 libavcodec/ppc/me_cmp.c static int sse8_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 360 libavcodec/ppc/me_cmp.c static int sse16_altivec(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 271 libavcodec/ppc/vp8dsp_altivec.c static void put_vp8_epel ## WIDTH ## _h ## HTAPS ## v ## VTAPS ## _altivec(uint8_t *dst, ptrdiff_t dstride, uint8_t *src, ptrdiff_t sstride, int h, int mx, int my) \ v 71 libavcodec/pthread_slice.c static void* attribute_align_arg worker(void *v) v 73 libavcodec/pthread_slice.c AVCodecContext *avctx = v; v 1511 libavcodec/ra144.c int v[3]; v 1513 libavcodec/ra144.c v[0] = 0; v 1515 libavcodec/ra144.c v[i] = (ff_gain_val_tab[n][i] * m[i]) >> ff_gain_exp_tab[n]; v 1517 libavcodec/ra144.c if (v[0]) { v 1519 libavcodec/ra144.c dest[i] = (s1[i]*v[0] + s2[i]*v[1] + s3[i]*v[2]) >> 12; v 1522 libavcodec/ra144.c dest[i] = ( s2[i]*v[1] + s3[i]*v[2]) >> 12; v 114 libavcodec/ra144enc.c static void orthogonalize(float *v, const float *u) v 120 libavcodec/ra144enc.c num += v[i] * u[i]; v 125 libavcodec/ra144enc.c v[i] -= num * u[i]; v 52 libavcodec/rectangle.h const uint16_t v= size==4 ? val : val*0x0101; v 53 libavcodec/rectangle.h *(uint16_t*)(p + 0*stride)= v; v 55 libavcodec/rectangle.h *(uint16_t*)(p + 1*stride)= v; v 57 libavcodec/rectangle.h *(uint16_t*)(p + 2*stride)= v; v 58 libavcodec/rectangle.h *(uint16_t*)(p + 3*stride)= v; v 60 libavcodec/rectangle.h const uint32_t v= size==4 ? val : size==2 ? val*0x00010001 : val*0x01010101; v 61 libavcodec/rectangle.h *(uint32_t*)(p + 0*stride)= v; v 63 libavcodec/rectangle.h *(uint32_t*)(p + 1*stride)= v; v 65 libavcodec/rectangle.h *(uint32_t*)(p + 2*stride)= v; v 66 libavcodec/rectangle.h *(uint32_t*)(p + 3*stride)= v; v 70 libavcodec/rectangle.h const uint64_t v= size==2 ? val*0x0001000100010001ULL : val*0x0100000001ULL; v 71 libavcodec/rectangle.h *(uint64_t*)(p + 0*stride)= v; v 73 libavcodec/rectangle.h *(uint64_t*)(p + 1*stride)= v; v 75 libavcodec/rectangle.h *(uint64_t*)(p + 2*stride)= v; v 76 libavcodec/rectangle.h *(uint64_t*)(p + 3*stride)= v; v 78 libavcodec/rectangle.h const uint64_t v= val*0x0100000001ULL; v 79 libavcodec/rectangle.h *(uint64_t*)(p + 0+0*stride)= v; v 80 libavcodec/rectangle.h *(uint64_t*)(p + 8+0*stride)= v; v 81 libavcodec/rectangle.h *(uint64_t*)(p + 0+1*stride)= v; v 82 libavcodec/rectangle.h *(uint64_t*)(p + 8+1*stride)= v; v 84 libavcodec/rectangle.h *(uint64_t*)(p + 0+2*stride)= v; v 85 libavcodec/rectangle.h *(uint64_t*)(p + 8+2*stride)= v; v 86 libavcodec/rectangle.h *(uint64_t*)(p + 0+3*stride)= v; v 87 libavcodec/rectangle.h *(uint64_t*)(p + 8+3*stride)= v; v 89 libavcodec/rectangle.h const uint32_t v= size==2 ? val*0x00010001 : val; v 90 libavcodec/rectangle.h *(uint32_t*)(p + 0+0*stride)= v; v 91 libavcodec/rectangle.h *(uint32_t*)(p + 4+0*stride)= v; v 93 libavcodec/rectangle.h *(uint32_t*)(p + 0+1*stride)= v; v 94 libavcodec/rectangle.h *(uint32_t*)(p + 4+1*stride)= v; v 96 libavcodec/rectangle.h *(uint32_t*)(p + 0+2*stride)= v; v 97 libavcodec/rectangle.h *(uint32_t*)(p + 4+2*stride)= v; v 98 libavcodec/rectangle.h *(uint32_t*)(p + 0+3*stride)= v; v 99 libavcodec/rectangle.h *(uint32_t*)(p + 4+3*stride)= v; v 95 libavcodec/resample.c int v; v 100 libavcodec/resample.c v = p[0]; q[0] = v; q[1] = v; v 101 libavcodec/resample.c v = p[1]; q[2] = v; q[3] = v; v 102 libavcodec/resample.c v = p[2]; q[4] = v; q[5] = v; v 103 libavcodec/resample.c v = p[3]; q[6] = v; q[7] = v; v 109 libavcodec/resample.c v = p[0]; q[0] = v; q[1] = v; v 81 libavcodec/resample2.c double v=1; v 87 libavcodec/resample2.c for(i=1; v != lastv; i++){ v 88 libavcodec/resample2.c lastv=v; v 90 libavcodec/resample2.c v += t; v 92 libavcodec/resample2.c return v; v 68 libavcodec/roqvideo.c bptr[stride+1] = cell->v; v 98 libavcodec/roqvideo.c bptr[stride*2+2] = bptr[stride*2+3] = bptr[stride*3+2] = bptr[stride*3+3] = cell->v; v 31 libavcodec/roqvideo.h unsigned char u, v; v 62 libavcodec/roqvideodec.c ri->cb2x2[i].v = bytestream2_get_byte(&ri->gb); v 85 libavcodec/roqvideoenc.c memset(u+8, cell->v, 4); v 586 libavcodec/roqvideoenc.c bytestream_put_byte(outp, enc->cb2x2[tempData->f2i2[i]].v); v 763 libavcodec/roqvideoenc.c int i, j, u=0, v=0; v 771 libavcodec/roqvideoenc.c v += data[2][x]; v 775 libavcodec/roqvideoenc.c *block++ = (v+2)/4; v 833 libavcodec/roqvideoenc.c results->v = (*buf++ + CHROMA_BIAS/2)/CHROMA_BIAS; v 112 libavcodec/rtjpeg.c uint8_t *u = f->data[1], *v = f->data[2]; v 137 libavcodec/rtjpeg.c BLOCK(c->cquant, v, f->linesize[2]); v 138 libavcodec/rtjpeg.c v += 8; v 143 libavcodec/rtjpeg.c v += 8 * (f->linesize[2] - w); v 646 libavcodec/rv10.c int v = show_bits(&s->gb, 16); v 649 libavcodec/rv10.c v >>= get_bits_count(&s->gb) + 16 - active_bits_size; v 651 libavcodec/rv10.c if (!v) v 165 libavcodec/rv40.c int i, j, k, v; v 195 libavcodec/rv40.c v = get_vlc2(gb, aic_mode2_vlc[k].table, AIC_MODE2_BITS, 2); v 196 libavcodec/rv40.c *ptr++ = v/9; v 197 libavcodec/rv40.c *ptr++ = v%9; v 201 libavcodec/rv40.c v = get_vlc2(gb, aic_mode1_vlc[B + C*10].table, AIC_MODE1_BITS, 1); v 203 libavcodec/rv40.c v = 0; v 207 libavcodec/rv40.c v = get_bits1(gb) ^ 1; v 211 libavcodec/rv40.c v = (get_bits1(gb) ^ 1) << 1; v 215 libavcodec/rv40.c *ptr++ = v; v 93 libavcodec/sbrdsp.c static void sbr_qmf_deint_neg_c(float *v, const float *src) v 96 libavcodec/sbrdsp.c union av_intfloat32 *vi = (union av_intfloat32*)v; v 104 libavcodec/sbrdsp.c static void sbr_qmf_deint_bfly_c(float *v, const float *src0, const float *src1) v 108 libavcodec/sbrdsp.c v[ i] = src0[i] - src1[63 - i]; v 109 libavcodec/sbrdsp.c v[127 - i] = src0[i] + src1[63 - i]; v 32 libavcodec/sbrdsp.h void (*qmf_deint_neg)(float *v, const float *src); v 33 libavcodec/sbrdsp.h void (*qmf_deint_bfly)(float *v, const float *src0, const float *src1); v 90 libavcodec/sgirledec.c uint8_t v = *src++; v 91 libavcodec/sgirledec.c if (v > 0 && v < 0xC0) { v 93 libavcodec/sgirledec.c int length = FFMIN(v, width - x); v 98 libavcodec/sgirledec.c v -= length; v 99 libavcodec/sgirledec.c } while (v > 0); v 101 libavcodec/sgirledec.c } else if (v >= 0xC1) { v 102 libavcodec/sgirledec.c v -= 0xC0; v 104 libavcodec/sgirledec.c int length = FFMIN3(v, width - x, src_end - src); v 110 libavcodec/sgirledec.c v -= length; v 111 libavcodec/sgirledec.c } while (v > 0); v 113 libavcodec/sgirledec.c avpriv_request_sample(avctx, "opcode %d", v); v 380 libavcodec/smacker.c int v; v 387 libavcodec/smacker.c v = *table; v 389 libavcodec/smacker.c if(v != recode[last[0]]) { v 392 libavcodec/smacker.c recode[last[0]] = v; v 394 libavcodec/smacker.c return v; v 48 libavcodec/snow.c int v= obmc1[x] * block[3][x + y*src_stride] v 53 libavcodec/snow.c v <<= 8 - LOG2_OBMC_MAX; v 55 libavcodec/snow.c v >>= 8 - FRAC_BITS; v 58 libavcodec/snow.c v += dst[x + src_x]; v 59 libavcodec/snow.c v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; v 60 libavcodec/snow.c if(v&(~255)) v= ~(v>>31); v 61 libavcodec/snow.c dst8[x + y*src_stride] = v; v 63 libavcodec/snow.c dst[x + src_x] -= v; v 127 libavcodec/snow.c double v=128; v 130 libavcodec/snow.c ff_qexp[i]= lrintf(v); v 131 libavcodec/snow.c v *= pow(2, 1.0 / QROOT); v 399 libavcodec/snow.h int v= obmc1[x] * block[3][x + y*src_stride] v 404 libavcodec/snow.h v <<= 8 - LOG2_OBMC_MAX; v 406 libavcodec/snow.h v >>= 8 - FRAC_BITS; v 409 libavcodec/snow.h v += dst[x + y*dst_stride]; v 410 libavcodec/snow.h v = (v + (1<<(FRAC_BITS-1))) >> FRAC_BITS; v 411 libavcodec/snow.h if(v&(~255)) v= ~(v>>31); v 412 libavcodec/snow.h dst8[x + y*src_stride] = v; v 414 libavcodec/snow.h dst[x + y*dst_stride] -= v; v 443 libavcodec/snow.h int v= buf[x + y*w] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); v 444 libavcodec/snow.h v >>= FRAC_BITS; v 445 libavcodec/snow.h if(v&(~255)) v= ~(v>>31); v 446 libavcodec/snow.h dst8[x + y*ref_stride]= v; v 526 libavcodec/snow.h static inline void put_symbol(RangeCoder *c, uint8_t *state, int v, int is_signed){ v 529 libavcodec/snow.h if(v){ v 530 libavcodec/snow.h const int a= FFABS(v); v 551 libavcodec/snow.h put_rac(c, state+11 + el, v < 0); //11..21 v 577 libavcodec/snow.h static inline void put_symbol2(RangeCoder *c, uint8_t *state, int v, int log2){ v 581 libavcodec/snow.h av_assert2(v>=0); v 584 libavcodec/snow.h while(v >= r){ v 586 libavcodec/snow.h v -= r; v 593 libavcodec/snow.h put_rac(c, state+31-i, (v>>i)&1); v 600 libavcodec/snow.h int v=0; v 605 libavcodec/snow.h v+= r; v 611 libavcodec/snow.h v+= get_rac(c, state+31-i)<<i; v 614 libavcodec/snow.h return v; v 634 libavcodec/snow.h int v=0; v 642 libavcodec/snow.h const int l= v; v 665 libavcodec/snow.h v=get_rac(&s->c, &b->state[0][context]); v 666 libavcodec/snow.h if(v){ v 667 libavcodec/snow.h v= 2*(get_symbol2(&s->c, b->state[context + 2], context-4) + 1); v 668 libavcodec/snow.h v+=get_rac(&s->c, &b->state[0][16 + 1 + 3 + ff_quant3bA[l&0xFF] + 3*ff_quant3bA[t&0xFF]]); v 669 libavcodec/snow.h if ((uint16_t)v != v) { v 671 libavcodec/snow.h v = 1; v 674 libavcodec/snow.h (xc++)->coeff= v; v 680 libavcodec/snow.h v= 2*(get_symbol2(&s->c, b->state[0 + 2], 0-4) + 1); v 681 libavcodec/snow.h v+=get_rac(&s->c, &b->state[0][16 + 1 + 3]); v 682 libavcodec/snow.h if ((uint16_t)v != v) { v 684 libavcodec/snow.h v = 1; v 688 libavcodec/snow.h (xc++)->coeff= v; v 692 libavcodec/snow.h v=0; v 743 libavcodec/snow_dwt.c static inline int w_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, v 803 libavcodec/snow_dwt.c int v = tmp[sx + sy + i * stride + j] * v 805 libavcodec/snow_dwt.c s += FFABS(v); v 812 libavcodec/snow_dwt.c static int w53_8_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h) v 814 libavcodec/snow_dwt.c return w_c(v, pix1, pix2, line_size, 8, h, 1); v 817 libavcodec/snow_dwt.c static int w97_8_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h) v 819 libavcodec/snow_dwt.c return w_c(v, pix1, pix2, line_size, 8, h, 0); v 822 libavcodec/snow_dwt.c static int w53_16_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h) v 824 libavcodec/snow_dwt.c return w_c(v, pix1, pix2, line_size, 16, h, 1); v 827 libavcodec/snow_dwt.c static int w97_16_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h) v 829 libavcodec/snow_dwt.c return w_c(v, pix1, pix2, line_size, 16, h, 0); v 832 libavcodec/snow_dwt.c int ff_w53_32_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h) v 834 libavcodec/snow_dwt.c return w_c(v, pix1, pix2, line_size, 32, h, 1); v 837 libavcodec/snow_dwt.c int ff_w97_32_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h) v 839 libavcodec/snow_dwt.c return w_c(v, pix1, pix2, line_size, 32, h, 0); v 109 libavcodec/snow_dwt.h int ff_w53_32_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h); v 110 libavcodec/snow_dwt.h int ff_w97_32_c(struct MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, ptrdiff_t line_size, int h); v 60 libavcodec/snowdec.c int v= line[x] + (128<<FRAC_BITS) + (1<<(FRAC_BITS-1)); v 61 libavcodec/snowdec.c v >>= FRAC_BITS; v 62 libavcodec/snowdec.c if(v&(~255)) v= ~(v>>31); v 63 libavcodec/snowdec.c dst8[x + y*ref_stride]= v; v 134 libavcodec/snowdec.c int v; v 137 libavcodec/snowdec.c v = b->x_coeff[new_index].coeff; v 140 libavcodec/snowdec.c register int t= ( (v>>1)*qmul + qadd)>>QEXPSHIFT; v 141 libavcodec/snowdec.c register int u= -(v&1); v 144 libavcodec/snowdec.c v = b->x_coeff[new_index].coeff; v 502 libavcodec/snowdec.c int v= s->current_picture->data[plane_index][y*s->current_picture->linesize[plane_index] + x]; v 503 libavcodec/snowdec.c s->mconly_picture->data[plane_index][y*s->mconly_picture->linesize[plane_index] + x]= v; v 630 libavcodec/snowenc.c int v = (cur1[x] * obmc1[x]) << (FRAC_BITS - LOG2_OBMC_MAX); v 632 libavcodec/snowenc.c int v = (cur1[x] * obmc1[x] + (1<<(LOG2_OBMC_MAX - FRAC_BITS-1))) >> (LOG2_OBMC_MAX - FRAC_BITS); v 634 libavcodec/snowenc.c v = (v + pred1[x]) >> FRAC_BITS; v 635 libavcodec/snowenc.c if(v&(~255)) v= ~(v>>31); v 636 libavcodec/snowenc.c dst1[x] = v; v 775 libavcodec/snowenc.c int v, p=0; v 777 libavcodec/snowenc.c v= src[x + y*stride]; v 802 libavcodec/snowenc.c if(v){ v 826 libavcodec/snowenc.c int v, p=0; v 828 libavcodec/snowenc.c v= src[x + y*stride]; v 855 libavcodec/snowenc.c put_rac(&s->c, &b->state[0][context], !!v); v 862 libavcodec/snowenc.c av_assert2(v); v 865 libavcodec/snowenc.c av_assert2(!v); v 868 libavcodec/snowenc.c if(v){ v 873 libavcodec/snowenc.c put_symbol2(&s->c, b->state[context + 2], FFABS(v)-1, context-4); v 874 libavcodec/snowenc.c put_rac(&s->c, &b->state[0][16 + 1 + 3 + ff_quant3bA[l2&0xFF] + 3*ff_quant3bA[t2&0xFF]], v<0); v 92 libavcodec/sonic.c static av_always_inline av_flatten void put_symbol(RangeCoder *c, uint8_t *state, int v, int is_signed, uint64_t rc_stat[256][2], uint64_t rc_stat2[32][2]){ v 104 libavcodec/sonic.c if(v){ v 105 libavcodec/sonic.c const int a= FFABS(v); v 119 libavcodec/sonic.c put_rac(c, state+11 + e, v < 0); //11..21 v 131 libavcodec/sonic.c put_rac(c, state+11 + 10, v < 0); //11..21 v 113 libavcodec/svq1enc.c int v = src[x + y * stride]; v 114 libavcodec/svq1enc.c block[0][x + w * y] = v; v 115 libavcodec/svq1enc.c best_score += v * v; v 116 libavcodec/svq1enc.c block_sum[0] += v; v 126 libavcodec/svq1enc.c int v = src[x + y * stride] - ref[x + y * stride]; v 127 libavcodec/svq1enc.c block[0][x + w * y] = v; v 128 libavcodec/svq1enc.c best_score += v * v; v 129 libavcodec/svq1enc.c block_sum[0] += v; v 468 libavcodec/takdec.c int v = 1 << (filter_quant - 1); v 471 libavcodec/takdec.c v += s->adsp.scalarproduct_int16(&s->residues[i], s->filter, v 474 libavcodec/takdec.c v += s->residues[i + j + 3] * s->filter[j + 3] + v 479 libavcodec/takdec.c v = (av_clip_intp2(v >> filter_quant, 13) << dshift) - *decoded; v 480 libavcodec/takdec.c *decoded++ = v; v 481 libavcodec/takdec.c s->residues[filter_order + i] = v >> dshift; v 515 libavcodec/takdec.c int v = get_bits(gb, 6); v 517 libavcodec/takdec.c s->subframe_len[i] = (v - prev) * s->subframe_scale; v 522 libavcodec/takdec.c prev = v; v 639 libavcodec/takdec.c int v = 1 << 9; v 642 libavcodec/takdec.c v += s->adsp.scalarproduct_int16(&s->residues[i], s->filter, v 645 libavcodec/takdec.c v += s->residues[i + 7] * s->filter[7] + v 655 libavcodec/takdec.c v = (av_clip_intp2(v >> 10, 13) << dshift) - *p1; v 656 libavcodec/takdec.c *p1++ = v; v 231 libavcodec/targa.c uint32_t v = bytestream2_get_le16u(&s->gb); v 232 libavcodec/targa.c v = ((v & 0x7C00) << 9) | v 233 libavcodec/targa.c ((v & 0x03E0) << 6) | v 234 libavcodec/targa.c ((v & 0x001F) << 3); v 236 libavcodec/targa.c v |= (v & 0xE0E0E0U) >> 5; v 237 libavcodec/targa.c *pal++ = (0xffU<<24) | v; v 38 libavcodec/targa_y216dec.c uint16_t *y, *u, *v, aligned_width = FFALIGN(avctx->width, 4); v 54 libavcodec/targa_y216dec.c v = (uint16_t *)pic->data[2]; v 60 libavcodec/targa_y216dec.c v[ j ] = src[4 * j + 2] << 2 | src[4 * j + 2] >> 14; v 66 libavcodec/targa_y216dec.c v += pic->linesize[2] >> 1; v 193 libavcodec/tiff_common.c int v = is_signed ? (int16_t)ff_tget_short(gb, le) : ff_tget_short(gb, le); v 194 libavcodec/tiff_common.c av_bprintf(&bp, "%s%5i", auto_sep(count, sep, i, 8), v); v 225 libavcodec/tiff_common.c int v = is_signed ? (int8_t)bytestream2_get_byte(gb) : bytestream2_get_byte(gb); v 226 libavcodec/tiff_common.c av_bprintf(&bp, "%s%3i", auto_sep(count, sep, i, 16), v); v 260 libavcodec/truemotion2.c int i, v; v 272 libavcodec/truemotion2.c v = get_bits_long(&ctx->gb, mb); v 273 libavcodec/truemotion2.c if (v & (1 << (mb - 1))) v 274 libavcodec/truemotion2.c ctx->deltas[stream_id][i] = v - (1 << mb); v 276 libavcodec/truemotion2.c ctx->deltas[stream_id][i] = v; v 813 libavcodec/truemotion2.c int y = Y[i], u = U[i >> 1], v = V[i >> 1]; v 814 libavcodec/truemotion2.c dst[3*i+0] = av_clip_uint8(y + v); v 36 libavcodec/txd.c unsigned int y, v; v 80 libavcodec/txd.c v = bytestream2_get_be32(&gb); v 81 libavcodec/txd.c pal[y] = (v >> 8) + (v << 24); v 3498 libavcodec/utils.c unsigned int av_xiphlacing(unsigned char *s, unsigned int v) v 3502 libavcodec/utils.c while (v >= 0xff) { v 3504 libavcodec/utils.c v -= 0xff; v 3507 libavcodec/utils.c *s = v; v 39 libavcodec/v210dec.c static void v210_planar_unpack_c(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width) v 45 libavcodec/v210dec.c READ_PIXELS(u, y, v); v 47 libavcodec/v210dec.c READ_PIXELS(v, y, u); v 48 libavcodec/v210dec.c READ_PIXELS(y, v, y); v 79 libavcodec/v210dec.c uint16_t *y, *u, *v; v 112 libavcodec/v210dec.c v = (uint16_t*)pic->data[2]; v 121 libavcodec/v210dec.c s->unpack_frame(src, y, u, v, w); v 125 libavcodec/v210dec.c v += w >> 1; v 129 libavcodec/v210dec.c READ_PIXELS(u, y, v); v 138 libavcodec/v210dec.c *v++ = val & 0x3FF; v 146 libavcodec/v210dec.c v += pic->linesize[2] / 2 - avctx->width / 2; v 31 libavcodec/v210dec.h void (*unpack_frame)(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width); v 29 libavcodec/v210enc.c #define CLIP(v) av_clip(v, 4, 1019) v 30 libavcodec/v210enc.c #define CLIP8(v) av_clip(v, 1, 254) v 51 libavcodec/v210enc.c const uint8_t *v, uint8_t *dst, v 59 libavcodec/v210enc.c WRITE_PIXELS8(u, y, v); v 61 libavcodec/v210enc.c WRITE_PIXELS8(v, y, u); v 62 libavcodec/v210enc.c WRITE_PIXELS8(y, v, y); v 63 libavcodec/v210enc.c WRITE_PIXELS8(u, y, v); v 65 libavcodec/v210enc.c WRITE_PIXELS8(v, y, u); v 66 libavcodec/v210enc.c WRITE_PIXELS8(y, v, y); v 71 libavcodec/v210enc.c const uint16_t *v, uint8_t *dst, v 78 libavcodec/v210enc.c WRITE_PIXELS(u, y, v); v 80 libavcodec/v210enc.c WRITE_PIXELS(v, y, u); v 81 libavcodec/v210enc.c WRITE_PIXELS(y, v, y); v 129 libavcodec/v210enc.c const uint16_t *v = (const uint16_t *)pic->data[2]; v 133 libavcodec/v210enc.c s->pack_line_10(y, u, v, dst, w); v 137 libavcodec/v210enc.c v += w >> 1; v 140 libavcodec/v210enc.c WRITE_PIXELS(u, y, v); v 153 libavcodec/v210enc.c val = CLIP(*v++) | (CLIP(*y++) << 10); v 162 libavcodec/v210enc.c v += pic->linesize[2] / 2 - avctx->width / 2; v 167 libavcodec/v210enc.c const uint8_t *v = pic->data[2]; v 171 libavcodec/v210enc.c s->pack_line_8(y, u, v, dst, w); v 175 libavcodec/v210enc.c v += w >> 1; v 179 libavcodec/v210enc.c WRITE_PIXELS8(u, y, v); v 181 libavcodec/v210enc.c WRITE_PIXELS8(v, y, u); v 182 libavcodec/v210enc.c WRITE_PIXELS8(y, v, y); v 185 libavcodec/v210enc.c WRITE_PIXELS8(u, y, v); v 198 libavcodec/v210enc.c val = (CLIP8(*v++) << 2) | (CLIP8(*y++) << 12); v 207 libavcodec/v210enc.c v += pic->linesize[2] - avctx->width / 2; v 28 libavcodec/v210enc.h const uint8_t *v, uint8_t *dst, ptrdiff_t width); v 30 libavcodec/v210enc.h const uint16_t *v, uint8_t *dst, ptrdiff_t width); v 69 libavcodec/v210x.c uint32_t v = av_be2ne32(*src++); v 70 libavcodec/v210x.c *udst++ = (v >> 16) & 0xFFC0; v 71 libavcodec/v210x.c *ydst++ = (v >> 6 ) & 0xFFC0; v 72 libavcodec/v210x.c *vdst++ = (v << 4 ) & 0xFFC0; v 74 libavcodec/v210x.c v = av_be2ne32(*src++); v 75 libavcodec/v210x.c *ydst++ = (v >> 16) & 0xFFC0; v 86 libavcodec/v210x.c *udst++ = (v >> 6 ) & 0xFFC0; v 87 libavcodec/v210x.c *ydst++ = (v << 4 ) & 0xFFC0; v 89 libavcodec/v210x.c v = av_be2ne32(*src++); v 90 libavcodec/v210x.c *vdst++ = (v >> 16) & 0xFFC0; v 91 libavcodec/v210x.c *ydst++ = (v >> 6 ) & 0xFFC0; v 102 libavcodec/v210x.c *udst++ = (v << 4 ) & 0xFFC0; v 104 libavcodec/v210x.c v = av_be2ne32(*src++); v 105 libavcodec/v210x.c *ydst++ = (v >> 16) & 0xFFC0; v 106 libavcodec/v210x.c *vdst++ = (v >> 6 ) & 0xFFC0; v 107 libavcodec/v210x.c *ydst++ = (v << 4 ) & 0xFFC0; v 40 libavcodec/v308dec.c uint8_t *y, *u, *v; v 56 libavcodec/v308dec.c v = pic->data[2]; v 60 libavcodec/v308dec.c v[j] = *src++; v 67 libavcodec/v308dec.c v += pic->linesize[2]; v 48 libavcodec/v308enc.c uint8_t *y, *u, *v; v 60 libavcodec/v308enc.c v = pic->data[2]; v 64 libavcodec/v308enc.c *dst++ = v[j]; v 70 libavcodec/v308enc.c v += pic->linesize[2]; v 37 libavcodec/v408dec.c uint8_t *y, *u, *v, *a; v 53 libavcodec/v408dec.c v = pic->data[2]; v 59 libavcodec/v408dec.c v[j] = *src++; v 66 libavcodec/v408dec.c v[j] = *src++; v 73 libavcodec/v408dec.c v += pic->linesize[2]; v 43 libavcodec/v408enc.c uint8_t *y, *u, *v, *a; v 55 libavcodec/v408enc.c v = pic->data[2]; v 61 libavcodec/v408enc.c *dst++ = v[j]; v 68 libavcodec/v408enc.c *dst++ = v[j]; v 74 libavcodec/v408enc.c v += pic->linesize[2]; v 50 libavcodec/v410dec.c uint16_t *y, *u, *v; v 67 libavcodec/v410dec.c v = (uint16_t *)pic->data[2]; v 75 libavcodec/v410dec.c v[j] = (val >> 22); v 82 libavcodec/v410dec.c v += pic->linesize[2] >> 1; v 49 libavcodec/v410enc.c uint16_t *y, *u, *v; v 62 libavcodec/v410enc.c v = (uint16_t *)pic->data[2]; v 68 libavcodec/v410enc.c val |= (uint32_t) v[j] << 22; v 74 libavcodec/v410enc.c v += pic->linesize[2] >> 1; v 41 libavcodec/vaapi_vc1.c static inline int vc1_has_MVTYPEMB_bitplane(VC1Context *v) v 43 libavcodec/vaapi_vc1.c if (v->mv_type_is_raw) v 45 libavcodec/vaapi_vc1.c return v->s.pict_type == AV_PICTURE_TYPE_P && v 46 libavcodec/vaapi_vc1.c (v->mv_mode == MV_PMODE_MIXED_MV || v 47 libavcodec/vaapi_vc1.c (v->mv_mode == MV_PMODE_INTENSITY_COMP && v 48 libavcodec/vaapi_vc1.c v->mv_mode2 == MV_PMODE_MIXED_MV)); v 52 libavcodec/vaapi_vc1.c static inline int vc1_has_SKIPMB_bitplane(VC1Context *v) v 54 libavcodec/vaapi_vc1.c if (v->skip_is_raw) v 56 libavcodec/vaapi_vc1.c return v->s.pict_type == AV_PICTURE_TYPE_P || v 57 libavcodec/vaapi_vc1.c (v->s.pict_type == AV_PICTURE_TYPE_B && !v->bi_type); v 61 libavcodec/vaapi_vc1.c static inline int vc1_has_DIRECTMB_bitplane(VC1Context *v) v 63 libavcodec/vaapi_vc1.c if (v->dmb_is_raw) v 65 libavcodec/vaapi_vc1.c return v->s.pict_type == AV_PICTURE_TYPE_B && !v->bi_type; v 69 libavcodec/vaapi_vc1.c static inline int vc1_has_ACPRED_bitplane(VC1Context *v) v 71 libavcodec/vaapi_vc1.c if (v->acpred_is_raw) v 73 libavcodec/vaapi_vc1.c return v->profile == PROFILE_ADVANCED && v 74 libavcodec/vaapi_vc1.c (v->s.pict_type == AV_PICTURE_TYPE_I || v 75 libavcodec/vaapi_vc1.c (v->s.pict_type == AV_PICTURE_TYPE_B && v->bi_type)); v 79 libavcodec/vaapi_vc1.c static inline int vc1_has_OVERFLAGS_bitplane(VC1Context *v) v 81 libavcodec/vaapi_vc1.c if (v->overflg_is_raw) v 83 libavcodec/vaapi_vc1.c return v->profile == PROFILE_ADVANCED && v 84 libavcodec/vaapi_vc1.c (v->s.pict_type == AV_PICTURE_TYPE_I || v 85 libavcodec/vaapi_vc1.c (v->s.pict_type == AV_PICTURE_TYPE_B && v->bi_type)) && v 86 libavcodec/vaapi_vc1.c (v->overlap && v->pq <= 8) && v 87 libavcodec/vaapi_vc1.c v->condover == CONDOVER_SELECT; v 91 libavcodec/vaapi_vc1.c static int vc1_get_PTYPE(VC1Context *v) v 93 libavcodec/vaapi_vc1.c MpegEncContext * const s = &v->s; v 96 libavcodec/vaapi_vc1.c case AV_PICTURE_TYPE_P: return v->p_frame_skipped ? 4 : 1; v 97 libavcodec/vaapi_vc1.c case AV_PICTURE_TYPE_B: return v->bi_type ? 3 : 2; v 103 libavcodec/vaapi_vc1.c static inline VAMvModeVC1 vc1_get_MVMODE(VC1Context *v) v 105 libavcodec/vaapi_vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_P || v 106 libavcodec/vaapi_vc1.c (v->s.pict_type == AV_PICTURE_TYPE_B && !v->bi_type)) v 107 libavcodec/vaapi_vc1.c return get_VAMvModeVC1(v->mv_mode); v 112 libavcodec/vaapi_vc1.c static inline VAMvModeVC1 vc1_get_MVMODE2(VC1Context *v) v 114 libavcodec/vaapi_vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_P && v->mv_mode == MV_PMODE_INTENSITY_COMP) v 115 libavcodec/vaapi_vc1.c return get_VAMvModeVC1(v->mv_mode2); v 120 libavcodec/vaapi_vc1.c static inline int vc1_get_TTFRM(VC1Context *v) v 122 libavcodec/vaapi_vc1.c switch (v->ttfrm) { v 136 libavcodec/vaapi_vc1.c uint8_t v = 0; v 138 libavcodec/vaapi_vc1.c v = ff_bp[0][ff_bp_index]; v 140 libavcodec/vaapi_vc1.c v |= ff_bp[1][ff_bp_index] << 1; v 142 libavcodec/vaapi_vc1.c v |= ff_bp[2][ff_bp_index] << 2; v 143 libavcodec/vaapi_vc1.c bitplane[bitplane_index] = (bitplane[bitplane_index] << 4) | v; v 148 libavcodec/vaapi_vc1.c VC1Context * const v = avctx->priv_data; v 149 libavcodec/vaapi_vc1.c MpegEncContext * const s = &v->s; v 165 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.pulldown = v->broadcast; v 166 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.interlace = v->interlace; v 167 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.tfcntrflag = v->tfcntrflag; v 168 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.finterpflag = v->finterpflag; v 169 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.psf = v->psf; v 170 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.multires = v->multires; v 171 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.overlap = v->overlap; v 172 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.syncmarker = v->resync_marker; v 173 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.rangered = v->rangered; v 176 libavcodec/vaapi_vc1.c pic_param->sequence_fields.bits.profile = v->profile; v 181 libavcodec/vaapi_vc1.c pic_param->entrypoint_fields.bits.broken_link = v->broken_link; v 182 libavcodec/vaapi_vc1.c pic_param->entrypoint_fields.bits.closed_entry = v->closed_entry; v 183 libavcodec/vaapi_vc1.c pic_param->entrypoint_fields.bits.panscan_flag = v->panscanflag; v 185 libavcodec/vaapi_vc1.c pic_param->conditional_overlap_flag = v->condover; v 186 libavcodec/vaapi_vc1.c pic_param->fast_uvmc_flag = v->fastuvmc; v 188 libavcodec/vaapi_vc1.c pic_param->range_mapping_fields.bits.luma_flag = v->range_mapy_flag; v 189 libavcodec/vaapi_vc1.c pic_param->range_mapping_fields.bits.luma = v->range_mapy; v 190 libavcodec/vaapi_vc1.c pic_param->range_mapping_fields.bits.chroma_flag = v->range_mapuv_flag; v 191 libavcodec/vaapi_vc1.c pic_param->range_mapping_fields.bits.chroma = v->range_mapuv; v 192 libavcodec/vaapi_vc1.c pic_param->b_picture_fraction = v->bfraction_lut_index; v 193 libavcodec/vaapi_vc1.c pic_param->cbp_table = v->cbpcy_vlc ? v->cbpcy_vlc - ff_vc1_cbpcy_p_vlc : 0; v 195 libavcodec/vaapi_vc1.c pic_param->range_reduction_frame = v->rangeredfrm; v 196 libavcodec/vaapi_vc1.c pic_param->rounding_control = v->rnd; v 197 libavcodec/vaapi_vc1.c pic_param->post_processing = v->postproc; v 198 libavcodec/vaapi_vc1.c pic_param->picture_resolution_index = v->respic; v 199 libavcodec/vaapi_vc1.c pic_param->luma_scale = v->lumscale; v 200 libavcodec/vaapi_vc1.c pic_param->luma_shift = v->lumshift; v 202 libavcodec/vaapi_vc1.c pic_param->picture_fields.bits.picture_type = vc1_get_PTYPE(v); v 203 libavcodec/vaapi_vc1.c pic_param->picture_fields.bits.frame_coding_mode = v->fcm; v 204 libavcodec/vaapi_vc1.c pic_param->picture_fields.bits.top_field_first = v->tff; v 205 libavcodec/vaapi_vc1.c pic_param->picture_fields.bits.is_first_field = v->fcm == 0; /* XXX: interlaced frame */ v 206 libavcodec/vaapi_vc1.c pic_param->picture_fields.bits.intensity_compensation = v->mv_mode == MV_PMODE_INTENSITY_COMP; v 208 libavcodec/vaapi_vc1.c pic_param->raw_coding.flags.mv_type_mb = v->mv_type_is_raw; v 209 libavcodec/vaapi_vc1.c pic_param->raw_coding.flags.direct_mb = v->dmb_is_raw; v 210 libavcodec/vaapi_vc1.c pic_param->raw_coding.flags.skip_mb = v->skip_is_raw; v 213 libavcodec/vaapi_vc1.c pic_param->raw_coding.flags.ac_pred = v->acpred_is_raw; v 214 libavcodec/vaapi_vc1.c pic_param->raw_coding.flags.overflags = v->overflg_is_raw; v 216 libavcodec/vaapi_vc1.c pic_param->bitplane_present.flags.bp_mv_type_mb = vc1_has_MVTYPEMB_bitplane(v); v 217 libavcodec/vaapi_vc1.c pic_param->bitplane_present.flags.bp_direct_mb = vc1_has_DIRECTMB_bitplane(v); v 218 libavcodec/vaapi_vc1.c pic_param->bitplane_present.flags.bp_skip_mb = vc1_has_SKIPMB_bitplane(v); v 221 libavcodec/vaapi_vc1.c pic_param->bitplane_present.flags.bp_ac_pred = vc1_has_ACPRED_bitplane(v); v 222 libavcodec/vaapi_vc1.c pic_param->bitplane_present.flags.bp_overflags = vc1_has_OVERFLAGS_bitplane(v); v 224 libavcodec/vaapi_vc1.c pic_param->reference_fields.bits.reference_distance_flag = v->refdist_flag; v 229 libavcodec/vaapi_vc1.c pic_param->mv_fields.bits.mv_mode = vc1_get_MVMODE(v); v 230 libavcodec/vaapi_vc1.c pic_param->mv_fields.bits.mv_mode2 = vc1_get_MVMODE2(v); v 235 libavcodec/vaapi_vc1.c pic_param->mv_fields.bits.extended_mv_flag = v->extended_mv; v 236 libavcodec/vaapi_vc1.c pic_param->mv_fields.bits.extended_mv_range = v->mvrange; v 237 libavcodec/vaapi_vc1.c pic_param->mv_fields.bits.extended_dmv_flag = v->extended_dmv; v 240 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.dquant = v->dquant; v 241 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.quantizer = v->quantizer_mode; v 242 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.half_qp = v->halfpq; v 243 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.pic_quantizer_scale = v->pq; v 244 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.pic_quantizer_type = v->pquantizer; v 245 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.dq_frame = v->dquantfrm; v 246 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.dq_profile = v->dqprofile; v 247 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.dq_sb_edge = v->dqprofile == DQPROFILE_SINGLE_EDGE ? v->dqsbedge : 0; v 248 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.dq_db_edge = v->dqprofile == DQPROFILE_DOUBLE_EDGES ? v->dqsbedge : 0; v 249 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.dq_binary_level = v->dqbilevel; v 250 libavcodec/vaapi_vc1.c pic_param->pic_quantizer_fields.bits.alt_pic_quantizer = v->altpq; v 252 libavcodec/vaapi_vc1.c pic_param->transform_fields.bits.variable_sized_transform_flag = v->vstransform; v 253 libavcodec/vaapi_vc1.c pic_param->transform_fields.bits.mb_level_transform_type_flag = v->ttmbf; v 254 libavcodec/vaapi_vc1.c pic_param->transform_fields.bits.frame_level_transform_type = vc1_get_TTFRM(v); v 255 libavcodec/vaapi_vc1.c pic_param->transform_fields.bits.transform_ac_codingset_idx1 = v->c_ac_table_index; v 256 libavcodec/vaapi_vc1.c pic_param->transform_fields.bits.transform_ac_codingset_idx2 = v->y_ac_table_index; v 257 libavcodec/vaapi_vc1.c pic_param->transform_fields.bits.intra_transform_dc_table = v->s.dc_table_index; v 275 libavcodec/vaapi_vc1.c ff_bp[0] = pic_param->bitplane_present.flags.bp_direct_mb ? v->direct_mb_plane : NULL; v 277 libavcodec/vaapi_vc1.c ff_bp[2] = pic_param->bitplane_present.flags.bp_mv_type_mb ? v->mv_type_mb_plane : NULL; v 280 libavcodec/vaapi_vc1.c if (!v->bi_type) { v 281 libavcodec/vaapi_vc1.c ff_bp[0] = pic_param->bitplane_present.flags.bp_direct_mb ? v->direct_mb_plane : NULL; v 289 libavcodec/vaapi_vc1.c ff_bp[1] = pic_param->bitplane_present.flags.bp_ac_pred ? v->acpred_plane : NULL; v 290 libavcodec/vaapi_vc1.c ff_bp[2] = pic_param->bitplane_present.flags.bp_overflags ? v->over_flags_plane : NULL; v 315 libavcodec/vaapi_vc1.c VC1Context * const v = avctx->priv_data; v 316 libavcodec/vaapi_vc1.c MpegEncContext * const s = &v->s; v 96 libavcodec/vble.c int v = (1 << val[j]) + get_bits(gb, val[j]) - 1; v 97 libavcodec/vble.c val[j] = (v >> 1) ^ -(v & 1); v 98 libavcodec/vc1.c static int bitplane_decoding(uint8_t* data, int *raw_flag, VC1Context *v) v 100 libavcodec/vc1.c GetBitContext *gb = &v->s.gb; v 106 libavcodec/vc1.c width = v->s.mb_width; v 107 libavcodec/vc1.c height = v->s.mb_height >> v->field_mode; v 108 libavcodec/vc1.c stride = v->s.mb_stride; v 154 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "invalid NORM-6 VLC\n"); v 167 libavcodec/vc1.c decode_colskip(data, 1, height, stride, &v->s.gb); v 174 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "invalid NORM-6 VLC\n"); v 188 libavcodec/vc1.c decode_colskip(data, x, height, stride, &v->s.gb); v 190 libavcodec/vc1.c decode_rowskip(data + x, width - x, 1, stride, &v->s.gb); v 194 libavcodec/vc1.c decode_rowskip(data, width, height, stride, &v->s.gb); v 197 libavcodec/vc1.c decode_colskip(data, width, height, stride, &v->s.gb); v 231 libavcodec/vc1.c static int vop_dquant_decoding(VC1Context *v) v 233 libavcodec/vc1.c GetBitContext *gb = &v->s.gb; v 237 libavcodec/vc1.c if (v->dquant != 2) { v 238 libavcodec/vc1.c v->dquantfrm = get_bits1(gb); v 239 libavcodec/vc1.c if (!v->dquantfrm) v 242 libavcodec/vc1.c v->dqprofile = get_bits(gb, 2); v 243 libavcodec/vc1.c switch (v->dqprofile) { v 246 libavcodec/vc1.c v->dqsbedge = get_bits(gb, 2); v 249 libavcodec/vc1.c v->dqbilevel = get_bits1(gb); v 250 libavcodec/vc1.c if (!v->dqbilevel) { v 251 libavcodec/vc1.c v->halfpq = 0; v 261 libavcodec/vc1.c v->altpq = get_bits(gb, 5); v 263 libavcodec/vc1.c v->altpq = v->pq + pqdiff + 1; v 268 libavcodec/vc1.c static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb); v 277 libavcodec/vc1.c int ff_vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb) v 280 libavcodec/vc1.c v->profile = get_bits(gb, 2); v 281 libavcodec/vc1.c if (v->profile == PROFILE_COMPLEX) { v 285 libavcodec/vc1.c if (v->profile == PROFILE_ADVANCED) { v 286 libavcodec/vc1.c v->zz_8x4 = ff_vc1_adv_progressive_8x4_zz; v 287 libavcodec/vc1.c v->zz_4x8 = ff_vc1_adv_progressive_4x8_zz; v 288 libavcodec/vc1.c return decode_sequence_header_adv(v, gb); v 290 libavcodec/vc1.c v->chromaformat = 1; v 291 libavcodec/vc1.c v->zz_8x4 = ff_wmv2_scantableA; v 292 libavcodec/vc1.c v->zz_4x8 = ff_wmv2_scantableB; v 293 libavcodec/vc1.c v->res_y411 = get_bits1(gb); v 294 libavcodec/vc1.c v->res_sprite = get_bits1(gb); v 295 libavcodec/vc1.c if (v->res_y411) { v 303 libavcodec/vc1.c v->frmrtq_postproc = get_bits(gb, 3); //common v 305 libavcodec/vc1.c v->bitrtq_postproc = get_bits(gb, 5); //common v 306 libavcodec/vc1.c v->s.loop_filter = get_bits1(gb); //common v 307 libavcodec/vc1.c if (v->s.loop_filter == 1 && v->profile == PROFILE_SIMPLE) { v 311 libavcodec/vc1.c if (v->s.avctx->skip_loop_filter >= AVDISCARD_ALL) v 312 libavcodec/vc1.c v->s.loop_filter = 0; v 314 libavcodec/vc1.c v->res_x8 = get_bits1(gb); //reserved v 315 libavcodec/vc1.c v->multires = get_bits1(gb); v 316 libavcodec/vc1.c v->res_fasttx = get_bits1(gb); v 317 libavcodec/vc1.c if (!v->res_fasttx) { v 318 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_8x8 = ff_simple_idct_8; v 319 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_8x4 = ff_simple_idct84_add; v 320 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_4x8 = ff_simple_idct48_add; v 321 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_4x4 = ff_simple_idct44_add; v 322 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_8x8_dc = ff_simple_idct_add_8; v 323 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_8x4_dc = ff_simple_idct84_add; v 324 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_4x8_dc = ff_simple_idct48_add; v 325 libavcodec/vc1.c v->vc1dsp.vc1_inv_trans_4x4_dc = ff_simple_idct44_add; v 328 libavcodec/vc1.c v->fastuvmc = get_bits1(gb); //common v 329 libavcodec/vc1.c if (!v->profile && !v->fastuvmc) { v 334 libavcodec/vc1.c v->extended_mv = get_bits1(gb); //common v 335 libavcodec/vc1.c if (!v->profile && v->extended_mv) { v 340 libavcodec/vc1.c v->dquant = get_bits(gb, 2); //common v 341 libavcodec/vc1.c v->vstransform = get_bits1(gb); //common v 343 libavcodec/vc1.c v->res_transtab = get_bits1(gb); v 344 libavcodec/vc1.c if (v->res_transtab) { v 350 libavcodec/vc1.c v->overlap = get_bits1(gb); //common v 352 libavcodec/vc1.c v->resync_marker = get_bits1(gb); v 353 libavcodec/vc1.c v->rangered = get_bits1(gb); v 354 libavcodec/vc1.c if (v->rangered && v->profile == PROFILE_SIMPLE) { v 359 libavcodec/vc1.c v->s.max_b_frames = avctx->max_b_frames = get_bits(gb, 3); //common v 360 libavcodec/vc1.c v->quantizer_mode = get_bits(gb, 2); //common v 362 libavcodec/vc1.c v->finterpflag = get_bits1(gb); //common v 364 libavcodec/vc1.c if (v->res_sprite) { v 367 libavcodec/vc1.c int ret = ff_set_dimensions(v->s.avctx, w, h); v 373 libavcodec/vc1.c v->res_x8 = get_bits1(gb); v 379 libavcodec/vc1.c v->res_rtm_flag = 0; v 381 libavcodec/vc1.c v->res_rtm_flag = get_bits1(gb); //reserved v 383 libavcodec/vc1.c if (!v->res_rtm_flag) { v 389 libavcodec/vc1.c if (!v->res_fasttx) v 396 libavcodec/vc1.c v->profile, v->frmrtq_postproc, v->bitrtq_postproc, v 397 libavcodec/vc1.c v->s.loop_filter, v->multires, v->fastuvmc, v->extended_mv, v 398 libavcodec/vc1.c v->rangered, v->vstransform, v->overlap, v->resync_marker, v 399 libavcodec/vc1.c v->dquant, v->quantizer_mode, avctx->max_b_frames); v 403 libavcodec/vc1.c static int decode_sequence_header_adv(VC1Context *v, GetBitContext *gb) v 405 libavcodec/vc1.c v->res_rtm_flag = 1; v 406 libavcodec/vc1.c v->level = get_bits(gb, 3); v 407 libavcodec/vc1.c if (v->level >= 5) { v 408 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_ERROR, "Reserved LEVEL %i\n",v->level); v 410 libavcodec/vc1.c v->chromaformat = get_bits(gb, 2); v 411 libavcodec/vc1.c if (v->chromaformat != 1) { v 412 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_ERROR, v 418 libavcodec/vc1.c v->frmrtq_postproc = get_bits(gb, 3); //common v 420 libavcodec/vc1.c v->bitrtq_postproc = get_bits(gb, 5); //common v 421 libavcodec/vc1.c v->postprocflag = get_bits1(gb); //common v 423 libavcodec/vc1.c v->max_coded_width = (get_bits(gb, 12) + 1) << 1; v 424 libavcodec/vc1.c v->max_coded_height = (get_bits(gb, 12) + 1) << 1; v 425 libavcodec/vc1.c v->broadcast = get_bits1(gb); v 426 libavcodec/vc1.c v->interlace = get_bits1(gb); v 427 libavcodec/vc1.c v->tfcntrflag = get_bits1(gb); v 428 libavcodec/vc1.c v->finterpflag = get_bits1(gb); v 431 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, v 435 libavcodec/vc1.c v->level, v->frmrtq_postproc, v->bitrtq_postproc, v 436 libavcodec/vc1.c v->s.loop_filter, v->chromaformat, v->broadcast, v->interlace, v 437 libavcodec/vc1.c v->tfcntrflag, v->finterpflag); v 439 libavcodec/vc1.c v->psf = get_bits1(gb); v 440 libavcodec/vc1.c if (v->psf) { //PsF, 6.1.13 v 441 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_ERROR, "Progressive Segmented Frame mode: not supported (yet)\n"); v 444 libavcodec/vc1.c v->s.max_b_frames = v->s.avctx->max_b_frames = 7; v 447 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "Display extended info:\n"); v 450 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "Display dimensions: %ix%i\n", w, h); v 454 libavcodec/vc1.c v->s.avctx->sample_aspect_ratio = ff_vc1_pixel_aspect[ar]; v 458 libavcodec/vc1.c v->s.avctx->sample_aspect_ratio = (AVRational){w, h}; v 460 libavcodec/vc1.c av_reduce(&v->s.avctx->sample_aspect_ratio.num, v 461 libavcodec/vc1.c &v->s.avctx->sample_aspect_ratio.den, v 462 libavcodec/vc1.c v->s.avctx->height * w, v 463 libavcodec/vc1.c v->s.avctx->width * h, v 466 libavcodec/vc1.c ff_set_sar(v->s.avctx, v->s.avctx->sample_aspect_ratio); v 467 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "Aspect: %i:%i\n", v 468 libavcodec/vc1.c v->s.avctx->sample_aspect_ratio.num, v 469 libavcodec/vc1.c v->s.avctx->sample_aspect_ratio.den); v 473 libavcodec/vc1.c v->s.avctx->framerate.den = 32; v 474 libavcodec/vc1.c v->s.avctx->framerate.num = get_bits(gb, 16) + 1; v 480 libavcodec/vc1.c v->s.avctx->framerate.den = ff_vc1_fps_dr[dr - 1]; v 481 libavcodec/vc1.c v->s.avctx->framerate.num = ff_vc1_fps_nr[nr - 1] * 1000; v 484 libavcodec/vc1.c if (v->broadcast) { // Pulldown may be present v 485 libavcodec/vc1.c v->s.avctx->ticks_per_frame = 2; v 490 libavcodec/vc1.c v->color_prim = get_bits(gb, 8); v 491 libavcodec/vc1.c v->transfer_char = get_bits(gb, 8); v 492 libavcodec/vc1.c v->matrix_coef = get_bits(gb, 8); v 496 libavcodec/vc1.c v->hrd_param_flag = get_bits1(gb); v 497 libavcodec/vc1.c if (v->hrd_param_flag) { v 499 libavcodec/vc1.c v->hrd_num_leaky_buckets = get_bits(gb, 5); v 502 libavcodec/vc1.c for (i = 0; i < v->hrd_num_leaky_buckets; i++) { v 510 libavcodec/vc1.c int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb) v 517 libavcodec/vc1.c v->broken_link = get_bits1(gb); v 518 libavcodec/vc1.c v->closed_entry = get_bits1(gb); v 519 libavcodec/vc1.c v->panscanflag = get_bits1(gb); v 520 libavcodec/vc1.c v->refdist_flag = get_bits1(gb); v 521 libavcodec/vc1.c v->s.loop_filter = get_bits1(gb); v 522 libavcodec/vc1.c if (v->s.avctx->skip_loop_filter >= AVDISCARD_ALL) v 523 libavcodec/vc1.c v->s.loop_filter = 0; v 524 libavcodec/vc1.c v->fastuvmc = get_bits1(gb); v 525 libavcodec/vc1.c v->extended_mv = get_bits1(gb); v 526 libavcodec/vc1.c v->dquant = get_bits(gb, 2); v 527 libavcodec/vc1.c v->vstransform = get_bits1(gb); v 528 libavcodec/vc1.c v->overlap = get_bits1(gb); v 529 libavcodec/vc1.c v->quantizer_mode = get_bits(gb, 2); v 531 libavcodec/vc1.c if (v->hrd_param_flag) { v 532 libavcodec/vc1.c for (i = 0; i < v->hrd_num_leaky_buckets; i++) { v 541 libavcodec/vc1.c w = v->max_coded_width; v 542 libavcodec/vc1.c h = v->max_coded_height; v 549 libavcodec/vc1.c if (v->extended_mv) v 550 libavcodec/vc1.c v->extended_dmv = get_bits1(gb); v 551 libavcodec/vc1.c if ((v->range_mapy_flag = get_bits1(gb))) { v 553 libavcodec/vc1.c v->range_mapy = get_bits(gb, 3); v 555 libavcodec/vc1.c if ((v->range_mapuv_flag = get_bits1(gb))) { v 557 libavcodec/vc1.c v->range_mapuv = get_bits(gb, 3); v 564 libavcodec/vc1.c v->broken_link, v->closed_entry, v->panscanflag, v->refdist_flag, v->s.loop_filter, v 565 libavcodec/vc1.c v->fastuvmc, v->extended_mv, v->dquant, v->vstransform, v->overlap, v->quantizer_mode); v 593 libavcodec/vc1.c static void rotate_luts(VC1Context *v) v 596 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_BI || v->s.pict_type == AV_PICTURE_TYPE_B) { \ v 607 libavcodec/vc1.c ROTATE(int tmp, &v->last_use_ic, &v->next_use_ic, v->curr_use_ic, &v->aux_use_ic); v 608 libavcodec/vc1.c ROTATE(uint8_t tmp[2][256], v->last_luty, v->next_luty, v->curr_luty, v->aux_luty); v 609 libavcodec/vc1.c ROTATE(uint8_t tmp[2][256], v->last_lutuv, v->next_lutuv, v->curr_lutuv, v->aux_lutuv); v 611 libavcodec/vc1.c INIT_LUT(32, 0, v->curr_luty[0], v->curr_lutuv[0], 0); v 612 libavcodec/vc1.c INIT_LUT(32, 0, v->curr_luty[1], v->curr_lutuv[1], 0); v 613 libavcodec/vc1.c *v->curr_use_ic = 0; v 616 libavcodec/vc1.c static int read_bfraction(VC1Context *v, GetBitContext* gb) { v 620 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_ERROR, "bfraction invalid\n"); v 623 libavcodec/vc1.c v->bfraction_lut_index = bfraction_lut_index; v 624 libavcodec/vc1.c v->bfraction = ff_vc1_bfraction_lut[v->bfraction_lut_index]; v 628 libavcodec/vc1.c int ff_vc1_parse_frame_header(VC1Context *v, GetBitContext* gb) v 632 libavcodec/vc1.c v->field_mode = 0; v 633 libavcodec/vc1.c v->fcm = 0; v 634 libavcodec/vc1.c if (v->finterpflag) v 635 libavcodec/vc1.c v->interpfrm = get_bits1(gb); v 636 libavcodec/vc1.c if (!v->s.avctx->codec) v 638 libavcodec/vc1.c if (v->s.avctx->codec_id == AV_CODEC_ID_MSS2) v 639 libavcodec/vc1.c v->respic = v 640 libavcodec/vc1.c v->rangered = v 641 libavcodec/vc1.c v->multires = get_bits(gb, 2) == 1; v 644 libavcodec/vc1.c v->rangeredfrm = 0; v 645 libavcodec/vc1.c if (v->rangered) v 646 libavcodec/vc1.c v->rangeredfrm = get_bits1(gb); v 648 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_P; v 650 libavcodec/vc1.c if (v->s.avctx->max_b_frames && !get_bits1(gb)) { v 651 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_B; v 653 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_I; v 656 libavcodec/vc1.c v->bi_type = 0; v 657 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_B) { v 658 libavcodec/vc1.c if (read_bfraction(v, gb) < 0) v 660 libavcodec/vc1.c if (v->bfraction == 0) { v 661 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_BI; v 664 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI) v 667 libavcodec/vc1.c if (v->parse_only) v 671 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI) v 672 libavcodec/vc1.c v->rnd = 1; v 673 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_P) v 674 libavcodec/vc1.c v->rnd ^= 1; v 680 libavcodec/vc1.c if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v 681 libavcodec/vc1.c v->pq = ff_vc1_pquant_table[0][pqindex]; v 683 libavcodec/vc1.c v->pq = ff_vc1_pquant_table[1][pqindex]; v 684 libavcodec/vc1.c v->pqindex = pqindex; v 686 libavcodec/vc1.c v->halfpq = get_bits1(gb); v 688 libavcodec/vc1.c v->halfpq = 0; v 689 libavcodec/vc1.c switch (v->quantizer_mode) { v 691 libavcodec/vc1.c v->pquantizer = pqindex < 9; v 694 libavcodec/vc1.c v->pquantizer = 0; v 697 libavcodec/vc1.c v->pquantizer = get_bits1(gb); v 700 libavcodec/vc1.c v->pquantizer = 1; v 703 libavcodec/vc1.c v->dquantfrm = 0; v 704 libavcodec/vc1.c if (v->extended_mv == 1) v 705 libavcodec/vc1.c v->mvrange = get_unary(gb, 0, 3); v 706 libavcodec/vc1.c v->k_x = v->mvrange + 9 + (v->mvrange >> 1); //k_x can be 9 10 12 13 v 707 libavcodec/vc1.c v->k_y = v->mvrange + 8; //k_y can be 8 9 10 11 v 708 libavcodec/vc1.c v->range_x = 1 << (v->k_x - 1); v 709 libavcodec/vc1.c v->range_y = 1 << (v->k_y - 1); v 710 libavcodec/vc1.c if (v->multires && v->s.pict_type != AV_PICTURE_TYPE_B) v 711 libavcodec/vc1.c v->respic = get_bits(gb, 2); v 713 libavcodec/vc1.c if (v->res_x8 && (v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI)) { v 714 libavcodec/vc1.c v->x8_type = get_bits1(gb); v 716 libavcodec/vc1.c v->x8_type = 0; v 717 libavcodec/vc1.c av_dlog(v->s.avctx, "%c Frame: QP=[%i]%i (+%i/2) %i\n", v 718 libavcodec/vc1.c (v->s.pict_type == AV_PICTURE_TYPE_P) ? 'P' : ((v->s.pict_type == AV_PICTURE_TYPE_I) ? 'I' : 'B'), v 719 libavcodec/vc1.c pqindex, v->pq, v->halfpq, v->rangeredfrm); v 721 libavcodec/vc1.c if (v->first_pic_header_flag) v 722 libavcodec/vc1.c rotate_luts(v); v 724 libavcodec/vc1.c switch (v->s.pict_type) { v 726 libavcodec/vc1.c v->tt_index = (v->pq > 4) + (v->pq > 12); v 728 libavcodec/vc1.c lowquant = (v->pq > 12) ? 0 : 1; v 729 libavcodec/vc1.c v->mv_mode = ff_vc1_mv_pmode_table[lowquant][get_unary(gb, 1, 4)]; v 730 libavcodec/vc1.c if (v->mv_mode == MV_PMODE_INTENSITY_COMP) { v 731 libavcodec/vc1.c v->mv_mode2 = ff_vc1_mv_pmode_table2[lowquant][get_unary(gb, 1, 3)]; v 732 libavcodec/vc1.c v->lumscale = get_bits(gb, 6); v 733 libavcodec/vc1.c v->lumshift = get_bits(gb, 6); v 734 libavcodec/vc1.c v->last_use_ic = 1; v 736 libavcodec/vc1.c INIT_LUT(v->lumscale, v->lumshift, v->last_luty[0], v->last_lutuv[0], 1); v 737 libavcodec/vc1.c INIT_LUT(v->lumscale, v->lumshift, v->last_luty[1], v->last_lutuv[1], 1); v 739 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 740 libavcodec/vc1.c if (v->mv_mode == MV_PMODE_INTENSITY_COMP) { v 741 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode2 != MV_PMODE_1MV_HPEL && v 742 libavcodec/vc1.c v->mv_mode2 != MV_PMODE_1MV_HPEL_BILIN); v 743 libavcodec/vc1.c v->s.mspel = (v->mv_mode2 != MV_PMODE_1MV_HPEL_BILIN); v 745 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode != MV_PMODE_1MV_HPEL && v 746 libavcodec/vc1.c v->mv_mode != MV_PMODE_1MV_HPEL_BILIN); v 747 libavcodec/vc1.c v->s.mspel = (v->mv_mode != MV_PMODE_1MV_HPEL_BILIN); v 750 libavcodec/vc1.c if ((v->mv_mode == MV_PMODE_INTENSITY_COMP && v 751 libavcodec/vc1.c v->mv_mode2 == MV_PMODE_MIXED_MV) || v 752 libavcodec/vc1.c v->mv_mode == MV_PMODE_MIXED_MV) { v 753 libavcodec/vc1.c status = bitplane_decoding(v->mv_type_mb_plane, &v->mv_type_is_raw, v); v 756 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB MV Type plane encoding: " v 759 libavcodec/vc1.c v->mv_type_is_raw = 0; v 760 libavcodec/vc1.c memset(v->mv_type_mb_plane, 0, v->s.mb_stride * v->s.mb_height); v 762 libavcodec/vc1.c status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v); v 765 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: " v 769 libavcodec/vc1.c v->s.mv_table_index = get_bits(gb, 2); //but using ff_vc1_ tables v 770 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_cbpcy_p_vlc[get_bits(gb, 2)]; v 772 libavcodec/vc1.c if (v->dquant) { v 773 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "VOP DQuant info\n"); v 774 libavcodec/vc1.c vop_dquant_decoding(v); v 777 libavcodec/vc1.c if (v->vstransform) { v 778 libavcodec/vc1.c v->ttmbf = get_bits1(gb); v 779 libavcodec/vc1.c if (v->ttmbf) { v 780 libavcodec/vc1.c v->ttfrm = ff_vc1_ttfrm_to_tt[get_bits(gb, 2)]; v 782 libavcodec/vc1.c v->ttfrm = 0; //FIXME Is that so ? v 784 libavcodec/vc1.c v->ttmbf = 1; v 785 libavcodec/vc1.c v->ttfrm = TT_8X8; v 789 libavcodec/vc1.c v->tt_index = (v->pq > 4) + (v->pq > 12); v 791 libavcodec/vc1.c v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN; v 792 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 793 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV); v 794 libavcodec/vc1.c v->s.mspel = v->s.quarter_sample; v 796 libavcodec/vc1.c status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v); v 799 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Direct Type plane encoding: " v 801 libavcodec/vc1.c status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v); v 804 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: " v 807 libavcodec/vc1.c v->s.mv_table_index = get_bits(gb, 2); v 808 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_cbpcy_p_vlc[get_bits(gb, 2)]; v 810 libavcodec/vc1.c if (v->dquant) { v 811 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "VOP DQuant info\n"); v 812 libavcodec/vc1.c vop_dquant_decoding(v); v 815 libavcodec/vc1.c if (v->vstransform) { v 816 libavcodec/vc1.c v->ttmbf = get_bits1(gb); v 817 libavcodec/vc1.c if (v->ttmbf) { v 818 libavcodec/vc1.c v->ttfrm = ff_vc1_ttfrm_to_tt[get_bits(gb, 2)]; v 820 libavcodec/vc1.c v->ttfrm = 0; v 822 libavcodec/vc1.c v->ttmbf = 1; v 823 libavcodec/vc1.c v->ttfrm = TT_8X8; v 828 libavcodec/vc1.c if (!v->x8_type) { v 830 libavcodec/vc1.c v->c_ac_table_index = decode012(gb); v 831 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI) { v 832 libavcodec/vc1.c v->y_ac_table_index = decode012(gb); v 835 libavcodec/vc1.c v->s.dc_table_index = get_bits1(gb); v 838 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_BI) { v 839 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_B; v 840 libavcodec/vc1.c v->bi_type = 1; v 845 libavcodec/vc1.c int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) v 852 libavcodec/vc1.c v->numref = 0; v 853 libavcodec/vc1.c v->p_frame_skipped = 0; v 854 libavcodec/vc1.c if (v->second_field) { v 855 libavcodec/vc1.c if (v->fcm != ILACE_FIELD || v->field_mode!=1) v 857 libavcodec/vc1.c if (v->fptype & 4) v 858 libavcodec/vc1.c v->s.pict_type = (v->fptype & 1) ? AV_PICTURE_TYPE_BI : AV_PICTURE_TYPE_B; v 860 libavcodec/vc1.c v->s.pict_type = (v->fptype & 1) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I; v 861 libavcodec/vc1.c v->s.current_picture_ptr->f->pict_type = v->s.pict_type; v 862 libavcodec/vc1.c if (!v->pic_header_flag) v 867 libavcodec/vc1.c if (v->interlace) { v 876 libavcodec/vc1.c if (!v->first_pic_header_flag && v->field_mode != field_mode) v 878 libavcodec/vc1.c v->field_mode = field_mode; v 879 libavcodec/vc1.c v->fcm = fcm; v 881 libavcodec/vc1.c av_assert0( v->s.mb_height == v->s.height + 15 >> 4 v 882 libavcodec/vc1.c || v->s.mb_height == FFALIGN(v->s.height + 15 >> 4, 2)); v 883 libavcodec/vc1.c if (v->field_mode) { v 884 libavcodec/vc1.c v->s.mb_height = FFALIGN(v->s.height + 15 >> 4, 2); v 885 libavcodec/vc1.c v->fptype = get_bits(gb, 3); v 886 libavcodec/vc1.c if (v->fptype & 4) // B-picture v 887 libavcodec/vc1.c v->s.pict_type = (v->fptype & 2) ? AV_PICTURE_TYPE_BI : AV_PICTURE_TYPE_B; v 889 libavcodec/vc1.c v->s.pict_type = (v->fptype & 2) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I; v 891 libavcodec/vc1.c v->s.mb_height = v->s.height + 15 >> 4; v 894 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_P; v 897 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_B; v 900 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_I; v 903 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_BI; v 906 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_P; // skipped pic v 907 libavcodec/vc1.c v->p_frame_skipped = 1; v 911 libavcodec/vc1.c if (v->tfcntrflag) v 913 libavcodec/vc1.c if (v->broadcast) { v 914 libavcodec/vc1.c if (!v->interlace || v->psf) { v 915 libavcodec/vc1.c v->rptfrm = get_bits(gb, 2); v 917 libavcodec/vc1.c v->tff = get_bits1(gb); v 918 libavcodec/vc1.c v->rff = get_bits1(gb); v 921 libavcodec/vc1.c v->tff = 1; v 923 libavcodec/vc1.c if (v->panscanflag) { v 924 libavcodec/vc1.c avpriv_report_missing_feature(v->s.avctx, "Pan-scan"); v 927 libavcodec/vc1.c if (v->p_frame_skipped) { v 930 libavcodec/vc1.c v->rnd = get_bits1(gb); v 931 libavcodec/vc1.c if (v->interlace) v 932 libavcodec/vc1.c v->uvsamp = get_bits1(gb); v 935 libavcodec/vc1.c if (v->field_mode) { v 936 libavcodec/vc1.c if (!v->refdist_flag) v 937 libavcodec/vc1.c v->refdist = 0; v 938 libavcodec/vc1.c else if ((v->s.pict_type != AV_PICTURE_TYPE_B) && (v->s.pict_type != AV_PICTURE_TYPE_BI)) { v 939 libavcodec/vc1.c v->refdist = get_bits(gb, 2); v 940 libavcodec/vc1.c if (v->refdist == 3) v 941 libavcodec/vc1.c v->refdist += get_unary(gb, 0, 16); v 943 libavcodec/vc1.c if ((v->s.pict_type == AV_PICTURE_TYPE_B) || (v->s.pict_type == AV_PICTURE_TYPE_BI)) { v 944 libavcodec/vc1.c if (read_bfraction(v, gb) < 0) v 946 libavcodec/vc1.c v->frfd = (v->bfraction * v->refdist) >> 8; v 947 libavcodec/vc1.c v->brfd = v->refdist - v->frfd - 1; v 948 libavcodec/vc1.c if (v->brfd < 0) v 949 libavcodec/vc1.c v->brfd = 0; v 953 libavcodec/vc1.c if (v->fcm == PROGRESSIVE) { v 954 libavcodec/vc1.c if (v->finterpflag) v 955 libavcodec/vc1.c v->interpfrm = get_bits1(gb); v 956 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_B) { v 957 libavcodec/vc1.c if (read_bfraction(v, gb) < 0) v 959 libavcodec/vc1.c if (v->bfraction == 0) { v 960 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_BI; /* XXX: should not happen here */ v 966 libavcodec/vc1.c if (v->field_mode) v 967 libavcodec/vc1.c v->cur_field_type = !(v->tff ^ v->second_field); v 971 libavcodec/vc1.c if (v->quantizer_mode == QUANT_FRAME_IMPLICIT) v 972 libavcodec/vc1.c v->pq = ff_vc1_pquant_table[0][pqindex]; v 974 libavcodec/vc1.c v->pq = ff_vc1_pquant_table[1][pqindex]; v 975 libavcodec/vc1.c v->pqindex = pqindex; v 977 libavcodec/vc1.c v->halfpq = get_bits1(gb); v 979 libavcodec/vc1.c v->halfpq = 0; v 980 libavcodec/vc1.c switch (v->quantizer_mode) { v 982 libavcodec/vc1.c v->pquantizer = pqindex < 9; v 985 libavcodec/vc1.c v->pquantizer = 0; v 988 libavcodec/vc1.c v->pquantizer = get_bits1(gb); v 991 libavcodec/vc1.c v->pquantizer = 1; v 994 libavcodec/vc1.c if (v->postprocflag) v 995 libavcodec/vc1.c v->postproc = get_bits(gb, 2); v 997 libavcodec/vc1.c if (v->parse_only) v 1000 libavcodec/vc1.c if (v->first_pic_header_flag) v 1001 libavcodec/vc1.c rotate_luts(v); v 1003 libavcodec/vc1.c switch (v->s.pict_type) { v 1006 libavcodec/vc1.c if (v->fcm == ILACE_FRAME) { //interlace frame picture v 1007 libavcodec/vc1.c status = bitplane_decoding(v->fieldtx_plane, &v->fieldtx_is_raw, v); v 1010 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "FIELDTX plane encoding: " v 1013 libavcodec/vc1.c status = bitplane_decoding(v->acpred_plane, &v->acpred_is_raw, v); v 1016 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "ACPRED plane encoding: " v 1018 libavcodec/vc1.c v->condover = CONDOVER_NONE; v 1019 libavcodec/vc1.c if (v->overlap && v->pq <= 8) { v 1020 libavcodec/vc1.c v->condover = decode012(gb); v 1021 libavcodec/vc1.c if (v->condover == CONDOVER_SELECT) { v 1022 libavcodec/vc1.c status = bitplane_decoding(v->over_flags_plane, &v->overflg_is_raw, v); v 1025 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "CONDOVER plane encoding: " v 1031 libavcodec/vc1.c if (v->field_mode) { v 1032 libavcodec/vc1.c v->numref = get_bits1(gb); v 1033 libavcodec/vc1.c if (!v->numref) { v 1034 libavcodec/vc1.c v->reffield = get_bits1(gb); v 1035 libavcodec/vc1.c v->ref_field_type[0] = v->reffield ^ !v->cur_field_type; v 1038 libavcodec/vc1.c if (v->extended_mv) v 1039 libavcodec/vc1.c v->mvrange = get_unary(gb, 0, 3); v 1041 libavcodec/vc1.c v->mvrange = 0; v 1042 libavcodec/vc1.c if (v->interlace) { v 1043 libavcodec/vc1.c if (v->extended_dmv) v 1044 libavcodec/vc1.c v->dmvrange = get_unary(gb, 0, 3); v 1046 libavcodec/vc1.c v->dmvrange = 0; v 1047 libavcodec/vc1.c if (v->fcm == ILACE_FRAME) { // interlaced frame picture v 1048 libavcodec/vc1.c v->fourmvswitch = get_bits1(gb); v 1049 libavcodec/vc1.c v->intcomp = get_bits1(gb); v 1050 libavcodec/vc1.c if (v->intcomp) { v 1051 libavcodec/vc1.c v->lumscale = get_bits(gb, 6); v 1052 libavcodec/vc1.c v->lumshift = get_bits(gb, 6); v 1053 libavcodec/vc1.c INIT_LUT(v->lumscale, v->lumshift, v->last_luty[0], v->last_lutuv[0], 1); v 1054 libavcodec/vc1.c INIT_LUT(v->lumscale, v->lumshift, v->last_luty[1], v->last_lutuv[1], 1); v 1055 libavcodec/vc1.c v->last_use_ic = 1; v 1057 libavcodec/vc1.c status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v); v 1058 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "SKIPMB plane encoding: " v 1061 libavcodec/vc1.c if (v->fourmvswitch) v 1062 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_intfr_4mv_mbmode_vlc[mbmodetab]; v 1064 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_intfr_non4mv_mbmode_vlc[mbmodetab]; v 1066 libavcodec/vc1.c v->imv_vlc = &ff_vc1_1ref_mvdata_vlc[imvtab]; v 1069 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_icbpcy_vlc[icbptab]; v 1071 libavcodec/vc1.c v->twomvbp_vlc = &ff_vc1_2mv_block_pattern_vlc[twomvbptab]; v 1072 libavcodec/vc1.c if (v->fourmvswitch) { v 1074 libavcodec/vc1.c v->fourmvbp_vlc = &ff_vc1_4mv_block_pattern_vlc[fourmvbptab]; v 1078 libavcodec/vc1.c v->k_x = v->mvrange + 9 + (v->mvrange >> 1); //k_x can be 9 10 12 13 v 1079 libavcodec/vc1.c v->k_y = v->mvrange + 8; //k_y can be 8 9 10 11 v 1080 libavcodec/vc1.c v->range_x = 1 << (v->k_x - 1); v 1081 libavcodec/vc1.c v->range_y = 1 << (v->k_y - 1); v 1083 libavcodec/vc1.c v->tt_index = (v->pq > 4) + (v->pq > 12); v 1084 libavcodec/vc1.c if (v->fcm != ILACE_FRAME) { v 1087 libavcodec/vc1.c lowquant = (v->pq > 12) ? 0 : 1; v 1088 libavcodec/vc1.c v->mv_mode = ff_vc1_mv_pmode_table[lowquant][mvmode]; v 1089 libavcodec/vc1.c if (v->mv_mode == MV_PMODE_INTENSITY_COMP) { v 1092 libavcodec/vc1.c v->mv_mode2 = ff_vc1_mv_pmode_table2[lowquant][mvmode2]; v 1093 libavcodec/vc1.c if (v->field_mode) { v 1094 libavcodec/vc1.c v->intcompfield = decode210(gb) ^ 3; v 1096 libavcodec/vc1.c v->intcompfield = 3; v 1098 libavcodec/vc1.c v->lumscale2 = v->lumscale = 32; v 1099 libavcodec/vc1.c v->lumshift2 = v->lumshift = 0; v 1100 libavcodec/vc1.c if (v->intcompfield & 1) { v 1101 libavcodec/vc1.c v->lumscale = get_bits(gb, 6); v 1102 libavcodec/vc1.c v->lumshift = get_bits(gb, 6); v 1104 libavcodec/vc1.c if ((v->intcompfield & 2) && v->field_mode) { v 1105 libavcodec/vc1.c v->lumscale2 = get_bits(gb, 6); v 1106 libavcodec/vc1.c v->lumshift2 = get_bits(gb, 6); v 1107 libavcodec/vc1.c } else if(!v->field_mode) { v 1108 libavcodec/vc1.c v->lumscale2 = v->lumscale; v 1109 libavcodec/vc1.c v->lumshift2 = v->lumshift; v 1111 libavcodec/vc1.c if (v->field_mode && v->second_field) { v 1112 libavcodec/vc1.c if (v->cur_field_type) { v 1113 libavcodec/vc1.c INIT_LUT(v->lumscale , v->lumshift , v->curr_luty[v->cur_field_type^1], v->curr_lutuv[v->cur_field_type^1], 0); v 1114 libavcodec/vc1.c INIT_LUT(v->lumscale2, v->lumshift2, v->last_luty[v->cur_field_type ], v->last_lutuv[v->cur_field_type ], 1); v 1116 libavcodec/vc1.c INIT_LUT(v->lumscale2, v->lumshift2, v->curr_luty[v->cur_field_type^1], v->curr_lutuv[v->cur_field_type^1], 0); v 1117 libavcodec/vc1.c INIT_LUT(v->lumscale , v->lumshift , v->last_luty[v->cur_field_type ], v->last_lutuv[v->cur_field_type ], 1); v 1119 libavcodec/vc1.c v->next_use_ic = *v->curr_use_ic = 1; v 1121 libavcodec/vc1.c INIT_LUT(v->lumscale , v->lumshift , v->last_luty[0], v->last_lutuv[0], 1); v 1122 libavcodec/vc1.c INIT_LUT(v->lumscale2, v->lumshift2, v->last_luty[1], v->last_lutuv[1], 1); v 1124 libavcodec/vc1.c v->last_use_ic = 1; v 1126 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 1127 libavcodec/vc1.c if (v->mv_mode == MV_PMODE_INTENSITY_COMP) { v 1128 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode2 != MV_PMODE_1MV_HPEL && v 1129 libavcodec/vc1.c v->mv_mode2 != MV_PMODE_1MV_HPEL_BILIN); v 1130 libavcodec/vc1.c v->s.mspel = (v->mv_mode2 != MV_PMODE_1MV_HPEL_BILIN); v 1132 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode != MV_PMODE_1MV_HPEL && v 1133 libavcodec/vc1.c v->mv_mode != MV_PMODE_1MV_HPEL_BILIN); v 1134 libavcodec/vc1.c v->s.mspel = (v->mv_mode != MV_PMODE_1MV_HPEL_BILIN); v 1137 libavcodec/vc1.c if (v->fcm == PROGRESSIVE) { // progressive v 1138 libavcodec/vc1.c if ((v->mv_mode == MV_PMODE_INTENSITY_COMP && v 1139 libavcodec/vc1.c v->mv_mode2 == MV_PMODE_MIXED_MV) v 1140 libavcodec/vc1.c || v->mv_mode == MV_PMODE_MIXED_MV) { v 1141 libavcodec/vc1.c status = bitplane_decoding(v->mv_type_mb_plane, &v->mv_type_is_raw, v); v 1144 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB MV Type plane encoding: " v 1147 libavcodec/vc1.c v->mv_type_is_raw = 0; v 1148 libavcodec/vc1.c memset(v->mv_type_mb_plane, 0, v->s.mb_stride * v->s.mb_height); v 1150 libavcodec/vc1.c status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v); v 1153 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: " v 1157 libavcodec/vc1.c v->s.mv_table_index = get_bits(gb, 2); //but using ff_vc1_ tables v 1158 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_cbpcy_p_vlc[get_bits(gb, 2)]; v 1159 libavcodec/vc1.c } else if (v->fcm == ILACE_FRAME) { // frame interlaced v 1160 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 1161 libavcodec/vc1.c v->s.quarter_sample = 1; v 1162 libavcodec/vc1.c v->s.mspel = 1; v 1165 libavcodec/vc1.c imvtab = get_bits(gb, 2 + v->numref); v 1166 libavcodec/vc1.c if (!v->numref) v 1167 libavcodec/vc1.c v->imv_vlc = &ff_vc1_1ref_mvdata_vlc[imvtab]; v 1169 libavcodec/vc1.c v->imv_vlc = &ff_vc1_2ref_mvdata_vlc[imvtab]; v 1171 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_icbpcy_vlc[icbptab]; v 1172 libavcodec/vc1.c if ((v->mv_mode == MV_PMODE_INTENSITY_COMP && v 1173 libavcodec/vc1.c v->mv_mode2 == MV_PMODE_MIXED_MV) || v->mv_mode == MV_PMODE_MIXED_MV) { v 1175 libavcodec/vc1.c v->fourmvbp_vlc = &ff_vc1_4mv_block_pattern_vlc[fourmvbptab]; v 1176 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_if_mmv_mbmode_vlc[mbmodetab]; v 1178 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_if_1mv_mbmode_vlc[mbmodetab]; v 1181 libavcodec/vc1.c if (v->dquant) { v 1182 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "VOP DQuant info\n"); v 1183 libavcodec/vc1.c vop_dquant_decoding(v); v 1186 libavcodec/vc1.c if (v->vstransform) { v 1187 libavcodec/vc1.c v->ttmbf = get_bits1(gb); v 1188 libavcodec/vc1.c if (v->ttmbf) { v 1189 libavcodec/vc1.c v->ttfrm = ff_vc1_ttfrm_to_tt[get_bits(gb, 2)]; v 1191 libavcodec/vc1.c v->ttfrm = 0; //FIXME Is that so ? v 1193 libavcodec/vc1.c v->ttmbf = 1; v 1194 libavcodec/vc1.c v->ttfrm = TT_8X8; v 1198 libavcodec/vc1.c if (v->fcm == ILACE_FRAME) { v 1199 libavcodec/vc1.c if (read_bfraction(v, gb) < 0) v 1201 libavcodec/vc1.c if (v->bfraction == 0) { v 1205 libavcodec/vc1.c if (v->extended_mv) v 1206 libavcodec/vc1.c v->mvrange = get_unary(gb, 0, 3); v 1208 libavcodec/vc1.c v->mvrange = 0; v 1209 libavcodec/vc1.c v->k_x = v->mvrange + 9 + (v->mvrange >> 1); //k_x can be 9 10 12 13 v 1210 libavcodec/vc1.c v->k_y = v->mvrange + 8; //k_y can be 8 9 10 11 v 1211 libavcodec/vc1.c v->range_x = 1 << (v->k_x - 1); v 1212 libavcodec/vc1.c v->range_y = 1 << (v->k_y - 1); v 1214 libavcodec/vc1.c v->tt_index = (v->pq > 4) + (v->pq > 12); v 1216 libavcodec/vc1.c if (v->field_mode) { v 1218 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "B Fields\n"); v 1219 libavcodec/vc1.c if (v->extended_dmv) v 1220 libavcodec/vc1.c v->dmvrange = get_unary(gb, 0, 3); v 1222 libavcodec/vc1.c lowquant = (v->pq > 12) ? 0 : 1; v 1223 libavcodec/vc1.c v->mv_mode = ff_vc1_mv_pmode_table2[lowquant][mvmode]; v 1224 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 1225 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV || v->mv_mode == MV_PMODE_MIXED_MV); v 1226 libavcodec/vc1.c v->s.mspel = !(v->mv_mode == MV_PMODE_1MV_HPEL_BILIN || v->mv_mode == MV_PMODE_1MV_HPEL); v 1227 libavcodec/vc1.c status = bitplane_decoding(v->forward_mb_plane, &v->fmb_is_raw, v); v 1230 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Forward Type plane encoding: " v 1233 libavcodec/vc1.c if (v->mv_mode == MV_PMODE_MIXED_MV) v 1234 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_if_mmv_mbmode_vlc[mbmodetab]; v 1236 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_if_1mv_mbmode_vlc[mbmodetab]; v 1238 libavcodec/vc1.c v->imv_vlc = &ff_vc1_2ref_mvdata_vlc[imvtab]; v 1240 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_icbpcy_vlc[icbptab]; v 1241 libavcodec/vc1.c if (v->mv_mode == MV_PMODE_MIXED_MV) { v 1243 libavcodec/vc1.c v->fourmvbp_vlc = &ff_vc1_4mv_block_pattern_vlc[fourmvbptab]; v 1245 libavcodec/vc1.c v->numref = 1; // interlaced field B pictures are always 2-ref v 1246 libavcodec/vc1.c } else if (v->fcm == ILACE_FRAME) { v 1247 libavcodec/vc1.c if (v->extended_dmv) v 1248 libavcodec/vc1.c v->dmvrange = get_unary(gb, 0, 3); v 1250 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_WARNING, "Intensity compensation set for B picture\n"); v 1251 libavcodec/vc1.c v->intcomp = 0; v 1252 libavcodec/vc1.c v->mv_mode = MV_PMODE_1MV; v 1253 libavcodec/vc1.c v->fourmvswitch = 0; v 1254 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 1255 libavcodec/vc1.c v->s.quarter_sample = 1; v 1256 libavcodec/vc1.c v->s.mspel = 1; v 1257 libavcodec/vc1.c status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v); v 1260 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Direct Type plane encoding: " v 1262 libavcodec/vc1.c status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v); v 1265 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: " v 1268 libavcodec/vc1.c v->mbmode_vlc = &ff_vc1_intfr_non4mv_mbmode_vlc[mbmodetab]; v 1270 libavcodec/vc1.c v->imv_vlc = &ff_vc1_1ref_mvdata_vlc[imvtab]; v 1273 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_icbpcy_vlc[icbptab]; v 1275 libavcodec/vc1.c v->twomvbp_vlc = &ff_vc1_2mv_block_pattern_vlc[twomvbptab]; v 1277 libavcodec/vc1.c v->fourmvbp_vlc = &ff_vc1_4mv_block_pattern_vlc[fourmvbptab]; v 1279 libavcodec/vc1.c v->mv_mode = get_bits1(gb) ? MV_PMODE_1MV : MV_PMODE_1MV_HPEL_BILIN; v 1280 libavcodec/vc1.c v->qs_last = v->s.quarter_sample; v 1281 libavcodec/vc1.c v->s.quarter_sample = (v->mv_mode == MV_PMODE_1MV); v 1282 libavcodec/vc1.c v->s.mspel = v->s.quarter_sample; v 1283 libavcodec/vc1.c status = bitplane_decoding(v->direct_mb_plane, &v->dmb_is_raw, v); v 1286 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Direct Type plane encoding: " v 1288 libavcodec/vc1.c status = bitplane_decoding(v->s.mbskip_table, &v->skip_is_raw, v); v 1291 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "MB Skip plane encoding: " v 1293 libavcodec/vc1.c v->s.mv_table_index = get_bits(gb, 2); v 1294 libavcodec/vc1.c v->cbpcy_vlc = &ff_vc1_cbpcy_p_vlc[get_bits(gb, 2)]; v 1297 libavcodec/vc1.c if (v->dquant) { v 1298 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "VOP DQuant info\n"); v 1299 libavcodec/vc1.c vop_dquant_decoding(v); v 1302 libavcodec/vc1.c if (v->vstransform) { v 1303 libavcodec/vc1.c v->ttmbf = get_bits1(gb); v 1304 libavcodec/vc1.c if (v->ttmbf) { v 1305 libavcodec/vc1.c v->ttfrm = ff_vc1_ttfrm_to_tt[get_bits(gb, 2)]; v 1307 libavcodec/vc1.c v->ttfrm = 0; v 1309 libavcodec/vc1.c v->ttmbf = 1; v 1310 libavcodec/vc1.c v->ttfrm = TT_8X8; v 1315 libavcodec/vc1.c if (v->fcm != PROGRESSIVE && !v->s.quarter_sample) { v 1316 libavcodec/vc1.c v->range_x <<= 1; v 1317 libavcodec/vc1.c v->range_y <<= 1; v 1321 libavcodec/vc1.c v->c_ac_table_index = decode012(gb); v 1322 libavcodec/vc1.c if (v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI) { v 1323 libavcodec/vc1.c v->y_ac_table_index = decode012(gb); v 1326 libavcodec/vc1.c v->s.dc_table_index = get_bits1(gb); v 1327 libavcodec/vc1.c if ((v->s.pict_type == AV_PICTURE_TYPE_I || v->s.pict_type == AV_PICTURE_TYPE_BI) v 1328 libavcodec/vc1.c && v->dquant) { v 1329 libavcodec/vc1.c av_log(v->s.avctx, AV_LOG_DEBUG, "VOP DQuant info\n"); v 1330 libavcodec/vc1.c vop_dquant_decoding(v); v 1333 libavcodec/vc1.c v->bi_type = (v->s.pict_type == AV_PICTURE_TYPE_BI); v 1334 libavcodec/vc1.c if (v->bi_type) v 1335 libavcodec/vc1.c v->s.pict_type = AV_PICTURE_TYPE_B; v 1576 libavcodec/vc1.c av_cold int ff_vc1_init_common(VC1Context *v) v 1582 libavcodec/vc1.c v->hrd_rate = v->hrd_buffer = NULL; v 1696 libavcodec/vc1.c v->pq = -1; v 1697 libavcodec/vc1.c v->mvrange = 0; /* 7.1.1.18, p80 */ v 1699 libavcodec/vc1.c ff_vc1dsp_init(&v->vc1dsp); v 406 libavcodec/vc1.h int ff_vc1_decode_sequence_header(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb); v 408 libavcodec/vc1.h int ff_vc1_decode_entry_point(AVCodecContext *avctx, VC1Context *v, GetBitContext *gb); v 410 libavcodec/vc1.h int ff_vc1_parse_frame_header (VC1Context *v, GetBitContext *gb); v 411 libavcodec/vc1.h int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext *gb); v 412 libavcodec/vc1.h int ff_vc1_init_common(VC1Context *v); v 414 libavcodec/vc1.h int ff_vc1_decode_init_alloc_tables(VC1Context *v); v 415 libavcodec/vc1.h void ff_vc1_init_transposed_scantables(VC1Context *v); v 417 libavcodec/vc1.h void ff_vc1_decode_blocks(VC1Context *v); v 419 libavcodec/vc1.h void ff_vc1_loop_filter_iblk(VC1Context *v, int pq); v 420 libavcodec/vc1.h void ff_vc1_loop_filter_iblk_delayed(VC1Context *v, int pq); v 421 libavcodec/vc1.h void ff_vc1_smooth_overlap_filter_iblk(VC1Context *v); v 422 libavcodec/vc1.h void ff_vc1_apply_p_loop_filter(VC1Context *v); v 424 libavcodec/vc1.h void ff_vc1_mc_1mv(VC1Context *v, int dir); v 425 libavcodec/vc1.h void ff_vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg); v 426 libavcodec/vc1.h void ff_vc1_mc_4mv_chroma(VC1Context *v, int dir); v 427 libavcodec/vc1.h void ff_vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg); v 429 libavcodec/vc1.h void ff_vc1_interp_mc(VC1Context *v); v 56 libavcodec/vc1_block.c static inline void init_block_index(VC1Context *v) v 58 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 60 libavcodec/vc1_block.c if (v->field_mode && !(v->second_field ^ v->tff)) { v 69 libavcodec/vc1_block.c static void vc1_put_signed_blocks_clamped(VC1Context *v) v 71 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 86 libavcodec/vc1_block.c if (v->fcm == ILACE_FRAME) v 87 libavcodec/vc1_block.c fieldtx = v->fieldtx_plane[topleft_mb_pos]; v 90 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->topleft_blk_idx][0], v 93 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->topleft_blk_idx][1], v 96 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->topleft_blk_idx][2], v 99 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->topleft_blk_idx][3], v 102 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->topleft_blk_idx][4], v 105 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->topleft_blk_idx][5], v 111 libavcodec/vc1_block.c if (v->fcm == ILACE_FRAME) v 112 libavcodec/vc1_block.c fieldtx = v->fieldtx_plane[top_mb_pos]; v 115 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->top_blk_idx][0], v 118 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->top_blk_idx][1], v 121 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->top_blk_idx][2], v 124 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->top_blk_idx][3], v 127 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->top_blk_idx][4], v 130 libavcodec/vc1_block.c s->idsp.put_signed_pixels_clamped(v->block[v->top_blk_idx][5], v 138 libavcodec/vc1_block.c if (idx >= v->n_allocated_blks) \ v 142 libavcodec/vc1_block.c inc_blk_idx(v->topleft_blk_idx); v 143 libavcodec/vc1_block.c inc_blk_idx(v->top_blk_idx); v 144 libavcodec/vc1_block.c inc_blk_idx(v->left_blk_idx); v 145 libavcodec/vc1_block.c inc_blk_idx(v->cur_blk_idx); v 160 libavcodec/vc1_block.c if (v->dquantfrm) { \ v 162 libavcodec/vc1_block.c if (v->dqprofile == DQPROFILE_ALL_MBS) { \ v 163 libavcodec/vc1_block.c if (v->dqbilevel) { \ v 164 libavcodec/vc1_block.c mquant = (get_bits1(gb)) ? v->altpq : v->pq; \ v 168 libavcodec/vc1_block.c mquant = v->pq + mqdiff; \ v 173 libavcodec/vc1_block.c if (v->dqprofile == DQPROFILE_SINGLE_EDGE) \ v 174 libavcodec/vc1_block.c edges = 1 << v->dqsbedge; \ v 175 libavcodec/vc1_block.c else if (v->dqprofile == DQPROFILE_DOUBLE_EDGES) \ v 176 libavcodec/vc1_block.c edges = (3 << v->dqsbedge) % 15; \ v 177 libavcodec/vc1_block.c else if (v->dqprofile == DQPROFILE_FOUR_EDGES) \ v 180 libavcodec/vc1_block.c mquant = v->altpq; \ v 182 libavcodec/vc1_block.c mquant = v->altpq; \ v 184 libavcodec/vc1_block.c mquant = v->altpq; \ v 186 libavcodec/vc1_block.c mquant = v->altpq; \ v 188 libavcodec/vc1_block.c av_log(v->s.avctx, AV_LOG_ERROR, \ v 213 libavcodec/vc1_block.c _dmv_x = get_bits(gb, v->k_x - 1 + s->quarter_sample); \ v 214 libavcodec/vc1_block.c _dmv_y = get_bits(gb, v->k_y - 1 + s->quarter_sample); \ v 239 libavcodec/vc1_block.c static av_always_inline void get_mvdata_interlaced(VC1Context *v, int *dmv_x, v 244 libavcodec/vc1_block.c GetBitContext *gb = &v->s.gb; v 248 libavcodec/vc1_block.c if (v->numref) { v 255 libavcodec/vc1_block.c extend_x = v->dmvrange & 1; v 256 libavcodec/vc1_block.c extend_y = (v->dmvrange >> 1) & 1; v 257 libavcodec/vc1_block.c index = get_vlc2(gb, v->imv_vlc->table, bits, 3); v 259 libavcodec/vc1_block.c *dmv_x = get_bits(gb, v->k_x); v 260 libavcodec/vc1_block.c *dmv_y = get_bits(gb, v->k_y); v 261 libavcodec/vc1_block.c if (v->numref) { v 277 libavcodec/vc1_block.c if (index1 > v->numref) { v 278 libavcodec/vc1_block.c val = get_bits(gb, (index1 >> v->numref) + extend_y); v 280 libavcodec/vc1_block.c *dmv_y = (sign ^ ((val >> 1) + offset_table[extend_y][index1 >> v->numref])) - sign; v 283 libavcodec/vc1_block.c if (v->numref && pred_flag) v 290 libavcodec/vc1_block.c static inline void vc1_b_mc(VC1Context *v, int dmv_x[2], int dmv_y[2], v 294 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 295 libavcodec/vc1_block.c ff_vc1_interp_mc(v); v 299 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 300 libavcodec/vc1_block.c ff_vc1_interp_mc(v); v 304 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, (mode == BMV_TYPE_BACKWARD)); v 488 libavcodec/vc1_block.c static void vc1_decode_ac_coeff(VC1Context *v, int *last, int *skip, v 491 libavcodec/vc1_block.c GetBitContext *gb = &v->s.gb; v 521 libavcodec/vc1_block.c if (v->s.esc3_level_length == 0) { v 522 libavcodec/vc1_block.c if (v->pq < 8 || v->dquantfrm) { // table 59 v 523 libavcodec/vc1_block.c v->s.esc3_level_length = get_bits(gb, 3); v 524 libavcodec/vc1_block.c if (!v->s.esc3_level_length) v 525 libavcodec/vc1_block.c v->s.esc3_level_length = get_bits(gb, 2) + 8; v 527 libavcodec/vc1_block.c v->s.esc3_level_length = get_unary(gb, 1, 6) + 2; v 529 libavcodec/vc1_block.c v->s.esc3_run_length = 3 + get_bits(gb, 2); v 531 libavcodec/vc1_block.c run = get_bits(gb, v->s.esc3_run_length); v 533 libavcodec/vc1_block.c level = get_bits(gb, v->s.esc3_level_length); v 549 libavcodec/vc1_block.c static int vc1_decode_i_block(VC1Context *v, int16_t block[64], int n, v 552 libavcodec/vc1_block.c GetBitContext *gb = &v->s.gb; v 553 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 571 libavcodec/vc1_block.c const int m = (v->pq == 1 || v->pq == 2) ? 3 - v->pq : 0; v 583 libavcodec/vc1_block.c dcdiff += vc1_i_pred_dc(&v->s, v->overlap, v->pq, n, &dc_val, &dc_pred_dir); v 600 libavcodec/vc1_block.c scale = v->pq * 2 + v->halfpq; v 610 libavcodec/vc1_block.c if (v->s.ac_pred) { v 612 libavcodec/vc1_block.c zz_table = v->zz_8x8[2]; v 614 libavcodec/vc1_block.c zz_table = v->zz_8x8[3]; v 616 libavcodec/vc1_block.c zz_table = v->zz_8x8[1]; v 619 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, codingset); v 630 libavcodec/vc1_block.c sh = v->left_blk_sh; v 632 libavcodec/vc1_block.c sh = v->top_blk_sh; v 640 libavcodec/vc1_block.c ac_val2[k] = block[k << v->left_blk_sh]; v 641 libavcodec/vc1_block.c ac_val2[k + 8] = block[k << v->top_blk_sh]; v 648 libavcodec/vc1_block.c if (!v->pquantizer) v 649 libavcodec/vc1_block.c block[k] += (block[k] < 0) ? -v->pq : v->pq; v 661 libavcodec/vc1_block.c sh = v->left_blk_sh; v 663 libavcodec/vc1_block.c sh = v->top_blk_sh; v 670 libavcodec/vc1_block.c if (!v->pquantizer && block[k << sh]) v 671 libavcodec/vc1_block.c block[k << sh] += (block[k << sh] < 0) ? -v->pq : v->pq; v 689 libavcodec/vc1_block.c static int vc1_decode_i_block_adv(VC1Context *v, int16_t block[64], int n, v 692 libavcodec/vc1_block.c GetBitContext *gb = &v->s.gb; v 693 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 699 libavcodec/vc1_block.c int a_avail = v->a_avail, c_avail = v->c_avail; v 728 libavcodec/vc1_block.c dcdiff += ff_vc1_pred_dc(&v->s, v->overlap, mquant, n, v->a_avail, v->c_avail, &dc_val, &dc_pred_dir); v 742 libavcodec/vc1_block.c scale = mquant * 2 + ((mquant == v->pq) ? v->halfpq : 0); v 774 libavcodec/vc1_block.c if (v->s.ac_pred) { v 775 libavcodec/vc1_block.c if (!use_pred && v->fcm == ILACE_FRAME) { v 776 libavcodec/vc1_block.c zz_table = v->zzi_8x8; v 779 libavcodec/vc1_block.c zz_table = v->zz_8x8[2]; v 781 libavcodec/vc1_block.c zz_table = v->zz_8x8[3]; v 784 libavcodec/vc1_block.c if (v->fcm != ILACE_FRAME) v 785 libavcodec/vc1_block.c zz_table = v->zz_8x8[1]; v 787 libavcodec/vc1_block.c zz_table = v->zzi_8x8; v 791 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, codingset); v 802 libavcodec/vc1_block.c sh = v->left_blk_sh; v 804 libavcodec/vc1_block.c sh = v->top_blk_sh; v 809 libavcodec/vc1_block.c q1 = q1 * 2 + ((q1 == v->pq) ? v->halfpq : 0) - 1; v 812 libavcodec/vc1_block.c q2 = q2 * 2 + ((q2 == v->pq) ? v->halfpq : 0) - 1; v 822 libavcodec/vc1_block.c ac_val2[k ] = block[k << v->left_blk_sh]; v 823 libavcodec/vc1_block.c ac_val2[k + 8] = block[k << v->top_blk_sh]; v 830 libavcodec/vc1_block.c if (!v->pquantizer) v 843 libavcodec/vc1_block.c sh = v->left_blk_sh; v 845 libavcodec/vc1_block.c sh = v->top_blk_sh; v 851 libavcodec/vc1_block.c q1 = q1 * 2 + ((q1 == v->pq) ? v->halfpq : 0) - 1; v 852 libavcodec/vc1_block.c q2 = q2 * 2 + ((q2 == v->pq) ? v->halfpq : 0) - 1; v 860 libavcodec/vc1_block.c if (!v->pquantizer && block[k << sh]) v 879 libavcodec/vc1_block.c static int vc1_decode_intra_block(VC1Context *v, int16_t block[64], int n, v 882 libavcodec/vc1_block.c GetBitContext *gb = &v->s.gb; v 883 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 890 libavcodec/vc1_block.c int a_avail = v->a_avail, c_avail = v->c_avail; v 927 libavcodec/vc1_block.c dcdiff += ff_vc1_pred_dc(&v->s, v->overlap, mquant, n, a_avail, c_avail, &dc_val, &dc_pred_dir); v 948 libavcodec/vc1_block.c scale = mquant * 2 + v->halfpq; v 971 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, codingset); v 975 libavcodec/vc1_block.c if (v->fcm == PROGRESSIVE) v 976 libavcodec/vc1_block.c block[v->zz_8x8[0][i++]] = value; v 978 libavcodec/vc1_block.c if (use_pred && (v->fcm == ILACE_FRAME)) { v 980 libavcodec/vc1_block.c block[v->zz_8x8[2][i++]] = value; v 982 libavcodec/vc1_block.c block[v->zz_8x8[3][i++]] = value; v 984 libavcodec/vc1_block.c block[v->zzi_8x8[i++]] = value; v 993 libavcodec/vc1_block.c q1 = q1 * 2 + ((q1 == v->pq) ? v->halfpq : 0) - 1; v 994 libavcodec/vc1_block.c q2 = q2 * 2 + ((q2 == v->pq) ? v->halfpq : 0) - 1; v 1000 libavcodec/vc1_block.c block[k << v->left_blk_sh] += (ac_val[k] * q2 * ff_vc1_dqscale[q1 - 1] + 0x20000) >> 18; v 1003 libavcodec/vc1_block.c block[k << v->top_blk_sh] += (ac_val[k + 8] * q2 * ff_vc1_dqscale[q1 - 1] + 0x20000) >> 18; v 1008 libavcodec/vc1_block.c block[k << v->left_blk_sh] += ac_val[k]; v 1011 libavcodec/vc1_block.c block[k << v->top_blk_sh] += ac_val[k + 8]; v 1017 libavcodec/vc1_block.c ac_val2[k ] = block[k << v->left_blk_sh]; v 1018 libavcodec/vc1_block.c ac_val2[k + 8] = block[k << v->top_blk_sh]; v 1025 libavcodec/vc1_block.c if (!v->pquantizer) v 1038 libavcodec/vc1_block.c q1 = q1 * 2 + ((q1 == v->pq) ? v->halfpq : 0) - 1; v 1039 libavcodec/vc1_block.c q2 = q2 * 2 + ((q2 == v->pq) ? v->halfpq : 0) - 1; v 1050 libavcodec/vc1_block.c q1 = q1 * 2 + ((q1 == v->pq) ? v->halfpq : 0) - 1; v 1051 libavcodec/vc1_block.c q2 = q2 * 2 + ((q2 == v->pq) ? v->halfpq : 0) - 1; v 1064 libavcodec/vc1_block.c block[k << v->left_blk_sh] = ac_val2[k] * scale; v 1065 libavcodec/vc1_block.c if (!v->pquantizer && block[k << v->left_blk_sh]) v 1066 libavcodec/vc1_block.c block[k << v->left_blk_sh] += (block[k << v->left_blk_sh] < 0) ? -mquant : mquant; v 1070 libavcodec/vc1_block.c block[k << v->top_blk_sh] = ac_val2[k + 8] * scale; v 1071 libavcodec/vc1_block.c if (!v->pquantizer && block[k << v->top_blk_sh]) v 1072 libavcodec/vc1_block.c block[k << v->top_blk_sh] += (block[k << v->top_blk_sh] < 0) ? -mquant : mquant; v 1085 libavcodec/vc1_block.c static int vc1_decode_p_block(VC1Context *v, int16_t block[64], int n, v 1090 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 1101 libavcodec/vc1_block.c ttblk = ff_vc1_ttblk_to_tt[v->tt_index][get_vlc2(gb, ff_vc1_ttblk_vlc[v->tt_index].table, VC1_TTBLK_VLC_BITS, 1)]; v 1104 libavcodec/vc1_block.c subblkpat = ~(get_vlc2(gb, ff_vc1_subblkpat_vlc[v->tt_index].table, VC1_SUBBLKPAT_VLC_BITS, 1) + 1); v 1107 libavcodec/vc1_block.c && ((v->ttmbf || (ttmb != -1 && (ttmb & 8) && !first_block)) v 1108 libavcodec/vc1_block.c || (!v->res_rtm_flag && !first_block))) { v 1117 libavcodec/vc1_block.c scale = 2 * mquant + ((v->pq == mquant) ? v->halfpq : 0); v 1134 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, v->codingset2); v 1138 libavcodec/vc1_block.c if (!v->fcm) v 1139 libavcodec/vc1_block.c idx = v->zz_8x8[0][i++]; v 1141 libavcodec/vc1_block.c idx = v->zzi_8x8[i++]; v 1143 libavcodec/vc1_block.c if (!v->pquantizer) v 1148 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8_dc(dst, linesize, block); v 1150 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(block); v 1162 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, v->codingset2); v 1166 libavcodec/vc1_block.c if (!v->fcm) v 1171 libavcodec/vc1_block.c if (!v->pquantizer) v 1176 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_4x4_dc(dst + (j & 1) * 4 + (j & 2) * 2 * linesize, linesize, block + off); v 1178 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_4x4(dst + (j & 1) * 4 + (j & 2) * 2 * linesize, linesize, block + off); v 1189 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, v->codingset2); v 1193 libavcodec/vc1_block.c if (!v->fcm) v 1194 libavcodec/vc1_block.c idx = v->zz_8x4[i++] + off; v 1198 libavcodec/vc1_block.c if (!v->pquantizer) v 1203 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x4_dc(dst + j * 4 * linesize, linesize, block + off); v 1205 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x4(dst + j * 4 * linesize, linesize, block + off); v 1216 libavcodec/vc1_block.c vc1_decode_ac_coeff(v, &last, &skip, &value, v->codingset2); v 1220 libavcodec/vc1_block.c if (!v->fcm) v 1221 libavcodec/vc1_block.c idx = v->zz_4x8[i++] + off; v 1225 libavcodec/vc1_block.c if (!v->pquantizer) v 1230 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_4x8_dc(dst + j * 4, linesize, block + off); v 1232 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_4x8(dst + j*4, linesize, block + off); v 1248 libavcodec/vc1_block.c static int vc1_decode_p_mb(VC1Context *v) v 1250 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 1256 libavcodec/vc1_block.c int ttmb = v->ttfrm; /* MB Transform type */ v 1267 libavcodec/vc1_block.c mquant = v->pq; /* lossy initialization */ v 1269 libavcodec/vc1_block.c if (v->mv_type_is_raw) v 1272 libavcodec/vc1_block.c fourmv = v->mv_type_mb_plane[mb_pos]; v 1273 libavcodec/vc1_block.c if (v->skip_is_raw) v 1276 libavcodec/vc1_block.c skipped = v->s.mbskip_table[mb_pos]; v 1287 libavcodec/vc1_block.c ff_vc1_pred_mv(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], 0, 0); v 1297 libavcodec/vc1_block.c cbp = get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1300 libavcodec/vc1_block.c mquant = v->pq; v 1305 libavcodec/vc1_block.c if (!v->ttmbf && !s->mb_intra && mb_has_coeffs) v 1306 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, v 1308 libavcodec/vc1_block.c if (!s->mb_intra) ff_vc1_mc_1mv(v, 0); v 1315 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = s->mb_intra; v 1318 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 1320 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 1322 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 1324 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, v 1325 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 1328 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 1329 libavcodec/vc1_block.c if (v->rangeredfrm) v 1336 libavcodec/vc1_block.c if (v->pq >= 9 && v->overlap) { v 1337 libavcodec/vc1_block.c if (v->c_avail) v 1338 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[dst_idx] + off, i & 4 ? s->uvlinesize : s->linesize); v 1339 libavcodec/vc1_block.c if (v->a_avail) v 1340 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[dst_idx] + off, i & 4 ? s->uvlinesize : s->linesize); v 1345 libavcodec/vc1_block.c pat = vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, first_block, v 1349 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 1357 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 1362 libavcodec/vc1_block.c ff_vc1_pred_mv(v, 0, 0, 0, 1, v->range_x, v->range_y, v->mb_type[0], 0, 0); v 1363 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 1370 libavcodec/vc1_block.c cbp = get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1382 libavcodec/vc1_block.c ff_vc1_pred_mv(v, i, dmv_x, dmv_y, 0, v->range_x, v->range_y, v->mb_type[0], 0, 0); v 1384 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, 0, 0); v 1394 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma(v, 0); v 1395 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = is_intra[i]; v 1410 libavcodec/vc1_block.c if (((!s->first_slice_line || (i == 2 || i == 3)) && v->mb_type[0][s->block_index[i] - s->block_wrap[i]]) v 1411 libavcodec/vc1_block.c || ((s->mb_x || (i == 1 || i == 3)) && v->mb_type[0][s->block_index[i] - 1])) { v 1421 libavcodec/vc1_block.c if (!v->ttmbf && coded_inter) v 1422 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 1429 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 1431 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 1433 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 1435 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, is_coded[i], mquant, v 1436 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 1439 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 1440 libavcodec/vc1_block.c if (v->rangeredfrm) v 1447 libavcodec/vc1_block.c if (v->pq >= 9 && v->overlap) { v 1448 libavcodec/vc1_block.c if (v->c_avail) v 1449 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[dst_idx] + off, i & 4 ? s->uvlinesize : s->linesize); v 1450 libavcodec/vc1_block.c if (v->a_avail) v 1451 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[dst_idx] + off, i & 4 ? s->uvlinesize : s->linesize); v 1456 libavcodec/vc1_block.c pat = vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, v 1462 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 1471 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 1475 libavcodec/vc1_block.c ff_vc1_pred_mv(v, i, 0, 0, 0, v->range_x, v->range_y, v->mb_type[0], 0, 0); v 1476 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, 0, 0); v 1478 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma(v, 0); v 1483 libavcodec/vc1_block.c v->cbp[s->mb_x] = block_cbp; v 1484 libavcodec/vc1_block.c v->ttblk[s->mb_x] = block_tt; v 1485 libavcodec/vc1_block.c v->is_intra[s->mb_x] = block_intra; v 1492 libavcodec/vc1_block.c static int vc1_decode_p_mb_intfr(VC1Context *v) v 1494 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 1500 libavcodec/vc1_block.c int ttmb = v->ttfrm; /* MB Transform type */ v 1512 libavcodec/vc1_block.c mquant = v->pq; /* Lossy initialization */ v 1514 libavcodec/vc1_block.c if (v->skip_is_raw) v 1517 libavcodec/vc1_block.c skipped = v->s.mbskip_table[mb_pos]; v 1519 libavcodec/vc1_block.c if (v->fourmvswitch) v 1520 libavcodec/vc1_block.c idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_INTFR_4MV_MBMODE_VLC_BITS, 2); // try getting this done v 1522 libavcodec/vc1_block.c idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_INTFR_NON4MV_MBMODE_VLC_BITS, 2); // in a single line v 1523 libavcodec/vc1_block.c switch (ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][0]) { v 1527 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 0; v 1528 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 0; v 1529 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 0; v 1530 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 0; v 1534 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 1; v 1535 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 1; v 1536 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 1; v 1537 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 1; v 1541 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 1; v 1542 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 1; v 1543 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 1; v 1544 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 1; v 1547 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 0; v 1548 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 0; v 1549 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 0; v 1550 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 0; v 1553 libavcodec/vc1_block.c if (ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][0] == MV_PMODE_INTFR_INTRA) { // intra MB v 1558 libavcodec/vc1_block.c v->is_intra[s->mb_x] = 0x3f; // Set the bitfield to all 1. v 1561 libavcodec/vc1_block.c fieldtx = v->fieldtx_plane[mb_pos] = get_bits1(gb); v 1564 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1565 libavcodec/vc1_block.c v->s.ac_pred = v->acpred_plane[mb_pos] = get_bits1(gb); v 1573 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 1574 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 1; v 1579 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 1581 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 1583 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, v 1584 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 1586 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 1601 libavcodec/vc1_block.c mb_has_coeffs = ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][3]; v 1603 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1604 libavcodec/vc1_block.c if (ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][0] == MV_PMODE_INTFR_2MV_FIELD) { v 1605 libavcodec/vc1_block.c v->twomvbp = get_vlc2(gb, v->twomvbp_vlc->table, VC1_2MV_BLOCK_PATTERN_VLC_BITS, 1); v 1607 libavcodec/vc1_block.c if ((ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][0] == MV_PMODE_INTFR_4MV) v 1608 libavcodec/vc1_block.c || (ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][0] == MV_PMODE_INTFR_4MV_FIELD)) { v 1609 libavcodec/vc1_block.c v->fourmvbp = get_vlc2(gb, v->fourmvbp_vlc->table, VC1_4MV_BLOCK_PATTERN_VLC_BITS, 1); v 1612 libavcodec/vc1_block.c s->mb_intra = v->is_intra[s->mb_x] = 0; v 1614 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 1615 libavcodec/vc1_block.c fieldtx = v->fieldtx_plane[mb_pos] = ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][1]; v 1619 libavcodec/vc1_block.c mvbp = v->fourmvbp; v 1623 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 1624 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, i, dmv_x, dmv_y, 0, v->range_x, v->range_y, v->mb_type[0], 0); v 1625 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, 0, 0); v 1627 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, 0, 0, 0); v 1629 libavcodec/vc1_block.c mvbp = v->twomvbp; v 1632 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 1634 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0], 0); v 1635 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 0, 0, 0); v 1636 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 1, 0, 0); v 1639 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 1641 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 2, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0], 0); v 1642 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 2, 0, 0); v 1643 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 3, 0, 0); v 1644 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, 0, 0, 0); v 1646 libavcodec/vc1_block.c mvbp = ff_vc1_mbmode_intfrp[v->fourmvswitch][idx_mbmode][2]; v 1649 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 1651 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], 0); v 1652 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 1657 libavcodec/vc1_block.c if (!v->ttmbf && cbp) v 1658 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 1668 libavcodec/vc1_block.c pat = vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, v 1673 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 1680 libavcodec/vc1_block.c s->mb_intra = v->is_intra[s->mb_x] = 0; v 1682 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 1687 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 0; v 1688 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 0; v 1689 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 0; v 1690 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 0; v 1691 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 1, v->range_x, v->range_y, v->mb_type[0], 0); v 1692 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 1695 libavcodec/vc1_block.c memmove(v->is_intra_base, v->is_intra, sizeof(v->is_intra_base[0])*s->mb_stride); v 1699 libavcodec/vc1_block.c static int vc1_decode_p_mb_intfi(VC1Context *v) v 1701 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 1707 libavcodec/vc1_block.c int ttmb = v->ttfrm; /* MB Transform type */ v 1718 libavcodec/vc1_block.c mquant = v->pq; /* Lossy initialization */ v 1720 libavcodec/vc1_block.c idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_IF_MBMODE_VLC_BITS, 2); v 1722 libavcodec/vc1_block.c v->is_intra[s->mb_x] = 0x3f; // Set the bitfield to all 1. v 1724 libavcodec/vc1_block.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][0] = 0; v 1725 libavcodec/vc1_block.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][1] = 0; v 1726 libavcodec/vc1_block.c s->current_picture.mb_type[mb_pos + v->mb_off] = MB_TYPE_INTRA; v 1732 libavcodec/vc1_block.c v->s.ac_pred = v->acpred_plane[mb_pos] = get_bits1(gb); v 1735 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_ICBPCY_VLC_BITS, 2); v 1738 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 1739 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 1; v 1744 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 1746 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 1748 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, v 1749 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 1752 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 1761 libavcodec/vc1_block.c s->mb_intra = v->is_intra[s->mb_x] = 0; v 1762 libavcodec/vc1_block.c s->current_picture.mb_type[mb_pos + v->mb_off] = MB_TYPE_16x16; v 1764 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 1768 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag); v 1770 libavcodec/vc1_block.c ff_vc1_pred_mv(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], pred_flag, 0); v 1771 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 1774 libavcodec/vc1_block.c v->fourmvbp = get_vlc2(gb, v->fourmvbp_vlc->table, VC1_4MV_BLOCK_PATTERN_VLC_BITS, 1); v 1777 libavcodec/vc1_block.c if (v->fourmvbp & (8 >> i)) v 1778 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, &pred_flag); v 1779 libavcodec/vc1_block.c ff_vc1_pred_mv(v, i, dmv_x, dmv_y, 0, v->range_x, v->range_y, v->mb_type[0], pred_flag, 0); v 1780 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, 0, 0); v 1782 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma(v, 0); v 1786 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1791 libavcodec/vc1_block.c if (!v->ttmbf && cbp) { v 1792 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 1801 libavcodec/vc1_block.c pat = vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, v 1807 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 1814 libavcodec/vc1_block.c memmove(v->is_intra_base, v->is_intra, sizeof(v->is_intra_base[0]) * s->mb_stride); v 1820 libavcodec/vc1_block.c static void vc1_decode_b_mb(VC1Context *v) v 1822 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 1828 libavcodec/vc1_block.c int ttmb = v->ttfrm; /* MB Transform type */ v 1838 libavcodec/vc1_block.c mquant = v->pq; /* lossy initialization */ v 1841 libavcodec/vc1_block.c if (v->dmb_is_raw) v 1844 libavcodec/vc1_block.c direct = v->direct_mb_plane[mb_pos]; v 1845 libavcodec/vc1_block.c if (v->skip_is_raw) v 1848 libavcodec/vc1_block.c skipped = v->s.mbskip_table[mb_pos]; v 1852 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 1867 libavcodec/vc1_block.c bmvtype = (v->bfraction >= (B_FRACTION_DEN/2)) ? BMV_TYPE_BACKWARD : BMV_TYPE_FORWARD; v 1870 libavcodec/vc1_block.c bmvtype = (v->bfraction >= (B_FRACTION_DEN/2)) ? BMV_TYPE_FORWARD : BMV_TYPE_BACKWARD; v 1879 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = s->mb_intra; v 1884 libavcodec/vc1_block.c ff_vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype); v 1885 libavcodec/vc1_block.c vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype); v 1889 libavcodec/vc1_block.c cbp = get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1893 libavcodec/vc1_block.c if (!v->ttmbf) v 1894 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 1896 libavcodec/vc1_block.c ff_vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype); v 1897 libavcodec/vc1_block.c vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype); v 1901 libavcodec/vc1_block.c ff_vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype); v 1902 libavcodec/vc1_block.c vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype); v 1910 libavcodec/vc1_block.c ff_vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype); v 1916 libavcodec/vc1_block.c ff_vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype); v 1917 libavcodec/vc1_block.c vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype); v 1921 libavcodec/vc1_block.c ff_vc1_pred_b_mv(v, dmv_x, dmv_y, direct, bmvtype); v 1923 libavcodec/vc1_block.c vc1_b_mc(v, dmv_x, dmv_y, direct, bmvtype); v 1927 libavcodec/vc1_block.c cbp = get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 1930 libavcodec/vc1_block.c if (!v->ttmbf && !s->mb_intra && mb_has_coeffs) v 1931 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 1940 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = s->mb_intra; v 1943 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 1945 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 1947 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 1949 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, v 1950 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 1953 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 1954 libavcodec/vc1_block.c if (v->rangeredfrm) v 1962 libavcodec/vc1_block.c vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, v 1966 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 1975 libavcodec/vc1_block.c static void vc1_decode_b_mb_intfi(VC1Context *v) v 1977 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 1983 libavcodec/vc1_block.c int ttmb = v->ttfrm; /* MB Transform type */ v 1993 libavcodec/vc1_block.c mquant = v->pq; /* Lossy initialization */ v 1996 libavcodec/vc1_block.c idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_IF_MBMODE_VLC_BITS, 2); v 1998 libavcodec/vc1_block.c v->is_intra[s->mb_x] = 0x3f; // Set the bitfield to all 1. v 2002 libavcodec/vc1_block.c s->current_picture.mb_type[mb_pos + v->mb_off] = MB_TYPE_INTRA; v 2008 libavcodec/vc1_block.c v->s.ac_pred = v->acpred_plane[mb_pos] = get_bits1(gb); v 2011 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_ICBPCY_VLC_BITS, 2); v 2014 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 2015 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 1; v 2020 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 2022 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 2024 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, v 2025 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 2028 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 2029 libavcodec/vc1_block.c if (v->rangeredfrm) v 2040 libavcodec/vc1_block.c s->mb_intra = v->is_intra[s->mb_x] = 0; v 2041 libavcodec/vc1_block.c s->current_picture.mb_type[mb_pos + v->mb_off] = MB_TYPE_16x16; v 2043 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 2044 libavcodec/vc1_block.c if (v->fmb_is_raw) v 2045 libavcodec/vc1_block.c fwd = v->forward_mb_plane[mb_pos] = get_bits1(gb); v 2047 libavcodec/vc1_block.c fwd = v->forward_mb_plane[mb_pos]; v 2068 libavcodec/vc1_block.c v->bmvtype = bmvtype; v 2070 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x[bmvtype == BMV_TYPE_BACKWARD], &dmv_y[bmvtype == BMV_TYPE_BACKWARD], &pred_flag[bmvtype == BMV_TYPE_BACKWARD]); v 2073 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x[1], &dmv_y[1], &pred_flag[1]); v 2083 libavcodec/vc1_block.c ff_vc1_pred_b_mv_intfi(v, 0, dmv_x, dmv_y, 1, pred_flag); v 2084 libavcodec/vc1_block.c vc1_b_mc(v, dmv_x, dmv_y, (bmvtype == BMV_TYPE_DIRECT), bmvtype); v 2089 libavcodec/vc1_block.c v->bmvtype = bmvtype; v 2090 libavcodec/vc1_block.c v->fourmvbp = get_vlc2(gb, v->fourmvbp_vlc->table, VC1_4MV_BLOCK_PATTERN_VLC_BITS, 1); v 2094 libavcodec/vc1_block.c if (v->fourmvbp & (8 >> i)) { v 2095 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x[bmvtype == BMV_TYPE_BACKWARD], v 2099 libavcodec/vc1_block.c ff_vc1_pred_b_mv_intfi(v, i, dmv_x, dmv_y, 0, pred_flag); v 2100 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, bmvtype == BMV_TYPE_BACKWARD, 0); v 2102 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma(v, bmvtype == BMV_TYPE_BACKWARD); v 2106 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 2111 libavcodec/vc1_block.c if (!v->ttmbf && cbp) { v 2112 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 2121 libavcodec/vc1_block.c vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, v 2125 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 2135 libavcodec/vc1_block.c static int vc1_decode_b_mb_intfr(VC1Context *v) v 2137 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 2143 libavcodec/vc1_block.c int ttmb = v->ttfrm; /* MB Transform type */ v 2157 libavcodec/vc1_block.c mquant = v->pq; /* Lossy initialization */ v 2159 libavcodec/vc1_block.c if (v->skip_is_raw) v 2162 libavcodec/vc1_block.c skipped = v->s.mbskip_table[mb_pos]; v 2165 libavcodec/vc1_block.c idx_mbmode = get_vlc2(gb, v->mbmode_vlc->table, VC1_INTFR_NON4MV_MBMODE_VLC_BITS, 2); v 2168 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 1; v 2169 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 1; v 2170 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 1; v 2171 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 1; v 2173 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 0; v 2174 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 0; v 2175 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 0; v 2176 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 0; v 2180 libavcodec/vc1_block.c if (v->dmb_is_raw) v 2183 libavcodec/vc1_block.c direct = v->direct_mb_plane[mb_pos]; v 2188 libavcodec/vc1_block.c s->mv[0][0][0] = s->current_picture.motion_val[0][s->block_index[0]][0] = scale_mv(s->next_picture.motion_val[1][s->block_index[0]][0], v->bfraction, 0, s->quarter_sample); v 2189 libavcodec/vc1_block.c s->mv[0][0][1] = s->current_picture.motion_val[0][s->block_index[0]][1] = scale_mv(s->next_picture.motion_val[1][s->block_index[0]][1], v->bfraction, 0, s->quarter_sample); v 2190 libavcodec/vc1_block.c s->mv[1][0][0] = s->current_picture.motion_val[1][s->block_index[0]][0] = scale_mv(s->next_picture.motion_val[1][s->block_index[0]][0], v->bfraction, 1, s->quarter_sample); v 2191 libavcodec/vc1_block.c s->mv[1][0][1] = s->current_picture.motion_val[1][s->block_index[0]][1] = scale_mv(s->next_picture.motion_val[1][s->block_index[0]][1], v->bfraction, 1, s->quarter_sample); v 2194 libavcodec/vc1_block.c s->mv[0][2][0] = s->current_picture.motion_val[0][s->block_index[2]][0] = scale_mv(s->next_picture.motion_val[1][s->block_index[2]][0], v->bfraction, 0, s->quarter_sample); v 2195 libavcodec/vc1_block.c s->mv[0][2][1] = s->current_picture.motion_val[0][s->block_index[2]][1] = scale_mv(s->next_picture.motion_val[1][s->block_index[2]][1], v->bfraction, 0, s->quarter_sample); v 2196 libavcodec/vc1_block.c s->mv[1][2][0] = s->current_picture.motion_val[1][s->block_index[2]][0] = scale_mv(s->next_picture.motion_val[1][s->block_index[2]][0], v->bfraction, 1, s->quarter_sample); v 2197 libavcodec/vc1_block.c s->mv[1][2][1] = s->current_picture.motion_val[1][s->block_index[2]][1] = scale_mv(s->next_picture.motion_val[1][s->block_index[2]][1], v->bfraction, 1, s->quarter_sample); v 2222 libavcodec/vc1_block.c v->is_intra[s->mb_x] = 0x3f; // Set the bitfield to all 1. v 2225 libavcodec/vc1_block.c fieldtx = v->fieldtx_plane[mb_pos] = get_bits1(gb); v 2228 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 2229 libavcodec/vc1_block.c v->s.ac_pred = v->acpred_plane[mb_pos] = get_bits1(gb); v 2237 libavcodec/vc1_block.c v->a_avail = v->c_avail = 0; v 2238 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 1; v 2243 libavcodec/vc1_block.c v->a_avail = v->mb_type[0][s->block_index[i] - s->block_wrap[i]]; v 2245 libavcodec/vc1_block.c v->c_avail = v->mb_type[0][s->block_index[i] - 1]; v 2247 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, v 2248 libavcodec/vc1_block.c (i & 4) ? v->codingset2 : v->codingset); v 2251 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[i]); v 2264 libavcodec/vc1_block.c s->mb_intra = v->is_intra[s->mb_x] = 0; v 2270 libavcodec/vc1_block.c bmvtype = (v->bfraction >= (B_FRACTION_DEN/2)) ? BMV_TYPE_BACKWARD : BMV_TYPE_FORWARD; v 2273 libavcodec/vc1_block.c bmvtype = (v->bfraction >= (B_FRACTION_DEN/2)) ? BMV_TYPE_FORWARD : BMV_TYPE_BACKWARD; v 2287 libavcodec/vc1_block.c cbp = 1 + get_vlc2(&v->s.gb, v->cbpcy_vlc->table, VC1_CBPCY_P_VLC_BITS, 2); v 2290 libavcodec/vc1_block.c v->fourmvbp = get_vlc2(gb, v->fourmvbp_vlc->table, VC1_4MV_BLOCK_PATTERN_VLC_BITS, 1); v 2292 libavcodec/vc1_block.c v->twomvbp = get_vlc2(gb, v->twomvbp_vlc->table, VC1_2MV_BLOCK_PATTERN_VLC_BITS, 1); v 2297 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 2298 libavcodec/vc1_block.c fieldtx = v->fieldtx_plane[mb_pos] = ff_vc1_mbmode_intfrp[0][idx_mbmode][1]; v 2304 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, 0, 0); v 2305 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, i, 1, 1); v 2307 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, 0, 0, 0); v 2308 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, 1, 1, 1); v 2310 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 2311 libavcodec/vc1_block.c ff_vc1_interp_mc(v); v 2314 libavcodec/vc1_block.c mvbp = v->fourmvbp; v 2320 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 2322 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, j, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0], dir); v 2323 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, j, dir, dir); v 2324 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, j+1, dir, dir); v 2327 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, 0, 0, 0); v 2328 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, 1, 1, 1); v 2330 libavcodec/vc1_block.c mvbp = v->twomvbp; v 2333 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 2335 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], 0); v 2336 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, 0); v 2340 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 2342 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], 1); v 2343 libavcodec/vc1_block.c ff_vc1_interp_mc(v); v 2349 libavcodec/vc1_block.c mvbp = v->twomvbp; v 2352 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 2353 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0], dir); v 2357 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 2358 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 2, dmv_x, dmv_y, 2, v->range_x, v->range_y, v->mb_type[0], dir2); v 2368 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 2, v->range_x, v->range_y, v->mb_type[0], !dir); v 2369 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 2, 0, 0, 2, v->range_x, v->range_y, v->mb_type[0], !dir); v 2372 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 0, dir, 0); v 2373 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 1, dir, 0); v 2374 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 2, dir2, 0); v 2375 libavcodec/vc1_block.c ff_vc1_mc_4mv_luma(v, 3, dir2, 0); v 2376 libavcodec/vc1_block.c ff_vc1_mc_4mv_chroma4(v, dir, dir2, 0); v 2383 libavcodec/vc1_block.c get_mvdata_interlaced(v, &dmv_x, &dmv_y, 0); v 2385 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, dmv_x, dmv_y, 1, v->range_x, v->range_y, v->mb_type[0], dir); v 2386 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 1; v 2387 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 1; v 2388 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 1; v 2389 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 1; v 2390 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 2, v->range_x, v->range_y, 0, !dir); v 2395 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, dir); v 2401 libavcodec/vc1_block.c if (!v->ttmbf && cbp) v 2402 libavcodec/vc1_block.c ttmb = get_vlc2(gb, ff_vc1_ttmb_vlc[v->tt_index].table, VC1_TTMB_VLC_BITS, 2); v 2412 libavcodec/vc1_block.c pat = vc1_decode_p_block(v, s->block[i], i, mquant, ttmb, v 2417 libavcodec/vc1_block.c if (!v->ttmbf && ttmb < 8) v 2426 libavcodec/vc1_block.c v->mb_type[0][s->block_index[i]] = 0; v 2431 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 0; v 2432 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 0; v 2433 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 0; v 2434 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 0; v 2438 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 1, v->range_x, v->range_y, v->mb_type[0], 0); v 2439 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 1, v->range_x, v->range_y, v->mb_type[0], 1); v 2442 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 1, v->range_x, v->range_y, v->mb_type[0], dir); v 2454 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[0]] = 1; v 2455 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[1]] = 1; v 2456 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[2]] = 1; v 2457 libavcodec/vc1_block.c v->blk_mv_type[s->block_index[3]] = 1; v 2458 libavcodec/vc1_block.c ff_vc1_pred_mv_intfr(v, 0, 0, 0, 2, v->range_x, v->range_y, 0, !dir); v 2467 libavcodec/vc1_block.c ff_vc1_mc_1mv(v, dir); v 2469 libavcodec/vc1_block.c ff_vc1_interp_mc(v); v 2474 libavcodec/vc1_block.c memmove(v->is_intra_base, v->is_intra, sizeof(v->is_intra_base[0]) * s->mb_stride); v 2475 libavcodec/vc1_block.c v->cbp[s->mb_x] = block_cbp; v 2476 libavcodec/vc1_block.c v->ttblk[s->mb_x] = block_tt; v 2482 libavcodec/vc1_block.c static void vc1_decode_i_blocks(VC1Context *v) v 2485 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 2491 libavcodec/vc1_block.c switch (v->y_ac_table_index) { v 2493 libavcodec/vc1_block.c v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; v 2496 libavcodec/vc1_block.c v->codingset = CS_HIGH_MOT_INTRA; v 2499 libavcodec/vc1_block.c v->codingset = CS_MID_RATE_INTRA; v 2503 libavcodec/vc1_block.c switch (v->c_ac_table_index) { v 2505 libavcodec/vc1_block.c v->codingset2 = (v->pqindex <= 8) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER; v 2508 libavcodec/vc1_block.c v->codingset2 = CS_HIGH_MOT_INTER; v 2511 libavcodec/vc1_block.c v->codingset2 = CS_MID_RATE_INTER; v 2516 libavcodec/vc1_block.c s->y_dc_scale = s->y_dc_scale_table[v->pq]; v 2517 libavcodec/vc1_block.c s->c_dc_scale = s->c_dc_scale_table[v->pq]; v 2525 libavcodec/vc1_block.c init_block_index(v); v 2526 libavcodec/vc1_block.c for (; s->mb_x < v->end_mb_x; s->mb_x++) { v 2538 libavcodec/vc1_block.c s->current_picture.qscale_table[mb_pos] = v->pq; v 2543 libavcodec/vc1_block.c cbp = get_vlc2(&v->s.gb, ff_msmp4_mb_i_vlc.table, MB_INTRA_VLC_BITS, 2); v 2544 libavcodec/vc1_block.c v->s.ac_pred = get_bits1(&v->s.gb); v 2550 libavcodec/vc1_block.c int pred = vc1_coded_block_pred(&v->s, k, &coded_val); v 2556 libavcodec/vc1_block.c vc1_decode_i_block(v, s->block[k], k, val, (k < 4) ? v->codingset : v->codingset2); v 2560 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(s->block[k]); v 2561 libavcodec/vc1_block.c if (v->pq >= 9 && v->overlap) { v 2562 libavcodec/vc1_block.c if (v->rangeredfrm) v 2569 libavcodec/vc1_block.c if (v->rangeredfrm) v 2578 libavcodec/vc1_block.c if (v->pq >= 9 && v->overlap) { v 2580 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[0], s->linesize); v 2581 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[0] + 8 * s->linesize, s->linesize); v 2583 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[1], s->uvlinesize); v 2584 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[2], s->uvlinesize); v 2587 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[0] + 8, s->linesize); v 2588 libavcodec/vc1_block.c v->vc1dsp.vc1_h_overlap(s->dest[0] + 8 * s->linesize + 8, s->linesize); v 2590 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[0], s->linesize); v 2591 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[0] + 8, s->linesize); v 2593 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[1], s->uvlinesize); v 2594 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[2], s->uvlinesize); v 2597 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[0] + 8 * s->linesize, s->linesize); v 2598 libavcodec/vc1_block.c v->vc1dsp.vc1_v_overlap(s->dest[0] + 8 * s->linesize + 8, s->linesize); v 2600 libavcodec/vc1_block.c if (v->s.loop_filter) v 2601 libavcodec/vc1_block.c ff_vc1_loop_filter_iblk(v, v->pq); v 2603 libavcodec/vc1_block.c if (get_bits_count(&s->gb) > v->bits) { v 2606 libavcodec/vc1_block.c get_bits_count(&s->gb), v->bits); v 2610 libavcodec/vc1_block.c if (!v->s.loop_filter) v 2617 libavcodec/vc1_block.c if (v->s.loop_filter) v 2627 libavcodec/vc1_block.c static void vc1_decode_i_blocks_adv(VC1Context *v) v 2630 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 2634 libavcodec/vc1_block.c int mquant = v->pq; v 2639 libavcodec/vc1_block.c switch (v->y_ac_table_index) { v 2641 libavcodec/vc1_block.c v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; v 2644 libavcodec/vc1_block.c v->codingset = CS_HIGH_MOT_INTRA; v 2647 libavcodec/vc1_block.c v->codingset = CS_MID_RATE_INTRA; v 2651 libavcodec/vc1_block.c switch (v->c_ac_table_index) { v 2653 libavcodec/vc1_block.c v->codingset2 = (v->pqindex <= 8) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER; v 2656 libavcodec/vc1_block.c v->codingset2 = CS_HIGH_MOT_INTER; v 2659 libavcodec/vc1_block.c v->codingset2 = CS_MID_RATE_INTER; v 2670 libavcodec/vc1_block.c init_block_index(v); v 2676 libavcodec/vc1_block.c init_block_index(v); v 2678 libavcodec/vc1_block.c int16_t (*block)[64] = v->block[v->cur_blk_idx]; v 2682 libavcodec/vc1_block.c s->current_picture.mb_type[mb_pos + v->mb_off] = MB_TYPE_INTRA; v 2683 libavcodec/vc1_block.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][0] = 0; v 2684 libavcodec/vc1_block.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][1] = 0; v 2687 libavcodec/vc1_block.c if (v->fieldtx_is_raw) v 2688 libavcodec/vc1_block.c v->fieldtx_plane[mb_pos] = get_bits1(&v->s.gb); v 2689 libavcodec/vc1_block.c cbp = get_vlc2(&v->s.gb, ff_msmp4_mb_i_vlc.table, MB_INTRA_VLC_BITS, 2); v 2690 libavcodec/vc1_block.c if ( v->acpred_is_raw) v 2691 libavcodec/vc1_block.c v->s.ac_pred = get_bits1(&v->s.gb); v 2693 libavcodec/vc1_block.c v->s.ac_pred = v->acpred_plane[mb_pos]; v 2695 libavcodec/vc1_block.c if (v->condover == CONDOVER_SELECT && v->overflg_is_raw) v 2696 libavcodec/vc1_block.c v->over_flags_plane[mb_pos] = get_bits1(&v->s.gb); v 2709 libavcodec/vc1_block.c int pred = vc1_coded_block_pred(&v->s, k, &coded_val); v 2715 libavcodec/vc1_block.c v->a_avail = !s->first_slice_line || (k == 2 || k == 3); v 2716 libavcodec/vc1_block.c v->c_avail = !!s->mb_x || (k == 1 || k == 3); v 2718 libavcodec/vc1_block.c vc1_decode_i_block_adv(v, block[k], k, val, v 2719 libavcodec/vc1_block.c (k < 4) ? v->codingset : v->codingset2, mquant); v 2723 libavcodec/vc1_block.c v->vc1dsp.vc1_inv_trans_8x8(block[k]); v 2726 libavcodec/vc1_block.c ff_vc1_smooth_overlap_filter_iblk(v); v 2727 libavcodec/vc1_block.c vc1_put_signed_blocks_clamped(v); v 2728 libavcodec/vc1_block.c if (v->s.loop_filter) v 2729 libavcodec/vc1_block.c ff_vc1_loop_filter_iblk_delayed(v, v->pq); v 2731 libavcodec/vc1_block.c if (get_bits_count(&s->gb) > v->bits) { v 2735 libavcodec/vc1_block.c get_bits_count(&s->gb), v->bits); v 2739 libavcodec/vc1_block.c if (!v->s.loop_filter) v 2748 libavcodec/vc1_block.c init_block_index(v); v 2751 libavcodec/vc1_block.c vc1_put_signed_blocks_clamped(v); v 2752 libavcodec/vc1_block.c if (v->s.loop_filter) v 2753 libavcodec/vc1_block.c ff_vc1_loop_filter_iblk_delayed(v, v->pq); v 2755 libavcodec/vc1_block.c if (v->s.loop_filter) v 2757 libavcodec/vc1_block.c ff_er_add_slice(&s->er, 0, s->start_mb_y << v->field_mode, s->mb_width - 1, v 2758 libavcodec/vc1_block.c (s->end_mb_y << v->field_mode) - 1, ER_MB_END); v 2761 libavcodec/vc1_block.c static void vc1_decode_p_blocks(VC1Context *v) v 2763 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 2767 libavcodec/vc1_block.c switch (v->c_ac_table_index) { v 2769 libavcodec/vc1_block.c v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; v 2772 libavcodec/vc1_block.c v->codingset = CS_HIGH_MOT_INTRA; v 2775 libavcodec/vc1_block.c v->codingset = CS_MID_RATE_INTRA; v 2779 libavcodec/vc1_block.c switch (v->c_ac_table_index) { v 2781 libavcodec/vc1_block.c v->codingset2 = (v->pqindex <= 8) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER; v 2784 libavcodec/vc1_block.c v->codingset2 = CS_HIGH_MOT_INTER; v 2787 libavcodec/vc1_block.c v->codingset2 = CS_MID_RATE_INTER; v 2792 libavcodec/vc1_block.c v->fcm == PROGRESSIVE; v 2794 libavcodec/vc1_block.c memset(v->cbp_base, 0, sizeof(v->cbp_base[0])*2*s->mb_stride); v 2797 libavcodec/vc1_block.c init_block_index(v); v 2801 libavcodec/vc1_block.c if (v->fcm == ILACE_FIELD) v 2802 libavcodec/vc1_block.c vc1_decode_p_mb_intfi(v); v 2803 libavcodec/vc1_block.c else if (v->fcm == ILACE_FRAME) v 2804 libavcodec/vc1_block.c vc1_decode_p_mb_intfr(v); v 2805 libavcodec/vc1_block.c else vc1_decode_p_mb(v); v 2807 libavcodec/vc1_block.c ff_vc1_apply_p_loop_filter(v); v 2808 libavcodec/vc1_block.c if (get_bits_count(&s->gb) > v->bits || get_bits_count(&s->gb) < 0) { v 2812 libavcodec/vc1_block.c get_bits_count(&s->gb), v->bits, s->mb_x, s->mb_y); v 2816 libavcodec/vc1_block.c memmove(v->cbp_base, v->cbp, sizeof(v->cbp_base[0]) * s->mb_stride); v 2817 libavcodec/vc1_block.c memmove(v->ttblk_base, v->ttblk, sizeof(v->ttblk_base[0]) * s->mb_stride); v 2818 libavcodec/vc1_block.c memmove(v->is_intra_base, v->is_intra, sizeof(v->is_intra_base[0]) * s->mb_stride); v 2819 libavcodec/vc1_block.c memmove(v->luma_mv_base, v->luma_mv, sizeof(v->luma_mv_base[0]) * s->mb_stride); v 2826 libavcodec/vc1_block.c init_block_index(v); v 2829 libavcodec/vc1_block.c ff_vc1_apply_p_loop_filter(v); v 2834 libavcodec/vc1_block.c ff_er_add_slice(&s->er, 0, s->start_mb_y << v->field_mode, s->mb_width - 1, v 2835 libavcodec/vc1_block.c (s->end_mb_y << v->field_mode) - 1, ER_MB_END); v 2838 libavcodec/vc1_block.c static void vc1_decode_b_blocks(VC1Context *v) v 2840 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 2843 libavcodec/vc1_block.c switch (v->c_ac_table_index) { v 2845 libavcodec/vc1_block.c v->codingset = (v->pqindex <= 8) ? CS_HIGH_RATE_INTRA : CS_LOW_MOT_INTRA; v 2848 libavcodec/vc1_block.c v->codingset = CS_HIGH_MOT_INTRA; v 2851 libavcodec/vc1_block.c v->codingset = CS_MID_RATE_INTRA; v 2855 libavcodec/vc1_block.c switch (v->c_ac_table_index) { v 2857 libavcodec/vc1_block.c v->codingset2 = (v->pqindex <= 8) ? CS_HIGH_RATE_INTER : CS_LOW_MOT_INTER; v 2860 libavcodec/vc1_block.c v->codingset2 = CS_HIGH_MOT_INTER; v 2863 libavcodec/vc1_block.c v->codingset2 = CS_MID_RATE_INTER; v 2870 libavcodec/vc1_block.c init_block_index(v); v 2874 libavcodec/vc1_block.c if (v->fcm == ILACE_FIELD) v 2875 libavcodec/vc1_block.c vc1_decode_b_mb_intfi(v); v 2876 libavcodec/vc1_block.c else if (v->fcm == ILACE_FRAME) v 2877 libavcodec/vc1_block.c vc1_decode_b_mb_intfr(v); v 2879 libavcodec/vc1_block.c vc1_decode_b_mb(v); v 2880 libavcodec/vc1_block.c if (get_bits_count(&s->gb) > v->bits || get_bits_count(&s->gb) < 0) { v 2884 libavcodec/vc1_block.c get_bits_count(&s->gb), v->bits, s->mb_x, s->mb_y); v 2887 libavcodec/vc1_block.c if (v->s.loop_filter) v 2888 libavcodec/vc1_block.c ff_vc1_loop_filter_iblk(v, v->pq); v 2890 libavcodec/vc1_block.c if (!v->s.loop_filter) v 2896 libavcodec/vc1_block.c if (v->s.loop_filter) v 2898 libavcodec/vc1_block.c ff_er_add_slice(&s->er, 0, s->start_mb_y << v->field_mode, s->mb_width - 1, v 2899 libavcodec/vc1_block.c (s->end_mb_y << v->field_mode) - 1, ER_MB_END); v 2902 libavcodec/vc1_block.c static void vc1_decode_skip_blocks(VC1Context *v) v 2904 libavcodec/vc1_block.c MpegEncContext *s = &v->s; v 2906 libavcodec/vc1_block.c if (!v->s.last_picture.f->data[0]) v 2913 libavcodec/vc1_block.c init_block_index(v); v 2924 libavcodec/vc1_block.c void ff_vc1_decode_blocks(VC1Context *v) v 2927 libavcodec/vc1_block.c v->s.esc3_level_length = 0; v 2928 libavcodec/vc1_block.c if (v->x8_type) { v 2929 libavcodec/vc1_block.c ff_intrax8_decode_picture(&v->x8, 2*v->pq + v->halfpq, v->pq * !v->pquantizer); v 2931 libavcodec/vc1_block.c v->cur_blk_idx = 0; v 2932 libavcodec/vc1_block.c v->left_blk_idx = -1; v 2933 libavcodec/vc1_block.c v->topleft_blk_idx = 1; v 2934 libavcodec/vc1_block.c v->top_blk_idx = 2; v 2935 libavcodec/vc1_block.c switch (v->s.pict_type) { v 2937 libavcodec/vc1_block.c if (v->profile == PROFILE_ADVANCED) v 2938 libavcodec/vc1_block.c vc1_decode_i_blocks_adv(v); v 2940 libavcodec/vc1_block.c vc1_decode_i_blocks(v); v 2943 libavcodec/vc1_block.c if (v->p_frame_skipped) v 2944 libavcodec/vc1_block.c vc1_decode_skip_blocks(v); v 2946 libavcodec/vc1_block.c vc1_decode_p_blocks(v); v 2949 libavcodec/vc1_block.c if (v->bi_type) { v 2950 libavcodec/vc1_block.c if (v->profile == PROFILE_ADVANCED) v 2951 libavcodec/vc1_block.c vc1_decode_i_blocks_adv(v); v 2953 libavcodec/vc1_block.c vc1_decode_i_blocks(v); v 2955 libavcodec/vc1_block.c vc1_decode_b_blocks(v); v 34 libavcodec/vc1_loopfilter.c void ff_vc1_loop_filter_iblk(VC1Context *v, int pq) v 36 libavcodec/vc1_loopfilter.c MpegEncContext *s = &v->s; v 39 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter16(s->dest[0], s->linesize, pq); v 41 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 16 * s->linesize, s->linesize, pq); v 42 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 16 * s->linesize + 8, s->linesize, pq); v 44 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter8(s->dest[j + 1], s->uvlinesize, pq); v 46 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[j + 1] - 8 * s->uvlinesize, s->uvlinesize, pq); v 49 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter16(s->dest[0] + 8 * s->linesize, s->linesize, pq); v 53 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0], s->linesize, pq); v 54 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[1], s->uvlinesize, pq); v 55 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[2], s->uvlinesize, pq); v 57 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] + 8, s->linesize, pq); v 61 libavcodec/vc1_loopfilter.c void ff_vc1_loop_filter_iblk_delayed(VC1Context *v, int pq) v 63 libavcodec/vc1_loopfilter.c MpegEncContext *s = &v->s; v 71 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter16(s->dest[0] - 16 * s->linesize - 16, s->linesize, pq); v 74 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 32 * s->linesize - 16, s->linesize, pq); v 75 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 32 * s->linesize - 8, s->linesize, pq); v 77 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter8(s->dest[j + 1] - 8 * s->uvlinesize - 8, s->uvlinesize, pq); v 79 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[j + 1] - 16 * s->uvlinesize - 8, s->uvlinesize, pq); v 83 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter16(s->dest[0] - 8 * s->linesize - 16, s->linesize, pq); v 88 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter16(s->dest[0] - 16 * s->linesize, s->linesize, pq); v 91 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 32 * s->linesize, s->linesize, pq); v 92 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 32 * s->linesize + 8, s->linesize, pq); v 94 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter8(s->dest[j + 1] - 8 * s->uvlinesize, s->uvlinesize, pq); v 96 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[j + 1] - 16 * s->uvlinesize, s->uvlinesize, pq); v 100 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter16(s->dest[0] - 8 * s->linesize, s->linesize, pq); v 106 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 16 * s->linesize - 16, s->linesize, pq); v 107 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 16 * s->linesize - 8, s->linesize, pq); v 110 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[j + 1] - 8 * s->uvlinesize - 8, s->uvlinesize, pq); v 117 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 16 * s->linesize, s->linesize, pq); v 118 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter16(s->dest[0] - 16 * s->linesize + 8, s->linesize, pq); v 121 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(s->dest[j + 1] - 8 * s->uvlinesize, s->uvlinesize, pq); v 129 libavcodec/vc1_loopfilter.c void ff_vc1_smooth_overlap_filter_iblk(VC1Context *v) v 131 libavcodec/vc1_loopfilter.c MpegEncContext *s = &v->s; v 134 libavcodec/vc1_loopfilter.c if (v->condover == CONDOVER_NONE) v 146 libavcodec/vc1_loopfilter.c if (v->condover == CONDOVER_ALL || v->pq >= 9 || v->over_flags_plane[mb_pos]) { v 147 libavcodec/vc1_loopfilter.c if (s->mb_x && (v->condover == CONDOVER_ALL || v->pq >= 9 || v 148 libavcodec/vc1_loopfilter.c v->over_flags_plane[mb_pos - 1])) { v 149 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_s_overlap(v->block[v->left_blk_idx][1], v 150 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][0]); v 151 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_s_overlap(v->block[v->left_blk_idx][3], v 152 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][2]); v 154 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_s_overlap(v->block[v->left_blk_idx][4], v 155 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][4]); v 156 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_s_overlap(v->block[v->left_blk_idx][5], v 157 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][5]); v 160 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_s_overlap(v->block[v->cur_blk_idx][0], v 161 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][1]); v 162 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_s_overlap(v->block[v->cur_blk_idx][2], v 163 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][3]); v 166 libavcodec/vc1_loopfilter.c if (!s->first_slice_line && (v->condover == CONDOVER_ALL || v->pq >= 9 || v 167 libavcodec/vc1_loopfilter.c v->over_flags_plane[mb_pos - s->mb_stride])) { v 168 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->top_blk_idx][2], v 169 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][0]); v 170 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->top_blk_idx][3], v 171 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][1]); v 173 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->top_blk_idx][4], v 174 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][4]); v 175 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->top_blk_idx][5], v 176 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][5]); v 179 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->cur_blk_idx][0], v 180 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][2]); v 181 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->cur_blk_idx][1], v 182 libavcodec/vc1_loopfilter.c v->block[v->cur_blk_idx][3]); v 185 libavcodec/vc1_loopfilter.c if (s->mb_x && (v->condover == CONDOVER_ALL || v->over_flags_plane[mb_pos - 1])) { v 186 libavcodec/vc1_loopfilter.c if (!s->first_slice_line && (v->condover == CONDOVER_ALL || v->pq >= 9 || v 187 libavcodec/vc1_loopfilter.c v->over_flags_plane[mb_pos - s->mb_stride - 1])) { v 188 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->topleft_blk_idx][2], v 189 libavcodec/vc1_loopfilter.c v->block[v->left_blk_idx][0]); v 190 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->topleft_blk_idx][3], v 191 libavcodec/vc1_loopfilter.c v->block[v->left_blk_idx][1]); v 193 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->topleft_blk_idx][4], v 194 libavcodec/vc1_loopfilter.c v->block[v->left_blk_idx][4]); v 195 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->topleft_blk_idx][5], v 196 libavcodec/vc1_loopfilter.c v->block[v->left_blk_idx][5]); v 199 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->left_blk_idx][0], v 200 libavcodec/vc1_loopfilter.c v->block[v->left_blk_idx][2]); v 201 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_s_overlap(v->block[v->left_blk_idx][1], v 202 libavcodec/vc1_loopfilter.c v->block[v->left_blk_idx][3]); v 206 libavcodec/vc1_loopfilter.c static av_always_inline void vc1_apply_p_v_loop_filter(VC1Context *v, int block_num) v 208 libavcodec/vc1_loopfilter.c MpegEncContext *s = &v->s; v 209 libavcodec/vc1_loopfilter.c int mb_cbp = v->cbp[s->mb_x - s->mb_stride], v 211 libavcodec/vc1_loopfilter.c mb_is_intra = v->is_intra[s->mb_x - s->mb_stride], v 226 libavcodec/vc1_loopfilter.c bottom_cbp = v->cbp[s->mb_x] >> (block_num * 4); v 227 libavcodec/vc1_loopfilter.c bottom_is_intra = v->is_intra[s->mb_x] >> block_num; v 228 libavcodec/vc1_loopfilter.c mv = &v->luma_mv[s->mb_x - s->mb_stride]; v 232 libavcodec/vc1_loopfilter.c : (v->cbp[s->mb_x] >> ((block_num - 2) * 4)); v 234 libavcodec/vc1_loopfilter.c : (v->is_intra[s->mb_x] >> (block_num - 2)); v 241 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter8(dst, linesize, v->pq); v 245 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter8(dst, linesize, v->pq); v 248 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter4(dst + 4, linesize, v->pq); v 250 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter4(dst, linesize, v->pq); v 256 libavcodec/vc1_loopfilter.c ttblk = (v->ttblk[s->mb_x - s->mb_stride] >> (block_num * 4)) & 0xF; v 260 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter8(dst, linesize, v->pq); v 263 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter4(dst + 4, linesize, v->pq); v 265 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_v_loop_filter4(dst, linesize, v->pq); v 270 libavcodec/vc1_loopfilter.c static av_always_inline void vc1_apply_p_h_loop_filter(VC1Context *v, int block_num) v 272 libavcodec/vc1_loopfilter.c MpegEncContext *s = &v->s; v 273 libavcodec/vc1_loopfilter.c int mb_cbp = v->cbp[s->mb_x - 1 - s->mb_stride], v 275 libavcodec/vc1_loopfilter.c mb_is_intra = v->is_intra[s->mb_x - 1 - s->mb_stride], v 290 libavcodec/vc1_loopfilter.c right_cbp = v->cbp[s->mb_x - s->mb_stride] >> (block_num * 4); v 291 libavcodec/vc1_loopfilter.c right_is_intra = v->is_intra[s->mb_x - s->mb_stride] >> block_num; v 292 libavcodec/vc1_loopfilter.c mv = &v->luma_mv[s->mb_x - s->mb_stride - 1]; v 294 libavcodec/vc1_loopfilter.c right_cbp = (block_num & 1) ? (v->cbp[s->mb_x - s->mb_stride] >> ((block_num - 1) * 4)) v 296 libavcodec/vc1_loopfilter.c right_is_intra = (block_num & 1) ? (v->is_intra[s->mb_x - s->mb_stride] >> (block_num - 1)) v 301 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(dst, linesize, v->pq); v 305 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(dst, linesize, v->pq); v 308 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter4(dst + 4 * linesize, linesize, v->pq); v 310 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter4(dst, linesize, v->pq); v 316 libavcodec/vc1_loopfilter.c ttblk = (v->ttblk[s->mb_x - s->mb_stride - 1] >> (block_num * 4)) & 0xf; v 320 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter8(dst, linesize, v->pq); v 323 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter4(dst + linesize * 4, linesize, v->pq); v 325 libavcodec/vc1_loopfilter.c v->vc1dsp.vc1_h_loop_filter4(dst, linesize, v->pq); v 330 libavcodec/vc1_loopfilter.c void ff_vc1_apply_p_loop_filter(VC1Context *v) v 332 libavcodec/vc1_loopfilter.c MpegEncContext *s = &v->s; v 336 libavcodec/vc1_loopfilter.c vc1_apply_p_v_loop_filter(v, i); v 343 libavcodec/vc1_loopfilter.c vc1_apply_p_h_loop_filter(v, i); v 349 libavcodec/vc1_loopfilter.c vc1_apply_p_h_loop_filter(v, i); v 109 libavcodec/vc1_mc.c void ff_vc1_mc_1mv(VC1Context *v, int dir) v 111 libavcodec/vc1_mc.c MpegEncContext *s = &v->s; v 112 libavcodec/vc1_mc.c H264ChromaContext *h264chroma = &v->h264chroma; v 115 libavcodec/vc1_mc.c int v_edge_pos = s->v_edge_pos >> v->field_mode; v 120 libavcodec/vc1_mc.c if ((!v->field_mode || v 121 libavcodec/vc1_mc.c (v->ref_field_type[dir] == 1 && v->cur_field_type == 1)) && v 122 libavcodec/vc1_mc.c !v->s.last_picture.f->data[0]) v 131 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[i] + v->blocks_off][0] = mx; v 132 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[i] + v->blocks_off][1] = my; v 138 libavcodec/vc1_mc.c v->luma_mv[s->mb_x][0] = uvmx; v 139 libavcodec/vc1_mc.c v->luma_mv[s->mb_x][1] = uvmy; v 141 libavcodec/vc1_mc.c if (v->field_mode && v 142 libavcodec/vc1_mc.c v->cur_field_type != v->ref_field_type[dir]) { v 143 libavcodec/vc1_mc.c my = my - 2 + 4 * v->cur_field_type; v 144 libavcodec/vc1_mc.c uvmy = uvmy - 2 + 4 * v->cur_field_type; v 148 libavcodec/vc1_mc.c if (v->fastuvmc && (v->fcm != ILACE_FRAME)) { v 153 libavcodec/vc1_mc.c if (v->field_mode && (v->cur_field_type != v->ref_field_type[dir]) && v->second_field) { v 157 libavcodec/vc1_mc.c luty = v->curr_luty; v 158 libavcodec/vc1_mc.c lutuv = v->curr_lutuv; v 159 libavcodec/vc1_mc.c use_ic = *v->curr_use_ic; v 164 libavcodec/vc1_mc.c luty = v->last_luty; v 165 libavcodec/vc1_mc.c lutuv = v->last_lutuv; v 166 libavcodec/vc1_mc.c use_ic = v->last_use_ic; v 172 libavcodec/vc1_mc.c luty = v->next_luty; v 173 libavcodec/vc1_mc.c lutuv = v->next_lutuv; v 174 libavcodec/vc1_mc.c use_ic = v->next_use_ic; v 178 libavcodec/vc1_mc.c av_log(v->s.avctx, AV_LOG_ERROR, "Referenced frame missing.\n"); v 187 libavcodec/vc1_mc.c if (v->profile != PROFILE_ADVANCED) { v 203 libavcodec/vc1_mc.c if (v->field_mode && v->ref_field_type[dir]) { v 215 libavcodec/vc1_mc.c if (v->rangeredfrm || use_ic v 243 libavcodec/vc1_mc.c if (v->rangeredfrm) { v 250 libavcodec/vc1_mc.c luty[v->field_mode ? v->ref_field_type[dir] : ((0 + src_y - s->mspel) & 1)], v 251 libavcodec/vc1_mc.c luty[v->field_mode ? v->ref_field_type[dir] : ((1 + src_y - s->mspel) & 1)], v 254 libavcodec/vc1_mc.c lutuv[v->field_mode ? v->ref_field_type[dir] : ((0 + uvsrc_y) & 1)], v 255 libavcodec/vc1_mc.c lutuv[v->field_mode ? v->ref_field_type[dir] : ((1 + uvsrc_y) & 1)], v 263 libavcodec/vc1_mc.c v->vc1dsp.put_vc1_mspel_pixels_tab[0][dxy](s->dest[0], srcY, s->linesize, v->rnd); v 266 libavcodec/vc1_mc.c if (!v->rnd) v 276 libavcodec/vc1_mc.c if (!v->rnd) { v 280 libavcodec/vc1_mc.c v->vc1dsp.put_no_rnd_vc1_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy); v 281 libavcodec/vc1_mc.c v->vc1dsp.put_no_rnd_vc1_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy); v 287 libavcodec/vc1_mc.c void ff_vc1_mc_4mv_luma(VC1Context *v, int n, int dir, int avg) v 289 libavcodec/vc1_mc.c MpegEncContext *s = &v->s; v 293 libavcodec/vc1_mc.c int fieldmv = (v->fcm == ILACE_FRAME) ? v->blk_mv_type[s->block_index[n]] : 0; v 294 libavcodec/vc1_mc.c int v_edge_pos = s->v_edge_pos >> v->field_mode; v 298 libavcodec/vc1_mc.c if ((!v->field_mode || v 299 libavcodec/vc1_mc.c (v->ref_field_type[dir] == 1 && v->cur_field_type == 1)) && v 300 libavcodec/vc1_mc.c !v->s.last_picture.f->data[0]) v 307 libavcodec/vc1_mc.c if (v->field_mode && (v->cur_field_type != v->ref_field_type[dir]) && v->second_field) { v 309 libavcodec/vc1_mc.c luty = v->curr_luty; v 310 libavcodec/vc1_mc.c use_ic = *v->curr_use_ic; v 313 libavcodec/vc1_mc.c luty = v->last_luty; v 314 libavcodec/vc1_mc.c use_ic = v->last_use_ic; v 318 libavcodec/vc1_mc.c luty = v->next_luty; v 319 libavcodec/vc1_mc.c use_ic = v->next_use_ic; v 323 libavcodec/vc1_mc.c av_log(v->s.avctx, AV_LOG_ERROR, "Referenced frame missing.\n"); v 327 libavcodec/vc1_mc.c if (v->field_mode) { v 328 libavcodec/vc1_mc.c if (v->cur_field_type != v->ref_field_type[dir]) v 329 libavcodec/vc1_mc.c my = my - 2 + 4 * v->cur_field_type; v 332 libavcodec/vc1_mc.c if (s->pict_type == AV_PICTURE_TYPE_P && n == 3 && v->field_mode) { v 337 libavcodec/vc1_mc.c f = v->mv_f[0][s->block_index[k] + v->blocks_off]; v 362 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][0] = tx; v 363 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][1] = ty; v 365 libavcodec/vc1_mc.c v->mv_f[1][s->block_index[k] + v->blocks_off] = f; v 368 libavcodec/vc1_mc.c if (v->fcm == ILACE_FRAME) { // not sure if needed for other types of picture v 373 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[n] + v->blocks_off][0] = mx; v 374 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[n] + v->blocks_off][1] = my; v 389 libavcodec/vc1_mc.c if ((v->fcm == ILACE_FRAME) && fieldmv) v 400 libavcodec/vc1_mc.c if (v->profile != PROFILE_ADVANCED) { v 405 libavcodec/vc1_mc.c if (v->fcm == ILACE_FRAME) { v 416 libavcodec/vc1_mc.c if (v->field_mode && v->ref_field_type[dir]) v 423 libavcodec/vc1_mc.c if (v->rangeredfrm || use_ic v 438 libavcodec/vc1_mc.c if (v->rangeredfrm) { v 444 libavcodec/vc1_mc.c luty[v->field_mode ? v->ref_field_type[dir] : (((0<<fieldmv)+src_y - (s->mspel << fieldmv)) & 1)], v 445 libavcodec/vc1_mc.c luty[v->field_mode ? v->ref_field_type[dir] : (((1<<fieldmv)+src_y - (s->mspel << fieldmv)) & 1)], v 454 libavcodec/vc1_mc.c v->vc1dsp.avg_vc1_mspel_pixels_tab[1][dxy](s->dest[0] + off, srcY, s->linesize << fieldmv, v->rnd); v 456 libavcodec/vc1_mc.c v->vc1dsp.put_vc1_mspel_pixels_tab[1][dxy](s->dest[0] + off, srcY, s->linesize << fieldmv, v->rnd); v 459 libavcodec/vc1_mc.c if (!v->rnd) v 521 libavcodec/vc1_mc.c void ff_vc1_mc_4mv_chroma(VC1Context *v, int dir) v 523 libavcodec/vc1_mc.c MpegEncContext *s = &v->s; v 524 libavcodec/vc1_mc.c H264ChromaContext *h264chroma = &v->h264chroma; v 530 libavcodec/vc1_mc.c int chroma_ref_type = v->cur_field_type; v 531 libavcodec/vc1_mc.c int v_edge_pos = s->v_edge_pos >> v->field_mode; v 535 libavcodec/vc1_mc.c if (!v->field_mode && !v->s.last_picture.f->data[0]) v 543 libavcodec/vc1_mc.c intra[k] = v->mb_type[0][s->block_index[k]]; v 544 libavcodec/vc1_mc.c if (v->field_mode) v 545 libavcodec/vc1_mc.c mv_f[k] = v->mv_f[dir][s->block_index[k] + v->blocks_off]; v 549 libavcodec/vc1_mc.c if (!v->field_mode || (v->field_mode && !v->numref)) { v 551 libavcodec/vc1_mc.c chroma_ref_type = v->ref_field_type[dir]; v 553 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][0] = 0; v 554 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][1] = 0; v 555 libavcodec/vc1_mc.c v->luma_mv[s->mb_x][0] = v->luma_mv[s->mb_x][1] = 0; v 564 libavcodec/vc1_mc.c chroma_ref_type = !v->cur_field_type; v 566 libavcodec/vc1_mc.c if (v->field_mode && chroma_ref_type == 1 && v->cur_field_type == 1 && !v->s.last_picture.f->data[0]) v 568 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][0] = tx; v 569 libavcodec/vc1_mc.c s->current_picture.motion_val[1][s->block_index[0] + v->blocks_off][1] = ty; v 573 libavcodec/vc1_mc.c v->luma_mv[s->mb_x][0] = uvmx; v 574 libavcodec/vc1_mc.c v->luma_mv[s->mb_x][1] = uvmy; v 576 libavcodec/vc1_mc.c if (v->fastuvmc) { v 581 libavcodec/vc1_mc.c if (v->cur_field_type != chroma_ref_type) v 587 libavcodec/vc1_mc.c if (v->profile != PROFILE_ADVANCED) { v 596 libavcodec/vc1_mc.c if (v->field_mode && (v->cur_field_type != chroma_ref_type) && v->second_field) { v 599 libavcodec/vc1_mc.c lutuv = v->curr_lutuv; v 600 libavcodec/vc1_mc.c use_ic = *v->curr_use_ic; v 604 libavcodec/vc1_mc.c lutuv = v->last_lutuv; v 605 libavcodec/vc1_mc.c use_ic = v->last_use_ic; v 610 libavcodec/vc1_mc.c lutuv = v->next_lutuv; v 611 libavcodec/vc1_mc.c use_ic = v->next_use_ic; v 615 libavcodec/vc1_mc.c av_log(v->s.avctx, AV_LOG_ERROR, "Referenced frame missing.\n"); v 622 libavcodec/vc1_mc.c if (v->field_mode) { v 629 libavcodec/vc1_mc.c if (v->rangeredfrm || use_ic v 645 libavcodec/vc1_mc.c if (v->rangeredfrm) { v 651 libavcodec/vc1_mc.c lutuv[v->field_mode ? chroma_ref_type : ((0 + uvsrc_y) & 1)], v 652 libavcodec/vc1_mc.c lutuv[v->field_mode ? chroma_ref_type : ((1 + uvsrc_y) & 1)], v 660 libavcodec/vc1_mc.c if (!v->rnd) { v 664 libavcodec/vc1_mc.c v->vc1dsp.put_no_rnd_vc1_chroma_pixels_tab[0](s->dest[1], srcU, s->uvlinesize, 8, uvmx, uvmy); v 665 libavcodec/vc1_mc.c v->vc1dsp.put_no_rnd_vc1_chroma_pixels_tab[0](s->dest[2], srcV, s->uvlinesize, 8, uvmx, uvmy); v 671 libavcodec/vc1_mc.c void ff_vc1_mc_4mv_chroma4(VC1Context *v, int dir, int dir2, int avg) v 673 libavcodec/vc1_mc.c MpegEncContext *s = &v->s; v 674 libavcodec/vc1_mc.c H264ChromaContext *h264chroma = &v->h264chroma; v 679 libavcodec/vc1_mc.c int fieldmv = v->blk_mv_type[s->block_index[0]]; v 710 libavcodec/vc1_mc.c lutuv = v->next_lutuv; v 711 libavcodec/vc1_mc.c use_ic = v->next_use_ic; v 715 libavcodec/vc1_mc.c lutuv = v->last_lutuv; v 716 libavcodec/vc1_mc.c use_ic = v->last_use_ic; v 754 libavcodec/vc1_mc.c if (!v->rnd) { v 758 libavcodec/vc1_mc.c v->vc1dsp.avg_no_rnd_vc1_chroma_pixels_tab[1](s->dest[1] + off, srcU, s->uvlinesize << fieldmv, 4, uvmx_field[i], uvmy_field[i]); v 759 libavcodec/vc1_mc.c v->vc1dsp.avg_no_rnd_vc1_chroma_pixels_tab[1](s->dest[2] + off, srcV, s->uvlinesize << fieldmv, 4, uvmx_field[i], uvmy_field[i]); v 762 libavcodec/vc1_mc.c if (!v->rnd) { v 766 libavcodec/vc1_mc.c v->vc1dsp.put_no_rnd_vc1_chroma_pixels_tab[1](s->dest[1] + off, srcU, s->uvlinesize << fieldmv, 4, uvmx_field[i], uvmy_field[i]); v 767 libavcodec/vc1_mc.c v->vc1dsp.put_no_rnd_vc1_chroma_pixels_tab[1](s->dest[2] + off, srcV, s->uvlinesize << fieldmv, 4, uvmx_field[i], uvmy_field[i]); v 775 libavcodec/vc1_mc.c void ff_vc1_interp_mc(VC1Context *v) v 777 libavcodec/vc1_mc.c MpegEncContext *s = &v->s; v 778 libavcodec/vc1_mc.c H264ChromaContext *h264chroma = &v->h264chroma; v 782 libavcodec/vc1_mc.c int v_edge_pos = s->v_edge_pos >> v->field_mode; v 783 libavcodec/vc1_mc.c int use_ic = v->next_use_ic; v 785 libavcodec/vc1_mc.c if (!v->field_mode && !v->s.next_picture.f->data[0]) v 792 libavcodec/vc1_mc.c if (v->field_mode && v->cur_field_type != v->ref_field_type[1]) { v 793 libavcodec/vc1_mc.c my = my - 2 + 4 * v->cur_field_type; v 794 libavcodec/vc1_mc.c uvmy = uvmy - 2 + 4 * v->cur_field_type; v 796 libavcodec/vc1_mc.c if (v->fastuvmc) { v 809 libavcodec/vc1_mc.c if (v->profile != PROFILE_ADVANCED) { v 825 libavcodec/vc1_mc.c if (v->field_mode && v->ref_field_type[1]) { v 837 libavcodec/vc1_mc.c if (v->rangeredfrm || s->h_edge_pos < 22 || v_edge_pos < 22 || use_ic v 864 libavcodec/vc1_mc.c if (v->rangeredfrm) { v 870 libavcodec/vc1_mc.c uint8_t (*luty )[256] = v->next_luty; v 871 libavcodec/vc1_mc.c uint8_t (*lutuv)[256] = v->next_lutuv; v 873 libavcodec/vc1_mc.c luty[v->field_mode ? v->ref_field_type[1] : ((0+src_y - s->mspel) & 1)], v 874 libavcodec/vc1_mc.c luty[v->field_mode ? v->ref_field_type[1] : ((1+src_y - s->mspel) & 1)], v 877 libavcodec/vc1_mc.c lutuv[v->field_mode ? v->ref_field_type[1] : ((0+uvsrc_y) & 1)], v 878 libavcodec/vc1_mc.c lutuv[v->field_mode ? v->ref_field_type[1] : ((1+uvsrc_y) & 1)], v 889 libavcodec/vc1_mc.c v->vc1dsp.avg_vc1_mspel_pixels_tab[0][dxy](s->dest[0] + off , srcY , s->linesize, v->rnd); v 893 libavcodec/vc1_mc.c if (!v->rnd) v 903 libavcodec/vc1_mc.c if (!v->rnd) { v 907 libavcodec/vc1_mc.c v->vc1dsp.avg_no_rnd_vc1_chroma_pixels_tab[0](s->dest[1] + off_uv, srcU, s->uvlinesize, 8, uvmx, uvmy); v 908 libavcodec/vc1_mc.c v->vc1dsp.avg_no_rnd_vc1_chroma_pixels_tab[0](s->dest[2] + off_uv, srcV, s->uvlinesize, 8, uvmx, uvmy); v 53 libavcodec/vc1_parser.c VC1Context v; v 68 libavcodec/vc1_parser.c vpc->v.s.avctx = avctx; v 69 libavcodec/vc1_parser.c vpc->v.parse_only = 1; v 73 libavcodec/vc1_parser.c ff_vc1_decode_sequence_header(avctx, &vpc->v, &gb); v 76 libavcodec/vc1_parser.c ff_vc1_decode_entry_point(avctx, &vpc->v, &gb); v 79 libavcodec/vc1_parser.c if(vpc->v.profile < PROFILE_ADVANCED) v 80 libavcodec/vc1_parser.c ret = ff_vc1_parse_frame_header (&vpc->v, &gb); v 82 libavcodec/vc1_parser.c ret = ff_vc1_parse_frame_header_adv(&vpc->v, &gb); v 88 libavcodec/vc1_parser.c if (vpc->v.s.pict_type == AV_PICTURE_TYPE_BI) v 91 libavcodec/vc1_parser.c s->pict_type = vpc->v.s.pict_type; v 98 libavcodec/vc1_parser.c if (vpc->v.rff){ v 101 libavcodec/vc1_parser.c }else if (vpc->v.rptfrm){ v 103 libavcodec/vc1_parser.c s->repeat_pict = vpc->v.rptfrm * 2 + 1; v 109 libavcodec/vc1_parser.c if (vpc->v.broadcast && vpc->v.interlace && !vpc->v.psf) v 110 libavcodec/vc1_parser.c s->field_order = vpc->v.tff ? AV_FIELD_TT : AV_FIELD_BB; v 180 libavcodec/vc1_parser.c i += vpc->v.vc1dsp.startcode_find_candidate(buf + i, buf_size - i); v 272 libavcodec/vc1_parser.c vpc->v.s.slice_context_count = 1; v 273 libavcodec/vc1_parser.c vpc->v.first_pic_header_flag = 1; v 278 libavcodec/vc1_parser.c return ff_vc1_init_common(&vpc->v); v 36 libavcodec/vc1_pred.c static av_always_inline int scaleforsame_x(VC1Context *v, int n /* MV */, int dir) v 41 libavcodec/vc1_pred.c int table_index = dir ^ v->second_field; v 43 libavcodec/vc1_pred.c if (v->s.pict_type != AV_PICTURE_TYPE_B) v 44 libavcodec/vc1_pred.c refdist = v->refdist; v 46 libavcodec/vc1_pred.c refdist = dir ? v->brfd : v->frfd; v 66 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_x, v->range_x - 1); v 69 libavcodec/vc1_pred.c static av_always_inline int scaleforsame_y(VC1Context *v, int i, int n /* MV */, int dir) v 74 libavcodec/vc1_pred.c int table_index = dir ^ v->second_field; v 76 libavcodec/vc1_pred.c if (v->s.pict_type != AV_PICTURE_TYPE_B) v 77 libavcodec/vc1_pred.c refdist = v->refdist; v 79 libavcodec/vc1_pred.c refdist = dir ? v->brfd : v->frfd; v 100 libavcodec/vc1_pred.c if (v->cur_field_type && !v->ref_field_type[dir]) v 101 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2 + 1, v->range_y / 2); v 103 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2, v->range_y / 2 - 1); v 106 libavcodec/vc1_pred.c static av_always_inline int scaleforopp_x(VC1Context *v, int n /* MV */) v 112 libavcodec/vc1_pred.c brfd = FFMIN(v->brfd, 3); v 130 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_x, v->range_x - 1); v 133 libavcodec/vc1_pred.c static av_always_inline int scaleforopp_y(VC1Context *v, int n /* MV */, int dir) v 139 libavcodec/vc1_pred.c brfd = FFMIN(v->brfd, 3); v 157 libavcodec/vc1_pred.c if (v->cur_field_type && !v->ref_field_type[dir]) { v 158 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2 + 1, v->range_y / 2); v 160 libavcodec/vc1_pred.c return av_clip(scaledvalue, -v->range_y / 2, v->range_y / 2 - 1); v 164 libavcodec/vc1_pred.c static av_always_inline int scaleforsame(VC1Context *v, int i, int n /* MV */, v 168 libavcodec/vc1_pred.c int hpel = 1 - v->s.quarter_sample; v 171 libavcodec/vc1_pred.c if (v->s.pict_type != AV_PICTURE_TYPE_B || v->second_field || !dir) { v 173 libavcodec/vc1_pred.c n = scaleforsame_y(v, i, n, dir) << hpel; v 175 libavcodec/vc1_pred.c n = scaleforsame_x(v, n, dir) << hpel; v 178 libavcodec/vc1_pred.c brfd = FFMIN(v->brfd, 3); v 185 libavcodec/vc1_pred.c static av_always_inline int scaleforopp(VC1Context *v, int n /* MV */, v 189 libavcodec/vc1_pred.c int hpel = 1 - v->s.quarter_sample; v 192 libavcodec/vc1_pred.c if (v->s.pict_type == AV_PICTURE_TYPE_B && !v->second_field && dir == 1) { v 194 libavcodec/vc1_pred.c n = scaleforopp_y(v, n, dir) << hpel; v 196 libavcodec/vc1_pred.c n = scaleforopp_x(v, n) << hpel; v 199 libavcodec/vc1_pred.c if (v->s.pict_type != AV_PICTURE_TYPE_B) v 200 libavcodec/vc1_pred.c refdist = FFMIN(v->refdist, 3); v 202 libavcodec/vc1_pred.c refdist = dir ? v->brfd : v->frfd; v 203 libavcodec/vc1_pred.c scaleopp = ff_vc1_field_mvpred_scales[dir ^ v->second_field][0][refdist]; v 211 libavcodec/vc1_pred.c void ff_vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y, v 215 libavcodec/vc1_pred.c MpegEncContext *s = &v->s; v 228 libavcodec/vc1_pred.c if (v->mv_mode == MV_PMODE_MIXED_MV || v 229 libavcodec/vc1_pred.c ((v->mv_mode == MV_PMODE_INTENSITY_COMP) && (v->mv_mode2 == MV_PMODE_MIXED_MV))) v 241 libavcodec/vc1_pred.c s->mv[0][n][0] = s->current_picture.motion_val[0][xy + v->blocks_off][0] = 0; v 242 libavcodec/vc1_pred.c s->mv[0][n][1] = s->current_picture.motion_val[0][xy + v->blocks_off][1] = 0; v 243 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + v->blocks_off][0] = 0; v 244 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + v->blocks_off][1] = 0; v 246 libavcodec/vc1_pred.c s->current_picture.motion_val[0][xy + 1 + v->blocks_off][0] = 0; v 247 libavcodec/vc1_pred.c s->current_picture.motion_val[0][xy + 1 + v->blocks_off][1] = 0; v 248 libavcodec/vc1_pred.c s->current_picture.motion_val[0][xy + wrap + v->blocks_off][0] = 0; v 249 libavcodec/vc1_pred.c s->current_picture.motion_val[0][xy + wrap + v->blocks_off][1] = 0; v 250 libavcodec/vc1_pred.c s->current_picture.motion_val[0][xy + wrap + 1 + v->blocks_off][0] = 0; v 251 libavcodec/vc1_pred.c s->current_picture.motion_val[0][xy + wrap + 1 + v->blocks_off][1] = 0; v 252 libavcodec/vc1_pred.c v->luma_mv[s->mb_x][0] = v->luma_mv[s->mb_x][1] = 0; v 253 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + 1 + v->blocks_off][0] = 0; v 254 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + 1 + v->blocks_off][1] = 0; v 256 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + wrap + v->blocks_off][1] = 0; v 257 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + wrap + 1 + v->blocks_off][0] = 0; v 258 libavcodec/vc1_pred.c s->current_picture.motion_val[1][xy + wrap + 1 + v->blocks_off][1] = 0; v 263 libavcodec/vc1_pred.c C = s->current_picture.motion_val[dir][xy - 1 + v->blocks_off]; v 264 libavcodec/vc1_pred.c A = s->current_picture.motion_val[dir][xy - wrap + v->blocks_off]; v 266 libavcodec/vc1_pred.c if (v->field_mode && mixedmv_pic) v 286 libavcodec/vc1_pred.c B = s->current_picture.motion_val[dir][xy - wrap + off + v->blocks_off]; v 291 libavcodec/vc1_pred.c if (v->field_mode) { v 298 libavcodec/vc1_pred.c a_f = v->mv_f[dir][xy - wrap + v->blocks_off]; v 308 libavcodec/vc1_pred.c b_f = v->mv_f[dir][xy - wrap + off + v->blocks_off]; v 318 libavcodec/vc1_pred.c c_f = v->mv_f[dir][xy - 1 + v->blocks_off]; v 328 libavcodec/vc1_pred.c if (v->field_mode) { v 329 libavcodec/vc1_pred.c if (!v->numref) v 332 libavcodec/vc1_pred.c opposite = 1 - v->reffield; v 343 libavcodec/vc1_pred.c field_predA[0] = scaleforopp(v, field_predA[0], 0, dir); v 344 libavcodec/vc1_pred.c field_predA[1] = scaleforopp(v, field_predA[1], 1, dir); v 347 libavcodec/vc1_pred.c field_predB[0] = scaleforopp(v, field_predB[0], 0, dir); v 348 libavcodec/vc1_pred.c field_predB[1] = scaleforopp(v, field_predB[1], 1, dir); v 351 libavcodec/vc1_pred.c field_predC[0] = scaleforopp(v, field_predC[0], 0, dir); v 352 libavcodec/vc1_pred.c field_predC[1] = scaleforopp(v, field_predC[1], 1, dir); v 354 libavcodec/vc1_pred.c v->mv_f[dir][xy + v->blocks_off] = 1; v 355 libavcodec/vc1_pred.c v->ref_field_type[dir] = !v->cur_field_type; v 358 libavcodec/vc1_pred.c field_predA[0] = scaleforsame(v, n, field_predA[0], 0, dir); v 359 libavcodec/vc1_pred.c field_predA[1] = scaleforsame(v, n, field_predA[1], 1, dir); v 362 libavcodec/vc1_pred.c field_predB[0] = scaleforsame(v, n, field_predB[0], 0, dir); v 363 libavcodec/vc1_pred.c field_predB[1] = scaleforsame(v, n, field_predB[1], 1, dir); v 366 libavcodec/vc1_pred.c field_predC[0] = scaleforsame(v, n, field_predC[0], 0, dir); v 367 libavcodec/vc1_pred.c field_predC[1] = scaleforsame(v, n, field_predC[1], 1, dir); v 369 libavcodec/vc1_pred.c v->mv_f[dir][xy + v->blocks_off] = 0; v 370 libavcodec/vc1_pred.c v->ref_field_type[dir] = v->cur_field_type; v 393 libavcodec/vc1_pred.c if (!v->field_mode) { v 406 libavcodec/vc1_pred.c if (!v->field_mode || s->pict_type != AV_PICTURE_TYPE_B) { v 440 libavcodec/vc1_pred.c if (v->field_mode && v->numref) v 442 libavcodec/vc1_pred.c if (v->field_mode && v->cur_field_type && v->ref_field_type[dir] == 0) v 445 libavcodec/vc1_pred.c s->mv[dir][n][0] = s->current_picture.motion_val[dir][xy + v->blocks_off][0] = ((px + dmv_x + r_x) & ((r_x << 1) - 1)) - r_x; v 446 libavcodec/vc1_pred.c s->mv[dir][n][1] = s->current_picture.motion_val[dir][xy + v->blocks_off][1] = ((py + dmv_y + r_y - y_bias) & ((r_y << 1) - 1)) - r_y + y_bias; v 448 libavcodec/vc1_pred.c s->current_picture.motion_val[dir][xy + 1 + v->blocks_off][0] = s->current_picture.motion_val[dir][xy + v->blocks_off][0]; v 449 libavcodec/vc1_pred.c s->current_picture.motion_val[dir][xy + 1 + v->blocks_off][1] = s->current_picture.motion_val[dir][xy + v->blocks_off][1]; v 450 libavcodec/vc1_pred.c s->current_picture.motion_val[dir][xy + wrap + v->blocks_off][0] = s->current_picture.motion_val[dir][xy + v->blocks_off][0]; v 451 libavcodec/vc1_pred.c s->current_picture.motion_val[dir][xy + wrap + v->blocks_off][1] = s->current_picture.motion_val[dir][xy + v->blocks_off][1]; v 452 libavcodec/vc1_pred.c s->current_picture.motion_val[dir][xy + wrap + 1 + v->blocks_off][0] = s->current_picture.motion_val[dir][xy + v->blocks_off][0]; v 453 libavcodec/vc1_pred.c s->current_picture.motion_val[dir][xy + wrap + 1 + v->blocks_off][1] = s->current_picture.motion_val[dir][xy + v->blocks_off][1]; v 454 libavcodec/vc1_pred.c v->mv_f[dir][xy + 1 + v->blocks_off] = v->mv_f[dir][xy + v->blocks_off]; v 455 libavcodec/vc1_pred.c v->mv_f[dir][xy + wrap + v->blocks_off] = v->mv_f[dir][xy + wrap + 1 + v->blocks_off] = v->mv_f[dir][xy + v->blocks_off]; v 461 libavcodec/vc1_pred.c void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, v 464 libavcodec/vc1_pred.c MpegEncContext *s = &v->s; v 488 libavcodec/vc1_pred.c v->luma_mv[s->mb_x][0] = v->luma_mv[s->mb_x][1] = 0; v 502 libavcodec/vc1_pred.c if ((v->blk_mv_type[xy]) // current block (MB) has a field MV v 503 libavcodec/vc1_pred.c || (!v->blk_mv_type[xy] && !v->blk_mv_type[xy - 1])) { // or both have frame MV v 514 libavcodec/vc1_pred.c if (!(n & 1) && v->is_intra[s->mb_x - 1]) { v 522 libavcodec/vc1_pred.c if (n == 0 || n == 1 || v->blk_mv_type[xy]) { v 524 libavcodec/vc1_pred.c if (!v->is_intra[s->mb_x - s->mb_stride]) { v 528 libavcodec/vc1_pred.c if (v->blk_mv_type[pos_b] && v->blk_mv_type[xy]) { v 533 libavcodec/vc1_pred.c if (v->blk_mv_type[pos_b] && !v->blk_mv_type[xy]) { v 539 libavcodec/vc1_pred.c if (!v->is_intra[s->mb_x - s->mb_stride + 1]) { v 543 libavcodec/vc1_pred.c if (v->blk_mv_type[pos_c] && v->blk_mv_type[xy]) { v 548 libavcodec/vc1_pred.c if (v->blk_mv_type[pos_c] && !v->blk_mv_type[xy]) { v 553 libavcodec/vc1_pred.c if (!v->is_intra[s->mb_x - s->mb_stride - 1]) { v 557 libavcodec/vc1_pred.c if (v->blk_mv_type[pos_c] && v->blk_mv_type[xy]) { v 562 libavcodec/vc1_pred.c if (v->blk_mv_type[pos_c] && !v->blk_mv_type[xy]) { v 589 libavcodec/vc1_pred.c if ((s->first_slice_line && v->blk_mv_type[xy]) || (s->first_slice_line && !(n & 2))) { v 592 libavcodec/vc1_pred.c if (!v->blk_mv_type[xy]) { v 682 libavcodec/vc1_pred.c void ff_vc1_pred_b_mv(VC1Context *v, int dmv_x[2], int dmv_y[2], v 685 libavcodec/vc1_pred.c MpegEncContext *s = &v->s; v 691 libavcodec/vc1_pred.c const uint8_t *is_intra = v->mb_type[0]; v 693 libavcodec/vc1_pred.c av_assert0(!v->field_mode); v 695 libavcodec/vc1_pred.c r_x = v->range_x; v 696 libavcodec/vc1_pred.c r_y = v->range_y; v 716 libavcodec/vc1_pred.c s->mv[0][0][0] = scale_mv(s->next_picture.motion_val[1][xy][0], v->bfraction, 0, s->quarter_sample); v 717 libavcodec/vc1_pred.c s->mv[0][0][1] = scale_mv(s->next_picture.motion_val[1][xy][1], v->bfraction, 0, s->quarter_sample); v 718 libavcodec/vc1_pred.c s->mv[1][0][0] = scale_mv(s->next_picture.motion_val[1][xy][0], v->bfraction, 1, s->quarter_sample); v 719 libavcodec/vc1_pred.c s->mv[1][0][1] = scale_mv(s->next_picture.motion_val[1][xy][1], v->bfraction, 1, s->quarter_sample); v 758 libavcodec/vc1_pred.c int sh = v->profile < PROFILE_ADVANCED ? 5 : 6; v 828 libavcodec/vc1_pred.c int sh = v->profile < PROFILE_ADVANCED ? 5 : 6; v 880 libavcodec/vc1_pred.c void ff_vc1_pred_b_mv_intfi(VC1Context *v, int n, int *dmv_x, int *dmv_y, v 883 libavcodec/vc1_pred.c int dir = (v->bmvtype == BMV_TYPE_BACKWARD) ? 1 : 0; v 884 libavcodec/vc1_pred.c MpegEncContext *s = &v->s; v 887 libavcodec/vc1_pred.c if (v->bmvtype == BMV_TYPE_DIRECT) { v 889 libavcodec/vc1_pred.c if (s->next_picture.mb_type[mb_pos + v->mb_off] != MB_TYPE_INTRA) { v 890 libavcodec/vc1_pred.c s->mv[0][0][0] = scale_mv(s->next_picture.motion_val[1][s->block_index[0] + v->blocks_off][0], v 891 libavcodec/vc1_pred.c v->bfraction, 0, s->quarter_sample); v 892 libavcodec/vc1_pred.c s->mv[0][0][1] = scale_mv(s->next_picture.motion_val[1][s->block_index[0] + v->blocks_off][1], v 893 libavcodec/vc1_pred.c v->bfraction, 0, s->quarter_sample); v 894 libavcodec/vc1_pred.c s->mv[1][0][0] = scale_mv(s->next_picture.motion_val[1][s->block_index[0] + v->blocks_off][0], v 895 libavcodec/vc1_pred.c v->bfraction, 1, s->quarter_sample); v 896 libavcodec/vc1_pred.c s->mv[1][0][1] = scale_mv(s->next_picture.motion_val[1][s->block_index[0] + v->blocks_off][1], v 897 libavcodec/vc1_pred.c v->bfraction, 1, s->quarter_sample); v 899 libavcodec/vc1_pred.c total_opp = v->mv_f_next[0][s->block_index[0] + v->blocks_off] v 900 libavcodec/vc1_pred.c + v->mv_f_next[0][s->block_index[1] + v->blocks_off] v 901 libavcodec/vc1_pred.c + v->mv_f_next[0][s->block_index[2] + v->blocks_off] v 902 libavcodec/vc1_pred.c + v->mv_f_next[0][s->block_index[3] + v->blocks_off]; v 909 libavcodec/vc1_pred.c v->ref_field_type[0] = v->ref_field_type[1] = v->cur_field_type ^ f; v 911 libavcodec/vc1_pred.c s->current_picture.motion_val[0][s->block_index[k] + v->blocks_off][0] = s->mv[0][0][0]; v 912 libavcodec/vc1_pred.c s->current_picture.motion_val[0][s->block_index[k] + v->blocks_off][1] = s->mv[0][0][1]; v 913 libavcodec/vc1_pred.c s->current_picture.motion_val[1][s->block_index[k] + v->blocks_off][0] = s->mv[1][0][0]; v 914 libavcodec/vc1_pred.c s->current_picture.motion_val[1][s->block_index[k] + v->blocks_off][1] = s->mv[1][0][1]; v 915 libavcodec/vc1_pred.c v->mv_f[0][s->block_index[k] + v->blocks_off] = f; v 916 libavcodec/vc1_pred.c v->mv_f[1][s->block_index[k] + v->blocks_off] = f; v 920 libavcodec/vc1_pred.c if (v->bmvtype == BMV_TYPE_INTERPOLATED) { v 921 libavcodec/vc1_pred.c ff_vc1_pred_mv(v, 0, dmv_x[0], dmv_y[0], 1, v->range_x, v->range_y, v->mb_type[0], pred_flag[0], 0); v 922 libavcodec/vc1_pred.c ff_vc1_pred_mv(v, 0, dmv_x[1], dmv_y[1], 1, v->range_x, v->range_y, v->mb_type[0], pred_flag[1], 1); v 926 libavcodec/vc1_pred.c ff_vc1_pred_mv(v, n, dmv_x[1], dmv_y[1], mv1, v->range_x, v->range_y, v->mb_type[0], pred_flag[1], 1); v 928 libavcodec/vc1_pred.c ff_vc1_pred_mv(v, 0, dmv_x[0], dmv_y[0], 1, v->range_x, v->range_y, v->mb_type[0], 0, 0); v 931 libavcodec/vc1_pred.c ff_vc1_pred_mv(v, n, dmv_x[0], dmv_y[0], mv1, v->range_x, v->range_y, v->mb_type[0], pred_flag[0], 0); v 933 libavcodec/vc1_pred.c ff_vc1_pred_mv(v, 0, dmv_x[1], dmv_y[1], 1, v->range_x, v->range_y, v->mb_type[0], 0, 1); v 29 libavcodec/vc1_pred.h void ff_vc1_pred_mv(VC1Context *v, int n, int dmv_x, int dmv_y, v 32 libavcodec/vc1_pred.h void ff_vc1_pred_mv_intfr(VC1Context *v, int n, int dmv_x, int dmv_y, v 35 libavcodec/vc1_pred.h void ff_vc1_pred_b_mv(VC1Context *v, int dmv_x[2], int dmv_y[2], v 37 libavcodec/vc1_pred.h void ff_vc1_pred_b_mv_intfi(VC1Context *v, int n, int *dmv_x, int *dmv_y, v 102 libavcodec/vc1dec.c static int vc1_parse_sprites(VC1Context *v, GetBitContext* gb, SpriteData* sd) v 104 libavcodec/vc1dec.c AVCodecContext *avctx = v->s.avctx; v 107 libavcodec/vc1dec.c for (sprite = 0; sprite <= v->two_sprites; sprite++) { v 173 libavcodec/vc1dec.c static void vc1_draw_sprites(VC1Context *v, SpriteData* sd) v 180 libavcodec/vc1dec.c MpegEncContext *s = &v->s; v 182 libavcodec/vc1dec.c for (i = 0; i <= v->two_sprites; i++) { v 183 libavcodec/vc1dec.c xoff[i] = av_clip(sd->coefs[i][2], 0, v->sprite_width-1 << 16); v 185 libavcodec/vc1dec.c if (xadv[i] != 1<<16 || (v->sprite_width << 16) - (v->output_width << 16) - xoff[i]) v 186 libavcodec/vc1dec.c xadv[i] = av_clip(xadv[i], 0, ((v->sprite_width<<16) - xoff[i] - 1) / v->output_width); v 188 libavcodec/vc1dec.c yoff[i] = av_clip(sd->coefs[i][5], 0, v->sprite_height-1 << 16); v 189 libavcodec/vc1dec.c yadv[i] = av_clip(sd->coefs[i][4], 0, ((v->sprite_height << 16) - yoff[i]) / v->output_height); v 194 libavcodec/vc1dec.c int width = v->output_width>>!!plane; v 196 libavcodec/vc1dec.c for (row = 0; row < v->output_height>>!!plane; row++) { v 197 libavcodec/vc1dec.c uint8_t *dst = v->sprite_output_frame->data[plane] + v 198 libavcodec/vc1dec.c v->sprite_output_frame->linesize[plane] * row; v 200 libavcodec/vc1dec.c for (sprite = 0; sprite <= v->two_sprites; sprite++) { v 211 libavcodec/vc1dec.c next_line = FFMIN(yline + 1, (v->sprite_height >> !!plane) - 1) * iline; v 219 libavcodec/vc1dec.c FFSWAP(uint8_t*, v->sr_rows[sprite][0], v->sr_rows[sprite][1]); v 222 libavcodec/vc1dec.c v->vc1dsp.sprite_h(v->sr_rows[sprite][0], iplane + yline * iline, xoff[sprite], xadv[sprite], width); v 227 libavcodec/vc1dec.c v->vc1dsp.sprite_h(v->sr_rows[sprite][1], v 232 libavcodec/vc1dec.c src_h[sprite][0] = v->sr_rows[sprite][0]; v 233 libavcodec/vc1dec.c src_h[sprite][1] = v->sr_rows[sprite][1]; v 237 libavcodec/vc1dec.c if (!v->two_sprites) { v 239 libavcodec/vc1dec.c v->vc1dsp.sprite_v_single(dst, src_h[0][0], src_h[0][1], ysub[0], width); v 245 libavcodec/vc1dec.c v->vc1dsp.sprite_v_double_twoscale(dst, src_h[0][0], src_h[0][1], ysub[0], v 248 libavcodec/vc1dec.c v->vc1dsp.sprite_v_double_onescale(dst, src_h[0][0], src_h[0][1], ysub[0], v 251 libavcodec/vc1dec.c v->vc1dsp.sprite_v_double_onescale(dst, src_h[1][0], src_h[1][1], ysub[1], v 254 libavcodec/vc1dec.c v->vc1dsp.sprite_v_double_noscale(dst, src_h[0][0], src_h[1][0], alpha, width); v 260 libavcodec/vc1dec.c for (i = 0; i <= v->two_sprites; i++) { v 270 libavcodec/vc1dec.c static int vc1_decode_sprites(VC1Context *v, GetBitContext* gb) v 273 libavcodec/vc1dec.c MpegEncContext *s = &v->s; v 279 libavcodec/vc1dec.c ret = vc1_parse_sprites(v, gb, &sd); v 288 libavcodec/vc1dec.c if (v->two_sprites && (!s->last_picture_ptr || !s->last_picture.f->data[0])) { v 290 libavcodec/vc1dec.c v->two_sprites = 0; v 293 libavcodec/vc1dec.c av_frame_unref(v->sprite_output_frame); v 294 libavcodec/vc1dec.c if ((ret = ff_get_buffer(avctx, v->sprite_output_frame, 0)) < 0) v 297 libavcodec/vc1dec.c vc1_draw_sprites(v, &sd); v 304 libavcodec/vc1dec.c VC1Context *v = avctx->priv_data; v 305 libavcodec/vc1dec.c MpegEncContext *s = &v->s; v 315 libavcodec/vc1dec.c for (i = 0; i < v->sprite_height>>!!plane; i++) v 322 libavcodec/vc1dec.c av_cold int ff_vc1_decode_init_alloc_tables(VC1Context *v) v 324 libavcodec/vc1dec.c MpegEncContext *s = &v->s; v 329 libavcodec/vc1dec.c v->mv_type_mb_plane = av_malloc (s->mb_stride * mb_height); v 330 libavcodec/vc1dec.c v->direct_mb_plane = av_malloc (s->mb_stride * mb_height); v 331 libavcodec/vc1dec.c v->forward_mb_plane = av_malloc (s->mb_stride * mb_height); v 332 libavcodec/vc1dec.c v->fieldtx_plane = av_mallocz(s->mb_stride * mb_height); v 333 libavcodec/vc1dec.c v->acpred_plane = av_malloc (s->mb_stride * mb_height); v 334 libavcodec/vc1dec.c v->over_flags_plane = av_malloc (s->mb_stride * mb_height); v 336 libavcodec/vc1dec.c v->n_allocated_blks = s->mb_width + 2; v 337 libavcodec/vc1dec.c v->block = av_malloc(sizeof(*v->block) * v->n_allocated_blks); v 338 libavcodec/vc1dec.c v->cbp_base = av_malloc(sizeof(v->cbp_base[0]) * 2 * s->mb_stride); v 339 libavcodec/vc1dec.c v->cbp = v->cbp_base + s->mb_stride; v 340 libavcodec/vc1dec.c v->ttblk_base = av_malloc(sizeof(v->ttblk_base[0]) * 2 * s->mb_stride); v 341 libavcodec/vc1dec.c v->ttblk = v->ttblk_base + s->mb_stride; v 342 libavcodec/vc1dec.c v->is_intra_base = av_mallocz(sizeof(v->is_intra_base[0]) * 2 * s->mb_stride); v 343 libavcodec/vc1dec.c v->is_intra = v->is_intra_base + s->mb_stride; v 344 libavcodec/vc1dec.c v->luma_mv_base = av_mallocz(sizeof(v->luma_mv_base[0]) * 2 * s->mb_stride); v 345 libavcodec/vc1dec.c v->luma_mv = v->luma_mv_base + s->mb_stride; v 348 libavcodec/vc1dec.c v->mb_type_base = av_malloc(s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * 2); v 349 libavcodec/vc1dec.c v->mb_type[0] = v->mb_type_base + s->b8_stride + 1; v 350 libavcodec/vc1dec.c v->mb_type[1] = v->mb_type_base + s->b8_stride * (mb_height * 2 + 1) + s->mb_stride + 1; v 351 libavcodec/vc1dec.c v->mb_type[2] = v->mb_type[1] + s->mb_stride * (mb_height + 1); v 354 libavcodec/vc1dec.c v->blk_mv_type_base = av_mallocz( s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * 2); v 355 libavcodec/vc1dec.c v->blk_mv_type = v->blk_mv_type_base + s->b8_stride + 1; v 356 libavcodec/vc1dec.c v->mv_f_base = av_mallocz(2 * (s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * 2)); v 357 libavcodec/vc1dec.c v->mv_f[0] = v->mv_f_base + s->b8_stride + 1; v 358 libavcodec/vc1dec.c v->mv_f[1] = v->mv_f[0] + (s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * 2); v 359 libavcodec/vc1dec.c v->mv_f_next_base = av_mallocz(2 * (s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * 2)); v 360 libavcodec/vc1dec.c v->mv_f_next[0] = v->mv_f_next_base + s->b8_stride + 1; v 361 libavcodec/vc1dec.c v->mv_f_next[1] = v->mv_f_next[0] + (s->b8_stride * (mb_height * 2 + 1) + s->mb_stride * (mb_height + 1) * 2); v 364 libavcodec/vc1dec.c if (v->profile == PROFILE_ADVANCED) { v 371 libavcodec/vc1dec.c ff_intrax8_common_init(&v->x8,s); v 375 libavcodec/vc1dec.c if (!(v->sr_rows[i >> 1][i & 1] = av_malloc(v->output_width))) v 379 libavcodec/vc1dec.c if (!v->mv_type_mb_plane || !v->direct_mb_plane || !v->acpred_plane || !v->over_flags_plane || v 380 libavcodec/vc1dec.c !v->block || !v->cbp_base || !v->ttblk_base || !v->is_intra_base || !v->luma_mv_base || v 381 libavcodec/vc1dec.c !v->mb_type_base) { v 382 libavcodec/vc1dec.c av_freep(&v->mv_type_mb_plane); v 383 libavcodec/vc1dec.c av_freep(&v->direct_mb_plane); v 384 libavcodec/vc1dec.c av_freep(&v->acpred_plane); v 385 libavcodec/vc1dec.c av_freep(&v->over_flags_plane); v 386 libavcodec/vc1dec.c av_freep(&v->block); v 387 libavcodec/vc1dec.c av_freep(&v->cbp_base); v 388 libavcodec/vc1dec.c av_freep(&v->ttblk_base); v 389 libavcodec/vc1dec.c av_freep(&v->is_intra_base); v 390 libavcodec/vc1dec.c av_freep(&v->luma_mv_base); v 391 libavcodec/vc1dec.c av_freep(&v->mb_type_base); v 398 libavcodec/vc1dec.c av_cold void ff_vc1_init_transposed_scantables(VC1Context *v) v 403 libavcodec/vc1dec.c v->zz_8x8[0][i] = transpose(ff_wmv1_scantable[0][i]); v 404 libavcodec/vc1dec.c v->zz_8x8[1][i] = transpose(ff_wmv1_scantable[1][i]); v 405 libavcodec/vc1dec.c v->zz_8x8[2][i] = transpose(ff_wmv1_scantable[2][i]); v 406 libavcodec/vc1dec.c v->zz_8x8[3][i] = transpose(ff_wmv1_scantable[3][i]); v 407 libavcodec/vc1dec.c v->zzi_8x8[i] = transpose(ff_vc1_adv_interlaced_8x8_zz[i]); v 409 libavcodec/vc1dec.c v->left_blk_sh = 0; v 410 libavcodec/vc1dec.c v->top_blk_sh = 3; v 419 libavcodec/vc1dec.c VC1Context *v = avctx->priv_data; v 420 libavcodec/vc1dec.c MpegEncContext *s = &v->s; v 425 libavcodec/vc1dec.c v->output_width = avctx->width; v 426 libavcodec/vc1dec.c v->output_height = avctx->height; v 434 libavcodec/vc1dec.c v->s.avctx = avctx; v 436 libavcodec/vc1dec.c if ((ret = ff_vc1_init_common(v)) < 0) v 441 libavcodec/vc1dec.c if ((ret = ff_vc1_decode_init_alloc_tables(v)) < 0) v 449 libavcodec/vc1dec.c ff_h264chroma_init(&v->h264chroma, 8); v 462 libavcodec/vc1dec.c if ((ret = ff_vc1_decode_sequence_header(avctx, v, &gb)) < 0) v 497 libavcodec/vc1dec.c if ((ret = ff_vc1_decode_sequence_header(avctx, v, &gb)) < 0) { v 504 libavcodec/vc1dec.c if ((ret = ff_vc1_decode_entry_point(avctx, v, &gb)) < 0) { v 517 libavcodec/vc1dec.c v->res_sprite = (avctx->codec_id == AV_CODEC_ID_VC1IMAGE); v 520 libavcodec/vc1dec.c v->sprite_output_frame = av_frame_alloc(); v 521 libavcodec/vc1dec.c if (!v->sprite_output_frame) v 524 libavcodec/vc1dec.c avctx->profile = v->profile; v 525 libavcodec/vc1dec.c if (v->profile == PROFILE_ADVANCED) v 526 libavcodec/vc1dec.c avctx->level = v->level; v 530 libavcodec/vc1dec.c if (v->color_prim == 1 || v->color_prim == 5 || v->color_prim == 6) v 531 libavcodec/vc1dec.c avctx->color_primaries = v->color_prim; v 532 libavcodec/vc1dec.c if (v->transfer_char == 1 || v->transfer_char == 7) v 533 libavcodec/vc1dec.c avctx->color_trc = v->transfer_char; v 534 libavcodec/vc1dec.c if (v->matrix_coef == 1 || v->matrix_coef == 6 || v->matrix_coef == 7) v 535 libavcodec/vc1dec.c avctx->colorspace = v->matrix_coef; v 540 libavcodec/vc1dec.c if (v->profile == PROFILE_ADVANCED || v->res_fasttx) { v 541 libavcodec/vc1dec.c ff_vc1_init_transposed_scantables(v); v 543 libavcodec/vc1dec.c memcpy(v->zz_8x8, ff_wmv1_scantable, 4*64); v 544 libavcodec/vc1dec.c v->left_blk_sh = 3; v 545 libavcodec/vc1dec.c v->top_blk_sh = 0; v 549 libavcodec/vc1dec.c v->sprite_width = avctx->coded_width; v 550 libavcodec/vc1dec.c v->sprite_height = avctx->coded_height; v 552 libavcodec/vc1dec.c avctx->coded_width = avctx->width = v->output_width; v 553 libavcodec/vc1dec.c avctx->coded_height = avctx->height = v->output_height; v 556 libavcodec/vc1dec.c if (v->sprite_width > 1 << 14 || v 557 libavcodec/vc1dec.c v->sprite_height > 1 << 14 || v 558 libavcodec/vc1dec.c v->output_width > 1 << 14 || v 559 libavcodec/vc1dec.c v->output_height > 1 << 14) return -1; v 561 libavcodec/vc1dec.c if ((v->sprite_width&1) || (v->sprite_height&1)) { v 574 libavcodec/vc1dec.c VC1Context *v = avctx->priv_data; v 577 libavcodec/vc1dec.c av_frame_free(&v->sprite_output_frame); v 580 libavcodec/vc1dec.c av_freep(&v->sr_rows[i >> 1][i & 1]); v 581 libavcodec/vc1dec.c av_freep(&v->hrd_rate); v 582 libavcodec/vc1dec.c av_freep(&v->hrd_buffer); v 583 libavcodec/vc1dec.c ff_mpv_common_end(&v->s); v 584 libavcodec/vc1dec.c av_freep(&v->mv_type_mb_plane); v 585 libavcodec/vc1dec.c av_freep(&v->direct_mb_plane); v 586 libavcodec/vc1dec.c av_freep(&v->forward_mb_plane); v 587 libavcodec/vc1dec.c av_freep(&v->fieldtx_plane); v 588 libavcodec/vc1dec.c av_freep(&v->acpred_plane); v 589 libavcodec/vc1dec.c av_freep(&v->over_flags_plane); v 590 libavcodec/vc1dec.c av_freep(&v->mb_type_base); v 591 libavcodec/vc1dec.c av_freep(&v->blk_mv_type_base); v 592 libavcodec/vc1dec.c av_freep(&v->mv_f_base); v 593 libavcodec/vc1dec.c av_freep(&v->mv_f_next_base); v 594 libavcodec/vc1dec.c av_freep(&v->block); v 595 libavcodec/vc1dec.c av_freep(&v->cbp_base); v 596 libavcodec/vc1dec.c av_freep(&v->ttblk_base); v 597 libavcodec/vc1dec.c av_freep(&v->is_intra_base); // FIXME use v->mb_type[] v 598 libavcodec/vc1dec.c av_freep(&v->luma_mv_base); v 599 libavcodec/vc1dec.c ff_intrax8_common_end(&v->x8); v 612 libavcodec/vc1dec.c VC1Context *v = avctx->priv_data; v 613 libavcodec/vc1dec.c MpegEncContext *s = &v->s; v 624 libavcodec/vc1dec.c v->second_field = 0; v 644 libavcodec/vc1dec.c if (v->profile < PROFILE_ADVANCED) v 699 libavcodec/vc1dec.c ff_vc1_decode_entry_point(avctx, v, &s->gb); v 720 libavcodec/vc1dec.c } else if (v->interlace && ((buf[0] & 0xC0) == 0xC0)) { /* WVC1 interlaced stores both fields divided by marker */ v 754 libavcodec/vc1dec.c if (v->res_sprite) { v 755 libavcodec/vc1dec.c v->new_sprite = !get_bits1(&s->gb); v 756 libavcodec/vc1dec.c v->two_sprites = get_bits1(&s->gb); v 762 libavcodec/vc1dec.c if (v->new_sprite) { v 764 libavcodec/vc1dec.c avctx->width = avctx->coded_width = v->sprite_width; v 765 libavcodec/vc1dec.c avctx->height = avctx->coded_height = v->sprite_height; v 781 libavcodec/vc1dec.c if (ff_vc1_decode_init_alloc_tables(v) < 0) { v 786 libavcodec/vc1dec.c s->low_delay = !avctx->has_b_frames || v->res_sprite; v 788 libavcodec/vc1dec.c if (v->profile == PROFILE_ADVANCED) { v 797 libavcodec/vc1dec.c v->pic_header_flag = 0; v 798 libavcodec/vc1dec.c v->first_pic_header_flag = 1; v 799 libavcodec/vc1dec.c if (v->profile < PROFILE_ADVANCED) { v 800 libavcodec/vc1dec.c if (ff_vc1_parse_frame_header(v, &s->gb) < 0) { v 804 libavcodec/vc1dec.c if (ff_vc1_parse_frame_header_adv(v, &s->gb) < 0) { v 808 libavcodec/vc1dec.c v->first_pic_header_flag = 0; v 811 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_DEBUG, "pict_type: %c\n", av_get_picture_type_char(s->pict_type)); v 815 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "Sprite decoder: expected I-frame\n"); v 819 libavcodec/vc1dec.c if ((s->mb_height >> v->field_mode) == 0) { v 820 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "image too short\n"); v 830 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_DEBUG, "Skipping B frame without reference frames\n"); v 850 libavcodec/vc1dec.c v->s.current_picture_ptr->field_picture = v->field_mode; v 851 libavcodec/vc1dec.c v->s.current_picture_ptr->f->interlaced_frame = (v->fcm != PROGRESSIVE); v 852 libavcodec/vc1dec.c v->s.current_picture_ptr->f->top_field_first = v->tff; v 858 libavcodec/vc1dec.c if (v->rff) { v 861 libavcodec/vc1dec.c } else if (v->rptfrm) { v 863 libavcodec/vc1dec.c s->current_picture_ptr->f->repeat_pict = v->rptfrm * 2; v 871 libavcodec/vc1dec.c if (v->field_mode && buf_start_second_field) { v 878 libavcodec/vc1dec.c if (v->field_mode && buf_start_second_field) { v 880 libavcodec/vc1dec.c s->picture_structure = PICT_BOTTOM_FIELD - v->tff; v 890 libavcodec/vc1dec.c s->picture_structure = PICT_TOP_FIELD + v->tff; v 891 libavcodec/vc1dec.c v->second_field = 1; v 892 libavcodec/vc1dec.c v->pic_header_flag = 0; v 893 libavcodec/vc1dec.c if (ff_vc1_parse_frame_header_adv(v, &s->gb) < 0) { v 897 libavcodec/vc1dec.c v->s.current_picture_ptr->f->pict_type = v->s.pict_type; v 919 libavcodec/vc1dec.c v->bits = buf_size * 8; v 920 libavcodec/vc1dec.c v->end_mb_x = s->mb_width; v 921 libavcodec/vc1dec.c if (v->field_mode) { v 928 libavcodec/vc1dec.c mb_height = s->mb_height >> v->field_mode; v 934 libavcodec/vc1dec.c if (v->field_mode <= 0) { v 935 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "Slice %d starts beyond " v 940 libavcodec/vc1dec.c v->second_field = 1; v 942 libavcodec/vc1dec.c v->blocks_off = s->b8_stride * (s->mb_height&~1); v 943 libavcodec/vc1dec.c v->mb_off = s->mb_stride * s->mb_height >> 1; v 945 libavcodec/vc1dec.c v->second_field = 0; v 946 libavcodec/vc1dec.c v->blocks_off = 0; v 947 libavcodec/vc1dec.c v->mb_off = 0; v 950 libavcodec/vc1dec.c v->pic_header_flag = 0; v 951 libavcodec/vc1dec.c if (v->field_mode && i == n_slices1 + 2) { v 952 libavcodec/vc1dec.c if ((header_ret = ff_vc1_parse_frame_header_adv(v, &s->gb)) < 0) { v 953 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "Field header damaged\n"); v 959 libavcodec/vc1dec.c v->pic_header_flag = 1; v 960 libavcodec/vc1dec.c if ((header_ret = ff_vc1_parse_frame_header_adv(v, &s->gb)) < 0) { v 961 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "Slice header damaged\n"); v 971 libavcodec/vc1dec.c if (!v->field_mode || v->second_field) v 975 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "first field slice count too large\n"); v 981 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "end mb y %d %d invalid\n", s->end_mb_y, s->start_mb_y); v 984 libavcodec/vc1dec.c if (!v->p_frame_skipped && s->pict_type != AV_PICTURE_TYPE_I && !v->cbpcy_vlc) { v 985 libavcodec/vc1dec.c av_log(v->s.avctx, AV_LOG_ERROR, "missing cbpcy_vlc\n"); v 988 libavcodec/vc1dec.c ff_vc1_decode_blocks(v); v 992 libavcodec/vc1dec.c if (v->field_mode) { v 993 libavcodec/vc1dec.c v->second_field = 0; v 999 libavcodec/vc1dec.c if (v->s.pict_type != AV_PICTURE_TYPE_BI && v->s.pict_type != AV_PICTURE_TYPE_B) { v 1000 libavcodec/vc1dec.c FFSWAP(uint8_t *, v->mv_f_next[0], v->mv_f[0]); v 1001 libavcodec/vc1dec.c FFSWAP(uint8_t *, v->mv_f_next[1], v->mv_f[1]); v 1010 libavcodec/vc1dec.c if (!v->field_mode) v 1018 libavcodec/vc1dec.c avctx->width = avctx->coded_width = v->output_width; v 1019 libavcodec/vc1dec.c avctx->height = avctx->coded_height = v->output_height; v 1023 libavcodec/vc1dec.c if (vc1_decode_sprites(v, &s->gb)) v 1026 libavcodec/vc1dec.c if ((ret = av_frame_ref(pict, v->sprite_output_frame)) < 0) v 571 libavcodec/vdpau.c VC1Context *v = s->avctx->priv_data; v 578 libavcodec/vdpau.c render->info.vc1.frame_coding_mode = v->fcm ? v->fcm + 1 : 0; v 579 libavcodec/vdpau.c render->info.vc1.postprocflag = v->postprocflag; v 580 libavcodec/vdpau.c render->info.vc1.pulldown = v->broadcast; v 581 libavcodec/vdpau.c render->info.vc1.interlace = v->interlace; v 582 libavcodec/vdpau.c render->info.vc1.tfcntrflag = v->tfcntrflag; v 583 libavcodec/vdpau.c render->info.vc1.finterpflag = v->finterpflag; v 584 libavcodec/vdpau.c render->info.vc1.psf = v->psf; v 585 libavcodec/vdpau.c render->info.vc1.dquant = v->dquant; v 586 libavcodec/vdpau.c render->info.vc1.panscan_flag = v->panscanflag; v 587 libavcodec/vdpau.c render->info.vc1.refdist_flag = v->refdist_flag; v 588 libavcodec/vdpau.c render->info.vc1.quantizer = v->quantizer_mode; v 589 libavcodec/vdpau.c render->info.vc1.extended_mv = v->extended_mv; v 590 libavcodec/vdpau.c render->info.vc1.extended_dmv = v->extended_dmv; v 591 libavcodec/vdpau.c render->info.vc1.overlap = v->overlap; v 592 libavcodec/vdpau.c render->info.vc1.vstransform = v->vstransform; v 593 libavcodec/vdpau.c render->info.vc1.loopfilter = v->s.loop_filter; v 594 libavcodec/vdpau.c render->info.vc1.fastuvmc = v->fastuvmc; v 595 libavcodec/vdpau.c render->info.vc1.range_mapy_flag = v->range_mapy_flag; v 596 libavcodec/vdpau.c render->info.vc1.range_mapy = v->range_mapy; v 597 libavcodec/vdpau.c render->info.vc1.range_mapuv_flag = v->range_mapuv_flag; v 598 libavcodec/vdpau.c render->info.vc1.range_mapuv = v->range_mapuv; v 600 libavcodec/vdpau.c render->info.vc1.multires = v->multires; v 601 libavcodec/vdpau.c render->info.vc1.syncmarker = v->resync_marker; v 602 libavcodec/vdpau.c render->info.vc1.rangered = v->rangered | (v->rangeredfrm << 1); v 603 libavcodec/vdpau.c render->info.vc1.maxbframes = v->s.max_b_frames; v 605 libavcodec/vdpau.c render->info.vc1.deblockEnable = v->postprocflag & 1; v 606 libavcodec/vdpau.c render->info.vc1.pquant = v->pq; v 611 libavcodec/vdpau.c if (v->bi_type) v 34 libavcodec/vdpau_vc1.c VC1Context * const v = avctx->priv_data; v 35 libavcodec/vdpau_vc1.c MpegEncContext * const s = &v->s; v 62 libavcodec/vdpau_vc1.c if (v->bi_type) v 67 libavcodec/vdpau_vc1.c info->frame_coding_mode = v->fcm ? (v->fcm + 1) : 0; v 68 libavcodec/vdpau_vc1.c info->postprocflag = v->postprocflag; v 69 libavcodec/vdpau_vc1.c info->pulldown = v->broadcast; v 70 libavcodec/vdpau_vc1.c info->interlace = v->interlace; v 71 libavcodec/vdpau_vc1.c info->tfcntrflag = v->tfcntrflag; v 72 libavcodec/vdpau_vc1.c info->finterpflag = v->finterpflag; v 73 libavcodec/vdpau_vc1.c info->psf = v->psf; v 74 libavcodec/vdpau_vc1.c info->dquant = v->dquant; v 75 libavcodec/vdpau_vc1.c info->panscan_flag = v->panscanflag; v 76 libavcodec/vdpau_vc1.c info->refdist_flag = v->refdist_flag; v 77 libavcodec/vdpau_vc1.c info->quantizer = v->quantizer_mode; v 78 libavcodec/vdpau_vc1.c info->extended_mv = v->extended_mv; v 79 libavcodec/vdpau_vc1.c info->extended_dmv = v->extended_dmv; v 80 libavcodec/vdpau_vc1.c info->overlap = v->overlap; v 81 libavcodec/vdpau_vc1.c info->vstransform = v->vstransform; v 82 libavcodec/vdpau_vc1.c info->loopfilter = v->s.loop_filter; v 83 libavcodec/vdpau_vc1.c info->fastuvmc = v->fastuvmc; v 84 libavcodec/vdpau_vc1.c info->range_mapy_flag = v->range_mapy_flag; v 85 libavcodec/vdpau_vc1.c info->range_mapy = v->range_mapy; v 86 libavcodec/vdpau_vc1.c info->range_mapuv_flag = v->range_mapuv_flag; v 87 libavcodec/vdpau_vc1.c info->range_mapuv = v->range_mapuv; v 89 libavcodec/vdpau_vc1.c info->multires = v->multires; v 90 libavcodec/vdpau_vc1.c info->syncmarker = v->resync_marker; v 91 libavcodec/vdpau_vc1.c info->rangered = v->rangered | (v->rangeredfrm << 1); v 92 libavcodec/vdpau_vc1.c info->maxbframes = v->s.max_b_frames; v 93 libavcodec/vdpau_vc1.c info->deblockEnable = v->postprocflag & 1; v 94 libavcodec/vdpau_vc1.c info->pquant = v->pq; v 102 libavcodec/vdpau_vc1.c VC1Context * const v = avctx->priv_data; v 103 libavcodec/vdpau_vc1.c MpegEncContext * const s = &v->s; v 1239 libavcodec/vorbisdec.c int v = get_vlc2(gb, vc->codebooks[book].vlc.table, v 1241 libavcodec/vorbisdec.c if (v < 0) v 1243 libavcodec/vorbisdec.c floor1_Y[offset+j] = v; v 179 libavcodec/vp3dsp.c int v = (xC4S4 * ip[0] + (IdctAdjustBeforeShift << 16)) >> 20; v 180 libavcodec/vp3dsp.c dst[0 * stride] = av_clip_uint8(dst[0 * stride] + v); v 181 libavcodec/vp3dsp.c dst[1 * stride] = av_clip_uint8(dst[1 * stride] + v); v 182 libavcodec/vp3dsp.c dst[2 * stride] = av_clip_uint8(dst[2 * stride] + v); v 183 libavcodec/vp3dsp.c dst[3 * stride] = av_clip_uint8(dst[3 * stride] + v); v 184 libavcodec/vp3dsp.c dst[4 * stride] = av_clip_uint8(dst[4 * stride] + v); v 185 libavcodec/vp3dsp.c dst[5 * stride] = av_clip_uint8(dst[5 * stride] + v); v 186 libavcodec/vp3dsp.c dst[6 * stride] = av_clip_uint8(dst[6 * stride] + v); v 187 libavcodec/vp3dsp.c dst[7 * stride] = av_clip_uint8(dst[7 * stride] + v); v 334 libavcodec/vp56.h int v; v 339 libavcodec/vp56.h v = vp8_rac_get_uint(c, bits); v 342 libavcodec/vp56.h v = -v; v 344 libavcodec/vp56.h return v; v 350 libavcodec/vp56.h int v = vp56_rac_gets(c, 7) << 1; v 351 libavcodec/vp56.h return v + !v; v 356 libavcodec/vp56.h int v = vp8_rac_get_uint(c, 7) << 1; v 357 libavcodec/vp56.h return v + !v; v 391 libavcodec/vp56.h int v = 0; v 394 libavcodec/vp56.h v = (v<<1) + vp56_rac_get_prob(c, *prob++); v 397 libavcodec/vp56.h return v; v 30 libavcodec/vp56dsp.c static int vp5_adjust(int v, int t) v 32 libavcodec/vp56dsp.c int s2, s1 = v >> 31; v 33 libavcodec/vp56dsp.c v ^= s1; v 34 libavcodec/vp56dsp.c v -= s1; v 35 libavcodec/vp56dsp.c v *= v < 2*t; v 36 libavcodec/vp56dsp.c v -= t; v 37 libavcodec/vp56dsp.c s2 = v >> 31; v 38 libavcodec/vp56dsp.c v ^= s2; v 39 libavcodec/vp56dsp.c v -= s2; v 40 libavcodec/vp56dsp.c v = t - v; v 41 libavcodec/vp56dsp.c v += s1; v 42 libavcodec/vp56dsp.c v ^= s1; v 43 libavcodec/vp56dsp.c return v; v 46 libavcodec/vp56dsp.c static int vp6_adjust(int v, int t) v 48 libavcodec/vp56dsp.c int V = v, s = v >> 31; v 52 libavcodec/vp56dsp.c return v; v 64 libavcodec/vp56dsp.c int i, v; \ v 67 libavcodec/vp56dsp.c v = (yuv[-pix2_inc] + 3*(yuv[0]-yuv[-pix_inc]) - yuv[pix_inc] + 4)>>3;\ v 68 libavcodec/vp56dsp.c v = pfx##_adjust(v, t); \ v 69 libavcodec/vp56dsp.c yuv[-pix_inc] = av_clip_uint8(yuv[-pix_inc] + v); \ v 70 libavcodec/vp56dsp.c yuv[0] = av_clip_uint8(yuv[0] - v); \ v 449 libavcodec/vp8dsp.c LOOP_FILTER(vpn, v, 16, 1, stride, ) \ v 451 libavcodec/vp8dsp.c UV_LOOP_FILTER(vpn, v, 1, stride) \ v 526 libavcodec/vp8dsp.c put_vp8_epel ## SIZE ## _h ## HTAPS ## v ## VTAPS ## _c(uint8_t *dst, \ v 401 libavcodec/vp9.c int v = get_bits(gb, n); v 402 libavcodec/vp9.c return get_bits1(gb) ? -v : v; v 405 libavcodec/vp9.c static av_always_inline int inv_recenter_nonneg(int v, int m) v 407 libavcodec/vp9.c return v > 2 * m ? v : v & 1 ? m - ((v + 1) >> 1) : m + (v >> 1); v 1274 libavcodec/vp9.c ptrdiff_t stride, int v) v 1279 libavcodec/vp9.c *ptr = v; v 1284 libavcodec/vp9.c int v16 = v * 0x0101; v 1292 libavcodec/vp9.c uint32_t v32 = v * 0x01010101; v 1301 libavcodec/vp9.c uint64_t v64 = v * 0x0101010101010101ULL; v 1307 libavcodec/vp9.c uint32_t v32 = v * 0x01010101; v 2196 libavcodec/vp9.c #define DECODE_Y_COEF_LOOP(step, mode_index, v) \ v 2200 libavcodec/vp9.c res = decode_coeffs_b##v(&s->c, s->block + 16 * n, 16 * step * step, \ v 2973 libavcodec/vp9.c #define SPLAT_ZERO_CTX(v, n) \ v 2975 libavcodec/vp9.c case 1: v = 0; break; \ v 2976 libavcodec/vp9.c case 2: AV_ZERO16(&v); break; \ v 2977 libavcodec/vp9.c case 4: AV_ZERO32(&v); break; \ v 2978 libavcodec/vp9.c case 8: AV_ZERO64(&v); break; \ v 2979 libavcodec/vp9.c case 16: AV_ZERO128(&v); break; \ v 596 libavcodec/vp9dsp.c uint8_t v[size - 1]; \ v 599 libavcodec/vp9dsp.c v[i] = (top[i] + top[i + 1] * 2 + top[i + 2] + 2) >> 2; \ v 600 libavcodec/vp9dsp.c v[size - 2] = (top[size - 2] + top[size - 1] * 3 + 2) >> 2; \ v 603 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + j, size - 1 - j); \ v 632 libavcodec/vp9dsp.c uint8_t v[size + size - 1]; \ v 635 libavcodec/vp9dsp.c v[i ] = (left[i] + left[i + 1] * 2 + left[i + 2] + 2) >> 2; \ v 636 libavcodec/vp9dsp.c v[size + 1 + i] = (top[i] + top[i + 1] * 2 + top[i + 2] + 2) >> 2; \ v 638 libavcodec/vp9dsp.c v[size - 2] = (left[size - 2] + left[size - 1] * 2 + top[-1] + 2) >> 2; \ v 639 libavcodec/vp9dsp.c v[size - 1] = (left[size - 1] + top[-1] * 2 + top[ 0] + 2) >> 2; \ v 640 libavcodec/vp9dsp.c v[size ] = (top[-1] + top[0] * 2 + top[ 1] + 2) >> 2; \ v 643 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + size - 1 - j, size); \ v 722 libavcodec/vp9dsp.c uint8_t v[size * 3 - 2]; \ v 725 libavcodec/vp9dsp.c v[i*2 ] = (left[i + 1] + left[i + 0] + 1) >> 1; \ v 726 libavcodec/vp9dsp.c v[i*2 + 1] = (left[i + 2] + left[i + 1] * 2 + left[i + 0] + 2) >> 2; \ v 727 libavcodec/vp9dsp.c v[size*2 + i] = (top[i - 1] + top[i] * 2 + top[i + 1] + 2) >> 2; \ v 729 libavcodec/vp9dsp.c v[size*2 - 2] = (top[-1] + left[size - 1] + 1) >> 1; \ v 730 libavcodec/vp9dsp.c v[size*2 - 4] = (left[size - 1] + left[size - 2] + 1) >> 1; \ v 731 libavcodec/vp9dsp.c v[size*2 - 1] = (top[0] + top[-1] * 2 + left[size - 1] + 2) >> 2; \ v 732 libavcodec/vp9dsp.c v[size*2 - 3] = (top[-1] + left[size - 1] * 2 + left[size - 2] + 2) >> 2; \ v 735 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + size*2 - 2 - j*2, size); \ v 805 libavcodec/vp9dsp.c uint8_t v[size*2 - 2]; \ v 808 libavcodec/vp9dsp.c v[i*2 ] = (left[i] + left[i + 1] + 1) >> 1; \ v 809 libavcodec/vp9dsp.c v[i*2 + 1] = (left[i] + left[i + 1] * 2 + left[i + 2] + 2) >> 2; \ v 811 libavcodec/vp9dsp.c v[size*2 - 4] = (left[size - 2] + left[size - 1] + 1) >> 1; \ v 812 libavcodec/vp9dsp.c v[size*2 - 3] = (left[size - 2] + left[size - 1] * 3 + 2) >> 2; \ v 815 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + j*2, size); \ v 817 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + j*2, size*2 - 2 - j*2); \ v 1596 libavcodec/vp9dsp.c lf_8_fn(v, wd, 1, stride) v 1615 libavcodec/vp9dsp.c lf_16_fn(v, 1) v 1630 libavcodec/vp9dsp.c lf_mix_fn(v, wd1, wd2, 1) v 1800 libavcodec/vp9dsp.c filter_8tap_1d_fn(put, 0, v, src_stride) v 1802 libavcodec/vp9dsp.c filter_8tap_1d_fn(avg, 1, v, src_stride) v 1907 libavcodec/vp9dsp.c bilin_1d_fn(put, 0, v, src_stride) v 1909 libavcodec/vp9dsp.c bilin_1d_fn(avg, 1, v, src_stride) v 1980 libavcodec/vp9dsp.c filter_fn_1d(sz, v, my, regular, FILTER_8TAP_REGULAR, avg) \ v 1983 libavcodec/vp9dsp.c filter_fn_1d(sz, v, my, smooth, FILTER_8TAP_SMOOTH, avg) \ v 1986 libavcodec/vp9dsp.c filter_fn_1d(sz, v, my, sharp, FILTER_8TAP_SHARP, avg) \ v 1989 libavcodec/vp9dsp.c bilinf_fn_1d(sz, v, my, avg) \ v 2045 libavcodec/vp9dsp.c init_subpel2(idx, 0, 1, v, type); \ v 635 libavcodec/wavpackenc.c static uint32_t log2sample(uint32_t v, int limit, uint32_t *result) v 639 libavcodec/wavpackenc.c if ((v += v >> 9) < (1 << 8)) { v 640 libavcodec/wavpackenc.c dbits = nbits_table[v]; v 641 libavcodec/wavpackenc.c *result += (dbits << 8) + wp_log2_table[(v << (9 - dbits)) & 0xff]; v 643 libavcodec/wavpackenc.c if (v < (1 << 16)) v 644 libavcodec/wavpackenc.c dbits = nbits_table[v >> 8] + 8; v 645 libavcodec/wavpackenc.c else if (v < (1 << 24)) v 646 libavcodec/wavpackenc.c dbits = nbits_table[v >> 16] + 16; v 648 libavcodec/wavpackenc.c dbits = nbits_table[v >> 24] + 24; v 650 libavcodec/wavpackenc.c *result += dbits = (dbits << 8) + wp_log2_table[(v >> (dbits - 9)) & 0xff]; v 188 libavcodec/webp.c VP8Context v; /* VP8 Context used for lossy decoding */ v 665 libavcodec/webp.c int v; v 668 libavcodec/webp.c v = huff_reader_get_symbol(&hg[HUFF_IDX_GREEN], &s->gb); v 669 libavcodec/webp.c if (v < NUM_LITERAL_CODES) { v 672 libavcodec/webp.c p[2] = v; v 683 libavcodec/webp.c } else if (v < NUM_LITERAL_CODES + NUM_LENGTH_CODES) { v 688 libavcodec/webp.c prefix_code = v - NUM_LITERAL_CODES; v 764 libavcodec/webp.c int cache_idx = v - (NUM_LITERAL_CODES + NUM_LENGTH_CODES); v 139 libavcodec/wmadec.c unsigned int v; v 145 libavcodec/wmadec.c e = u.v >> 23; v 146 libavcodec/wmadec.c m = (u.v >> (23 - LSP_POW_BITS)) & ((1 << LSP_POW_BITS) - 1); v 148 libavcodec/wmadec.c t.v = ((u.v << LSP_POW_BITS) & ((1 << 23) - 1)) | (127 << 23); v 190 libavcodec/wmadec.c float p, q, w, v, val_max; v 203 libavcodec/wmadec.c v = p + q; v 204 libavcodec/wmadec.c v = pow_m1_4(s, v); v 205 libavcodec/wmadec.c if (v > val_max) v 206 libavcodec/wmadec.c val_max = v; v 207 libavcodec/wmadec.c out[i] = v; v 321 libavcodec/wmadec.c float v, max_scale; v 332 libavcodec/wmadec.c v = ptab[last_exp]; v 334 libavcodec/wmadec.c max_scale = v; v 358 libavcodec/wmadec.c v = ptab[last_exp]; v 360 libavcodec/wmadec.c if (v > max_scale) v 361 libavcodec/wmadec.c max_scale = v; v 432 libavcodec/wmadec.c int n, v, a, ch, bsize; v 449 libavcodec/wmadec.c v = get_bits(&s->gb, n); v 450 libavcodec/wmadec.c if (v >= s->nb_block_sizes) { v 453 libavcodec/wmadec.c s->frame_len_bits - v); v 456 libavcodec/wmadec.c s->prev_block_len_bits = s->frame_len_bits - v; v 457 libavcodec/wmadec.c v = get_bits(&s->gb, n); v 458 libavcodec/wmadec.c if (v >= s->nb_block_sizes) { v 461 libavcodec/wmadec.c s->frame_len_bits - v); v 464 libavcodec/wmadec.c s->block_len_bits = s->frame_len_bits - v; v 470 libavcodec/wmadec.c v = get_bits(&s->gb, n); v 471 libavcodec/wmadec.c if (v >= s->nb_block_sizes) { v 474 libavcodec/wmadec.c s->frame_len_bits - v); v 477 libavcodec/wmadec.c s->next_block_len_bits = s->frame_len_bits - v; v 499 libavcodec/wmadec.c v = 0; v 503 libavcodec/wmadec.c v |= a; v 510 libavcodec/wmadec.c if (!v) v 652 libavcodec/wmadec.c float e2, v; v 655 libavcodec/wmadec.c v = exponents[i << bsize >> esize]; v 656 libavcodec/wmadec.c e2 += v * v; v 127 libavcodec/wmaenc.c float v, *q, max_scale, *q_end; v 135 libavcodec/wmaenc.c v = pow(10, *exp_param++ *(1.0 / 16.0)); v 136 libavcodec/wmaenc.c max_scale = FFMAX(max_scale, v); v 139 libavcodec/wmaenc.c *q++ = v; v 176 libavcodec/wmaenc.c int v, bsize, ch, coef_nb_bits, parse_exponents; v 202 libavcodec/wmaenc.c v = s->coefs_end[bsize] - s->coefs_start; v 204 libavcodec/wmaenc.c nb_coefs[ch] = v; v 249 libavcodec/wmaenc.c v = 0; v 253 libavcodec/wmaenc.c v |= a; v 256 libavcodec/wmaenc.c if (!v) v 259 libavcodec/wmaenc.c for (v = total_gain - 1; v >= 127; v -= 127) v 261 libavcodec/wmaenc.c put_bits(&s->pb, 7, v); v 454 libavcodec/wmaprodec.c int v = 0; v 455 libavcodec/wmaprodec.c while (s->sfb_offsets[x][v + 1] << x < offset) { v 456 libavcodec/wmaprodec.c v++; v 457 libavcodec/wmaprodec.c av_assert0(v < MAX_BANDS); v 459 libavcodec/wmaprodec.c s->sf_offsets[i][x][b] = v; v 869 libavcodec/wmavoice.c uint16_t v[4]; v 871 libavcodec/wmavoice.c v[0] = get_bits(gb, 8); v 872 libavcodec/wmavoice.c v[1] = get_bits(gb, 6); v 873 libavcodec/wmavoice.c v[2] = get_bits(gb, 5); v 874 libavcodec/wmavoice.c v[3] = get_bits(gb, 5); v 876 libavcodec/wmavoice.c dequant_lsps(lsps, 10, v, vec_sizes, 4, wmavoice_dq_lsp10i, v 897 libavcodec/wmavoice.c uint16_t interpol, v[3]; v 903 libavcodec/wmavoice.c v[0] = get_bits(gb, 7); v 904 libavcodec/wmavoice.c v[1] = get_bits(gb, 6); v 905 libavcodec/wmavoice.c v[2] = get_bits(gb, 6); v 913 libavcodec/wmavoice.c dequant_lsps(a2, 20, v, vec_sizes, 3, wmavoice_dq_lsp10r, v 933 libavcodec/wmavoice.c uint16_t v[5]; v 935 libavcodec/wmavoice.c v[0] = get_bits(gb, 8); v 936 libavcodec/wmavoice.c v[1] = get_bits(gb, 6); v 937 libavcodec/wmavoice.c v[2] = get_bits(gb, 7); v 938 libavcodec/wmavoice.c v[3] = get_bits(gb, 6); v 939 libavcodec/wmavoice.c v[4] = get_bits(gb, 7); v 941 libavcodec/wmavoice.c dequant_lsps( lsps, 5, v, vec_sizes, 2, v 943 libavcodec/wmavoice.c dequant_lsps(&lsps[5], 5, &v[2], &vec_sizes[2], 2, v 945 libavcodec/wmavoice.c dequant_lsps(&lsps[10], 6, &v[4], &vec_sizes[4], 1, v 966 libavcodec/wmavoice.c uint16_t interpol, v[3]; v 972 libavcodec/wmavoice.c v[0] = get_bits(gb, 7); v 973 libavcodec/wmavoice.c v[1] = get_bits(gb, 7); v 974 libavcodec/wmavoice.c v[2] = get_bits(gb, 7); v 982 libavcodec/wmavoice.c dequant_lsps( a2, 10, v, vec_sizes, 1, v 984 libavcodec/wmavoice.c dequant_lsps(&a2[10], 10, &v[1], &vec_sizes[1], 1, v 986 libavcodec/wmavoice.c dequant_lsps(&a2[20], 12, &v[2], &vec_sizes[2], 1, v 1149 libavcodec/wmavoice.c float v; v 1182 libavcodec/wmavoice.c v = (val & 0x200) ? -1.0 : 1.0; v 1186 libavcodec/wmavoice.c fcb->y[fcb->n] = v; v 1188 libavcodec/wmavoice.c fcb->y[fcb->n + 1] = (val & 1) ? -v : v; v 50 libavcodec/wnv1.c int v = get_vlc2(&w->gb, code_vlc.table, CODE_VLC_BITS, 1); v 52 libavcodec/wnv1.c if (v == 15) v 55 libavcodec/wnv1.c return base_value + ((v - 7) << w->shift); v 108 libavcodec/x86/h264dsp_init.c LF_FUNC(v, chroma, depth, mmxext) \ v 109 libavcodec/x86/h264dsp_init.c LF_IFUNC(v, chroma_intra, depth, mmxext) \ v 114 libavcodec/x86/h264dsp_init.c LF_FUNC(v, luma, depth, sse2) \ v 115 libavcodec/x86/h264dsp_init.c LF_IFUNC(v, luma_intra, depth, sse2) \ v 118 libavcodec/x86/h264dsp_init.c LF_FUNC(v, chroma, depth, sse2) \ v 119 libavcodec/x86/h264dsp_init.c LF_IFUNC(v, chroma_intra, depth, sse2) \ v 122 libavcodec/x86/h264dsp_init.c LF_FUNC(v, luma, depth, avx) \ v 123 libavcodec/x86/h264dsp_init.c LF_IFUNC(v, luma_intra, depth, avx) \ v 126 libavcodec/x86/h264dsp_init.c LF_FUNC(v, chroma, depth, avx) \ v 127 libavcodec/x86/h264dsp_init.c LF_IFUNC(v, chroma_intra, depth, avx) v 151 libavcodec/x86/h264dsp_init.c LF_FUNC(v, luma, 10, mmxext) v 152 libavcodec/x86/h264dsp_init.c LF_IFUNC(v, luma_intra, 10, mmxext) v 39 libavcodec/x86/hevcdsp_init.c LFC_FUNC(v, depth, opt) v 43 libavcodec/x86/hevcdsp_init.c LFL_FUNC(v, depth, opt) v 36 libavcodec/x86/me_cmp_init.c int ff_sse8_mmx(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 38 libavcodec/x86/me_cmp_init.c int ff_sse16_mmx(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 40 libavcodec/x86/me_cmp_init.c int ff_sse16_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 44 libavcodec/x86/me_cmp_init.c int ff_sad8_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 46 libavcodec/x86/me_cmp_init.c int ff_sad16_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 48 libavcodec/x86/me_cmp_init.c int ff_sad16_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 50 libavcodec/x86/me_cmp_init.c int ff_sad8_x2_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 52 libavcodec/x86/me_cmp_init.c int ff_sad16_x2_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 54 libavcodec/x86/me_cmp_init.c int ff_sad16_x2_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 56 libavcodec/x86/me_cmp_init.c int ff_sad8_y2_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 58 libavcodec/x86/me_cmp_init.c int ff_sad16_y2_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 60 libavcodec/x86/me_cmp_init.c int ff_sad16_y2_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 62 libavcodec/x86/me_cmp_init.c int ff_sad8_approx_xy2_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 64 libavcodec/x86/me_cmp_init.c int ff_sad16_approx_xy2_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 66 libavcodec/x86/me_cmp_init.c int ff_sad16_approx_xy2_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 68 libavcodec/x86/me_cmp_init.c int ff_vsad_intra8_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 70 libavcodec/x86/me_cmp_init.c int ff_vsad_intra16_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 72 libavcodec/x86/me_cmp_init.c int ff_vsad_intra16_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 74 libavcodec/x86/me_cmp_init.c int ff_vsad8_approx_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 76 libavcodec/x86/me_cmp_init.c int ff_vsad16_approx_mmxext(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 78 libavcodec/x86/me_cmp_init.c int ff_vsad16_approx_sse2(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 128 libavcodec/x86/me_cmp_init.c static int vsad_intra16_mmx(MpegEncContext *v, uint8_t *pix, uint8_t *dummy, v 192 libavcodec/x86/me_cmp_init.c static int vsad16_mmx(MpegEncContext *v, uint8_t *pix1, uint8_t *pix2, v 436 libavcodec/x86/me_cmp_init.c static int sad8_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 450 libavcodec/x86/me_cmp_init.c static int sad8_x2_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 465 libavcodec/x86/me_cmp_init.c static int sad8_y2_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 480 libavcodec/x86/me_cmp_init.c static int sad8_xy2_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 494 libavcodec/x86/me_cmp_init.c static int sad16_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 508 libavcodec/x86/me_cmp_init.c static int sad16_x2_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 523 libavcodec/x86/me_cmp_init.c static int sad16_y2_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 538 libavcodec/x86/me_cmp_init.c static int sad16_xy2_ ## suf(MpegEncContext *v, uint8_t *blk2, \ v 37 libavcodec/x86/sbrdsp_init.c void ff_sbr_qmf_deint_bfly_sse(float *v, const float *src0, const float *src1); v 38 libavcodec/x86/sbrdsp_init.c void ff_sbr_qmf_deint_bfly_sse2(float *v, const float *src0, const float *src1); v 54 libavcodec/x86/sbrdsp_init.c void ff_sbr_qmf_deint_neg_sse(float *v, const float *src); v 22 libavcodec/x86/v210-init.c extern void ff_v210_planar_unpack_unaligned_ssse3(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width); v 23 libavcodec/x86/v210-init.c extern void ff_v210_planar_unpack_unaligned_avx(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width); v 25 libavcodec/x86/v210-init.c extern void ff_v210_planar_unpack_aligned_ssse3(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width); v 26 libavcodec/x86/v210-init.c extern void ff_v210_planar_unpack_aligned_avx(const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width); v 23 libavcodec/x86/v210enc_init.c const uint8_t *v, uint8_t *dst, v 26 libavcodec/x86/v210enc_init.c const uint8_t *v, uint8_t *dst, ptrdiff_t width); v 28 libavcodec/x86/v210enc_init.c const uint16_t *v, uint8_t *dst, v 153 libavcodec/x86/vp8dsp_init.c TAP_W8 (mmxext, bilinear, v) v 154 libavcodec/x86/vp8dsp_init.c TAP_W16(mmxext, bilinear, v) v 160 libavcodec/x86/vp8dsp_init.c TAP_W16(sse2, bilinear, v) v 165 libavcodec/x86/vp8dsp_init.c TAP_W16(ssse3, bilinear, v) v 168 libavcodec/x86/vp8dsp_init.c static void ff_put_vp8_epel ## SIZE ## _h ## TAPNUMX ## v ## TAPNUMY ## _ ## OPT( \ v 59 libavcodec/x86/vp9dsp_init.c mc_func(put, sz, v, opt, type, fsz); \ v 60 libavcodec/x86/vp9dsp_init.c mc_func(avg, sz, v, opt, type, fsz) v 89 libavcodec/x86/vp9dsp_init.c mc_rep_func(put, sz, hsz, v, opt, type, fsz); \ v 90 libavcodec/x86/vp9dsp_init.c mc_rep_func(avg, sz, hsz, v, opt, type, fsz) v 165 libavcodec/x86/vp9dsp_init.c filters_8tap_1d_fn(op, sz, v, my, opt, f_opt) v 246 libavcodec/x86/vp9dsp_init.c ipred_func(8, v, mmx); v 267 libavcodec/x86/vp9dsp_init.c ipred_func(16, v, sse); v 268 libavcodec/x86/vp9dsp_init.c ipred_func(32, v, sse); v 297 libavcodec/x86/vp9dsp_init.c ipred_func(32, v, avx); v 328 libavcodec/x86/vp9dsp_init.c init_subpel1(idx1, idx2, 0, 1, sz, v, type, opt); \ v 392 libavcodec/x86/vp9dsp_init.c init_ipred(8, mmx, v, VERT); v 410 libavcodec/x86/vp9dsp_init.c init_ipred(16, sse, v, VERT); v 411 libavcodec/x86/vp9dsp_init.c init_ipred(32, sse, v, VERT); v 489 libavcodec/x86/vp9dsp_init.c init_ipred(32, avx, v, VERT); v 43 libavcodec/y41pdec.c uint8_t *y, *u, *v; v 60 libavcodec/y41pdec.c v = &pic->data[2][i * pic->linesize[2]]; v 64 libavcodec/y41pdec.c *(v++) = *src++; v 69 libavcodec/y41pdec.c *(v++) = *src++; v 48 libavcodec/y41penc.c uint8_t *y, *u, *v; v 61 libavcodec/y41penc.c v = &pic->data[2][i * pic->linesize[2]]; v 65 libavcodec/y41penc.c *(dst++) = *(v++); v 70 libavcodec/y41penc.c *(dst++) = *(v++); v 38 libavcodec/yuv4dec.c uint8_t *y, *u, *v; v 54 libavcodec/yuv4dec.c v = pic->data[2]; v 59 libavcodec/yuv4dec.c v[j] = *src++ ^ 0x80; v 68 libavcodec/yuv4dec.c v += pic->linesize[2]; v 42 libavcodec/yuv4enc.c uint8_t *y, *u, *v; v 54 libavcodec/yuv4enc.c v = pic->data[2]; v 59 libavcodec/yuv4enc.c *dst++ = v[j] ^ 0x80; v 67 libavcodec/yuv4enc.c v += pic->linesize[2]; v 352 libavdevice/dshow.c VIDEOINFOHEADER *v = (void *) type->pbFormat; v 353 libavdevice/dshow.c fr = &v->AvgTimePerFrame; v 354 libavdevice/dshow.c bih = &v->bmiHeader; v 356 libavdevice/dshow.c VIDEOINFOHEADER2 *v = (void *) type->pbFormat; v 357 libavdevice/dshow.c fr = &v->AvgTimePerFrame; v 358 libavdevice/dshow.c bih = &v->bmiHeader; v 855 libavdevice/dshow.c VIDEOINFOHEADER *v = (void *) type.pbFormat; v 856 libavdevice/dshow.c time_base = (AVRational) { v->AvgTimePerFrame, 10000000 }; v 857 libavdevice/dshow.c bih = &v->bmiHeader; v 859 libavdevice/dshow.c VIDEOINFOHEADER2 *v = (void *) type.pbFormat; v 860 libavdevice/dshow.c time_base = (AVRational) { v->AvgTimePerFrame, 10000000 }; v 861 libavdevice/dshow.c bih = &v->bmiHeader; v 154 libavdevice/dshow_common.c VIDEOINFOHEADER *v = (void *) type->pbFormat; v 156 libavdevice/dshow_common.c v->rcSource.left, v->rcSource.top, v->rcSource.right, v->rcSource.bottom); v 158 libavdevice/dshow_common.c v->rcTarget.left, v->rcTarget.top, v->rcTarget.right, v->rcTarget.bottom); v 159 libavdevice/dshow_common.c dshowdebug(" dwBitRate: %lu\n", v->dwBitRate); v 160 libavdevice/dshow_common.c dshowdebug(" dwBitErrorRate: %lu\n", v->dwBitErrorRate); v 161 libavdevice/dshow_common.c dshowdebug(" AvgTimePerFrame: %"PRId64"\n", v->AvgTimePerFrame); v 162 libavdevice/dshow_common.c dump_bih(NULL, &v->bmiHeader); v 164 libavdevice/dshow_common.c VIDEOINFOHEADER2 *v = (void *) type->pbFormat; v 166 libavdevice/dshow_common.c v->rcSource.left, v->rcSource.top, v->rcSource.right, v->rcSource.bottom); v 168 libavdevice/dshow_common.c v->rcTarget.left, v->rcTarget.top, v->rcTarget.right, v->rcTarget.bottom); v 169 libavdevice/dshow_common.c dshowdebug(" dwBitRate: %lu\n", v->dwBitRate); v 170 libavdevice/dshow_common.c dshowdebug(" dwBitErrorRate: %lu\n", v->dwBitErrorRate); v 171 libavdevice/dshow_common.c dshowdebug(" AvgTimePerFrame: %"PRId64"\n", v->AvgTimePerFrame); v 172 libavdevice/dshow_common.c dshowdebug(" dwInterlaceFlags: %lu\n", v->dwInterlaceFlags); v 173 libavdevice/dshow_common.c dshowdebug(" dwCopyProtectFlags: %lu\n", v->dwCopyProtectFlags); v 174 libavdevice/dshow_common.c dshowdebug(" dwPictAspectRatioX: %lu\n", v->dwPictAspectRatioX); v 175 libavdevice/dshow_common.c dshowdebug(" dwPictAspectRatioY: %lu\n", v->dwPictAspectRatioY); v 177 libavdevice/dshow_common.c dshowdebug(" dwReserved2: %lu\n", v->dwReserved2); v 178 libavdevice/dshow_common.c dump_bih(NULL, &v->bmiHeader); v 136 libavfilter/af_aphaser.c double v = *s * p->in_gain + buffer[ \ v 144 libavfilter/af_aphaser.c buffer[delay_pos] = v; \ v 146 libavfilter/af_aphaser.c *d = v * p->out_gain; \ v 175 libavfilter/af_aphaser.c double v = *s * p->in_gain + buffer[pos + c] * p->decay; \ v 177 libavfilter/af_aphaser.c buffer[npos + c] = v; \ v 179 libavfilter/af_aphaser.c *d = v * p->out_gain; \ v 78 libavfilter/af_volumedetect.c static inline double logdb(uint64_t v) v 80 libavfilter/af_volumedetect.c double d = v / (double)(0x8000 * 0x8000); v 81 libavfilter/af_volumedetect.c if (!v) v 661 libavfilter/avf_showcqt.c int v; v 662 libavfilter/avf_showcqt.c for (v = 0; v < 16; v++) { v 663 libavfilter/avf_showcqt.c uint8_t *p = startptr + v * linesize * video_scale + 8 * 3 * u * video_scale; v 667 libavfilter/avf_showcqt.c if (mask & avpriv_vga16_font[str[u] * 16 + v]) { v 96 libavfilter/avf_showspectrum.c float a, y, u, v; v 413 libavfilter/avf_showspectrum.c float y, u, v; v 424 libavfilter/avf_showspectrum.c v = intensity_color_table[i - 1].v; v 428 libavfilter/avf_showspectrum.c v = intensity_color_table[i].v; v 437 libavfilter/avf_showspectrum.c v = intensity_color_table[i - 1].v * (1.0f - lerpfrac) v 438 libavfilter/avf_showspectrum.c + intensity_color_table[i].v * lerpfrac; v 443 libavfilter/avf_showspectrum.c out[2] += v * vf; v 97 libavfilter/deshake_opencl_kernel.h inline int mirror(int v, int m) v 99 libavfilter/deshake_opencl_kernel.h while ((unsigned)v > (unsigned)m) { v 100 libavfilter/deshake_opencl_kernel.h v = -v; v 101 libavfilter/deshake_opencl_kernel.h if (v < 0) v 102 libavfilter/deshake_opencl_kernel.h v += 2 * m; v 104 libavfilter/deshake_opencl_kernel.h return v; v 182 libavfilter/f_ebur128.c static const uint8_t *get_graph_color(const EBUR128Context *ebur128, int v, int y) v 185 libavfilter/f_ebur128.c const int reached = y >= v; v 191 libavfilter/f_ebur128.c static inline int lu_to_y(const EBUR128Context *ebur128, double v) v 193 libavfilter/f_ebur128.c v += 2 * ebur128->meter; // make it in range [0;...] v 194 libavfilter/f_ebur128.c v = av_clipf(v, 0, ebur128->scale_range); // make sure it's in the graph scale v 195 libavfilter/f_ebur128.c v = ebur128->scale_range - v; // invert value (y=0 is on top) v 196 libavfilter/f_ebur128.c return v * ebur128->graph.h / ebur128->scale_range; // rescale from scale range to px height v 65 libavfilter/pthread.c static void* attribute_align_arg worker(void *v) v 67 libavfilter/pthread.c ThreadContext *c = v; v 146 libavfilter/setpts.c static inline char *double2int64str(char *buf, double v) v 148 libavfilter/setpts.c if (isnan(v)) snprintf(buf, BUF_SIZE, "nan"); v 149 libavfilter/setpts.c else snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)v); v 153 libavfilter/setpts.c #define d2istr(v) double2int64str((char[BUF_SIZE]){0}, v) v 141 libavfilter/vf_colormatrix.c int v = 0; v 148 libavfilter/vf_colormatrix.c solve_coefficients(yuv_convertd[v], rgb_coeffd[i], yuv_coeff[j]); v 150 libavfilter/vf_colormatrix.c color->yuv_convert[v][k][0] = NS(yuv_convertd[v][k][0]); v 151 libavfilter/vf_colormatrix.c color->yuv_convert[v][k][1] = NS(yuv_convertd[v][k][1]); v 152 libavfilter/vf_colormatrix.c color->yuv_convert[v][k][2] = NS(yuv_convertd[v][k][2]); v 154 libavfilter/vf_colormatrix.c if (color->yuv_convert[v][0][0] != 65536 || color->yuv_convert[v][1][0] != 0 || v 155 libavfilter/vf_colormatrix.c color->yuv_convert[v][2][0] != 0) { v 158 libavfilter/vf_colormatrix.c v++; v 202 libavfilter/vf_colormatrix.c const int v = srcp[x + 2] - 128; v 203 libavfilter/vf_colormatrix.c const int uvval = c2 * u + c3 * v + 1081344; v 204 libavfilter/vf_colormatrix.c dstp[x + 0] = CB((c4 * u + c5 * v + 8421376) >> 16); v 206 libavfilter/vf_colormatrix.c dstp[x + 2] = CB((c6 * u + c7 * v + 8421376) >> 16); v 240 libavfilter/vf_colormatrix.c const int v = srcpV[x >> 1] - 128; v 241 libavfilter/vf_colormatrix.c const int uvval = c2 * u + c3 * v + 1081344; v 244 libavfilter/vf_colormatrix.c dstpU[x >> 1] = CB((c4 * u + c5 * v + 8421376) >> 16); v 245 libavfilter/vf_colormatrix.c dstpV[x >> 1] = CB((c6 * u + c7 * v + 8421376) >> 16); v 284 libavfilter/vf_colormatrix.c const int v = srcpV[x >> 1] - 128; v 285 libavfilter/vf_colormatrix.c const int uvval = c2 * u + c3 * v + 1081344; v 290 libavfilter/vf_colormatrix.c dstpU[x >> 1] = CB((c4 * u + c5 * v + 8421376) >> 16); v 291 libavfilter/vf_colormatrix.c dstpV[x >> 1] = CB((c6 * u + c7 * v + 8421376) >> 16); v 261 libavfilter/vf_drawtext.c #define FT_ERRORDEF(e, v, s) { (e), (s) }, v 49 libavfilter/vf_eq.c double v = i / 255.0; v 50 libavfilter/vf_eq.c v = param->contrast * (v - 0.5) + 0.5 + param->brightness; v 52 libavfilter/vf_eq.c if (v <= 0.0) { v 55 libavfilter/vf_eq.c v = v * lw + pow(v, g) * param->gamma_weight; v 57 libavfilter/vf_eq.c if (v >= 1.0) v 60 libavfilter/vf_eq.c param->lut[i] = 256.0 * v; v 184 libavfilter/vf_fieldmatch.c static void fill_buf(uint8_t *data, int w, int h, int linesize, uint8_t v) v 189 libavfilter/vf_fieldmatch.c memset(data, v, w); v 322 libavfilter/vf_fieldmatch.c #define C_ARRAY_ADD(v) do { \ v 325 libavfilter/vf_fieldmatch.c c_array[temp1 + box1 ] += v; \ v 326 libavfilter/vf_fieldmatch.c c_array[temp1 + box2 + 1] += v; \ v 327 libavfilter/vf_fieldmatch.c c_array[temp2 + box1 + 2] += v; \ v 328 libavfilter/vf_fieldmatch.c c_array[temp2 + box2 + 3] += v; \ v 352 libavfilter/vf_fieldmatch.c int u, v, sum = 0; v 354 libavfilter/vf_fieldmatch.c for (v = 0; v < xhalf; v++) v 355 libavfilter/vf_fieldmatch.c if (cmkp_tmp[v - cmk_linesize] == 0xff && v 356 libavfilter/vf_fieldmatch.c cmkp_tmp[v ] == 0xff && v 357 libavfilter/vf_fieldmatch.c cmkp_tmp[v + cmk_linesize] == 0xff) v 176 libavfilter/vf_frei0r.c void *v; v 183 libavfilter/vf_frei0r.c v = &d; v 184 libavfilter/vf_frei0r.c s->get_param_value(s->instance, v, i); v 188 libavfilter/vf_frei0r.c v = &d; v 189 libavfilter/vf_frei0r.c s->get_param_value(s->instance, v, i); v 193 libavfilter/vf_frei0r.c v = &col; v 194 libavfilter/vf_frei0r.c s->get_param_value(s->instance, v, i); v 198 libavfilter/vf_frei0r.c v = &pos; v 199 libavfilter/vf_frei0r.c s->get_param_value(s->instance, v, i); v 203 libavfilter/vf_frei0r.c v = str; v 204 libavfilter/vf_frei0r.c s->get_param_value(s->instance, v, i); v 73 libavfilter/vf_gradfun.c int x, v, old; v 75 libavfilter/vf_gradfun.c v = buf1[x] + src[2 * x] + src[2 * x + 1] + src[2 * x + src_linesize] + src[2 * x + 1 + src_linesize]; v 77 libavfilter/vf_gradfun.c buf[x] = v; v 78 libavfilter/vf_gradfun.c dc[x] = v - old; v 99 libavfilter/vf_gradfun.c int x, v; v 101 libavfilter/vf_gradfun.c for (x = v = 0; x < r; x++) v 102 libavfilter/vf_gradfun.c v += dc[x]; v 104 libavfilter/vf_gradfun.c v += dc[x] - dc[x-r]; v 105 libavfilter/vf_gradfun.c dc[x-r] = v * dc_factor >> 16; v 108 libavfilter/vf_gradfun.c dc[x-r] = v * dc_factor >> 16; v 122 libavfilter/vf_hflip.c int32_t v = AV_RB24(in); v 123 libavfilter/vf_hflip.c AV_WB24(out, v); v 332 libavfilter/vf_histogram.c const int v = in->data[2][iw2 + j]; v 333 libavfilter/vf_histogram.c const int pos = u * out->linesize[0] + v; v 335 libavfilter/vf_histogram.c out->data[0][pos] = FFABS(128 - u) + FFABS(128 - v); v 337 libavfilter/vf_histogram.c out->data[2][pos] = v; v 518 libavfilter/vf_hqx.c const uint32_t v = (uint32_t)(( 500*rg - 81*bg)/1000) + 128; v 524 libavfilter/vf_hqx.c hqx->rgbtoyuv[c] = ((y++) << 16) + (u << 8) + v; v 125 libavfilter/vf_hue.c int32_t i, j, u, v, new_u, new_v; v 135 libavfilter/vf_hue.c v = j - 128; v 143 libavfilter/vf_hue.c new_u = ((c * u) - (s * v) + (1 << 15) + (128 << 16)) >> 16; v 144 libavfilter/vf_hue.c new_v = ((s * u) + (c * v) + (1 << 15) + (128 << 16)) >> 16; v 284 libavfilter/vf_hue.c const int v = vsrc[i]; v 286 libavfilter/vf_hue.c udst[i] = s->lut_u[u][v]; v 287 libavfilter/vf_hue.c vdst[i] = s->lut_v[u][v]; v 93 libavfilter/vf_idet.c int v = (*a++ + *c++) - 2 * *b++; v 94 libavfilter/vf_idet.c ret += FFABS(v); v 106 libavfilter/vf_idet.c int v = (*a++ + *c++) - 2 * *b++; v 107 libavfilter/vf_idet.c ret += FFABS(v); v 97 libavfilter/vf_lut3d.c struct rgbvec v = { v 100 libavfilter/vf_lut3d.c return v; v 172 libavfilter/vf_noise.c int v = src[i] + noise[i]; v 174 libavfilter/vf_noise.c dst[i] = av_clip_uint8(v); v 202 libavfilter/vf_owdenoise.c double v = s->plane[i + 1][j][y*s->linesize + x]; v 203 libavfilter/vf_owdenoise.c if (v > strength) v -= strength; v 204 libavfilter/vf_owdenoise.c else if (v < -strength) v += strength; v 205 libavfilter/vf_owdenoise.c else v = 0; v 206 libavfilter/vf_owdenoise.c s->plane[i + 1][j][x + y*s->linesize] = v; v 212 libavfilter/vf_perspective.c int u, v; v 216 libavfilter/vf_perspective.c v = (int)floor(SUB_PIXELS * (x3 * x + x4 * y + x5) / v 220 libavfilter/vf_perspective.c s->pv[x + y * w][1] = v; v 272 libavfilter/vf_perspective.c int u, v, subU, subV, sum, sx; v 276 libavfilter/vf_perspective.c v = s->pv[sx + sy * linesize][1] >> vsub; v 278 libavfilter/vf_perspective.c subV = v & (SUB_PIXELS - 1); v 280 libavfilter/vf_perspective.c v >>= SUB_PIXEL_BITS; v 282 libavfilter/vf_perspective.c if (u > 0 && v > 0 && u < w - 2 && v < h - 2){ v 283 libavfilter/vf_perspective.c const int index = u + v*src_linesize; v 303 libavfilter/vf_perspective.c int iy = v + dy - 1; v 351 libavfilter/vf_perspective.c int u, v, subU, subV, sum, sx, index, subUI, subVI; v 355 libavfilter/vf_perspective.c v = s->pv[sx + sy * linesize][1] >> vsub; v 357 libavfilter/vf_perspective.c subV = v & (SUB_PIXELS - 1); v 359 libavfilter/vf_perspective.c v >>= SUB_PIXEL_BITS; v 361 libavfilter/vf_perspective.c index = u + v * src_linesize; v 366 libavfilter/vf_perspective.c if((unsigned)v < (unsigned)(h - 1)){ v 371 libavfilter/vf_perspective.c if (v < 0) v 372 libavfilter/vf_perspective.c v = 0; v 374 libavfilter/vf_perspective.c v = h - 1; v 375 libavfilter/vf_perspective.c index = u + v * src_linesize; v 384 libavfilter/vf_perspective.c if ((unsigned)v < (unsigned)(h - 1)){ v 385 libavfilter/vf_perspective.c index = u + v * src_linesize; v 389 libavfilter/vf_perspective.c if (v < 0) v 390 libavfilter/vf_perspective.c v = 0; v 392 libavfilter/vf_perspective.c v = h - 1; v 393 libavfilter/vf_perspective.c index = u + v * src_linesize; v 256 libavfilter/vf_pp7.c int v; v 263 libavfilter/vf_pp7.c v = p->requantize(p, block, qp); v 264 libavfilter/vf_pp7.c v = (v + dither[y & 7][x & 7]) >> 6; v 265 libavfilter/vf_pp7.c if ((unsigned)v > 255) v 266 libavfilter/vf_pp7.c v = (-v) >> 31; v 267 libavfilter/vf_pp7.c dst[x + y * dst_stride] = v; v 389 libavfilter/vf_pullup.c int v = f->vars[i]; v 392 libavfilter/vf_pullup.c int lc = f-> combs[i] - 2*(v < lv ? v : lv); v 393 libavfilter/vf_pullup.c int rc = f->next->combs[i] - 2*(v < rv ? v : rv); v 315 libavfilter/vf_rotate.c int v; v 324 libavfilter/vf_rotate.c v = AV_RB24(pin); v 325 libavfilter/vf_rotate.c AV_WB24(pout, v); v 411 libavfilter/vf_rotate.c int32_t v; v 438 libavfilter/vf_rotate.c v = AV_RB24(pin); v 439 libavfilter/vf_rotate.c AV_WB24(pout, v); v 195 libavfilter/vf_transpose.c int32_t v = AV_RB24(src + x * srclinesize + y * 3); v 196 libavfilter/vf_transpose.c AV_WB24(dst + 3 * x, v); v 210 libavfilter/vf_transpose.c int64_t v = AV_RB48(src + x * srclinesize + y*6); v 211 libavfilter/vf_transpose.c AV_WB48(dst + 6*x, v); v 387 libavfilter/vf_xbr.c const uint32_t v = (uint32_t)(( 500*rg - 81*bg)/1000) + 128; v 393 libavfilter/vf_xbr.c xbr->rgbtoyuv[c] = ((y++) << 16) + (u << 8) + v; v 231 libavfilter/vsrc_cellauto.c int i, v, pos[3]; v 244 libavfilter/vsrc_cellauto.c v = prev_row[pos[NW]]<<2 | prev_row[pos[N]]<<1 | prev_row[pos[NE]]; v 246 libavfilter/vsrc_cellauto.c v = 0; v 247 libavfilter/vsrc_cellauto.c v|= i-1 >= 0 ? prev_row[i-1]<<2 : 0; v 248 libavfilter/vsrc_cellauto.c v|= prev_row[i ]<<1 ; v 249 libavfilter/vsrc_cellauto.c v|= i+1 < cellauto->w ? prev_row[i+1] : 0; v 251 libavfilter/vsrc_cellauto.c row[i] = !!(cellauto->rule & (1<<v)); v 253 libavfilter/vsrc_cellauto.c v&4?'@':' ', v&2?'@':' ', v&1?'@':' ', row[i]); v 380 libavfilter/vsrc_life.c uint8_t v = buf[i*life->w + j]; v 381 libavfilter/vsrc_life.c if (life->mold && v != ALIVE_CELL) { v 384 libavfilter/vsrc_life.c int death_age = FFMIN((0xff - v) * life->mold, 0xff); v 389 libavfilter/vsrc_life.c const uint8_t *c = v == ALIVE_CELL ? life->life_color : life->death_color; v 691 libavfilter/vsrc_testsrc.c int32_t v; v 703 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)); v 705 libavfilter/vsrc_testsrc.c AV_WL24(p, v); v 711 libavfilter/vsrc_testsrc.c v = (r << (rgba_map[R]*8)) + (g << (rgba_map[G]*8)) + (b << (rgba_map[B]*8)) + (255 << (rgba_map[A]*8)); v 713 libavfilter/vsrc_testsrc.c AV_WL32(p, v); v 35 libavformat/asfcrypt.c static uint32_t inverse(uint32_t v) v 39 libavformat/asfcrypt.c uint32_t inverse = v * v * v; v 42 libavformat/asfcrypt.c inverse *= 2 - v * inverse; v 43 libavformat/asfcrypt.c inverse *= 2 - v * inverse; v 44 libavformat/asfcrypt.c inverse *= 2 - v * inverse; v 75 libavformat/asfcrypt.c static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v) v 78 libavformat/asfcrypt.c v *= keys[0]; v 80 libavformat/asfcrypt.c v = (v >> 16) | (v << 16); v 81 libavformat/asfcrypt.c v *= keys[i]; v 83 libavformat/asfcrypt.c v += keys[5]; v 84 libavformat/asfcrypt.c return v; v 87 libavformat/asfcrypt.c static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v) v 90 libavformat/asfcrypt.c v -= keys[5]; v 92 libavformat/asfcrypt.c v *= keys[i]; v 93 libavformat/asfcrypt.c v = (v >> 16) | (v << 16); v 95 libavformat/asfcrypt.c v *= keys[0]; v 96 libavformat/asfcrypt.c return v; v 120 libavformat/dump.c uint64_t v = lrintf(d * 100); v 121 libavformat/dump.c if (v % 100) v 123 libavformat/dump.c else if (v % (100 * 1000)) v 44 libavformat/gif.c const uint32_t v = palette[i]; v 45 libavformat/gif.c if (v >> 24 < smallest_alpha) { v 46 libavformat/gif.c smallest_alpha = v >> 24; v 78 libavformat/gif.c const uint32_t v = palette[i] & 0xffffff; v 79 libavformat/gif.c avio_wb24(pb, v); v 1020 libavformat/hls.c struct playlist *v = opaque; v 1021 libavformat/hls.c HLSContext *c = v->parent->priv_data; v 1026 libavformat/hls.c if (!v->needed) v 1029 libavformat/hls.c if (!v->input) { v 1034 libavformat/hls.c if (v->ctx && v->ctx->nb_streams && v 1035 libavformat/hls.c v->parent->nb_streams >= v->stream_offset + v->ctx->nb_streams) { v 1036 libavformat/hls.c v->needed = 0; v 1037 libavformat/hls.c for (i = v->stream_offset; i < v->stream_offset + v->ctx->nb_streams; v 1039 libavformat/hls.c if (v->parent->streams[i]->discard < AVDISCARD_ALL) v 1040 libavformat/hls.c v->needed = 1; v 1043 libavformat/hls.c if (!v->needed) { v 1044 libavformat/hls.c av_log(v->parent, AV_LOG_INFO, "No longer receiving playlist %d\n", v 1045 libavformat/hls.c v->index); v 1051 libavformat/hls.c reload_interval = default_reload_interval(v); v 1054 libavformat/hls.c if (!v->finished && v 1055 libavformat/hls.c av_gettime_relative() - v->last_load_time >= reload_interval) { v 1056 libavformat/hls.c if ((ret = parse_playlist(c, v->url, v, NULL)) < 0) { v 1057 libavformat/hls.c av_log(v->parent, AV_LOG_WARNING, "Failed to reload playlist %d\n", v 1058 libavformat/hls.c v->index); v 1064 libavformat/hls.c reload_interval = v->target_duration / 2; v 1066 libavformat/hls.c if (v->cur_seq_no < v->start_seq_no) { v 1069 libavformat/hls.c v->start_seq_no - v->cur_seq_no); v 1070 libavformat/hls.c v->cur_seq_no = v->start_seq_no; v 1072 libavformat/hls.c if (v->cur_seq_no >= v->start_seq_no + v->n_segments) { v 1073 libavformat/hls.c if (v->finished) v 1075 libavformat/hls.c while (av_gettime_relative() - v->last_load_time < reload_interval) { v 1084 libavformat/hls.c ret = open_input(c, v); v 1086 libavformat/hls.c av_log(v->parent, AV_LOG_WARNING, "Failed to open segment of playlist %d\n", v 1087 libavformat/hls.c v->index); v 1093 libavformat/hls.c ret = read_from_url(v, buf, buf_size, READ_NORMAL); v 1095 libavformat/hls.c if (just_opened && v->is_id3_timestamped != 0) { v 1098 libavformat/hls.c intercept_id3(v, buf, buf_size, &ret); v 1103 libavformat/hls.c ffurl_close(v->input); v 1104 libavformat/hls.c v->input = NULL; v 1105 libavformat/hls.c v->cur_seq_no++; v 1107 libavformat/hls.c c->cur_seq_no = v->cur_seq_no; v 1118 libavformat/hls.c struct variant *v = c->variants[i]; v 1120 libavformat/hls.c for (j = 0; j < v->n_playlists; j++) { v 1121 libavformat/hls.c if (v->playlists[j] == pls) { v 1405 libavformat/hls.c struct variant *v = c->variants[i]; v 1411 libavformat/hls.c av_dict_set_int(&program->metadata, "variant_bitrate", v->bandwidth, 0); v 1413 libavformat/hls.c for (j = 0; j < v->n_playlists; j++) { v 1414 libavformat/hls.c struct playlist *pls = v->playlists[j]; v 1424 libavformat/hls.c if (!is_shared && v->bandwidth) v 1425 libavformat/hls.c av_dict_set_int(&st->metadata, "variant_bitrate", v->bandwidth, 0); v 168 libavformat/id3v2.c int v = 0; v 170 libavformat/id3v2.c v = (v << 7) + (avio_r8(s) & 0x7F); v 171 libavformat/id3v2.c return v; v 138 libavformat/mp3dec.c uint32_t v; v 151 libavformat/mp3dec.c v = avio_rb32(s->pb); v 152 libavformat/mp3dec.c mp3->is_cbr = v == MKBETAG('I', 'n', 'f', 'o'); v 153 libavformat/mp3dec.c if (v != MKBETAG('X', 'i', 'n', 'g') && !mp3->is_cbr) v 156 libavformat/mp3dec.c v = avio_rb32(s->pb); v 157 libavformat/mp3dec.c if (v & XING_FLAG_FRAMES) v 159 libavformat/mp3dec.c if (v & XING_FLAG_SIZE) v 172 libavformat/mp3dec.c if (v & XING_FLAG_TOC) v 177 libavformat/mp3dec.c if (v & XING_FLAC_QSCALE) v 191 libavformat/mp3dec.c v = avio_rb32(s->pb); v 192 libavformat/mp3dec.c peak = av_rescale(v, 100000, 1 << 23); v 195 libavformat/mp3dec.c v = avio_rb16(s->pb); v 197 libavformat/mp3dec.c if (MIDDLE_BITS(v, 13, 15) == 1) { v 198 libavformat/mp3dec.c r_gain = MIDDLE_BITS(v, 0, 8) * 10000; v 200 libavformat/mp3dec.c if (v & (1 << 9)) v 205 libavformat/mp3dec.c v = avio_rb16(s->pb); v 207 libavformat/mp3dec.c if (MIDDLE_BITS(v, 13, 15) == 2) { v 208 libavformat/mp3dec.c a_gain = MIDDLE_BITS(v, 0, 8) * 10000; v 210 libavformat/mp3dec.c if (v & (1 << 9)) v 221 libavformat/mp3dec.c v= avio_rb24(s->pb); v 227 libavformat/mp3dec.c mp3->start_pad = v>>12; v 228 libavformat/mp3dec.c mp3-> end_pad = v&4095; v 258 libavformat/mp3dec.c v = avio_rb16(s->pb); v 260 libavformat/mp3dec.c if (v == crc) { v 268 libavformat/mp3dec.c uint32_t v; v 273 libavformat/mp3dec.c v = avio_rb32(s->pb); v 274 libavformat/mp3dec.c if (v == MKBETAG('V', 'B', 'R', 'I')) { v 290 libavformat/mp3dec.c uint32_t v, spf; v 297 libavformat/mp3dec.c v = avio_rb32(s->pb); v 298 libavformat/mp3dec.c if(ff_mpa_check_header(v) < 0) v 301 libavformat/mp3dec.c if (avpriv_mpegaudio_decode_header(&c, v) == 0) v 332 libavformat/mp3enc.c uint32_t v = AV_RB32(pkt->data + base); v 334 libavformat/mp3enc.c if (MKBETAG('X','i','n','g') == v || MKBETAG('I','n','f','o') == v) v 60 libavformat/mpc8.c uint64_t v = 0; v 66 libavformat/mpc8.c v <<= 7; v 67 libavformat/mpc8.c v |= c & 0x7F; v 73 libavformat/mpc8.c return v - br; v 111 libavformat/mpc8.c uint64_t v = 0; v 114 libavformat/mpc8.c v <<= 7; v 115 libavformat/mpc8.c v |= get_bits(gb, 7); v 118 libavformat/mpc8.c v <<= 7; v 119 libavformat/mpc8.c v |= get_bits(gb, 7); v 121 libavformat/mpc8.c return v; v 169 libavformat/mpeg.c unsigned int state, v; v 177 libavformat/mpeg.c v = avio_r8(pb); v 180 libavformat/mpeg.c state = ((state << 8) | v) & 0xffffff; v 184 libavformat/mpeg.c state = ((state << 8) | v) & 0xffffff; v 2424 libavformat/mpegts.c unsigned int v; v 2440 libavformat/mpegts.c v = AV_RB32(p); v 2441 libavformat/mpegts.c *ppcr_high = ((int64_t) v << 1) | (p[4] >> 7); v 76 libavformat/mvdec.c int v; v 80 libavformat/mvdec.c v = strtol(s, NULL, 10); v 82 libavformat/mvdec.c return v; v 87 libavformat/mvdec.c AVRational v; v 91 libavformat/mvdec.c v = av_d2q(av_strtod(s, NULL), INT_MAX); v 93 libavformat/mvdec.c return v; v 283 libavformat/mvdec.c int v; v 299 libavformat/mvdec.c v = avio_rb32(pb); v 300 libavformat/mvdec.c switch (v) { v 309 libavformat/mvdec.c avpriv_request_sample(avctx, "Video compression %i", v); v 324 libavformat/mvdec.c v = avio_rb32(pb); v 325 libavformat/mvdec.c if (v == AUDIO_FORMAT_SIGNED) { v 328 libavformat/mvdec.c avpriv_request_sample(avctx, "Audio compression (format %i)", v); v 227 libavformat/nsvdec.c uint32_t v = 0; v 240 libavformat/nsvdec.c v <<= 8; v 241 libavformat/nsvdec.c v |= avio_r8(pb); v 243 libavformat/nsvdec.c av_dlog(s, "NSV resync: [%d] = %02x\n", i, v & 0x0FF); v 246 libavformat/nsvdec.c if ((v & 0x0000ffff) == 0xefbe) { /* BEEF */ v 252 libavformat/nsvdec.c if (v == TB_NSVF) { /* NSVf */ v 257 libavformat/nsvdec.c if (v == MKBETAG('N', 'S', 'V', 's')) { /* NSVs */ v 63 libavformat/nutdec.c int64_t v = ffio_read_varlen(bc) + 1; v 65 libavformat/nutdec.c if (v & 1) v 66 libavformat/nutdec.c return -(v >> 1); v 68 libavformat/nutdec.c return (v >> 1); v 89 libavformat/nutdec.c uint64_t v = ffio_read_varlen(bc); v 92 libavformat/nutdec.c v, v, file, func, line); v 93 libavformat/nutdec.c return v; v 99 libavformat/nutdec.c int64_t v = get_s(bc); v 102 libavformat/nutdec.c v, v, file, func, line); v 103 libavformat/nutdec.c return v; v 109 libavformat/nutdec.c uint64_t v = get_fourcc(bc); v 112 libavformat/nutdec.c v, v, file, func, line); v 113 libavformat/nutdec.c return v; v 295 libavformat/nutenc.c static inline void ff_put_v_trace(AVIOContext *bc, uint64_t v, const char *file, v 298 libavformat/nutenc.c av_log(NULL, AV_LOG_DEBUG, "ff_put_v %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line); v 300 libavformat/nutenc.c ff_put_v(bc, v); v 303 libavformat/nutenc.c static inline void put_s_trace(AVIOContext *bc, int64_t v, const char *file, const char *func, int line) v 305 libavformat/nutenc.c av_log(NULL, AV_LOG_DEBUG, "put_s %5"PRId64" / %"PRIX64" in %s %s:%d\n", v, v, file, func, line); v 307 libavformat/nutenc.c put_s(bc, v); v 309 libavformat/nutenc.c #define ff_put_v(bc, v) ff_put_v_trace(bc, v, __FILE__, __PRETTY_FUNCTION__, __LINE__) v 310 libavformat/nutenc.c #define put_s(bc, v) put_s_trace(bc, v, __FILE__, __PRETTY_FUNCTION__, __LINE__) v 110 libavformat/oggparsevorbis.c const char *t, *v; v 122 libavformat/oggparsevorbis.c v = memchr(t, '=', s); v 123 libavformat/oggparsevorbis.c if (!v) v 126 libavformat/oggparsevorbis.c tl = v - t; v 128 libavformat/oggparsevorbis.c v++; v 145 libavformat/oggparsevorbis.c memcpy(ct, v, vl); v 316 libavformat/rmdec.c unsigned int v; v 328 libavformat/rmdec.c v = avio_rb32(pb); v 330 libavformat/rmdec.c if (v == MKBETAG('M', 'L', 'T', 'I')) { v 341 libavformat/rmdec.c v = avio_rb32(pb); v 344 libavformat/rmdec.c if (v == MKTAG(0xfd, 'a', 'r', '.')) { v 348 libavformat/rmdec.c } else if (v == MKBETAG('L', 'S', 'D', ':')) { v 388 libavformat/rmdec.c av_log(s, AV_LOG_WARNING, "Unsupported stream type %08x\n", v); v 78 libavformat/rmenc.c int bit_rate, v, duration, flags, data_pos; v 105 libavformat/rmenc.c v = (int) (1000.0 * (float)stream->total_frames / stream->frame_rate); v 106 libavformat/rmenc.c if (v > duration) v 107 libavformat/rmenc.c duration = v; v 830 libavformat/rtsp.c int v; v 834 libavformat/rtsp.c v = strtol(q, &p, 10); v 837 libavformat/rtsp.c *min_ptr = v; v 838 libavformat/rtsp.c v = strtol(p, &p, 10); v 839 libavformat/rtsp.c *max_ptr = v; v 841 libavformat/rtsp.c *min_ptr = v; v 842 libavformat/rtsp.c *max_ptr = v; v 352 libavformat/sbgdec.c double v; v 374 libavformat/sbgdec.c v = strtod(oarg.s, &tptr); v 380 libavformat/sbgdec.c p->scs.opt_fade_time = v * AV_TIME_BASE / 1000; v 412 libavformat/sbgdec.c v = strtod(oarg.s, &tptr); v 418 libavformat/sbgdec.c if (v != 1) { v 605 libavformat/sbgdec.c double v; v 609 libavformat/sbgdec.c if (!lex_double(p, &v)) v 611 libavformat/sbgdec.c if (scale_double(p->log, v, 0.01, vol)) v 1341 libavformat/sbgdec.c #define ADD_EDATA32(v) do { AV_WL32(edata, (v)); edata += 4; } while(0) v 1342 libavformat/sbgdec.c #define ADD_EDATA64(v) do { AV_WL64(edata, (v)); edata += 8; } while(0) v 33 libavformat/seek-test.c static const char *ret_str(int v) v 35 libavformat/seek-test.c switch (v) { v 41 libavformat/seek-test.c snprintf(buffer, sizeof(buffer), "%2d", v); v 34 libavformat/srtdec.c int v; v 53 libavformat/srtdec.c && sscanf(buf, "%*d:%*2d:%*2d%*1[,.]%*3d --> %*d:%*2d:%*2d%*1[,.]%3d", &v) == 1) v 153 libavformat/srtp.c uint32_t v; v 158 libavformat/srtp.c v = roc = s->roc; v 161 libavformat/srtp.c v = roc - 1; v 164 libavformat/srtp.c v = roc + 1; v 166 libavformat/srtp.c if (v == roc) { v 168 libavformat/srtp.c } else if (v == roc + 1) { v 170 libavformat/srtp.c roc = v; v 172 libavformat/srtp.c index = seq + (((uint64_t)v) << 16); v 195 libavformat/swfdec.c int tag, len, i, frame, v, res; v 244 libavformat/swfdec.c v = avio_r8(pb); v 246 libavformat/swfdec.c ast = create_new_audio_stream(s, -1, v); /* -1 to avoid clash with video stream ch_id */ v 263 libavformat/swfdec.c v = avio_r8(pb); v 264 libavformat/swfdec.c ast = create_new_audio_stream(s, ch_id, v); v 268 libavformat/swfdec.c if (((v>>4) & 15) == 2) { // MP3 sound data record v 315 libavformat/swfenc.c int v = 0; v 320 libavformat/swfenc.c case 11025: v |= 1 << 2; break; v 321 libavformat/swfenc.c case 22050: v |= 2 << 2; break; v 322 libavformat/swfenc.c case 44100: v |= 3 << 2; break; v 328 libavformat/swfenc.c v |= 0x02; /* 16 bit playback */ v 330 libavformat/swfenc.c v |= 0x01; /* stereo playback */ v 331 libavformat/swfenc.c avio_w8(s->pb, v); v 332 libavformat/swfenc.c v |= 0x20; /* mp3 compressed */ v 333 libavformat/swfenc.c avio_w8(s->pb, v); v 3964 libavformat/utils.c int c, len, v; v 3967 libavformat/utils.c v = 1; v 3979 libavformat/utils.c v = (v << 4) | c; v 3980 libavformat/utils.c if (v & 0x100) { v 3982 libavformat/utils.c data[len] = v; v 3984 libavformat/utils.c v = 1; v 195 libavresample/audio_mix.c float v; v 203 libavresample/audio_mix.c v = *src++; v 204 libavresample/audio_mix.c *dst0++ = v * m0; v 205 libavresample/audio_mix.c *dst1++ = v * m1; v 206 libavresample/audio_mix.c v = *src++; v 207 libavresample/audio_mix.c *dst0++ = v * m0; v 208 libavresample/audio_mix.c *dst1++ = v * m1; v 209 libavresample/audio_mix.c v = *src++; v 210 libavresample/audio_mix.c *dst0++ = v * m0; v 211 libavresample/audio_mix.c *dst1++ = v * m1; v 212 libavresample/audio_mix.c v = *src++; v 213 libavresample/audio_mix.c *dst0++ = v * m0; v 214 libavresample/audio_mix.c *dst1++ = v * m1; v 218 libavresample/audio_mix.c v = *src++; v 219 libavresample/audio_mix.c *dst0++ = v * m0; v 220 libavresample/audio_mix.c *dst1++ = v * m1; v 688 libavresample/audio_mix.c double v; \ v 691 libavresample/audio_mix.c v = matrix[o * stride + i]; \ v 702 libavresample/audio_mix.c CONVERT_MATRIX(q8, av_clip_int16(lrint(256.0 * v))) v 705 libavresample/audio_mix.c CONVERT_MATRIX(q15, av_clipl_int32(llrint(32768.0 * v))) v 708 libavresample/audio_mix.c CONVERT_MATRIX(flt, v) v 45 libavresample/avresample-test.c type v = expr; \ v 48 libavresample/avresample-test.c out[ch][sample] = v; \ v 50 libavresample/avresample-test.c out[0][sample * channels + ch] = v; \ v 85 libavresample/avresample-test.c double v, f, a, ampa; v 90 libavresample/avresample-test.c #define PUT_SAMPLE put_sample(data, sample_fmt, channels, k, ch, v); v 97 libavresample/avresample-test.c v = sin(a) * 0.30; v 106 libavresample/avresample-test.c v = sin(a) * 0.30; v 115 libavresample/avresample-test.c v = dbl_rand(rnd) * 0.30; v 122 libavresample/avresample-test.c v = dbl_rand(rnd); v 135 libavresample/avresample-test.c v = sin(taba[ch]) * 0.30; v 150 libavresample/avresample-test.c v = sin(a) * amp; v 52 libavresample/resample.c double v = 1; v 58 libavresample/resample.c for (i = 1; v != lastv; i++) { v 59 libavresample/resample.c lastv = v; v 61 libavresample/resample.c v += t; v 63 libavresample/resample.c return v; v 32 libavresample/resample_template.c #define OUT(d, v) d = v v 33 libavresample/resample_template.c #define DBL_TO_FELEM(d, v) d = v v 39 libavresample/resample_template.c #define OUT(d, v) d = v v 40 libavresample/resample_template.c #define DBL_TO_FELEM(d, v) d = v v 46 libavresample/resample_template.c #define OUT(d, v) d = av_clipl_int32((v + (1 << 29)) >> 30) v 47 libavresample/resample_template.c #define DBL_TO_FELEM(d, v) d = av_clipl_int32(llrint(v * (1 << 30))); v 53 libavresample/resample_template.c #define OUT(d, v) d = av_clip_int16((v + (1 << 14)) >> 15) v 54 libavresample/resample_template.c #define DBL_TO_FELEM(d, v) d = av_clip_int16(lrint(v * (1 << 15))) v 61 libavutil/adler32.c uint64_t v = AV_RN64(buf); v 64 libavutil/adler32.c a1 += v &0x00FF00FF00FF00FF; v 65 libavutil/adler32.c b1 += (v>>8)&0x00FF00FF00FF00FF; v 32 libavutil/arm/intreadwrite.h unsigned v; v 34 libavutil/arm/intreadwrite.h __asm__ ("ldrh %0, %1" : "=r"(v) : "m"(*(const uint16_t *)q)); v 36 libavutil/arm/intreadwrite.h __asm__ ("ldrh %0, %1" : "=r"(v) : "m"(q[0]), "m"(q[1])); v 38 libavutil/arm/intreadwrite.h __asm__ ("ldrh %0, %1" : "=r"(v) : "Uq"(q[0]), "m"(q[1])); v 40 libavutil/arm/intreadwrite.h return v; v 44 libavutil/arm/intreadwrite.h static av_always_inline void AV_WN16(void *p, uint16_t v) v 46 libavutil/arm/intreadwrite.h __asm__ ("strh %1, %0" : "=m"(*(uint16_t *)p) : "r"(v)); v 52 libavutil/arm/intreadwrite.h const struct __attribute__((packed)) { uint32_t v; } *q = p; v 53 libavutil/arm/intreadwrite.h uint32_t v; v 54 libavutil/arm/intreadwrite.h __asm__ ("ldr %0, %1" : "=r"(v) : "m"(*q)); v 55 libavutil/arm/intreadwrite.h return v; v 59 libavutil/arm/intreadwrite.h static av_always_inline void AV_WN32(void *p, uint32_t v) v 61 libavutil/arm/intreadwrite.h __asm__ ("str %1, %0" : "=m"(*(uint32_t *)p) : "r"(v)); v 69 libavutil/arm/intreadwrite.h const struct __attribute__((packed)) { uint32_t v; } *q = p; v 70 libavutil/arm/intreadwrite.h uint64_t v; v 73 libavutil/arm/intreadwrite.h : "=&r"(v) v 75 libavutil/arm/intreadwrite.h return v; v 79 libavutil/arm/intreadwrite.h static av_always_inline void AV_WN64(void *p, uint64_t v) v 84 libavutil/arm/intreadwrite.h : "r"(v)); v 45 libavutil/avr32/intreadwrite.h uint16_t v; v 48 libavutil/avr32/intreadwrite.h : "=&r"(v) v 50 libavutil/avr32/intreadwrite.h return v; v 56 libavutil/avr32/intreadwrite.h uint16_t v; v 59 libavutil/avr32/intreadwrite.h : "=&r"(v) v 61 libavutil/avr32/intreadwrite.h return v; v 67 libavutil/avr32/intreadwrite.h uint32_t v; v 71 libavutil/avr32/intreadwrite.h : "=&r"(v) v 75 libavutil/avr32/intreadwrite.h return v; v 81 libavutil/avr32/intreadwrite.h uint32_t v; v 85 libavutil/avr32/intreadwrite.h : "=&r"(v) v 89 libavutil/avr32/intreadwrite.h return v; v 97 libavutil/avr32/intreadwrite.h uint32_t v; v 98 libavutil/avr32/intreadwrite.h __asm__ ("ld.w %0, %1" : "=r"(v) : "m"(*(const uint32_t*)p)); v 99 libavutil/avr32/intreadwrite.h return v; v 103 libavutil/avr32/intreadwrite.h static av_always_inline void AV_WB32(void *p, uint32_t v) v 105 libavutil/avr32/intreadwrite.h __asm__ ("st.w %0, %1" : "=m"(*(uint32_t*)p) : "r"(v)); v 110 libavutil/avr32/intreadwrite.h #define AV_WL32(p, v) AV_WB32(p, av_bswap32(v)) v 113 libavutil/avr32/intreadwrite.h static av_always_inline void AV_WB64(void *p, uint64_t v) v 115 libavutil/avr32/intreadwrite.h union { uint64_t v; uint32_t hl[2]; } vv = { v }; v 121 libavutil/avr32/intreadwrite.h static av_always_inline void AV_WL64(void *p, uint64_t v) v 123 libavutil/avr32/intreadwrite.h union { uint64_t v; uint32_t hl[2]; } vv = { v }; v 133 libavutil/avr32/intreadwrite.h uint32_t v; v 138 libavutil/avr32/intreadwrite.h : "=&r"(v) v 143 libavutil/avr32/intreadwrite.h return v; v 149 libavutil/avr32/intreadwrite.h uint32_t v; v 154 libavutil/avr32/intreadwrite.h : "=&r"(v) v 159 libavutil/avr32/intreadwrite.h return v; v 167 libavutil/avr32/intreadwrite.h union { uint64_t v; uint32_t hl[2]; } v; v 168 libavutil/avr32/intreadwrite.h v.hl[0] = AV_RB32(p); v 169 libavutil/avr32/intreadwrite.h v.hl[1] = AV_RB32((const uint32_t*)p+1); v 170 libavutil/avr32/intreadwrite.h return v.v; v 176 libavutil/avr32/intreadwrite.h union { uint64_t v; uint32_t hl[2]; } v; v 177 libavutil/avr32/intreadwrite.h v.hl[1] = AV_RL32(p); v 178 libavutil/avr32/intreadwrite.h v.hl[0] = AV_RL32((const uint32_t*)p+1); v 179 libavutil/avr32/intreadwrite.h return v.v; v 76 libavutil/base64.c v = i ? (v << 6) + bits : bits; \ v 86 libavutil/base64.c unsigned v; v 94 libavutil/base64.c v = av_be2ne32(v << 8); v 95 libavutil/base64.c AV_WN32(dst, v); v 104 libavutil/base64.c *dst++ = v >> 16; v 106 libavutil/base64.c *dst++ = v >> 8; v 108 libavutil/base64.c *dst++ = v; v 123 libavutil/base64.c *dst++ = v >> 10; v 124 libavutil/base64.c v <<= 2; v 126 libavutil/base64.c *dst++ = v >> 4; v 91 libavutil/common.h av_const int av_log2(unsigned v); v 95 libavutil/common.h av_const int av_log2_16bit(unsigned v); v 228 libavutil/des.c uint8_t v = S_boxes[i][tmp >> 1]; v 229 libavutil/des.c if (tmp & 1) v >>= 4; v 230 libavutil/des.c out = (out >> 4) | (v << 28); v 430 libavutil/des.c uint32_t v = S_boxes[i][j >> 1]; v 431 libavutil/des.c v = j & 1 ? v >> 4 : v & 0xf; v 432 libavutil/des.c v <<= 28 - 4 * i; v 433 libavutil/des.c v = shuffle(v, P_shuffle, sizeof(P_shuffle)); v 435 libavutil/des.c printf("0x%08X,", v); v 164 libavutil/eval.c static double etime(double v) v 223 libavutil/eval.c double t = 1, d = 0, v; v 231 libavutil/eval.c v = eval_expr(p, e->param[0]); v 232 libavutil/eval.c d += t*v; v 233 libavutil/eval.c if(ld==d && v) v 242 libavutil/eval.c double low = -1, high = -1, v, low_v = -DBL_MAX, high_v = DBL_MAX; v 254 libavutil/eval.c v = eval_expr(p, e->param[0]); v 255 libavutil/eval.c if (v<=0 && v>low_v) { v 257 libavutil/eval.c low_v = v; v 259 libavutil/eval.c if (v>=0 && v<high_v) { v 261 libavutil/eval.c high_v = v; v 268 libavutil/eval.c v = eval_expr(p, e->param[0]); v 269 libavutil/eval.c if (v<=0) low = p->var[0]; v 270 libavutil/eval.c if (v>=0) high= p->var[0]; v 271 libavutil/eval.c if (isnan(v)) { v 272 libavutil/eval.c low = high = v; v 194 libavutil/fifo.c int *v = (int *)av_fifo_peek2(fifo, i * sizeof(int)); v 195 libavutil/fifo.c printf("%d: %d\n", i, *v); v 36 libavutil/integer.c carry= (carry>>16) + a.v[i] + b.v[i]; v 37 libavutil/integer.c a.v[i]= carry; v 46 libavutil/integer.c carry= (carry>>16) + a.v[i] - b.v[i]; v 47 libavutil/integer.c a.v[i]= carry; v 56 libavutil/integer.c if(a.v[i]) v 57 libavutil/integer.c return av_log2_16bit(a.v[i]) + 16*i; v 73 libavutil/integer.c if(a.v[i]) v 75 libavutil/integer.c carry= (carry>>16) + out.v[j] + a.v[i]*b.v[j-i]; v 76 libavutil/integer.c out.v[j]= carry; v 85 libavutil/integer.c int v= (int16_t)a.v[AV_INTEGER_SIZE-1] - (int16_t)b.v[AV_INTEGER_SIZE-1]; v 86 libavutil/integer.c if(v) return (v>>16)|1; v 89 libavutil/integer.c int v= a.v[i] - b.v[i]; v 90 libavutil/integer.c if(v) return (v>>16)|1; v 101 libavutil/integer.c unsigned int v=0; v 102 libavutil/integer.c if(index+1<AV_INTEGER_SIZE) v = a.v[index+1]<<16; v 103 libavutil/integer.c if(index <AV_INTEGER_SIZE) v+= a.v[index ]; v 104 libavutil/integer.c out.v[i]= v >> (s&15); v 114 libavutil/integer.c av_assert2((int16_t)a.v[AV_INTEGER_SIZE-1] >= 0 && (int16_t)b.v[AV_INTEGER_SIZE-1] >= 0); v 126 libavutil/integer.c quot->v[0] += 1; v 144 libavutil/integer.c out.v[i]= a; v 152 libavutil/integer.c int64_t out=(int8_t)a.v[AV_INTEGER_SIZE-1]; v 155 libavutil/integer.c out = (out<<16) + a.v[i]; v 37 libavutil/integer.h uint16_t v[AV_INTEGER_SIZE]; v 88 libavutil/internal.h void av_##name##_set_##field(str *s, type v) { s->field = v; } v 101 libavutil/internal.h #define LOCAL_ALIGNED_A(a, t, v, s, o, ...) \ v 102 libavutil/internal.h uint8_t la_##v[sizeof(t s o) + (a)]; \ v 103 libavutil/internal.h t (*v) o = (void *)FFALIGN((uintptr_t)la_##v, a) v 105 libavutil/internal.h #define LOCAL_ALIGNED_D(a, t, v, s, o, ...) \ v 106 libavutil/internal.h DECLARE_ALIGNED(a, t, la_##v) s o; \ v 107 libavutil/internal.h t (*v) o = la_##v v 109 libavutil/internal.h #define LOCAL_ALIGNED(a, t, v, ...) E1(LOCAL_ALIGNED_A(a, t, v, __VA_ARGS__,,)) v 112 libavutil/internal.h # define LOCAL_ALIGNED_8(t, v, ...) E1(LOCAL_ALIGNED_D(8, t, v, __VA_ARGS__,,)) v 114 libavutil/internal.h # define LOCAL_ALIGNED_8(t, v, ...) LOCAL_ALIGNED(8, t, v, __VA_ARGS__) v 118 libavutil/internal.h # define LOCAL_ALIGNED_16(t, v, ...) E1(LOCAL_ALIGNED_D(16, t, v, __VA_ARGS__,,)) v 120 libavutil/internal.h # define LOCAL_ALIGNED_16(t, v, ...) LOCAL_ALIGNED(16, t, v, __VA_ARGS__) v 124 libavutil/internal.h # define LOCAL_ALIGNED_32(t, v, ...) E1(LOCAL_ALIGNED_D(32, t, v, __VA_ARGS__,,)) v 126 libavutil/internal.h # define LOCAL_ALIGNED_32(t, v, ...) LOCAL_ALIGNED(32, t, v, __VA_ARGS__) v 42 libavutil/intfloat.h union av_intfloat32 v; v 43 libavutil/intfloat.h v.i = i; v 44 libavutil/intfloat.h return v.f; v 52 libavutil/intfloat.h union av_intfloat32 v; v 53 libavutil/intfloat.h v.f = f; v 54 libavutil/intfloat.h return v.i; v 62 libavutil/intfloat.h union av_intfloat64 v; v 63 libavutil/intfloat.h v.i = i; v 64 libavutil/intfloat.h return v.f; v 72 libavutil/intfloat.h union av_intfloat64 v; v 73 libavutil/intfloat.h v.f = f; v 74 libavutil/intfloat.h return v.i; v 26 libavutil/intmath.c int av_log2(unsigned v) v 28 libavutil/intmath.c return ff_log2(v); v 31 libavutil/intmath.c int av_log2_16bit(unsigned v) v 33 libavutil/intmath.c return ff_log2_16bit(v); v 36 libavutil/intmath.c int av_ctz(int v) v 38 libavutil/intmath.c return ff_ctz(v); v 64 libavutil/intmath.h static av_always_inline av_const int ff_log2_c(unsigned int v) v 67 libavutil/intmath.h if (v & 0xffff0000) { v 68 libavutil/intmath.h v >>= 16; v 71 libavutil/intmath.h if (v & 0xff00) { v 72 libavutil/intmath.h v >>= 8; v 75 libavutil/intmath.h n += ff_log2_tab[v]; v 80 libavutil/intmath.h static av_always_inline av_const int ff_log2_c(unsigned int v) v 83 libavutil/intmath.h _BitScanReverse(&n, v|1); v 92 libavutil/intmath.h static av_always_inline av_const int ff_log2_16bit_c(unsigned int v) v 95 libavutil/intmath.h if (v & 0xff00) { v 96 libavutil/intmath.h v >>= 8; v 99 libavutil/intmath.h n += ff_log2_tab[v]; v 120 libavutil/intmath.h #define ff_ctz(v) __builtin_ctz(v) v 124 libavutil/intmath.h #define ff_ctz(v) _bit_scan_forward(v) v 132 libavutil/intmath.h static av_always_inline av_const int ff_ctz_c(int v) v 136 libavutil/intmath.h if (v & 0x1) v 140 libavutil/intmath.h if (!(v & 0xffff)) { v 141 libavutil/intmath.h v >>= 16; v 144 libavutil/intmath.h if (!(v & 0xff)) { v 145 libavutil/intmath.h v >>= 8; v 148 libavutil/intmath.h if (!(v & 0xf)) { v 149 libavutil/intmath.h v >>= 4; v 152 libavutil/intmath.h if (!(v & 0x3)) { v 153 libavutil/intmath.h v >>= 2; v 156 libavutil/intmath.h c -= v & 0x1; v 161 libavutil/intmath.h static av_always_inline av_const int ff_ctz_c( int v ) v 164 libavutil/intmath.h _BitScanForward(&c, v); v 176 libavutil/intmath.h int av_ctz(int v); v 96 libavutil/intreadwrite.h # define AV_WB16(p, v) AV_WN16(p, v) v 98 libavutil/intreadwrite.h # define AV_WN16(p, v) AV_WB16(p, v) v 108 libavutil/intreadwrite.h # define AV_WB24(p, v) AV_WN24(p, v) v 110 libavutil/intreadwrite.h # define AV_WN24(p, v) AV_WB24(p, v) v 120 libavutil/intreadwrite.h # define AV_WB32(p, v) AV_WN32(p, v) v 122 libavutil/intreadwrite.h # define AV_WN32(p, v) AV_WB32(p, v) v 132 libavutil/intreadwrite.h # define AV_WB48(p, v) AV_WN48(p, v) v 134 libavutil/intreadwrite.h # define AV_WN48(p, v) AV_WB48(p, v) v 144 libavutil/intreadwrite.h # define AV_WB64(p, v) AV_WN64(p, v) v 146 libavutil/intreadwrite.h # define AV_WN64(p, v) AV_WB64(p, v) v 158 libavutil/intreadwrite.h # define AV_WL16(p, v) AV_WN16(p, v) v 160 libavutil/intreadwrite.h # define AV_WN16(p, v) AV_WL16(p, v) v 170 libavutil/intreadwrite.h # define AV_WL24(p, v) AV_WN24(p, v) v 172 libavutil/intreadwrite.h # define AV_WN24(p, v) AV_WL24(p, v) v 182 libavutil/intreadwrite.h # define AV_WL32(p, v) AV_WN32(p, v) v 184 libavutil/intreadwrite.h # define AV_WN32(p, v) AV_WL32(p, v) v 194 libavutil/intreadwrite.h # define AV_WL48(p, v) AV_WN48(p, v) v 196 libavutil/intreadwrite.h # define AV_WN48(p, v) AV_WL48(p, v) v 206 libavutil/intreadwrite.h # define AV_WL64(p, v) AV_WN64(p, v) v 208 libavutil/intreadwrite.h # define AV_WN64(p, v) AV_WL64(p, v) v 225 libavutil/intreadwrite.h # define AV_WN(s, p, v) ((((union unaligned_##s *) (p))->l) = (v)) v 230 libavutil/intreadwrite.h # define AV_WN(s, p, v) (*((__unaligned uint##s##_t*)(p)) = (v)) v 235 libavutil/intreadwrite.h # define AV_WN(s, p, v) (((av_alias##s*)(p))->u##s = (v)) v 351 libavutil/intreadwrite.h # define AV_WN(s, p, v) AV_WB##s(p, v) v 354 libavutil/intreadwrite.h # define AV_WN(s, p, v) AV_WL##s(p, v) v 372 libavutil/intreadwrite.h # define AV_WN16(p, v) AV_WN(16, p, v) v 376 libavutil/intreadwrite.h # define AV_WN32(p, v) AV_WN(32, p, v) v 380 libavutil/intreadwrite.h # define AV_WN64(p, v) AV_WN(64, p, v) v 385 libavutil/intreadwrite.h # define AV_WB(s, p, v) AV_WN##s(p, v) v 387 libavutil/intreadwrite.h # define AV_WL(s, p, v) AV_WN##s(p, av_bswap##s(v)) v 390 libavutil/intreadwrite.h # define AV_WB(s, p, v) AV_WN##s(p, av_bswap##s(v)) v 392 libavutil/intreadwrite.h # define AV_WL(s, p, v) AV_WN##s(p, v) v 405 libavutil/intreadwrite.h # define AV_WB16(p, v) AV_WB(16, p, v) v 412 libavutil/intreadwrite.h # define AV_WL16(p, v) AV_WL(16, p, v) v 419 libavutil/intreadwrite.h # define AV_WB32(p, v) AV_WB(32, p, v) v 426 libavutil/intreadwrite.h # define AV_WL32(p, v) AV_WL(32, p, v) v 433 libavutil/intreadwrite.h # define AV_WB64(p, v) AV_WB(64, p, v) v 440 libavutil/intreadwrite.h # define AV_WL64(p, v) AV_WL(64, p, v) v 519 libavutil/intreadwrite.h #define AV_WNA(s, p, v) (((av_alias##s*)(p))->u##s = (v)) v 534 libavutil/intreadwrite.h # define AV_WN16A(p, v) AV_WNA(16, p, v) v 538 libavutil/intreadwrite.h # define AV_WN32A(p, v) AV_WNA(32, p, v) v 542 libavutil/intreadwrite.h # define AV_WN64A(p, v) AV_WNA(64, p, v) v 88 libavutil/libm.h uint32_t v = av_float2int(x); v 89 libavutil/libm.h if ((v & 0x7f800000) != 0x7f800000) v 91 libavutil/libm.h return !(v & 0x007fffff); v 98 libavutil/libm.h uint32_t v = av_float2int(x); v 99 libavutil/libm.h if ((v & 0x7f800000) != 0x7f800000) v 101 libavutil/libm.h return v & 0x007fffff; v 230 libavutil/mem.c int v= ((char *)ptr)[-1]; v 231 libavutil/mem.c av_assert0(v>0 && v<=ALIGN); v 232 libavutil/mem.c free((char *)ptr - v); v 356 libavutil/mem.c uint32_t v = AV_RN16(dst - 2); v 358 libavutil/mem.c v |= v << 16; v 361 libavutil/mem.c AV_WN32(dst, v); v 375 libavutil/mem.c uint32_t v = AV_RB24(dst - 3); v 376 libavutil/mem.c uint32_t a = v << 8 | v >> 16; v 377 libavutil/mem.c uint32_t b = v << 16 | v >> 8; v 378 libavutil/mem.c uint32_t c = v << 24 | v; v 380 libavutil/mem.c uint32_t v = AV_RL24(dst - 3); v 381 libavutil/mem.c uint32_t a = v | v << 24; v 382 libavutil/mem.c uint32_t b = v >> 8 | v << 16; v 383 libavutil/mem.c uint32_t c = v >> 16 | v << 8; v 414 libavutil/mem.c uint32_t v = AV_RN32(dst - 4); v 417 libavutil/mem.c AV_WN32(dst, v); v 43 libavutil/mem.h #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v v 44 libavutil/mem.h #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v v 46 libavutil/mem.h #define DECLARE_ALIGNED(n,t,v) \ v 47 libavutil/mem.h AV_PRAGMA(DATA_ALIGN(v,n)) \ v 48 libavutil/mem.h t __attribute__((aligned(n))) v v 49 libavutil/mem.h #define DECLARE_ASM_CONST(n,t,v) \ v 50 libavutil/mem.h AV_PRAGMA(DATA_ALIGN(v,n)) \ v 51 libavutil/mem.h static const t __attribute__((aligned(n))) v v 53 libavutil/mem.h #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v v 54 libavutil/mem.h #define DECLARE_ASM_CONST(n,t,v) static const t av_used __attribute__ ((aligned (n))) v v 56 libavutil/mem.h #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v v 57 libavutil/mem.h #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v v 59 libavutil/mem.h #define DECLARE_ALIGNED(n,t,v) t v v 60 libavutil/mem.h #define DECLARE_ASM_CONST(n,t,v) static const t v v 32 libavutil/mips/intreadwrite.h struct __attribute__((packed)) u32 { uint32_t v; }; v 36 libavutil/mips/intreadwrite.h uint32_t v; v 39 libavutil/mips/intreadwrite.h : "=&r"(v) v 41 libavutil/mips/intreadwrite.h return v; v 68 libavutil/pca.c void ff_pca_add(PCA *pca, const double *v){ v 73 libavutil/pca.c pca->mean[i] += v[i]; v 75 libavutil/pca.c pca->covariance[j + i*n] += v[i]*v[j]; v 195 libavutil/pca.c double v[2*LEN+100]; v 199 libavutil/pca.c v[0] = av_lfg_get(&prng) % 101 - 50; v 201 libavutil/pca.c if(j<=pos) v[j]= v[0]; v 202 libavutil/pca.c else v[j]= v2; v 203 libavutil/pca.c sum += v[j]; v 213 libavutil/pca.c ff_pca_add(pca, v); v 233 libavutil/pca.c double v[LEN]; v 235 libavutil/pca.c memset(v, 0, sizeof(v)); v 238 libavutil/pca.c v[j] += pca->covariance[FFMIN(k,j) + FFMAX(k,j)*LEN] * eigenvector[i + k*LEN]; v 240 libavutil/pca.c v[j] /= eigenvalue[i]; v 241 libavutil/pca.c error += fabs(v[j] - eigenvector[i + j*LEN]); v 32 libavutil/pca.h void ff_pca_add(struct PCA *pca, const double *v); v 49 libavutil/ppc/intreadwrite.h uint16_t v; v 50 libavutil/ppc/intreadwrite.h __asm__ ("lhbrx %0, %y1" : "=r"(v) : "Z"(*(const uint16_t*)p)); v 51 libavutil/ppc/intreadwrite.h return v; v 54 libavutil/ppc/intreadwrite.h static av_always_inline void av_write_bswap16(void *p, uint16_t v) v 56 libavutil/ppc/intreadwrite.h __asm__ ("sthbrx %1, %y0" : "=Z"(*(uint16_t*)p) : "r"(v)); v 61 libavutil/ppc/intreadwrite.h uint32_t v; v 62 libavutil/ppc/intreadwrite.h __asm__ ("lwbrx %0, %y1" : "=r"(v) : "Z"(*(const uint32_t*)p)); v 63 libavutil/ppc/intreadwrite.h return v; v 66 libavutil/ppc/intreadwrite.h static av_always_inline void av_write_bswap32(void *p, uint32_t v) v 68 libavutil/ppc/intreadwrite.h __asm__ ("stwbrx %1, %y0" : "=Z"(*(uint32_t*)p) : "r"(v)); v 75 libavutil/ppc/intreadwrite.h uint64_t v; v 76 libavutil/ppc/intreadwrite.h __asm__ ("ldbrx %0, %y1" : "=r"(v) : "Z"(*(const uint64_t*)p)); v 77 libavutil/ppc/intreadwrite.h return v; v 80 libavutil/ppc/intreadwrite.h static av_always_inline void av_write_bswap64(void *p, uint64_t v) v 82 libavutil/ppc/intreadwrite.h __asm__ ("stdbrx %1, %y0" : "=Z"(*(uint64_t*)p) : "r"(v)); v 89 libavutil/ppc/intreadwrite.h union { uint64_t v; uint32_t hl[2]; } v; v 92 libavutil/ppc/intreadwrite.h : "=&r"(v.hl[1]), "=r"(v.hl[0]) v 94 libavutil/ppc/intreadwrite.h return v.v; v 97 libavutil/ppc/intreadwrite.h static av_always_inline void av_write_bswap64(void *p, uint64_t v) v 99 libavutil/ppc/intreadwrite.h union { uint64_t v; uint32_t hl[2]; } vv = { v }; v 56 libavutil/sha.c #define R0(v,w,x,y,z,i) z += (((w)&((x)^(y)))^(y)) + blk0(i) + 0x5A827999 + rol(v, 5); w = rol(w, 30); v 57 libavutil/sha.c #define R1(v,w,x,y,z,i) z += (((w)&((x)^(y)))^(y)) + blk (i) + 0x5A827999 + rol(v, 5); w = rol(w, 30); v 58 libavutil/sha.c #define R2(v,w,x,y,z,i) z += ( (w)^(x) ^(y)) + blk (i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30); v 59 libavutil/sha.c #define R3(v,w,x,y,z,i) z += ((((w)|(x))&(y))|((w)&(x))) + blk (i) + 0x8F1BBCDC + rol(v, 5); w = rol(w, 30); v 60 libavutil/sha.c #define R4(v,w,x,y,z,i) z += ( (w)^(x) ^(y)) + blk (i) + 0xCA62C1D6 + rol(v, 5); w = rol(w, 30); v 119 libavutil/softfloat.h static inline av_const SoftFloat av_int2sf(int v, int frac_bits){ v 120 libavutil/softfloat.h return av_normalize_sf((SoftFloat){ONE_BITS-frac_bits, v}); v 126 libavutil/softfloat.h static inline av_const int av_sf2int(SoftFloat v, int frac_bits){ v 127 libavutil/softfloat.h v.exp += frac_bits - ONE_BITS; v 128 libavutil/softfloat.h if(v.exp >= 0) return v.mant << v.exp ; v 129 libavutil/softfloat.h else return v.mant >>(-v.exp); v 32 libavutil/tomi/intreadwrite.h uint16_t v; v 38 libavutil/tomi/intreadwrite.h : "=r"(v), "+a"(p)); v 39 libavutil/tomi/intreadwrite.h return v; v 43 libavutil/tomi/intreadwrite.h static av_always_inline void AV_WB16(void *p, uint16_t v) v 50 libavutil/tomi/intreadwrite.h : "+&a"(p) : "r"(v)); v 56 libavutil/tomi/intreadwrite.h uint16_t v; v 62 libavutil/tomi/intreadwrite.h : "=r"(v), "+a"(p)); v 63 libavutil/tomi/intreadwrite.h return v; v 67 libavutil/tomi/intreadwrite.h static av_always_inline void AV_WL16(void *p, uint16_t v) v 73 libavutil/tomi/intreadwrite.h : "+&a"(p) : "r"(v)); v 79 libavutil/tomi/intreadwrite.h uint32_t v; v 94 libavutil/tomi/intreadwrite.h : "=r"(v), "+a"(p)); v 95 libavutil/tomi/intreadwrite.h return v; v 99 libavutil/tomi/intreadwrite.h static av_always_inline void AV_WB32(void *p, uint32_t v) v 111 libavutil/tomi/intreadwrite.h : "+&a"(p) : "r"(v)); v 117 libavutil/tomi/intreadwrite.h uint32_t v; v 132 libavutil/tomi/intreadwrite.h : "=r"(v), "+a"(p)); v 133 libavutil/tomi/intreadwrite.h return v; v 137 libavutil/tomi/intreadwrite.h static av_always_inline void AV_WL32(void *p, uint32_t v) v 147 libavutil/tomi/intreadwrite.h : "+&a"(p) : "r"(v)); v 43 libavutil/tree.c unsigned int v = cmp(key, t->elem); v 44 libavutil/tree.c if (v) { v 46 libavutil/tree.c next[v >> 31] = t->elem; v 47 libavutil/tree.c return av_tree_find(t->child[(v >> 31) ^ 1], key, cmp, next); v 64 libavutil/tree.c unsigned int v = cmp(t->elem, key); v 66 libavutil/tree.c if (!v) { v 74 libavutil/tree.c v = -i; v 81 libavutil/tree.c ret = av_tree_insert(&t->child[v >> 31], key, cmp, next); v 83 libavutil/tree.c int i = (v >> 31) ^ !!*next; v 160 libavutil/tree.c int v = cmp ? cmp(opaque, t->elem) : 0; v 161 libavutil/tree.c if (v >= 0) v 163 libavutil/tree.c if (v == 0) v 165 libavutil/tree.c if (v <= 0) v 69 libavutil/x86/intreadwrite.h struct v {uint64_t v[2];}; v 73 libavutil/x86/intreadwrite.h : "=m"(*(struct v*)d) v 74 libavutil/x86/intreadwrite.h : "m" (*(const struct v*)s) v 85 libavutil/x86/intreadwrite.h struct v {uint64_t v[2];}; v 89 libavutil/x86/intreadwrite.h : "=m"(*(struct v*)d) v 388 libpostproc/postprocess.c int v= i < 128 ? 2*i : 2*(i-256); v 397 libpostproc/postprocess.c uint64_t a= (v/16) & 0xFF; v 398 libpostproc/postprocess.c uint64_t b= (v*3/16) & 0xFF; v 399 libpostproc/postprocess.c uint64_t c= (v*5/16) & 0xFF; v 400 libpostproc/postprocess.c uint64_t d= (7*v/16) & 0xFF; v 420 libpostproc/postprocess.c int v = d * FFSIGN(-b); v 422 libpostproc/postprocess.c src[1] +=v/8; v 423 libpostproc/postprocess.c src[2] +=v/4; v 424 libpostproc/postprocess.c src[3] +=3*v/8; v 425 libpostproc/postprocess.c src[4] -=3*v/8; v 426 libpostproc/postprocess.c src[5] -=v/4; v 427 libpostproc/postprocess.c src[6] -=v/8; v 519 libpostproc/postprocess_template.c int v = d * FFSIGN(-b); v 521 libpostproc/postprocess_template.c src[l2] +=v>>3; v 522 libpostproc/postprocess_template.c src[l3] +=v>>2; v 523 libpostproc/postprocess_template.c src[l4] +=(3*v)>>3; v 524 libpostproc/postprocess_template.c src[l5] -=(3*v)>>3; v 525 libpostproc/postprocess_template.c src[l6] -=v>>2; v 526 libpostproc/postprocess_template.c src[l7] -=v>>3; v 33 libswresample/dither.c double v; v 37 libswresample/dither.c case SWR_DITHER_RECTANGULAR: v= ((double)seed) / UINT_MAX - 0.5; break; v 40 libswresample/dither.c v = ((double)seed) / UINT_MAX; v 42 libswresample/dither.c v-= ((double)seed) / UINT_MAX; v 45 libswresample/dither.c tmp[i] = v; v 49 libswresample/dither.c double v; v 54 libswresample/dither.c v = tmp[i]; v 57 libswresample/dither.c v = (- tmp[i] + 2*tmp[i+1] - tmp[i+2]) / sqrt(6); v 61 libswresample/dither.c v*= scale; v 64 libswresample/dither.c case AV_SAMPLE_FMT_S16P: ((int16_t*)dst)[i] = v; break; v 65 libswresample/dither.c case AV_SAMPLE_FMT_S32P: ((int32_t*)dst)[i] = v; break; v 66 libswresample/dither.c case AV_SAMPLE_FMT_FLTP: ((float *)dst)[i] = v; break; v 67 libswresample/dither.c case AV_SAMPLE_FMT_DBLP: ((double *)dst)[i] = v; break; v 5 libswresample/dither_template.c # define CLIP(v) v 10 libswresample/dither_template.c # define CLIP(v) v 15 libswresample/dither_template.c # define CLIP(v) v = FFMAX(FFMIN(v, INT32_MAX), INT32_MIN) v 20 libswresample/dither_template.c # define CLIP(v) v = FFMAX(FFMIN(v, INT16_MAX), INT16_MIN) v 481 libswresample/rematrix.c float v=0; v 484 libswresample/rematrix.c v+= ((float*)in->ch[in_i])[i] * s->matrix[out_i][in_i]; v 486 libswresample/rematrix.c ((float*)out->ch[out_i])[i]= v; v 490 libswresample/rematrix.c double v=0; v 493 libswresample/rematrix.c v+= ((double*)in->ch[in_i])[i] * s->matrix[out_i][in_i]; v 495 libswresample/rematrix.c ((double*)out->ch[out_i])[i]= v; v 499 libswresample/rematrix.c int v=0; v 502 libswresample/rematrix.c v+= ((int16_t*)in->ch[in_i])[i] * s->matrix32[out_i][in_i]; v 504 libswresample/rematrix.c ((int16_t*)out->ch[out_i])[i]= (v + 16384)>>15; v 35 libswresample/resample.c double v=1; v 53 libswresample/resample.c for(i=0; v != lastv; i++){ v 54 libswresample/resample.c lastv=v; v 56 libswresample/resample.c v += t; v 59 libswresample/resample.c return v; v 35 libswresample/resample_template.c # define OUT(d, v) d = v v 44 libswresample/resample_template.c # define OUT(d, v) d = v v 55 libswresample/resample_template.c # define OUT(d, v) (v) = ((v) + (1<<(FILTER_SHIFT-1)))>>FILTER_SHIFT;\ v 56 libswresample/resample_template.c (d) = (uint64_t)((v) + 0x80000000) > 0xFFFFFFFF ? ((v)>>63) ^ 0x7FFFFFFF : (v) v 68 libswresample/resample_template.c # define OUT(d, v) (v) = ((v) + (1<<(FILTER_SHIFT-1)))>>FILTER_SHIFT;\ v 69 libswresample/resample_template.c (d) = (unsigned)((v) + 32768) > 65535 ? ((v)>>31) ^ 32767 : (v) v 58 libswresample/swresample-test.c static void set(uint8_t *a[], int ch, int index, int ch_count, enum AVSampleFormat f, double v){ v 68 libswresample/swresample-test.c case AV_SAMPLE_FMT_U8 : ((uint8_t*)p)[index]= av_clip_uint8 (lrint((v+1.0)*127)); break; v 69 libswresample/swresample-test.c case AV_SAMPLE_FMT_S16: ((int16_t*)p)[index]= av_clip_int16 (lrint(v*32767)); break; v 70 libswresample/swresample-test.c case AV_SAMPLE_FMT_S32: ((int32_t*)p)[index]= av_clipl_int32(llrint(v*2147483647)); break; v 71 libswresample/swresample-test.c case AV_SAMPLE_FMT_FLT: ((float *)p)[index]= v; break; v 72 libswresample/swresample-test.c case AV_SAMPLE_FMT_DBL: ((double *)p)[index]= v; break; v 149 libswresample/swresample-test.c double v, f, a, ampa; v 155 libswresample/swresample-test.c #define PUT_SAMPLE set(data, ch, k, channels, sample_fmt, v); v 163 libswresample/swresample-test.c v = sin(a) * 0.30; v 172 libswresample/swresample-test.c v = sin(a) * 0.30; v 181 libswresample/swresample-test.c v = dbl_rand(rnd) * 0.30; v 188 libswresample/swresample-test.c v = dbl_rand(rnd); v 201 libswresample/swresample-test.c v = sin(taba[ch]) * 0.30; v 216 libswresample/swresample-test.c v = sin(a) * amp; v 289 libswscale/output.c int v = chrDither[(i + 3) & 7] << 12; v 293 libswscale/output.c v += chrVSrc[j][i] * chrFilter[j]; v 297 libswscale/output.c dest[2*i+1]= av_clip_uint8(v>>19); v 302 libswscale/output.c int v = chrDither[(i + 3) & 7] << 12; v 306 libswscale/output.c v += chrVSrc[j][i] * chrFilter[j]; v 309 libswscale/output.c dest[2*i]= av_clip_uint8(v>>19); v 1548 libswscale/output.c #define A_DITHER(u,v) (((((u)+((v)*236))*119)&0xff)) v 1567 libswscale/output.c #define X_DITHER(u,v) (((((u)^((v)*237))*181)&0x1ff)/2) v 294 libswscale/ppc/yuv2rgb_altivec.c vector signed char u, v; \ v 356 libswscale/ppc/yuv2rgb_altivec.c v = (vector signed char) \ v 363 libswscale/ppc/yuv2rgb_altivec.c v = (vector signed char) \ v 364 libswscale/ppc/yuv2rgb_altivec.c vec_sub(v, \ v 369 libswscale/ppc/yuv2rgb_altivec.c V = vec_unpackh(v); \ v 325 libswscale/rgb2rgb_template.c register int v = *(const uint32_t *)&s[idx], g = v & 0xff00ff00; v 326 libswscale/rgb2rgb_template.c v &= 0xff00ff; v 327 libswscale/rgb2rgb_template.c *(uint32_t *)&d[idx] = (v >> 16) + g + (v << 16); v 941 libswscale/swscale.c int r, g, b, y, u, v, a = 0xff; v 981 libswscale/swscale.c v = av_clip_uint8((RV * r + GV * g + BV * b + (257 << (RGB2YUV_SHIFT - 1))) >> RGB2YUV_SHIFT); v 982 libswscale/swscale.c c->pal_yuv[i]= y + (u<<8) + (v<<16) + ((unsigned)a<<24); v 888 libswscale/swscale_internal.h int v = alpha ? 0xFFFF>>(15-bits) : (1<<bits); v 892 libswscale/swscale_internal.h wfunc(ptr+2*j, v);\ v 1465 libswscale/swscale_unscaled.c uint64_t v = AV_RN64A(srcPtr2 + j); \ v 1466 libswscale/swscale_unscaled.c AV_WN64A(dstPtr2 + j, v << shift); \ v 1471 libswscale/swscale_unscaled.c uint32_t v = AV_RN32A(srcPtr2 + j); \ v 1472 libswscale/swscale_unscaled.c AV_WN32A(dstPtr2 + j, v << shift); \ v 1484 libswscale/swscale_unscaled.c unsigned int v= r(&srcPtr2[j]);\ v 1485 libswscale/swscale_unscaled.c w(&dstPtr2[j], v<<(dst_depth-src_depth));\ v 1489 libswscale/swscale_unscaled.c unsigned int v= r(&srcPtr2[j]);\ v 1490 libswscale/swscale_unscaled.c w(&dstPtr2[j], (v<<(dst_depth-src_depth)) | \ v 1491 libswscale/swscale_unscaled.c (v>>(2*src_depth-dst_depth)));\ v 663 libswscale/utils.c int64_t v = filter[i * filterSize + j] + error; v 664 libswscale/utils.c int intV = ROUNDED_DIV(v, sum); v 666 libswscale/utils.c error = v - intV * sum; v 1093 libswscale/x86/rgb2rgb_template.c register int v = *(const uint32_t *)&s[idx], g = v & 0xff00ff00; v 1094 libswscale/x86/rgb2rgb_template.c v &= 0xff00ff; v 1095 libswscale/x86/rgb2rgb_template.c *(uint32_t *)&d[idx] = (v>>16) + g + (v<<16); v 76 tests/audiogen.c int neg, v, f; v 90 tests/audiogen.c v = p[0] + (((p[1] - p[0]) * f + (1 << (CSHIFT - 1))) >> CSHIFT); v 91 tests/audiogen.c v = (v ^ neg) - neg; v 92 tests/audiogen.c v = v << (FRAC_BITS - 15); v 93 tests/audiogen.c return v; v 98 tests/audiogen.c static void put16(int16_t v) v 100 tests/audiogen.c fputc( v & 0xff, outfile); v 101 tests/audiogen.c fputc((v >> 8) & 0xff, outfile); v 104 tests/audiogen.c static void put32(uint32_t v) v 106 tests/audiogen.c fputc( v & 0xff, outfile); v 107 tests/audiogen.c fputc((v >> 8) & 0xff, outfile); v 108 tests/audiogen.c fputc((v >> 16) & 0xff, outfile); v 109 tests/audiogen.c fputc((v >> 24) & 0xff, outfile); v 139 tests/audiogen.c int i, a, v, j, f, amp, ampa; v 186 tests/audiogen.c v = (int_cos(a) * 10000) >> FRAC_BITS; v 188 tests/audiogen.c put16(v); v 195 tests/audiogen.c v = (int_cos(a) * 10000) >> FRAC_BITS; v 197 tests/audiogen.c put16(v); v 204 tests/audiogen.c v = myrnd(&seed, 20000) - 10000; v 206 tests/audiogen.c put16(v); v 211 tests/audiogen.c v = myrnd(&seed, 65535) - 32768; v 213 tests/audiogen.c put16(v); v 224 tests/audiogen.c v = (int_cos(taba[j]) * 10000) >> FRAC_BITS; v 225 tests/audiogen.c put16(v); v 239 tests/audiogen.c v = (int_cos(a) * amp) >> FRAC_BITS; v 240 tests/audiogen.c put16(v); v 34 tests/rotozoom.c int64_t v = FIXP; v 37 tests/rotozoom.c v *= a; v 38 tests/rotozoom.c v /= FIXP; v 41 tests/rotozoom.c return v; v 116 tests/tiny_psnr.c } v; v 117 tests/tiny_psnr.c v.u = p[0] | p[1] << 8; v 118 tests/tiny_psnr.c return v.s; v 123 tests/tiny_psnr.c union av_intfloat32 v; v 124 tests/tiny_psnr.c v.i = p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24; v 125 tests/tiny_psnr.c return v.f; v 55 tests/videogen.c int v, neg; v 64 tests/videogen.c v = FRAC_ONE - ((a * a) >> 4); v 65 tests/videogen.c v = (v ^ neg) - neg; v 66 tests/videogen.c return v; v 160 tools/probetest.c unsigned int v = (av_lfg_get(&state) & 0xFFFFFFFF) > p2 << 26; v 161 tools/probetest.c put_bits(&pb, 1, v); v 162 tools/probetest.c hist = v; v 168 tools/probetest.c unsigned int v = (av_lfg_get(&state) & 0xFFFFFFFF) > p2 << 29; v 169 tools/probetest.c put_bits(&pb, 1, v); v 170 tools/probetest.c hist = (2 * hist + v) & 3; v 39 tools/yuvcmp.c int i, v, c, p; v 82 tools/yuvcmp.c v = read(fd[i], Y[i], lsiz); v 83 tools/yuvcmp.c if(v != lsiz) { v 115 tools/yuvcmp.c v = read(fd[i], C[p][i], csiz); v 116 tools/yuvcmp.c if(v != csiz) {