val 421 cmdutils.c o->key, o->opt->help, o->val); val 423 cmdutils.c ret = write_option(optctx, o->opt, o->key, o->val); val 659 cmdutils.c const char *key, const char *val) val 667 cmdutils.c g->opts[g->nb_opts - 1].val = val; val 917 cmdutils.c char *key, *val; val 929 cmdutils.c if ((ret = av_opt_get_key_value(&env, "=", ":", 0, &key, &val)) < 0) { val 941 cmdutils.c filename_template = val; val 942 cmdutils.c val = NULL; val 945 cmdutils.c report_file_level = strtol(val, &tail, 10); val 953 cmdutils.c av_free(val); val 252 cmdutils.h const char *val; val 672 compat/avisynth/avisynth_c.h AVSC_API(char *, avs_vsprintf)(AVS_ScriptEnvironment *, const char * fmt, void* val); val 688 compat/avisynth/avisynth_c.h AVSC_API(int, avs_set_var)(AVS_ScriptEnvironment *, const char* name, AVS_Value val); val 690 compat/avisynth/avisynth_c.h AVSC_API(int, avs_set_global_var)(AVS_ScriptEnvironment *, const char* name, const AVS_Value val); val 642 compat/avisynth/avxsynth_c.h AVSC_API(char *, avs_vsprintf)(AVS_ScriptEnvironment *, const char * fmt, va_list val); val 658 compat/avisynth/avxsynth_c.h AVSC_API(int, avs_set_var)(AVS_ScriptEnvironment *, const char* name, AVS_Value val); val 660 compat/avisynth/avxsynth_c.h AVSC_API(int, avs_set_global_var)(AVS_ScriptEnvironment *, const char* name, const AVS_Value val); val 2182 ffmpeg_opt.c char type, *val; val 2186 ffmpeg_opt.c val = strchr(o->metadata[i].u.str, '='); val 2187 ffmpeg_opt.c if (!val) { val 2192 ffmpeg_opt.c *val++ = 0; val 2198 ffmpeg_opt.c av_dict_set(&oc->streams[j]->metadata, o->metadata[i].u.str, *val ? val : NULL, 0); val 2219 ffmpeg_opt.c av_dict_set(m, o->metadata[i].u.str, *val ? val : NULL, 0); val 842 ffplay.c unsigned int val = ((const uint32_t *)(pal))[*(const uint8_t*)(s)];\ val 843 ffplay.c a = (val >> 24) & 0xff;\ val 844 ffplay.c y = (val >> 16) & 0xff;\ val 845 ffplay.c u = (val >> 8) & 0xff;\ val 846 ffplay.c v = val & 0xff;\ val 1460 ffplay.c double val; val 1464 ffplay.c val = get_clock(&is->vidclk); val 1467 ffplay.c val = get_clock(&is->audclk); val 1470 ffplay.c val = get_clock(&is->extclk); val 1473 ffplay.c return val; val 229 ffprobe.c union { double d; long long int i; } val; val 240 ffprobe.c vald = uv.val.d; val 243 ffprobe.c vald = vali = uv.val.i; val 539 ffprobe.c const char *key, long long int val) val 544 ffprobe.c wctx->writer->print_integer(wctx, key, val); val 608 ffprobe.c const char *key, const char *val, int flags) val 622 ffprobe.c ret = validate_string(wctx, &val1, val); val 629 ffprobe.c key, val, section->unique_name); val 634 ffprobe.c wctx->writer->print_string(wctx, key, val); val 662 ffprobe.c uv.val.d = d; val 1665 ffprobe.c uv.val.i = v; \ val 610 ffserver_config.c int val; val 616 ffserver_config.c ffserver_set_int_param(&val, arg, 0, 1, 65535, config, val 618 ffserver_config.c if (val < 1024) val 619 ffserver_config.c WARNING("Trying to use IETF assigned system port: '%d'\n", val); val 620 ffserver_config.c config->http_addr.sin_port = htons(val); val 633 ffserver_config.c ffserver_set_int_param(&val, arg, 0, 1, 65535, config, val 635 ffserver_config.c config->rtsp_addr.sin_port = htons(val); val 642 ffserver_config.c ffserver_set_int_param(&val, arg, 0, 1, 65535, config, val 644 ffserver_config.c config->nb_max_http_connections = val; val 652 ffserver_config.c ffserver_set_int_param(&val, arg, 0, 1, 65535, config, val 654 ffserver_config.c config->nb_max_connections = val; val 799 ffserver_config.c int val; val 964 ffserver_config.c ffserver_set_int_param(&val, arg, 8*1024, 0, INT_MAX, config, val 966 ffserver_config.c if (ffserver_save_avoption_int("bufsize", val, AV_OPT_FLAG_VIDEO_PARAM, config) < 0) val 970 ffserver_config.c ffserver_set_int_param(&val, arg, 1000, INT_MIN, INT_MAX, config, val 972 ffserver_config.c if (ffserver_save_avoption_int("bt", val, AV_OPT_FLAG_VIDEO_PARAM, config) < 0) val 976 ffserver_config.c ffserver_set_int_param(&val, arg, 1000, INT_MIN, INT_MAX, config, val 978 ffserver_config.c if (ffserver_save_avoption_int("b", val, AV_OPT_FLAG_VIDEO_PARAM, config) < 0) val 1057 ffserver_config.c ffserver_set_int_param(&val, arg, 0, INT_MIN, INT_MAX, config, val 1060 ffserver_config.c ffserver_save_avoption_int("global_quality", FF_QP2LAMBDA * val, val 1104 ffserver_config.c ffserver_set_int_param(&val, arg, 0, 1, 65535, config, val 1106 ffserver_config.c stream->multicast_port = val; val 1109 ffserver_config.c ffserver_set_int_param(&val, arg, 0, INT_MIN, INT_MAX, config, val 1111 ffserver_config.c stream->multicast_ttl = val; val 497 libavcodec/4xm.c int code, i, j, level, val; val 505 libavcodec/4xm.c val = get_vlc2(&f->pre_gb, f->pre_vlc.table, ACDC_VLC_BITS, 3); val 506 libavcodec/4xm.c if (val >> 4) { val 511 libavcodec/4xm.c if (val) val 512 libavcodec/4xm.c val = get_xbits(&f->gb, val); val 514 libavcodec/4xm.c val = val * dequant_table[0] + f->last_dc; val 515 libavcodec/4xm.c f->last_dc = block[0] = val; val 72 libavcodec/8svx.c uint8_t val = *state; val 76 libavcodec/8svx.c val = av_clip_uint8(val + table[d & 0xF]); val 77 libavcodec/8svx.c *dst++ = val; val 78 libavcodec/8svx.c val = av_clip_uint8(val + table[d >> 4]); val 79 libavcodec/8svx.c *dst++ = val; val 82 libavcodec/8svx.c *state = val; val 95 libavcodec/aacps.c int val = PAR[e_prev][b] + get_vlc2(gb, vlc_table, 9, 3) - OFFSET; \ val 96 libavcodec/aacps.c if (MASK) val &= MASK; \ val 97 libavcodec/aacps.c PAR[e][b] = val; \ val 102 libavcodec/aacps.c int val = 0; \ val 104 libavcodec/aacps.c val += get_vlc2(gb, vlc_table, 9, 3) - OFFSET; \ val 105 libavcodec/aacps.c if (MASK) val &= MASK; \ val 106 libavcodec/aacps.c PAR[e][b] = val; \ val 134 libavcodec/acelp_pitch_delay.c float val = fixed_gain_factor * val 145 libavcodec/acelp_pitch_delay.c return val; val 1234 libavcodec/adpcm.c int val = sign_extend(bytestream2_get_le16u(&gb), 16); val 1236 libavcodec/adpcm.c coeff[i][n] = ea_adpcm_table[(val&0x0F)+4*i]; val 1237 libavcodec/adpcm.c s[0] = val & ~0x0F; val 1239 libavcodec/adpcm.c val = sign_extend(bytestream2_get_le16u(&gb), 16); val 1240 libavcodec/adpcm.c shift[n] = 20 - (val & 0x0F); val 1241 libavcodec/adpcm.c s[1] = val & ~0x0F; val 191 libavcodec/aic.c #define GET_CODE(val, type, add_bits) \ val 194 libavcodec/aic.c val = get_ue_golomb(gb); \ val 196 libavcodec/aic.c val = get_unary(gb, 1, 31); \ val 198 libavcodec/aic.c val = (val << add_bits) + get_bits(gb, add_bits); \ val 208 libavcodec/aic.c unsigned val; val 221 libavcodec/aic.c GET_CODE(val, skip_type, skip_bits); val 222 libavcodec/aic.c if (val >= 0x10000) val 224 libavcodec/aic.c idx += val + 1; val 227 libavcodec/aic.c GET_CODE(val, coeff_type, coeff_bits); val 228 libavcodec/aic.c val++; val 229 libavcodec/aic.c if (val >= 0x10000) val 231 libavcodec/aic.c dst[scan[idx]] = val; val 238 libavcodec/aic.c GET_CODE(val, coeff_type, coeff_bits); val 239 libavcodec/aic.c if (val >= 0x10000) val 241 libavcodec/aic.c dst[scan[idx]] = val; val 296 libavcodec/aic.c int val = (uint16_t)block[i]; val 297 libavcodec/aic.c int sign = val & 1; val 299 libavcodec/aic.c block[i] = (((val >> 1) ^ -sign) * q * quant_matrix[i] >> 4) val 206 libavcodec/alac.c int val = 0; val 213 libavcodec/alac.c val += (pred[j] - d) * lpc_coefs[j]; val 214 libavcodec/alac.c val = (val + (1 << (lpc_quant - 1))) >> lpc_quant; val 215 libavcodec/alac.c val += d + error_val; val 216 libavcodec/alac.c buffer_out[i] = sign_extend(val, bps); val 223 libavcodec/alac.c val = d - pred[j]; val 224 libavcodec/alac.c sign = sign_only(val) * error_sign; val 226 libavcodec/alac.c val *= sign; val 227 libavcodec/alac.c error_val -= (val >> lpc_quant) * (j + 1); val 299 libavcodec/alacenc.c int val = samples[0] - samples[lpc.lpc_order - index]; val 300 libavcodec/alacenc.c int sign = (val ? FFSIGN(val) : 0); val 306 libavcodec/alacenc.c val *= sign; val 307 libavcodec/alacenc.c res_val -= (val >> lpc.lpc_quant) * (lpc.lpc_order - index); val 597 libavcodec/alsdec.c int32_t val = *bd->raw_samples; val 602 libavcodec/alsdec.c *dst++ = val; val 823 libavcodec/atrac3plus.c unsigned val, mask = (1 << bits) - 1; val 828 libavcodec/atrac3plus.c val = get_vlc2(gb, vlc_tab->table, vlc_tab->bits, 1); val 831 libavcodec/atrac3plus.c cf = val & mask; val 838 libavcodec/atrac3plus.c val >>= bits; val 46 libavcodec/aura.c uint8_t val; val 72 libavcodec/aura.c val = *buf++; val 73 libavcodec/aura.c U[0] = val & 0xF0; val 74 libavcodec/aura.c Y[0] = val << 4; val 75 libavcodec/aura.c val = *buf++; val 76 libavcodec/aura.c V[0] = val & 0xF0; val 77 libavcodec/aura.c Y[1] = Y[0] + delta_table[val & 0xF]; val 82 libavcodec/aura.c val = *buf++; val 83 libavcodec/aura.c U[0] = U[-1] + delta_table[val >> 4]; val 84 libavcodec/aura.c Y[0] = Y[-1] + delta_table[val & 0xF]; val 85 libavcodec/aura.c val = *buf++; val 86 libavcodec/aura.c V[0] = V[-1] + delta_table[val >> 4]; val 87 libavcodec/aura.c Y[1] = Y[ 0] + delta_table[val & 0xF]; val 3144 libavcodec/avcodec.h void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val); val 3150 libavcodec/avcodec.h void av_codec_set_lowres(AVCodecContext *avctx, int val); val 3153 libavcodec/avcodec.h void av_codec_set_seek_preroll(AVCodecContext *avctx, int val); val 3156 libavcodec/avcodec.h void av_codec_set_chroma_intra_matrix(AVCodecContext *avctx, uint16_t *val); val 469 libavcodec/avpacket.c const uint8_t *val = data + strlen(key) + 1; val 471 libavcodec/avpacket.c if (val >= end) val 474 libavcodec/avpacket.c ret = av_dict_set(dict, key, val, 0); val 477 libavcodec/avpacket.c data = val + strlen(val) + 1; val 587 libavcodec/bink.c int val = *c->bundle[bundle_num].cur_ptr++; val 588 libavcodec/bink.c return binkb_bundle_signed[bundle_num] ? (int8_t)val : val; val 58 libavcodec/bmvvideo.c unsigned val, saved_val = 0; val 96 libavcodec/bmvvideo.c val = *src; val 99 libavcodec/bmvvideo.c val = saved_val; val 102 libavcodec/bmvvideo.c if (!(val & 0xC)) { val 110 libavcodec/bmvvideo.c val |= *src << shift; val 119 libavcodec/bmvvideo.c val = ((val >> 2) & ~mask) | (val & mask); val 121 libavcodec/bmvvideo.c if ((val & (0xC << shift))) { val 132 libavcodec/bmvvideo.c saved_val = val >> (4 + shift); val 134 libavcodec/bmvvideo.c val &= (1 << (shift + 4)) - 1; val 137 libavcodec/bmvvideo.c advance_mode = val & 1; val 138 libavcodec/bmvvideo.c len = (val >> 1) - 1; val 183 libavcodec/bmvvideo.c val = forward ? dst[-1] : dst[1]; val 185 libavcodec/bmvvideo.c memset(dst, val, len); val 189 libavcodec/bmvvideo.c memset(dst, val, len); val 148 libavcodec/cabac_functions.h static av_always_inline int get_cabac_bypass_sign(CABACContext *c, int val){ val 160 libavcodec/cabac_functions.h return (val^mask)-mask; val 29 libavcodec/ccaption_dec.c #define SET_FLAG(var, val) ( (var) |= ( 1 << (val)) ) val 30 libavcodec/ccaption_dec.c #define UNSET_FLAG(var, val) ( (var) &= ~( 1 << (val)) ) val 31 libavcodec/ccaption_dec.c #define CHECK_FLAG(var, val) ( (var) & ( 1 << (val)) ) val 116 libavcodec/celp_filters.c float val; val 132 libavcodec/celp_filters.c val = filter_coeffs[3]; val 134 libavcodec/celp_filters.c out0 -= val * old_out0; val 135 libavcodec/celp_filters.c out1 -= val * old_out1; val 136 libavcodec/celp_filters.c out2 -= val * old_out2; val 137 libavcodec/celp_filters.c out3 -= val * old_out3; val 141 libavcodec/celp_filters.c val = filter_coeffs[i-1]; val 143 libavcodec/celp_filters.c out0 -= val * old_out3; val 144 libavcodec/celp_filters.c out1 -= val * old_out0; val 145 libavcodec/celp_filters.c out2 -= val * old_out1; val 146 libavcodec/celp_filters.c out3 -= val * old_out2; val 150 libavcodec/celp_filters.c val = filter_coeffs[i]; val 152 libavcodec/celp_filters.c out0 -= val * old_out2; val 153 libavcodec/celp_filters.c out1 -= val * old_out3; val 154 libavcodec/celp_filters.c out2 -= val * old_out0; val 155 libavcodec/celp_filters.c out3 -= val * old_out1; val 38 libavcodec/cos_tablegen.c static void printval(double val, int fixed) val 42 libavcodec/cos_tablegen.c double new_val = val * (double) (1 << 15); val 48 libavcodec/cos_tablegen.c printf(" "FLOATFMT",", val); val 81 libavcodec/dct32_template.c tmp0 = val##a + val##b;\ val 82 libavcodec/dct32_template.c tmp1 = val##a - val##b;\ val 83 libavcodec/dct32_template.c val##a = tmp0;\ val 84 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ val 91 libavcodec/dct32_template.c val##a = tmp0;\ val 92 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ val 99 libavcodec/dct32_template.c val##c += val##d;\ val 106 libavcodec/dct32_template.c val##c += val##d;\ val 107 libavcodec/dct32_template.c val##a += val##c;\ val 108 libavcodec/dct32_template.c val##c += val##b;\ val 109 libavcodec/dct32_template.c val##b += val##d;\ val 112 libavcodec/dct32_template.c #define ADD(a, b) val##a += val##b val 76 libavcodec/diracdsp.c #define OP_PUT(dst, val) (dst) = (val) val 77 libavcodec/diracdsp.c #define OP_AVG(dst, val) (dst) = (((dst) + (val) + 1)>>1) val 748 libavcodec/dnxhdenc.c uint8_t val = pix[x + y * ctx->m.linesize]; val 749 libavcodec/dnxhdenc.c sum += val; val 750 libavcodec/dnxhdenc.c varc += val * val; val 575 libavcodec/dss_sp.c unsigned int val; val 579 libavcodec/dss_sp.c val = 1; val 581 libavcodec/dss_sp.c val |= FFABS(vector_buf[i]); val 583 libavcodec/dss_sp.c for (max_val = 0; val <= 0x4000; ++max_val) val 584 libavcodec/dss_sp.c val *= 2; val 29 libavcodec/dvbsub.c #define PUTBITS2(val)\ val 31 libavcodec/dvbsub.c bitbuf |= (val) << bitcnt;\ val 116 libavcodec/dvbsub.c #define PUTBITS4(val)\ val 118 libavcodec/dvbsub.c bitbuf |= (val) << bitcnt;\ val 36 libavcodec/dvdsubenc.c #define PUTNIBBLE(val)\ val 39 libavcodec/dvdsubenc.c *q++ = bitbuf | ((val) & 0x0f);\ val 41 libavcodec/dvdsubenc.c bitbuf = (val) << 4;\ val 180 libavcodec/dxtory.c uint8_t c, val; val 184 libavcodec/dxtory.c val = get_bits(gb, 8); val 187 libavcodec/dxtory.c val = lru[c - 1]; val 190 libavcodec/dxtory.c lru[0] = val; val 192 libavcodec/dxtory.c return val; val 198 libavcodec/dxtory.c uint8_t c, val; val 202 libavcodec/dxtory.c val = get_bits(gb, bits); val 205 libavcodec/dxtory.c val = lru[c - 1]; val 208 libavcodec/dxtory.c lru[0] = val; val 210 libavcodec/dxtory.c return val; val 356 libavcodec/ffwavesynth.c int32_t amp, val, *cv; val 378 libavcodec/ffwavesynth.c val = amp * ws->sin[in->phi >> (64 - SIN_BITS)]; val 383 libavcodec/ffwavesynth.c val = amp * pink; val 386 libavcodec/ffwavesynth.c val = 0; val 391 libavcodec/ffwavesynth.c *cv += val; val 393 libavcodec/ffwavesynth.c val = (int32_t)lcg_next(&ws->dither_state) >> 16; val 396 libavcodec/ffwavesynth.c *cv += val; val 45 libavcodec/flac.c int64_t val; val 46 libavcodec/flac.c GET_UTF8(val, get_bits(gb, 8), return -1;) val 47 libavcodec/flac.c return val; val 1073 libavcodec/flacenc.c static void write_utf8(PutBitContext *pb, uint32_t val) val 1076 libavcodec/flacenc.c PUT_UTF8(val, tmp, put_bits(pb, 8, tmp);) val 196 libavcodec/g2meet.c int dc, val, pos; val 212 libavcodec/g2meet.c val = get_vlc2(gb, c->ac_vlc[is_chroma].table, 9, 3); val 213 libavcodec/g2meet.c if (val < 0) val 215 libavcodec/g2meet.c pos += val >> 4; val 216 libavcodec/g2meet.c val &= 0xF; val 218 libavcodec/g2meet.c return val ? AVERROR_INVALIDDATA : 0; val 219 libavcodec/g2meet.c if (val) { val 220 libavcodec/g2meet.c int nbits = val; val 222 libavcodec/g2meet.c val = get_xbits(gb, nbits); val 223 libavcodec/g2meet.c val *= qmat[ff_zigzag_direct[pos]]; val 224 libavcodec/g2meet.c block[c->scantable.permutated[pos]] = val; val 596 libavcodec/g2meet.c int val = bytestream2_get_be32(gb); val 597 libavcodec/g2meet.c *dst++ = val >> 0; val 598 libavcodec/g2meet.c *dst++ = val >> 8; val 599 libavcodec/g2meet.c *dst++ = val >> 16; val 600 libavcodec/g2meet.c *dst++ = val >> 24; val 225 libavcodec/g723_1.c static int16_t square_root(unsigned val) val 227 libavcodec/g723_1.c av_assert2(!(val & 0x80000000)); val 229 libavcodec/g723_1.c return (ff_sqrt(val << 1) >> 1) & (~1); val 975 libavcodec/g723_1.c int i, shift, seg, seg2, t, val, val_add, x, y; val 996 libavcodec/g723_1.c val = 1 << shift; val 997 libavcodec/g723_1.c val_add = val >> 1; val 999 libavcodec/g723_1.c t = seg * 32 + (val << seg2); val 1002 libavcodec/g723_1.c val += val_add; val 1004 libavcodec/g723_1.c val -= val_add; val 1008 libavcodec/g723_1.c t = seg * 32 + (val << seg2); val 1011 libavcodec/g723_1.c t = seg * 32 + (val + 1 << seg2); val 1013 libavcodec/g723_1.c val = (seg2 - 1 << 4) + val; val 1015 libavcodec/g723_1.c val++; val 1017 libavcodec/g723_1.c t = seg * 32 + (val - 1 << seg2); val 1019 libavcodec/g723_1.c val = (seg2 - 1 << 4) + val; val 1021 libavcodec/g723_1.c val--; val 1024 libavcodec/g723_1.c return val; val 2224 libavcodec/g723_1.c int val = buf[optim->grid_index + (i << 1)]; val 2225 libavcodec/g723_1.c if (!val) { val 2229 libavcodec/g723_1.c if (val < 0) subfrm->pulse_sign++; val 40 libavcodec/gsmdec_template.c int i, val; val 44 libavcodec/gsmdec_template.c val = get_bits(gb, frame_bits[i]); val 45 libavcodec/gsmdec_template.c dst[3*i] += tab[requant_tab[frame_bits[i]][val]]; val 99 libavcodec/h261dec.c unsigned int val; val 104 libavcodec/h261dec.c val = show_bits(&s->gb, 15); val 105 libavcodec/h261dec.c if (val) val 134 libavcodec/h261enc.c static void h261_encode_motion(H261Context *h, int val) val 138 libavcodec/h261enc.c if (val == 0) { val 142 libavcodec/h261enc.c if (val > 15) val 143 libavcodec/h261enc.c val -= 32; val 144 libavcodec/h261enc.c if (val < -16) val 145 libavcodec/h261enc.c val += 32; val 146 libavcodec/h261enc.c sign = val < 0; val 147 libavcodec/h261enc.c code = sign ? -val : val; val 125 libavcodec/h263.h void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code); val 128 libavcodec/h263.h static inline int h263_get_motion_length(MpegEncContext * s, int val, int f_code){ val 131 libavcodec/h263.h if (val == 0) { val 137 libavcodec/h263.h val = (val<<l)>>l; val 138 libavcodec/h263.h val--; val 139 libavcodec/h263.h code = (val >> bit_size) + 1; val 213 libavcodec/h263.h static inline void memsetw(short *tab, int val, int n) val 217 libavcodec/h263.h tab[i] = val; val 2345 libavcodec/h264_cabac.c int val = 1; val 2351 libavcodec/h264_cabac.c val++; val 2352 libavcodec/h264_cabac.c if(val > 2*max_qp){ //prevent infinite loop val 2358 libavcodec/h264_cabac.c if( val&0x01 ) val 2359 libavcodec/h264_cabac.c val= (val + 1)>>1 ; val 2361 libavcodec/h264_cabac.c val= -((val + 1)>>1); val 2362 libavcodec/h264_cabac.c h->last_qscale_diff = val; val 2363 libavcodec/h264_cabac.c h->qscale += val; val 951 libavcodec/h264_cavlc.c unsigned int val; val 954 libavcodec/h264_cavlc.c val= 0; val 956 libavcodec/h264_cavlc.c val= get_bits1(&h->gb)^1; val 958 libavcodec/h264_cavlc.c val= get_ue_golomb_31(&h->gb); val 959 libavcodec/h264_cavlc.c if (val >= local_ref_count[list]){ val 960 libavcodec/h264_cavlc.c av_log(h->avctx, AV_LOG_ERROR, "ref %u overflow\n", val); val 964 libavcodec/h264_cavlc.c fill_rectangle(&h->ref_cache[list][ scan8[0] ], 4, 4, 8, val, 1); val 981 libavcodec/h264_cavlc.c unsigned int val; val 984 libavcodec/h264_cavlc.c val= 0; val 986 libavcodec/h264_cavlc.c val= get_bits1(&h->gb)^1; val 988 libavcodec/h264_cavlc.c val= get_ue_golomb_31(&h->gb); val 989 libavcodec/h264_cavlc.c if (val >= local_ref_count[list]){ val 990 libavcodec/h264_cavlc.c av_log(h->avctx, AV_LOG_ERROR, "ref %u overflow\n", val); val 995 libavcodec/h264_cavlc.c val= LIST_NOT_USED&0xFF; val 996 libavcodec/h264_cavlc.c fill_rectangle(&h->ref_cache[list][ scan8[0] + 16*i ], 4, 2, 8, val, 1); val 1001 libavcodec/h264_cavlc.c unsigned int val; val 1008 libavcodec/h264_cavlc.c val= pack16to32(mx,my); val 1010 libavcodec/h264_cavlc.c val=0; val 1011 libavcodec/h264_cavlc.c fill_rectangle(h->mv_cache[list][ scan8[0] + 16*i ], 4, 2, 8, val, 4); val 1018 libavcodec/h264_cavlc.c unsigned int val; val 1021 libavcodec/h264_cavlc.c val= 0; val 1023 libavcodec/h264_cavlc.c val= get_bits1(&h->gb)^1; val 1025 libavcodec/h264_cavlc.c val= get_ue_golomb_31(&h->gb); val 1026 libavcodec/h264_cavlc.c if (val >= local_ref_count[list]){ val 1027 libavcodec/h264_cavlc.c av_log(h->avctx, AV_LOG_ERROR, "ref %u overflow\n", val); val 1032 libavcodec/h264_cavlc.c val= LIST_NOT_USED&0xFF; val 1033 libavcodec/h264_cavlc.c fill_rectangle(&h->ref_cache[list][ scan8[0] + 2*i ], 2, 4, 8, val, 1); val 1038 libavcodec/h264_cavlc.c unsigned int val; val 1045 libavcodec/h264_cavlc.c val= pack16to32(mx,my); val 1047 libavcodec/h264_cavlc.c val=0; val 1048 libavcodec/h264_cavlc.c fill_rectangle(h->mv_cache[list][ scan8[0] + 2*i ], 2, 4, 8, val, 4); val 714 libavcodec/hevc.c int val = 0; val 716 libavcodec/hevc.c val <<= 16; val 717 libavcodec/hevc.c val += get_bits(gb, 16); val 720 libavcodec/hevc.c val <<= rest; val 721 libavcodec/hevc.c val += get_bits(gb, rest); val 723 libavcodec/hevc.c sh->entry_point_offset[i] = val + 1; // +1; // +1 to get the size val 1485 libavcodec/hevc_ps.c int val = 0; val 1502 libavcodec/hevc_ps.c val += pps->row_height[tile_y] * pps->column_width[i]; val 1504 libavcodec/hevc_ps.c val += sps->ctb_width * pps->row_height[i]; val 1506 libavcodec/hevc_ps.c val += (tb_y - pps->row_bd[tile_y]) * pps->column_width[tile_x] + val 1509 libavcodec/hevc_ps.c pps->ctb_addr_rs_to_ts[ctb_addr_rs] = val; val 1510 libavcodec/hevc_ps.c pps->ctb_addr_ts_to_rs[val] = ctb_addr_rs; val 1540 libavcodec/hevc_ps.c int val = pps->ctb_addr_rs_to_ts[ctb_addr_rs] << val 1544 libavcodec/hevc_ps.c val += (m & x ? m * m : 0) + (m & y ? 2 * m * m : 0); val 1546 libavcodec/hevc_ps.c pps->min_tb_addr_zs[y * (sps->tb_mask+2) + x] = val; val 43 libavcodec/hevcpred_template.c #define EXTEND(ptr, val, len) \ val 45 libavcodec/hevcpred_template.c pixel4 pix = PIXEL_SPLAT_X4(val); \ val 209 libavcodec/hqx.c int val; val 211 libavcodec/hqx.c val = show_bits(gb, ac->lut_bits); val 212 libavcodec/hqx.c if (ac->lut[val].bits == -1) { val 215 libavcodec/hqx.c val = ac->lut[val].lev + show_bits(&gb2, ac->extra_bits); val 217 libavcodec/hqx.c *run = ac->lut[val].run; val 218 libavcodec/hqx.c *lev = ac->lut[val].lev; val 219 libavcodec/hqx.c skip_bits(gb, ac->lut[val].bits); val 37 libavcodec/huffman.c uint64_t val; val 45 libavcodec/huffman.c if (child < size - 1 && h[child].val > h[child+1].val) val 47 libavcodec/huffman.c if (h[root].val > h[child].val) { val 79 libavcodec/huffman.c h[i].val = (stats[map[i]] << 14) + offset; val 86 libavcodec/huffman.c uint64_t min1v = h[0].val; val 88 libavcodec/huffman.c h[0].val = INT64_MAX; val 92 libavcodec/huffman.c h[0].val += min1v; val 99 libavcodec/huffyuvdec.c int i, val, repeat; val 103 libavcodec/huffyuvdec.c val = get_bits(gb, 5); val 111 libavcodec/huffyuvdec.c dst[i++] = val; val 172 libavcodec/huffyuvenc.c int val = len[i]; val 175 libavcodec/huffyuvenc.c for (; i < n && len[i] == val && repeat < 255; i++) val 178 libavcodec/huffyuvenc.c av_assert0(val < 32 && val >0 && repeat < 256 && repeat>0); val 180 libavcodec/huffyuvenc.c buf[index++] = val; val 183 libavcodec/huffyuvenc.c buf[index++] = val | (repeat << 5); val 154 libavcodec/ituh263dec.c unsigned int val, gob_number; val 158 libavcodec/ituh263dec.c val = show_bits(&s->gb, 16); val 159 libavcodec/ituh263dec.c if(val) val 251 libavcodec/ituh263dec.c int code, val, sign, shift; val 261 libavcodec/ituh263dec.c val = code; val 263 libavcodec/ituh263dec.c val = (val - 1) << shift; val 264 libavcodec/ituh263dec.c val |= get_bits(&s->gb, shift); val 265 libavcodec/ituh263dec.c val++; val 268 libavcodec/ituh263dec.c val = -val; val 269 libavcodec/ituh263dec.c val += pred; val 273 libavcodec/ituh263dec.c val = sign_extend(val, 5 + f_code); val 276 libavcodec/ituh263dec.c if (pred < -31 && val < -63) val 277 libavcodec/ituh263dec.c val += 64; val 278 libavcodec/ituh263dec.c if (pred > 32 && val > 63) val 279 libavcodec/ituh263dec.c val -= 64; val 282 libavcodec/ituh263dec.c return val; val 409 libavcodec/ituh263enc.c static void h263p_encode_umotion(MpegEncContext * s, int val) val 418 libavcodec/ituh263enc.c if ( val == 0) val 420 libavcodec/ituh263enc.c else if (val == 1) val 422 libavcodec/ituh263enc.c else if (val == -1) val 426 libavcodec/ituh263enc.c sval = ((val < 0) ? (short)(-val):(short)val); val 441 libavcodec/ituh263enc.c code = ((code << 1) | (val < 0)) << 1; val 645 libavcodec/ituh263enc.c void ff_h263_encode_motion(MpegEncContext * s, int val, int f_code) val 649 libavcodec/ituh263enc.c if (val == 0) { val 657 libavcodec/ituh263enc.c val = sign_extend(val, 6 + bit_size); val 658 libavcodec/ituh263enc.c sign = val>>31; val 659 libavcodec/ituh263enc.c val= (val^sign)-sign; val 662 libavcodec/ituh263enc.c val--; val 663 libavcodec/ituh263enc.c code = (val >> bit_size) + 1; val 664 libavcodec/ituh263enc.c bits = val & (range - 1); val 684 libavcodec/ituh263enc.c int val, bit_size, code; val 688 libavcodec/ituh263enc.c val=mv; val 689 libavcodec/ituh263enc.c if (val < 0) val 690 libavcodec/ituh263enc.c val = -val; val 691 libavcodec/ituh263enc.c val--; val 692 libavcodec/ituh263enc.c code = (val >> bit_size) + 1; val 121 libavcodec/ivi_common.c static uint16_t inv_bits(uint16_t val, int nbits) val 126 libavcodec/ivi_common.c res = ff_reverse[val] >> (8 - nbits); val 128 libavcodec/ivi_common.c res = ((ff_reverse[val & 0xFF] << 8) + val 129 libavcodec/ivi_common.c (ff_reverse[val >> 8])) >> (16 - nbits); val 515 libavcodec/ivi_common.c int pos, run, val; val 548 libavcodec/ivi_common.c val = IVI_TOSIGNED((hi << 6) | lo); val 555 libavcodec/ivi_common.c val = rvmap->valtab[sym]; val 564 libavcodec/ivi_common.c if (!val) val 569 libavcodec/ivi_common.c val = val * q + FFSIGN(val) * (((q ^ 1) - 1) >> 1); val 570 libavcodec/ivi_common.c trvec[pos] = val; val 572 libavcodec/ivi_common.c col_flags[pos & col_mask] |= !!val; val 293 libavcodec/ivi_common.h #define IVI_TOSIGNED(val) (-(((val) >> 1) ^ -((val) & 1))) val 160 libavcodec/j2kenc.c static void put_bits(Jpeg2000EncoderContext *s, int val, int n) // TODO: optimize val 168 libavcodec/j2kenc.c *s->buf |= val << (7 - s->bit_index++); val 200 libavcodec/j2kenc.c curval = node->val; val 208 libavcodec/j2kenc.c if (stack[sp]->val >= threshold){ val 212 libavcodec/j2kenc.c put_bits(s, 0, stack[sp]->val - curval); val 214 libavcodec/j2kenc.c curval = stack[sp]->val; val 223 libavcodec/j2kenc.c if (node->parent->val <= node->val) val 225 libavcodec/j2kenc.c node->parent->val = node->val; val 686 libavcodec/j2kenc.c prec->cblkincl[pos].val = prec->cblk[yi * cblknw + xi].ninclpasses == 0; val 688 libavcodec/j2kenc.c prec->zerobits[pos].val = expn[bandno] + numgbits - 1 - prec->cblk[yi * cblknw + xi].nonzerobits; val 88 libavcodec/jpeg2000.c t[i].val = 0; val 127 libavcodec/jpeg2000.h uint8_t val; val 145 libavcodec/jpeg2000dec.c curval = node->val; val 147 libavcodec/jpeg2000dec.c curval = stack[sp]->val; val 150 libavcodec/jpeg2000dec.c if (curval < stack[sp]->val) val 151 libavcodec/jpeg2000dec.c curval = stack[sp]->val; val 162 libavcodec/jpeg2000dec.c stack[sp]->val = curval; val 1042 libavcodec/jpeg2000dec.c int val; val 1043 libavcodec/jpeg2000dec.c val = ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1044 libavcodec/jpeg2000dec.c val = (val << 1) + ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1045 libavcodec/jpeg2000dec.c val = (val << 1) + ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1046 libavcodec/jpeg2000dec.c val = (val << 1) + ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1047 libavcodec/jpeg2000dec.c if (val != 0xa) val 1266 libavcodec/jpeg2000dec.c int val = lrintf(*datap) + (1 << (cbps - 1)); val 1268 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); val 1269 libavcodec/jpeg2000dec.c *dst = val << (8 - cbps); val 1275 libavcodec/jpeg2000dec.c int val = *i_datap + (1 << (cbps - 1)); val 1277 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); val 1278 libavcodec/jpeg2000dec.c *dst = val << (8 - cbps); val 1309 libavcodec/jpeg2000dec.c int val = lrintf(*datap) + (1 << (cbps - 1)); val 1311 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); val 1313 libavcodec/jpeg2000dec.c *dst = val << (16 - cbps); val 1319 libavcodec/jpeg2000dec.c int val = *i_datap + (1 << (cbps - 1)); val 1321 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); val 1323 libavcodec/jpeg2000dec.c *dst = val << (16 - cbps); val 44 libavcodec/jpeglsenc.c int val; val 56 libavcodec/jpeglsenc.c val = 2 * FFABS(err) - 1 - map; val 58 libavcodec/jpeglsenc.c val = 2 * err + map; val 60 libavcodec/jpeglsenc.c set_ur_golomb_jpegls(pb, val, k, state->limit, state->qbpp); val 72 libavcodec/jpeglsenc.c int val, map; val 86 libavcodec/jpeglsenc.c val = -(2 * err) - 1 - RItype + map; val 88 libavcodec/jpeglsenc.c val = 2 * err - RItype - map; val 89 libavcodec/jpeglsenc.c set_ur_golomb_jpegls(pb, val, k, state->limit - limit_add - 1, state->qbpp); val 93 libavcodec/jpeglsenc.c state->A[Q] += (val + 1 - RItype) >> 1; val 76 libavcodec/kmvc.c int res, val; val 92 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 94 libavcodec/kmvc.c BLK(ctx->cur, bx + (i & 0x7), by + (i >> 3)) = val; val 103 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 105 libavcodec/kmvc.c BLK(ctx->cur, l0x + (j & 3), l0y + (j >> 2)) = val; val 107 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 108 libavcodec/kmvc.c mx = val & 0xF; val 109 libavcodec/kmvc.c my = val >> 4; val 126 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 127 libavcodec/kmvc.c BLK(ctx->cur, l1x, l1y) = val; val 128 libavcodec/kmvc.c BLK(ctx->cur, l1x + 1, l1y) = val; val 129 libavcodec/kmvc.c BLK(ctx->cur, l1x, l1y + 1) = val; val 130 libavcodec/kmvc.c BLK(ctx->cur, l1x + 1, l1y + 1) = val; val 132 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 133 libavcodec/kmvc.c mx = val & 0xF; val 134 libavcodec/kmvc.c my = val >> 4; val 165 libavcodec/kmvc.c int res, val; val 183 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 185 libavcodec/kmvc.c BLK(ctx->cur, bx + (i & 0x7), by + (i >> 3)) = val; val 203 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 205 libavcodec/kmvc.c BLK(ctx->cur, l0x + (j & 3), l0y + (j >> 2)) = val; val 207 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 208 libavcodec/kmvc.c mx = (val & 0xF) - 8; val 209 libavcodec/kmvc.c my = (val >> 4) - 8; val 226 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 227 libavcodec/kmvc.c BLK(ctx->cur, l1x, l1y) = val; val 228 libavcodec/kmvc.c BLK(ctx->cur, l1x + 1, l1y) = val; val 229 libavcodec/kmvc.c BLK(ctx->cur, l1x, l1y + 1) = val; val 230 libavcodec/kmvc.c BLK(ctx->cur, l1x + 1, l1y + 1) = val; val 232 libavcodec/kmvc.c val = bytestream2_get_byte(&ctx->g); val 233 libavcodec/kmvc.c mx = (val & 0xF) - 8; val 234 libavcodec/kmvc.c my = (val >> 4) - 8; val 111 libavcodec/lagarith.c unsigned val; val 130 libavcodec/lagarith.c val = get_bits_long(gb, bits); val 131 libavcodec/lagarith.c val |= 1U << bits; val 133 libavcodec/lagarith.c *value = val - 1; val 76 libavcodec/lagarithrac.h int val; val 85 libavcodec/lagarithrac.h val = 0; val 89 libavcodec/lagarithrac.h val = l->range_hash[low_scaled]; val 90 libavcodec/lagarithrac.h while (l->low >= range_scaled * l->prob[val + 1]) val 91 libavcodec/lagarithrac.h val++; val 94 libavcodec/lagarithrac.h l->range = range_scaled * (l->prob[val + 1] - l->prob[val]); val 96 libavcodec/lagarithrac.h val = 255; val 103 libavcodec/lagarithrac.h l->low -= range_scaled * l->prob[val]; val 105 libavcodec/lagarithrac.h return val; val 228 libavcodec/libvpxenc.c enum vp8e_enc_control_id id, int val) val 236 libavcodec/libvpxenc.c av_log(avctx, AV_LOG_DEBUG, " %*s%d\n", width, buf, val); val 238 libavcodec/libvpxenc.c res = vpx_codec_control(&ctx->encoder, id, val); val 654 libavcodec/libx264.c char param[256]={0}, val[256]={0}; val 655 libavcodec/libx264.c if(sscanf(p, "%255[^:=]=%255[^:]", param, val) == 1){ val 658 libavcodec/libx264.c OPT_STR(param, val); val 62 libavcodec/loco.c int val = r->count; val 64 libavcodec/loco.c while (r->sum > val && cnt < 9) { val 65 libavcodec/loco.c val <<= 1; val 72 libavcodec/loco.c static inline void loco_update_rice_param(RICEContext *r, int val) val 74 libavcodec/loco.c r->sum += val; val 132 libavcodec/loco.c int val; val 151 libavcodec/loco.c val = loco_get_rice(&rc); val 152 libavcodec/loco.c data[0] = 128 + val; val 155 libavcodec/loco.c val = loco_get_rice(&rc); val 156 libavcodec/loco.c data[i * step] = data[i * step - step] + val; val 161 libavcodec/loco.c val = loco_get_rice(&rc); val 162 libavcodec/loco.c data[0] = data[-stride] + val; val 165 libavcodec/loco.c val = loco_get_rice(&rc); val 166 libavcodec/loco.c data[i * step] = loco_predict(&data[i * step], stride, step) + val; val 200 libavcodec/lsp.c double val = -2 * lsp[2*i]; val 201 libavcodec/lsp.c f[i] = val * f[i-1] + 2*f[i-2]; val 203 libavcodec/lsp.c f[j] += f[j-1] * val + f[j-2]; val 204 libavcodec/lsp.c f[1] += val; val 175 libavcodec/mace.c static int16_t read_table(ChannelData *chd, uint8_t val, int tab_idx) val 179 libavcodec/mace.c if (val < tabs[tab_idx].stride) val 180 libavcodec/mace.c current = tabs[tab_idx].tab2[((chd->index & 0x7f0) >> 4) * tabs[tab_idx].stride + val]; val 182 libavcodec/mace.c current = - 1 - tabs[tab_idx].tab2[((chd->index & 0x7f0) >> 4)*tabs[tab_idx].stride + 2*tabs[tab_idx].stride-val-1]; val 184 libavcodec/mace.c if (( chd->index += tabs[tab_idx].tab1[val]-(chd->index >> 5) ) < 0) val 190 libavcodec/mace.c static void chomp3(ChannelData *chd, int16_t *output, uint8_t val, int tab_idx) val 193 libavcodec/mace.c int16_t current = read_table(chd, val, tab_idx); val 201 libavcodec/mace.c static void chomp6(ChannelData *chd, int16_t *output, uint8_t val, int tab_idx) val 203 libavcodec/mace.c int16_t current = read_table(chd, val, tab_idx); val 268 libavcodec/mace.c uint8_t val[2][3] = {{pkt >> 5, (pkt >> 3) & 3, pkt & 7 }, val 273 libavcodec/mace.c chomp3(&ctx->chd[i], output, val[1][l], l); val 275 libavcodec/mace.c chomp6(&ctx->chd[i], output, val[0][l], l); val 139 libavcodec/mathops.h static inline av_const int sign_extend(int val, unsigned bits) val 142 libavcodec/mathops.h union { unsigned u; int s; } v = { (unsigned) val << shift }; val 148 libavcodec/mathops.h static inline av_const unsigned zero_extend(unsigned val, unsigned bits) val 150 libavcodec/mathops.h return (val << ((8 * sizeof(int)) - bits)) >> ((8 * sizeof(int)) - bits); val 121 libavcodec/metasound.c float val = ((const float []) { 0.4, 0.35, 0.28 })[ftype]; val 127 libavcodec/metasound.c val = 0.5; val 136 libavcodec/metasound.c tmp2 + val * hist[idx] + 1.0 : tmp2 + 1.0; val 138 libavcodec/metasound.c st = use_hist ? (1.0 - val) * tmp2 + val * hist[idx] + 1.0 val 73 libavcodec/mips/lsp_mips.h double val = lsp[2*i]; val 100 libavcodec/mips/lsp_mips.h : [f_j_2]"=&f"(f_j_2), [f_j_1]"=&f"(f_j_1), [val]"+f"(val), val 106 libavcodec/mips/lsp_mips.h f[1] += val; val 643 libavcodec/mjpegdec.c int code, i, j, level, val; val 646 libavcodec/mjpegdec.c val = mjpeg_decode_dc(s, dc_index); val 647 libavcodec/mjpegdec.c if (val == 0xfffff) { val 651 libavcodec/mjpegdec.c val = val * quant_matrix[0] + s->last_dc[component]; val 652 libavcodec/mjpegdec.c s->last_dc[component] = val; val 653 libavcodec/mjpegdec.c block[0] = val; val 692 libavcodec/mjpegdec.c int val; val 694 libavcodec/mjpegdec.c val = mjpeg_decode_dc(s, dc_index); val 695 libavcodec/mjpegdec.c if (val == 0xfffff) { val 699 libavcodec/mjpegdec.c val = (val * quant_matrix[0] << Al) + s->last_dc[component]; val 700 libavcodec/mjpegdec.c s->last_dc[component] = val; val 701 libavcodec/mjpegdec.c block[0] = val; val 711 libavcodec/mjpegdec.c int code, i, j, level, val, run; val 758 libavcodec/mjpegdec.c val = (1 << run); val 761 libavcodec/mjpegdec.c val += NEG_USR32(GET_CACHE(re, &s->gb), run); val 764 libavcodec/mjpegdec.c *EOBRUN = val - 1; val 809 libavcodec/mjpegdec.c int code, i = ss, j, sign, val, run; val 823 libavcodec/mjpegdec.c val = SHOW_UBITS(re, &s->gb, 1); val 827 libavcodec/mjpegdec.c val--; val 828 libavcodec/mjpegdec.c block[j] = ((quant_matrix[j]^val) - val) << Al; val 840 libavcodec/mjpegdec.c val = run; val 842 libavcodec/mjpegdec.c if (val) { val 844 libavcodec/mjpegdec.c run += SHOW_UBITS(re, &s->gb, val); val 845 libavcodec/mjpegdec.c LAST_SKIP_BITS(re, &s->gb, val); val 1825 libavcodec/mjpegdec.c int val; val 1833 libavcodec/mjpegdec.c val = *buf_ptr++; val 1839 libavcodec/mjpegdec.c val = -1; val 1843 libavcodec/mjpegdec.c return val; val 123 libavcodec/mjpegenc.c int component, dc, run, last_index, val; val 131 libavcodec/mjpegenc.c val = dc - s->last_dc[component]; val 133 libavcodec/mjpegenc.c ff_mjpeg_encode_dc(&s->pb, val, m->huff_size_dc_luminance, m->huff_code_dc_luminance); val 137 libavcodec/mjpegenc.c ff_mjpeg_encode_dc(&s->pb, val, m->huff_size_dc_chrominance, m->huff_code_dc_chrominance); val 149 libavcodec/mjpegenc.c val = block[j]; val 150 libavcodec/mjpegenc.c if (val == 0) { val 157 libavcodec/mjpegenc.c mant = val; val 158 libavcodec/mjpegenc.c if (val < 0) { val 159 libavcodec/mjpegenc.c val = -val; val 163 libavcodec/mjpegenc.c nbits= av_log2_16bit(val) + 1; val 363 libavcodec/mjpegenc_common.c void ff_mjpeg_encode_dc(PutBitContext *pb, int val, val 368 libavcodec/mjpegenc_common.c if (val == 0) { val 371 libavcodec/mjpegenc_common.c mant = val; val 372 libavcodec/mjpegenc_common.c if (val < 0) { val 373 libavcodec/mjpegenc_common.c val = -val; val 377 libavcodec/mjpegenc_common.c nbits= av_log2_16bit(val) + 1; val 40 libavcodec/mjpegenc_common.h void ff_mjpeg_encode_dc(PutBitContext *pb, int val, val 107 libavcodec/mpeg12dec.c int code, sign, val, shift; val 117 libavcodec/mpeg12dec.c val = code; val 119 libavcodec/mpeg12dec.c val = (val - 1) << shift; val 120 libavcodec/mpeg12dec.c val |= get_bits(&s->gb, shift); val 121 libavcodec/mpeg12dec.c val++; val 124 libavcodec/mpeg12dec.c val = -val; val 125 libavcodec/mpeg12dec.c val += pred; val 128 libavcodec/mpeg12dec.c return sign_extend(val, 5 + shift); val 734 libavcodec/mpeg12dec.c int i, j, k, cbp, val, mb_type, motion_type; val 935 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][k], val 937 libavcodec/mpeg12dec.c s->last_mv[i][j][k] = val; val 938 libavcodec/mpeg12dec.c s->mv[i][j][k] = val; val 953 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][0], val 955 libavcodec/mpeg12dec.c s->last_mv[i][j][0] = val; val 956 libavcodec/mpeg12dec.c s->mv[i][j][0] = val; val 957 libavcodec/mpeg12dec.c av_dlog(s->avctx, "fmx=%d\n", val); val 958 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][1], val 960 libavcodec/mpeg12dec.c s->last_mv[i][j][1] = val << 1; val 961 libavcodec/mpeg12dec.c s->mv[i][j][1] = val; val 962 libavcodec/mpeg12dec.c av_dlog(s->avctx, "fmy=%d\n", val); val 973 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][k], val 975 libavcodec/mpeg12dec.c s->last_mv[i][0][k] = val; val 976 libavcodec/mpeg12dec.c s->last_mv[i][1][k] = val; val 977 libavcodec/mpeg12dec.c s->mv[i][0][k] = val; val 568 libavcodec/mpeg12enc.c static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code) val 570 libavcodec/mpeg12enc.c if (val == 0) { val 580 libavcodec/mpeg12enc.c val = sign_extend(val, 5 + bit_size); val 582 libavcodec/mpeg12enc.c if (val >= 0) { val 583 libavcodec/mpeg12enc.c val--; val 584 libavcodec/mpeg12enc.c code = (val >> bit_size) + 1; val 585 libavcodec/mpeg12enc.c bits = val & (range - 1); val 588 libavcodec/mpeg12enc.c val = -val; val 589 libavcodec/mpeg12enc.c val--; val 590 libavcodec/mpeg12enc.c code = (val >> bit_size) + 1; val 591 libavcodec/mpeg12enc.c bits = val & (range - 1); val 1060 libavcodec/mpeg12enc.c int val, bit_size, code; val 1064 libavcodec/mpeg12enc.c val = mv; val 1065 libavcodec/mpeg12enc.c if (val < 0) val 1066 libavcodec/mpeg12enc.c val = -val; val 1067 libavcodec/mpeg12enc.c val--; val 1068 libavcodec/mpeg12enc.c code = (val >> bit_size) + 1; val 214 libavcodec/mpegaudiodec_template.c int64_t val; val 219 libavcodec/mpegaudiodec_template.c val = MUL64((int)(mant + (-1U << n) + 1), scale_factor_mult[n-1][mod]); val 222 libavcodec/mpegaudiodec_template.c return (int)((val + (1LL << (shift - 1))) >> shift); val 227 libavcodec/mpegaudiodec_template.c int shift, mod, val; val 233 libavcodec/mpegaudiodec_template.c val = (mant - (steps >> 1)) * scale_factor_mult2[steps >> 2][mod]; val 236 libavcodec/mpegaudiodec_template.c val = (val + (1 << (shift - 1))) >> shift; val 237 libavcodec/mpegaudiodec_template.c return val; val 346 libavcodec/mpegaudiodec_template.c int val = j; val 348 libavcodec/mpegaudiodec_template.c val1 = val % steps; val 349 libavcodec/mpegaudiodec_template.c val /= steps; val 350 libavcodec/mpegaudiodec_template.c val2 = val % steps; val 351 libavcodec/mpegaudiodec_template.c val3 = val / steps; val 74 libavcodec/msmpeg4dec.c int code, val, sign, shift; val 85 libavcodec/msmpeg4dec.c val = code; val 87 libavcodec/msmpeg4dec.c val = (val - 1) << shift; val 88 libavcodec/msmpeg4dec.c val |= get_bits(&s->gb, shift); val 89 libavcodec/msmpeg4dec.c val++; val 92 libavcodec/msmpeg4dec.c val = -val; val 94 libavcodec/msmpeg4dec.c val += pred; val 95 libavcodec/msmpeg4dec.c if (val <= -64) val 96 libavcodec/msmpeg4dec.c val += 64; val 97 libavcodec/msmpeg4dec.c else if (val >= 64) val 98 libavcodec/msmpeg4dec.c val -= 64; val 100 libavcodec/msmpeg4dec.c return val; val 232 libavcodec/msmpeg4dec.c int val = ((code >> (5 - i)) & 1); val 235 libavcodec/msmpeg4dec.c val = val ^ pred; val 236 libavcodec/msmpeg4dec.c *coded_val = val; val 238 libavcodec/msmpeg4dec.c cbp |= val << (5 - i); val 347 libavcodec/msmpeg4enc.c static void msmpeg4v2_encode_motion(MpegEncContext * s, int val) val 351 libavcodec/msmpeg4enc.c if (val == 0) { val 358 libavcodec/msmpeg4enc.c if (val <= -64) val 359 libavcodec/msmpeg4enc.c val += 64; val 360 libavcodec/msmpeg4enc.c else if (val >= 64) val 361 libavcodec/msmpeg4enc.c val -= 64; val 363 libavcodec/msmpeg4enc.c if (val >= 0) { val 366 libavcodec/msmpeg4enc.c val = -val; val 369 libavcodec/msmpeg4enc.c val--; val 370 libavcodec/msmpeg4enc.c code = (val >> bit_size) + 1; val 371 libavcodec/msmpeg4enc.c bits = val & (range - 1); val 449 libavcodec/msmpeg4enc.c int val, pred; val 450 libavcodec/msmpeg4enc.c val = (s->block_last_index[i] >= 1); val 451 libavcodec/msmpeg4enc.c cbp |= val << (5 - i); val 455 libavcodec/msmpeg4enc.c *coded_block = val; val 456 libavcodec/msmpeg4enc.c val = val ^ pred; val 458 libavcodec/msmpeg4enc.c coded_cbp |= val << (5 - i); val 68 libavcodec/mss1.c int val = (((c->value - c->low + 1) << bits) - 1) / range; val 69 libavcodec/mss1.c int prob = range * val; val 76 libavcodec/mss1.c return val; val 82 libavcodec/mss1.c int val = ((c->value - c->low + 1) * mod_val - 1) / range; val 83 libavcodec/mss1.c int prob = range * val; val 90 libavcodec/mss1.c return val; val 96 libavcodec/mss1.c int val = ((c->value - c->low + 1) * probs[0] - 1) / range; val 99 libavcodec/mss1.c while (probs[sym] > val) val 95 libavcodec/mss12.c void ff_mss12_model_update(Model *m, int val) val 99 libavcodec/mss12.c if (m->weights[val] == m->weights[val - 1]) { val 100 libavcodec/mss12.c for (i = val; m->weights[i - 1] == m->weights[val]; i--); val 101 libavcodec/mss12.c if (i != val) { val 104 libavcodec/mss12.c sym1 = m->idx2sym[val]; val 107 libavcodec/mss12.c m->idx2sym[val] = sym2; val 110 libavcodec/mss12.c val = i; val 113 libavcodec/mss12.c m->weights[val]++; val 114 libavcodec/mss12.c for (i = val - 1; i >= 0; i--) val 162 libavcodec/mss12.c int i, val, pix; val 164 libavcodec/mss12.c val = acoder->get_model_sym(acoder, &pctx->cache_model); val 165 libavcodec/mss12.c if (val < pctx->num_syms) { val 175 libavcodec/mss12.c if (idx == val) val 180 libavcodec/mss12.c val = FFMIN(i, pctx->cache_size - 1); val 182 libavcodec/mss12.c pix = pctx->cache[val]; val 188 libavcodec/mss12.c val = i; val 190 libavcodec/mss12.c if (val) { val 191 libavcodec/mss12.c for (i = val; i > 0; i--) val 441 libavcodec/mss12.c int val, inv; val 444 libavcodec/mss12.c val = acoder->get_model_sym(acoder, &sc->pivot) + 1; val 446 libavcodec/mss12.c if (val > 2) { val 450 libavcodec/mss12.c val = acoder->get_number(acoder, (base + 1) / 2 - 2) + 3; val 453 libavcodec/mss12.c if ((unsigned)val >= base) val 456 libavcodec/mss12.c return inv ? base - val : val; val 96 libavcodec/mss12.h void ff_mss12_model_update(Model *m, int val); val 121 libavcodec/mss12.h int idx, val; \ val 125 libavcodec/mss12.h val = m->idx2sym[idx]; \ val 130 libavcodec/mss12.h return val; \ val 97 libavcodec/mss2.c int val; val 104 libavcodec/mss2.c val = arith2_get_scaled_value(c->value - c->low, n, range) >> scale; val 106 libavcodec/mss2.c arith2_rescale_interval(c, range, val << scale, (val + 1) << scale, n); val 110 libavcodec/mss2.c return val; val 117 libavcodec/mss2.c int i = 0, val; val 124 libavcodec/mss2.c val = arith2_get_scaled_value(c->value - c->low, n, range) >> scale; val 125 libavcodec/mss2.c while (probs[++i] > val) ; val 162 libavcodec/mss3.c static void model_update(Model *m, int val) val 167 libavcodec/mss3.c m->weights[val]++; val 216 libavcodec/mss3.c static void model256_update(Model256 *m, int val) val 222 libavcodec/mss3.c m->weights[val]++; val 324 libavcodec/mss3.c int val; val 327 libavcodec/mss3.c val = c->low / c->range; val 328 libavcodec/mss3.c c->low -= c->range * val; val 333 libavcodec/mss3.c return val; val 359 libavcodec/mss3.c int prob, prob2, helper, val; val 365 libavcodec/mss3.c val = 0; val 371 libavcodec/mss3.c val = end; val 377 libavcodec/mss3.c end = (end2 + val) >> 1; val 378 libavcodec/mss3.c } while (end != val); val 384 libavcodec/mss3.c model_update(m, val); val 386 libavcodec/mss3.c return val; val 391 libavcodec/mss3.c int prob, prob2, helper, val; val 400 libavcodec/mss3.c val = m->secondary[ssym]; val 403 libavcodec/mss3.c while (end > val + 1) { val 404 libavcodec/mss3.c ssym = (end + val) >> 1; val 407 libavcodec/mss3.c val = ssym; val 409 libavcodec/mss3.c end = (end + val) >> 1; val 413 libavcodec/mss3.c prob = m->freqs[val] * c->range; val 414 libavcodec/mss3.c if (val != 255) val 415 libavcodec/mss3.c prob2 = m->freqs[val + 1] * c->range; val 422 libavcodec/mss3.c model256_update(m, val); val 424 libavcodec/mss3.c return val; val 436 libavcodec/mss3.c int val, sign; val 438 libavcodec/mss3.c val = rac_get_model_sym(c, m); val 439 libavcodec/mss3.c if (val) { val 441 libavcodec/mss3.c if (val > 1) { val 442 libavcodec/mss3.c val--; val 443 libavcodec/mss3.c val = (1 << val) + rac_get_bits(c, val); val 446 libavcodec/mss3.c val = -val; val 449 libavcodec/mss3.c return val; val 500 libavcodec/mss3.c int skip, val, sign, pos = 1, zz_pos, dc; val 528 libavcodec/mss3.c val = rac_get_model256_sym(c, &bc->ac_model); val 529 libavcodec/mss3.c if (!val) val 531 libavcodec/mss3.c if (val == 0xF0) { val 535 libavcodec/mss3.c skip = val >> 4; val 536 libavcodec/mss3.c val = val & 0xF; val 537 libavcodec/mss3.c if (!val) val 544 libavcodec/mss3.c if (val > 1) { val 545 libavcodec/mss3.c val--; val 546 libavcodec/mss3.c val = (1 << val) + rac_get_bits(c, val); val 549 libavcodec/mss3.c val = -val; val 552 libavcodec/mss3.c block[zz_pos] = val * bc->qmat[zz_pos]; val 207 libavcodec/mss4.c int val; val 212 libavcodec/mss4.c val = get_bits(gb, nbits); val 213 libavcodec/mss4.c if (val < (1 << (nbits - 1))) val 214 libavcodec/mss4.c val -= (1 << nbits) - 1; val 216 libavcodec/mss4.c return val; val 221 libavcodec/mss4.c int val = get_vlc2(gb, vlc->table, vlc->bits, 2); val 223 libavcodec/mss4.c return get_coeff_bits(gb, val); val 230 libavcodec/mss4.c int skip, val, pos = 1, zz_pos, dc; val 258 libavcodec/mss4.c val = get_vlc2(gb, ac_vlc->table, 9, 2); val 259 libavcodec/mss4.c if (!val) val 261 libavcodec/mss4.c if (val == -1) val 263 libavcodec/mss4.c if (val == 0xF0) { val 267 libavcodec/mss4.c skip = val >> 4; val 268 libavcodec/mss4.c val = get_coeff_bits(gb, val & 0xF); val 274 libavcodec/mss4.c block[zz_pos] = val * quant_mat[zz_pos]; val 100 libavcodec/msvideo1enc.c uint16_t val = src[x + i - j*p->linesize[0]/2]; val 103 libavcodec/msvideo1enc.c c->block2[remap[i + j*4]*3 + k] = (val >> (10-k*5)) & 0x1F; val 66 libavcodec/nellymoserdec.c float *aptr, *bptr, *pptr, val, pval; val 74 libavcodec/nellymoserdec.c val = ff_nelly_init_table[get_bits(&s->gb, 6)]; val 77 libavcodec/nellymoserdec.c val += ff_nelly_delta_table[get_bits(&s->gb, 5)]; val 78 libavcodec/nellymoserdec.c pval = -pow(2, val/2048) * s->scale_bias; val 80 libavcodec/nellymoserdec.c *bptr++ = val; val 200 libavcodec/nellymoserenc.c #define find_best(val, table, LUT, LUT_add, LUT_size) \ val 202 libavcodec/nellymoserenc.c LUT[av_clip ((lrintf(val) >> 8) + LUT_add, 0, LUT_size - 1)]; \ val 203 libavcodec/nellymoserenc.c if (fabs(val - table[best_idx]) > fabs(val - table[best_idx + 1])) \ val 196 libavcodec/on2avc.c int i, j, val, val1; val 199 libavcodec/on2avc.c val = get_vlc2(gb, c->cb_vlc[type].table, 9, 3); val 202 libavcodec/on2avc.c val1 = sign_extend((val >> (12 - j * 4)) & 0xF, 4); val 222 libavcodec/on2avc.c int i, val, val1, val2, sign; val 225 libavcodec/on2avc.c val = get_vlc2(gb, c->cb_vlc[type].table, 9, 3); val 227 libavcodec/on2avc.c val1 = sign_extend(val >> 8, 8); val 228 libavcodec/on2avc.c val2 = sign_extend(val & 0xFF, 8); val 51 libavcodec/opus.c int val; val 55 libavcodec/opus.c val = *(*ptr)++; val 56 libavcodec/opus.c if (val >= 252) { val 59 libavcodec/opus.c val += 4 * *(*ptr)++; val 61 libavcodec/opus.c return val; val 69 libavcodec/opus.c int val = 0; val 73 libavcodec/opus.c if (*ptr >= end || val > INT_MAX - 254) val 76 libavcodec/opus.c val += next; val 80 libavcodec/opus.c val--; val 82 libavcodec/opus.c return val; val 1213 libavcodec/opus_celt.c int s, val; val 1241 libavcodec/opus_celt.c val = (k0 - K + s) ^ s; val 1242 libavcodec/opus_celt.c norm += val * val; val 1243 libavcodec/opus_celt.c *y++ = val; val 1263 libavcodec/opus_celt.c val = (k0 - K + s) ^ s; val 1264 libavcodec/opus_celt.c norm += val * val; val 1265 libavcodec/opus_celt.c *y++ = val; val 1281 libavcodec/opus_celt.c val = (k0 - K + s) ^ s; val 1282 libavcodec/opus_celt.c norm += val * val; val 1283 libavcodec/opus_celt.c *y++ = val; val 1287 libavcodec/opus_celt.c val = (K + s) ^ s; val 1288 libavcodec/opus_celt.c norm += val * val; val 1289 libavcodec/opus_celt.c *y = val; val 149 libavcodec/pafvideo.c int val = bytestream2_get_be16(&c->gb); val 150 libavcodec/pafvideo.c int page = val >> 14; val 151 libavcodec/pafvideo.c int x = (val & 0x7F); val 152 libavcodec/pafvideo.c int y = ((val >> 7) & 0x7F); val 175 libavcodec/pafvideo.c int page, val, x, y; val 176 libavcodec/pafvideo.c val = bytestream2_get_be16(&c->gb); val 177 libavcodec/pafvideo.c page = val >> 14; val 178 libavcodec/pafvideo.c x = (val & 0x7F) * 2; val 179 libavcodec/pafvideo.c y = ((val >> 7) & 0x7F) * 2; val 108 libavcodec/pictordec.c int i, x, y, plane, tmp, ret, val; val 201 libavcodec/pictordec.c val = 0; val 219 libavcodec/pictordec.c val = bytestream2_get_byte(&s->g); val 220 libavcodec/pictordec.c if (val == marker) { val 224 libavcodec/pictordec.c val = bytestream2_get_byte(&s->g); val 230 libavcodec/pictordec.c picmemset_8bpp(s, frame, val, run, &x, &y); val 234 libavcodec/pictordec.c picmemset(s, frame, val, run, &x, &y, &plane, bits_per_plane); val 242 libavcodec/pictordec.c picmemset_8bpp(s, frame, val, run, &x, &y); val 244 libavcodec/pictordec.c picmemset(s, frame, val, run / (8 / bits_per_plane), &x, &y, &plane, bits_per_plane); val 248 libavcodec/proresdec2.c #define DECODE_CODEWORD(val, codebook) \ val 265 libavcodec/proresdec2.c val = SHOW_UBITS(re, gb, bits) - (1 << exp_order) + \ val 270 libavcodec/proresdec2.c val = (q << rice_order) + SHOW_UBITS(re, gb, rice_order); \ val 273 libavcodec/proresdec2.c val = q; \ val 427 libavcodec/proresdec2.c int i, idx, val, alpha_val; val 434 libavcodec/proresdec2.c val = get_bits(gb, num_bits); val 437 libavcodec/proresdec2.c val = get_bits(gb, num_bits == 16 ? 7 : 4); val 438 libavcodec/proresdec2.c sign = val & 1; val 439 libavcodec/proresdec2.c val = (val + 2) >> 1; val 441 libavcodec/proresdec2.c val = -val; val 443 libavcodec/proresdec2.c alpha_val = (alpha_val + val) & mask; val 452 libavcodec/proresdec2.c val = get_bits(gb, 4); val 453 libavcodec/proresdec2.c if (!val) val 454 libavcodec/proresdec2.c val = get_bits(gb, 11); val 455 libavcodec/proresdec2.c if (idx + val > num_coeffs) val 456 libavcodec/proresdec2.c val = num_coeffs - idx; val 458 libavcodec/proresdec2.c for (i = 0; i < val; i++) val 461 libavcodec/proresdec2.c for (i = 0; i < val; i++) val 489 libavcodec/proresdec_lgpl.c int i, idx, val, alpha_val; val 496 libavcodec/proresdec_lgpl.c val = get_bits(gb, num_bits); val 499 libavcodec/proresdec_lgpl.c val = get_bits(gb, num_bits == 16 ? 7 : 4); val 500 libavcodec/proresdec_lgpl.c sign = val & 1; val 501 libavcodec/proresdec_lgpl.c val = (val + 2) >> 1; val 503 libavcodec/proresdec_lgpl.c val = -val; val 505 libavcodec/proresdec_lgpl.c alpha_val = (alpha_val + val) & mask; val 514 libavcodec/proresdec_lgpl.c val = get_bits(gb, 4); val 515 libavcodec/proresdec_lgpl.c if (!val) val 516 libavcodec/proresdec_lgpl.c val = get_bits(gb, 11); val 517 libavcodec/proresdec_lgpl.c if (idx + val > num_coeffs) val 518 libavcodec/proresdec_lgpl.c val = num_coeffs - idx; val 520 libavcodec/proresdec_lgpl.c for (i = 0; i < val; i++) val 523 libavcodec/proresdec_lgpl.c for (i = 0; i < val; i++) val 157 libavcodec/proresenc_anatoliy.c static void encode_codeword(PutBitContext *pb, int val, int codebook) val 169 libavcodec/proresenc_anatoliy.c if (val >= first_exp) { /* exp golomb */ val 170 libavcodec/proresenc_anatoliy.c val -= first_exp; val 171 libavcodec/proresenc_anatoliy.c val += (1 << exp_order); val 172 libavcodec/proresenc_anatoliy.c exp = av_log2(val); val 175 libavcodec/proresenc_anatoliy.c put_bits(pb, exp + 1, val); val 178 libavcodec/proresenc_anatoliy.c put_bits(pb, (val >> rice_order), 0); val 180 libavcodec/proresenc_anatoliy.c put_bits(pb, rice_order, val & mask); val 182 libavcodec/proresenc_anatoliy.c put_bits(pb, val, 0); val 187 libavcodec/proresenc_anatoliy.c #define QSCALE(qmat,ind,val) ((val) / ((qmat)[ind])) val 188 libavcodec/proresenc_anatoliy.c #define TO_GOLOMB(val) (((val) << 1) ^ ((val) >> 31)) val 189 libavcodec/proresenc_anatoliy.c #define DIFF_SIGN(val, sign) (((val) >> 31) ^ (sign)) val 190 libavcodec/proresenc_anatoliy.c #define IS_NEGATIVE(val) ((((val) >> 31) ^ -1) + 1) val 191 libavcodec/proresenc_anatoliy.c #define TO_GOLOMB2(val,sign) ((val)==0 ? 0 : ((val) << 1) + (sign)) val 193 libavcodec/proresenc_anatoliy.c static av_always_inline int get_level(int val) val 195 libavcodec/proresenc_anatoliy.c int sign = (val >> 31); val 196 libavcodec/proresenc_anatoliy.c return (val ^ sign) - sign; val 244 libavcodec/proresenc_anatoliy.c int val = QSCALE(qmat, indp, in[(j << 6) + indp]); val 245 libavcodec/proresenc_anatoliy.c if (val) { val 250 libavcodec/proresenc_anatoliy.c level = get_level(val); val 257 libavcodec/proresenc_anatoliy.c put_bits(pb, 1, IS_NEGATIVE(val)); val 330 libavcodec/proresenc_kostya.c static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) val 342 libavcodec/proresenc_kostya.c if (val >= switch_val) { val 343 libavcodec/proresenc_kostya.c val -= switch_val - (1 << exp_order); val 344 libavcodec/proresenc_kostya.c exponent = av_log2(val); val 347 libavcodec/proresenc_kostya.c put_bits(pb, exponent + 1, val); val 349 libavcodec/proresenc_kostya.c exponent = val >> rice_order; val 355 libavcodec/proresenc_kostya.c put_sbits(pb, rice_order, val); val 583 libavcodec/proresenc_kostya.c static inline int estimate_vlc(unsigned codebook, int val) val 595 libavcodec/proresenc_kostya.c if (val >= switch_val) { val 596 libavcodec/proresenc_kostya.c val -= switch_val - (1 << exp_order); val 597 libavcodec/proresenc_kostya.c exponent = av_log2(val); val 601 libavcodec/proresenc_kostya.c return (val >> rice_order) + rice_order + 1; val 145 libavcodec/qpeg.c int corr, val; val 155 libavcodec/qpeg.c val = corr >> 4; val 156 libavcodec/qpeg.c if(val > 7) val 157 libavcodec/qpeg.c val -= 16; val 158 libavcodec/qpeg.c me_x = val; val 160 libavcodec/qpeg.c val = corr & 0xF; val 161 libavcodec/qpeg.c if(val > 7) val 162 libavcodec/qpeg.c val -= 16; val 163 libavcodec/qpeg.c me_y = val; val 213 libavcodec/ralf.c static inline int extend_code(GetBitContext *gb, int val, int range, int bits) val 215 libavcodec/ralf.c if (val == 0) { val 216 libavcodec/ralf.c val = -range - get_ue_golomb(gb); val 217 libavcodec/ralf.c } else if (val == range * 2) { val 218 libavcodec/ralf.c val = range + get_ue_golomb(gb); val 220 libavcodec/ralf.c val -= range; val 223 libavcodec/ralf.c val = (val << bits) | get_bits(gb, bits); val 224 libavcodec/ralf.c return val; val 41 libavcodec/rectangle.h static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){ val 52 libavcodec/rectangle.h const uint16_t v= size==4 ? val : val*0x0101; val 60 libavcodec/rectangle.h const uint32_t v= size==4 ? val : size==2 ? val*0x00010001 : val*0x01010101; val 70 libavcodec/rectangle.h const uint64_t v= size==2 ? val*0x0001000100010001ULL : val*0x0100000001ULL; val 78 libavcodec/rectangle.h const uint64_t v= val*0x0100000001ULL; val 89 libavcodec/rectangle.h const uint32_t v= size==2 ? val*0x00010001 : val; val 101 libavcodec/rectangle.h *(uint32_t*)(p + 0+0*stride)= val; val 102 libavcodec/rectangle.h *(uint32_t*)(p + 4+0*stride)= val; val 103 libavcodec/rectangle.h *(uint32_t*)(p + 8+0*stride)= val; val 104 libavcodec/rectangle.h *(uint32_t*)(p +12+0*stride)= val; val 105 libavcodec/rectangle.h *(uint32_t*)(p + 0+1*stride)= val; val 106 libavcodec/rectangle.h *(uint32_t*)(p + 4+1*stride)= val; val 107 libavcodec/rectangle.h *(uint32_t*)(p + 8+1*stride)= val; val 108 libavcodec/rectangle.h *(uint32_t*)(p +12+1*stride)= val; val 110 libavcodec/rectangle.h *(uint32_t*)(p + 0+2*stride)= val; val 111 libavcodec/rectangle.h *(uint32_t*)(p + 4+2*stride)= val; val 112 libavcodec/rectangle.h *(uint32_t*)(p + 8+2*stride)= val; val 113 libavcodec/rectangle.h *(uint32_t*)(p +12+2*stride)= val; val 114 libavcodec/rectangle.h *(uint32_t*)(p + 0+3*stride)= val; val 115 libavcodec/rectangle.h *(uint32_t*)(p + 4+3*stride)= val; val 116 libavcodec/rectangle.h *(uint32_t*)(p + 8+3*stride)= val; val 117 libavcodec/rectangle.h *(uint32_t*)(p +12+3*stride)= val; val 261 libavcodec/resample2.c FELEM2 val=0; val 265 libavcodec/resample2.c val += src[FFABS(sample_index + i) % src_size] * filter[i]; val 271 libavcodec/resample2.c val += src[sample_index + i] * (FELEM2)filter[i]; val 274 libavcodec/resample2.c val+=(v2-val)*(FELEML)frac / c->src_incr; val 277 libavcodec/resample2.c val += src[sample_index + i] * (FELEM2)filter[i]; val 282 libavcodec/resample2.c dst[dst_index] = av_clip_int16(lrintf(val)); val 284 libavcodec/resample2.c val = (val + (1<<(FILTER_SHIFT-1)))>>FILTER_SHIFT; val 285 libavcodec/resample2.c dst[dst_index] = (unsigned)(val + 32768) > 65535 ? (val>>31) ^ 32767 : val; val 85 libavcodec/rl2.c uint8_t val = *in++; val 87 libavcodec/rl2.c if (val >= 0x80) { val 99 libavcodec/rl2.c val |= 0x80; val 101 libavcodec/rl2.c val &= ~0x80; val 104 libavcodec/rl2.c *out++ = (val == 0x80) ? *back_frame : val; val 519 libavcodec/rv34.c static int calc_add_mv(RV34DecContext *r, int dir, int val) val 523 libavcodec/rv34.c return (val * mul + 0x2000) >> 14; val 107 libavcodec/rv40.c int val = dim[t]; val 108 libavcodec/rv40.c if(val < 0) val 109 libavcodec/rv40.c val = dim[get_bits1(gb) - val]; val 110 libavcodec/rv40.c if(!val){ val 113 libavcodec/rv40.c val += t << 2; val 116 libavcodec/rv40.c return val; val 560 libavcodec/sanm.c int i, j, len, flag, code, val, pos, end; val 581 libavcodec/sanm.c val = bytestream2_get_byteu(&ctx->gb); val 582 libavcodec/sanm.c if (val) val 583 libavcodec/sanm.c memset(dst + pos, val, code); val 589 libavcodec/sanm.c val = bytestream2_get_byteu(&ctx->gb); val 590 libavcodec/sanm.c if (val) val 591 libavcodec/sanm.c dst[pos] = val; val 339 libavcodec/sipr.c int val = pulses[0]; val 342 libavcodec/sipr.c int index = (val & 0x7) * 6 + 4 - i*2; val 347 libavcodec/sipr.c val >>= 3; val 141 libavcodec/smacker.c int val, i1, i2; val 146 libavcodec/smacker.c val = ctx->recode1[i1] | (ctx->recode2[i2] << 8); val 147 libavcodec/smacker.c if(val == ctx->escapes[0]) { val 149 libavcodec/smacker.c val = 0; val 150 libavcodec/smacker.c } else if(val == ctx->escapes[1]) { val 152 libavcodec/smacker.c val = 0; val 153 libavcodec/smacker.c } else if(val == ctx->escapes[2]) { val 155 libavcodec/smacker.c val = 0; val 158 libavcodec/smacker.c hc->values[hc->current++] = val; val 632 libavcodec/smacker.c int val; val 723 libavcodec/smacker.c val = h[2].values[res]; val 732 libavcodec/smacker.c val |= h[3].values[res] << 8; val 733 libavcodec/smacker.c pred[1] += sign_extend(val, 16); val 744 libavcodec/smacker.c val = h[0].values[res]; val 753 libavcodec/smacker.c val |= h[1].values[res] << 8; val 754 libavcodec/smacker.c pred[0] += sign_extend(val, 16); val 86 libavcodec/tiff.c if (s->geotags[i].val) val 87 libavcodec/tiff.c av_freep(&s->geotags[i].val); val 132 libavcodec/tiff.c static char *get_geokey_val(int key, int val) val 136 libavcodec/tiff.c if (val == TIFF_GEO_KEY_UNDEFINED) val 138 libavcodec/tiff.c if (val == TIFF_GEO_KEY_USER_DEFINED) val 142 libavcodec/tiff.c if (val >= TIFF_##TYPE##_OFFSET &&\ val 143 libavcodec/tiff.c val - TIFF_##TYPE##_OFFSET < FF_ARRAY_ELEMS(ff_tiff_##array##_codes))\ val 144 libavcodec/tiff.c return av_strdup(ff_tiff_##array##_codes[val - TIFF_##TYPE##_OFFSET]); val 177 libavcodec/tiff.c ap = av_strdup(search_keyval(ff_tiff_proj_cs_type_codes, FF_ARRAY_ELEMS(ff_tiff_proj_cs_type_codes), val)); val 181 libavcodec/tiff.c ap = av_strdup(search_keyval(ff_tiff_projection_codes, FF_ARRAY_ELEMS(ff_tiff_projection_codes), val)); val 196 libavcodec/tiff.c snprintf(ap, 14, "Unknown-%d", val); val 1052 libavcodec/tiff.c s->geotags[i].val = get_geokey_val(s->geotags[i].key, ff_tget_short(&s->gb, s->le)); val 1081 libavcodec/tiff.c s->geotags[i].val = ap; val 1107 libavcodec/tiff.c s->geotags[i].val = ap; val 1219 libavcodec/tiff.c ret = av_dict_set(avpriv_frame_get_metadatap(p), keyname, s->geotags[i].val, 0); val 179 libavcodec/tiff.h char *val; val 106 libavcodec/tiffenc.c static void tnput(uint8_t **p, int n, const uint8_t *val, enum TiffTypes type, val 114 libavcodec/tiffenc.c *(*p)++ = val[i ^ flip]; val 151 libavcodec/tiffenc.c enum TiffTags tag, enum TiffTypes type, int val) val 153 libavcodec/tiffenc.c uint16_t w = val; val 154 libavcodec/tiffenc.c uint32_t dw = val; val 235 libavcodec/tiffenc.c #define ADD_ENTRY1(s, tag, type, val) \ val 237 libavcodec/tiffenc.c ret = add_entry1(s, tag, type, val); \ val 230 libavcodec/truemotion2.c int val; val 231 libavcodec/truemotion2.c val = get_vlc2(gb, code->vlc.table, code->bits, 1); val 232 libavcodec/truemotion2.c if(val<0) val 234 libavcodec/truemotion2.c return code->recode[val]; val 93 libavcodec/tscc2.c #define DEQUANT(val, q) (((q) * (val) + 0x80) >> 8) val 130 libavcodec/tscc2.c int prev_dc, dc, nc, ac, bpos, val; val 135 libavcodec/tscc2.c val = get_bits(gb, 8); val 137 libavcodec/tscc2.c memset(dst, val, 16); val 181 libavcodec/tscc2.c val = sign_extend(ac >> 4, 8); val 182 libavcodec/tscc2.c c->block[tscc2_zigzag[bpos++]] = val; val 225 libavcodec/tscc2.c int i, val, len, pos = 0; val 277 libavcodec/tscc2.c val = bytestream2_get_byte(&gb); val 278 libavcodec/tscc2.c len = val & 0x3F; val 279 libavcodec/tscc2.c val >>= 6; val 284 libavcodec/tscc2.c memset(c->slice_quants + pos, val, len); val 231 libavcodec/twinvq.c float val = (1.0 / (1 << 23)) * val 237 libavcodec/twinvq.c val * twinvq_mulawinv(sub_step * 0.5 + val 186 libavcodec/twinvq.h static inline void twinvq_memset_float(float *buf, float val, int size) val 189 libavcodec/twinvq.h *buf++ = val; val 217 libavcodec/twinvqdec.c float val = ((const float []) { 0.4, 0.35, 0.28 })[ftype]; val 226 libavcodec/twinvqdec.c float st = use_hist ? (1.0 - val) * tmp2 + val * hist[idx] + 1.0 val 33 libavcodec/v210dec.c val = av_le2ne32(*src++); \ val 34 libavcodec/v210dec.c *a++ = val & 0x3FF; \ val 35 libavcodec/v210dec.c *b++ = (val >> 10) & 0x3FF; \ val 36 libavcodec/v210dec.c *c++ = (val >> 20) & 0x3FF; \ val 41 libavcodec/v210dec.c uint32_t val; val 118 libavcodec/v210dec.c uint32_t val; val 131 libavcodec/v210dec.c val = av_le2ne32(*src++); val 132 libavcodec/v210dec.c *y++ = val & 0x3FF; val 134 libavcodec/v210dec.c *u++ = (val >> 10) & 0x3FF; val 135 libavcodec/v210dec.c *y++ = (val >> 20) & 0x3FF; val 137 libavcodec/v210dec.c val = av_le2ne32(*src++); val 138 libavcodec/v210dec.c *v++ = val & 0x3FF; val 139 libavcodec/v210dec.c *y++ = (val >> 10) & 0x3FF; val 34 libavcodec/v210enc.c val = CLIP(*a++); \ val 35 libavcodec/v210enc.c val |= (CLIP(*b++) << 10) | \ val 37 libavcodec/v210enc.c AV_WL32(dst, val); \ val 43 libavcodec/v210enc.c val = (CLIP8(*a++) << 2); \ val 44 libavcodec/v210enc.c val |= (CLIP8(*b++) << 12) | \ val 46 libavcodec/v210enc.c AV_WL32(dst, val); \ val 54 libavcodec/v210enc.c uint32_t val; val 74 libavcodec/v210enc.c uint32_t val; val 131 libavcodec/v210enc.c uint32_t val; val 142 libavcodec/v210enc.c val = CLIP(*y++); val 144 libavcodec/v210enc.c AV_WL32(dst, val); val 149 libavcodec/v210enc.c val |= (CLIP(*u++) << 10) | (CLIP(*y++) << 20); val 150 libavcodec/v210enc.c AV_WL32(dst, val); val 153 libavcodec/v210enc.c val = CLIP(*v++) | (CLIP(*y++) << 10); val 154 libavcodec/v210enc.c AV_WL32(dst, val); val 169 libavcodec/v210enc.c uint32_t val; val 187 libavcodec/v210enc.c val = CLIP8(*y++) << 2; val 189 libavcodec/v210enc.c AV_WL32(dst, val); val 194 libavcodec/v210enc.c val |= (CLIP8(*u++) << 12) | (CLIP8(*y++) << 22); val 195 libavcodec/v210enc.c AV_WL32(dst, val); val 198 libavcodec/v210enc.c val = (CLIP8(*v++) << 2) | (CLIP8(*y++) << 12); val 199 libavcodec/v210enc.c AV_WL32(dst, val); val 51 libavcodec/v410dec.c uint32_t val; val 71 libavcodec/v410dec.c val = AV_RL32(src); val 73 libavcodec/v410dec.c u[j] = (val >> 2) & 0x3FF; val 74 libavcodec/v410dec.c y[j] = (val >> 12) & 0x3FF; val 75 libavcodec/v410dec.c v[j] = (val >> 22); val 50 libavcodec/v410enc.c uint32_t val; val 66 libavcodec/v410enc.c val = u[j] << 2; val 67 libavcodec/v410enc.c val |= y[j] << 12; val 68 libavcodec/v410enc.c val |= (uint32_t) v[j] << 22; val 69 libavcodec/v410enc.c AV_WL32(dst, val); val 40 libavcodec/vble.c uint8_t *val; ///< This array first holds the lengths of vlc symbols and then their value. val 61 libavcodec/vble.c int val = show_bits(gb, 8); val 64 libavcodec/vble.c if (val) { val 65 libavcodec/vble.c val = LUT[val]; val 66 libavcodec/vble.c skip_bits(gb, val + 1); val 67 libavcodec/vble.c ctx->val[i] = val; val 72 libavcodec/vble.c ctx->val[i] = 8; val 74 libavcodec/vble.c allbits += ctx->val[i]; val 88 libavcodec/vble.c uint8_t *val = ctx->val + offset; val 95 libavcodec/vble.c if (val[j]) { val 96 libavcodec/vble.c int v = (1 << val[j]) + get_bits(gb, val[j]) - 1; val 97 libavcodec/vble.c val[j] = (v >> 1) ^ -(v & 1); val 103 libavcodec/vble.c ctx->hdsp.add_hfyu_median_pred(dst, dst - stride, val, val 106 libavcodec/vble.c dst[0] = val[0]; val 108 libavcodec/vble.c dst[j] = val[j] + dst[j - 1]; val 111 libavcodec/vble.c val += width; val 174 libavcodec/vble.c av_freep(&ctx->val); val 193 libavcodec/vble.c ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val)); val 195 libavcodec/vble.c if (!ctx->val) { val 222 libavcodec/vc1_block.c val = size_table[index1] - (!s->quarter_sample && index1 == 5); \ val 223 libavcodec/vc1_block.c if (val > 0) { \ val 224 libavcodec/vc1_block.c val = get_bits(gb, val); \ val 225 libavcodec/vc1_block.c sign = 0 - (val & 1); \ val 226 libavcodec/vc1_block.c _dmv_x = (sign ^ ((val >> 1) + _dmv_x)) - sign; \ val 231 libavcodec/vc1_block.c val = size_table[index1] - (!s->quarter_sample && index1 == 5); \ val 232 libavcodec/vc1_block.c if (val > 0) { \ val 233 libavcodec/vc1_block.c val = get_bits(gb, val); \ val 234 libavcodec/vc1_block.c sign = 0 - (val & 1); \ val 235 libavcodec/vc1_block.c _dmv_y = (sign ^ ((val >> 1) + _dmv_y)) - sign; \ val 246 libavcodec/vc1_block.c int val, sign; val 271 libavcodec/vc1_block.c val = get_bits(gb, index1 + extend_x); val 272 libavcodec/vc1_block.c sign = 0 - (val & 1); val 273 libavcodec/vc1_block.c *dmv_x = (sign ^ ((val >> 1) + offset_table[extend_x][index1])) - sign; val 278 libavcodec/vc1_block.c val = get_bits(gb, (index1 >> v->numref) + extend_y); val 279 libavcodec/vc1_block.c sign = 0 - (val & 1); val 280 libavcodec/vc1_block.c *dmv_y = (sign ^ ((val >> 1) + offset_table[extend_y][index1 >> v->numref])) - sign; val 1261 libavcodec/vc1_block.c int val, sign; /* temp values */ val 1313 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1324 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 1344 libavcodec/vc1_block.c } else if (val) { val 1372 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1379 libavcodec/vc1_block.c if (val) { val 1391 libavcodec/vc1_block.c is_coded[i] = val; val 1504 libavcodec/vc1_block.c int val; /* temp value */ val 1577 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1583 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 1662 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1667 libavcodec/vc1_block.c if (val) { val 1711 libavcodec/vc1_block.c int val; /* temp values */ val 1742 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1748 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 1798 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1800 libavcodec/vc1_block.c if (val) { val 1831 libavcodec/vc1_block.c int val, sign; /* temp values */ val 1938 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1949 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 1961 libavcodec/vc1_block.c } else if (val) { val 1985 libavcodec/vc1_block.c int val; /* temp value */ val 2018 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2024 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 2118 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2120 libavcodec/vc1_block.c if (val) { val 2147 libavcodec/vc1_block.c int val; /* temp value */ val 2241 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2247 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 2318 libavcodec/vc1_block.c val = ((mvbp >> (3 - i)) & 1); val 2319 libavcodec/vc1_block.c if (val) val 2406 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2411 libavcodec/vc1_block.c if (val) { val 2486 libavcodec/vc1_block.c int cbp, val; val 2547 libavcodec/vc1_block.c val = ((cbp >> (5 - k)) & 1); val 2551 libavcodec/vc1_block.c val = val ^ pred; val 2552 libavcodec/vc1_block.c *coded_val = val; val 2554 libavcodec/vc1_block.c cbp |= val << (5 - k); val 2556 libavcodec/vc1_block.c vc1_decode_i_block(v, s->block[k], k, val, (k < 4) ? v->codingset : v->codingset2); val 2631 libavcodec/vc1_block.c int cbp, val; val 2706 libavcodec/vc1_block.c val = ((cbp >> (5 - k)) & 1); val 2710 libavcodec/vc1_block.c val = val ^ pred; val 2711 libavcodec/vc1_block.c *coded_val = val; val 2713 libavcodec/vc1_block.c cbp |= val << (5 - k); val 2718 libavcodec/vc1_block.c vc1_decode_i_block_adv(v, block[k], k, val, val 283 libavcodec/vdpau.c int val; val 285 libavcodec/vdpau.c val = ff_vdpau_common_reinit(avctx); val 286 libavcodec/vdpau.c if (val < 0) val 287 libavcodec/vdpau.c return val; val 328 libavcodec/vdpau.c int val; val 330 libavcodec/vdpau.c val = ff_vdpau_common_end_frame(avctx, pic->f, pic_ctx); val 331 libavcodec/vdpau.c if (val < 0) val 332 libavcodec/vdpau.c return val; val 184 libavcodec/vdpau_h264.c int val; val 186 libavcodec/vdpau_h264.c val = ff_vdpau_add_buffer(pic_ctx, start_code_prefix, 3); val 187 libavcodec/vdpau_h264.c if (val) val 188 libavcodec/vdpau_h264.c return val; val 190 libavcodec/vdpau_h264.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 191 libavcodec/vdpau_h264.c if (val) val 192 libavcodec/vdpau_h264.c return val; val 203 libavcodec/vdpau_h264.c int val; val 205 libavcodec/vdpau_h264.c val = ff_vdpau_common_end_frame(avctx, &pic->f, pic_ctx); val 206 libavcodec/vdpau_h264.c if (val < 0) val 207 libavcodec/vdpau_h264.c return val; val 88 libavcodec/vdpau_mpeg12.c int val; val 90 libavcodec/vdpau_mpeg12.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 91 libavcodec/vdpau_mpeg12.c if (val < 0) val 92 libavcodec/vdpau_mpeg12.c return val; val 106 libavcodec/vdpau_vc1.c int val; val 108 libavcodec/vdpau_vc1.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 109 libavcodec/vdpau_vc1.c if (val < 0) val 110 libavcodec/vdpau_vc1.c return val; val 176 libavcodec/vorbisdec.c static float vorbisfloat2float(unsigned val) val 178 libavcodec/vorbisdec.c double mant = val & 0x1fffff; val 179 libavcodec/vorbisdec.c long exp = (val & 0x7fe00000L) >> 21; val 180 libavcodec/vorbisdec.c if (val & 0x80000000) val 1262 libavcodec/vorbisdec.c unsigned val, highroom, lowroom, room, high_neigh_offs, low_neigh_offs; val 1277 libavcodec/vorbisdec.c val = floor1_Y[i]; val 1285 libavcodec/vorbisdec.c if (val) { val 1289 libavcodec/vorbisdec.c if (val >= room) { val 1291 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(val - lowroom + predicted); val 1293 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(predicted - val + highroom - 1); val 1296 libavcodec/vorbisdec.c if (val & 1) { val 1297 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(predicted - (val + 1) / 2); val 1299 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(predicted + val / 2); val 1308 libavcodec/vorbisdec.c vf->list[i].x, floor1_Y_final[i], val); val 61 libavcodec/vp56.h int8_t val; val 365 libavcodec/vp56.h while (tree->val > 0) { val 367 libavcodec/vp56.h tree += tree->val; val 371 libavcodec/vp56.h return -tree->val; val 373 libavcodec/vp6.c unsigned val = get_bits(&s->gb, 2); val 374 libavcodec/vp6.c if (val == 2) val 375 libavcodec/vp6.c val += get_bits(&s->gb, 2); val 376 libavcodec/vp6.c else if (val == 3) { val 377 libavcodec/vp6.c val = get_bits1(&s->gb) << 2; val 378 libavcodec/vp6.c val = 6+val + get_bits(&s->gb, 2+val); val 380 libavcodec/vp6.c return val; val 85 libavcodec/vp8dsp.c int i, val = (23170 * (23170 * dc[0] >> 14) + 0x20000) >> 18; val 89 libavcodec/vp8dsp.c block[i][0][0] = val; val 90 libavcodec/vp8dsp.c block[i][1][0] = val; val 91 libavcodec/vp8dsp.c block[i][2][0] = val; val 92 libavcodec/vp8dsp.c block[i][3][0] = val; val 180 libavcodec/vp8dsp.c int i, val = (dc[0] + 3) >> 3; val 184 libavcodec/vp8dsp.c block[i][0][0] = val; val 185 libavcodec/vp8dsp.c block[i][1][0] = val; val 186 libavcodec/vp8dsp.c block[i][2][0] = val; val 187 libavcodec/vp8dsp.c block[i][3][0] = val; val 1908 libavcodec/vp9.c #define SPLAT_CTX(var, val, n) \ val 1910 libavcodec/vp9.c case 1: var = val; break; \ val 1911 libavcodec/vp9.c case 2: AV_WN16A(&var, val * 0x0101); break; \ val 1912 libavcodec/vp9.c case 4: AV_WN32A(&var, val * 0x01010101); break; \ val 1913 libavcodec/vp9.c case 8: AV_WN64A(&var, val * 0x0101010101010101ULL); break; \ val 1915 libavcodec/vp9.c uint64_t v64 = val * 0x0101010101010101ULL; \ val 1922 libavcodec/vp9.c #define SPLAT_CTX(var, val, n) \ val 1924 libavcodec/vp9.c case 1: var = val; break; \ val 1925 libavcodec/vp9.c case 2: AV_WN16A(&var, val * 0x0101); break; \ val 1926 libavcodec/vp9.c case 4: AV_WN32A(&var, val * 0x01010101); break; \ val 1928 libavcodec/vp9.c uint32_t v32 = val * 0x01010101; \ val 1934 libavcodec/vp9.c uint32_t v32 = val * 0x01010101; \ val 2042 libavcodec/vp9.c int val, rc; val 2044 libavcodec/vp9.c val = vp56_rac_get_prob_branchy(c, tp[0]); // eob val 2045 libavcodec/vp9.c eob[band][nnz][val]++; val 2046 libavcodec/vp9.c if (!val) val 2065 libavcodec/vp9.c val = 1; val 2075 libavcodec/vp9.c cache[rc] = val = 2; val 2077 libavcodec/vp9.c val = 3 + vp56_rac_get_prob(c, tp[5]); val 2083 libavcodec/vp9.c val = 5 + vp56_rac_get_prob(c, 159); val 2085 libavcodec/vp9.c val = 7 + (vp56_rac_get_prob(c, 165) << 1); val 2086 libavcodec/vp9.c val += vp56_rac_get_prob(c, 145); val 2092 libavcodec/vp9.c val = 11 + (vp56_rac_get_prob(c, 173) << 2); val 2093 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 148) << 1); val 2094 libavcodec/vp9.c val += vp56_rac_get_prob(c, 140); val 2096 libavcodec/vp9.c val = 19 + (vp56_rac_get_prob(c, 176) << 3); val 2097 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 155) << 2); val 2098 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 140) << 1); val 2099 libavcodec/vp9.c val += vp56_rac_get_prob(c, 135); val 2102 libavcodec/vp9.c val = 35 + (vp56_rac_get_prob(c, 180) << 4); val 2103 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 157) << 3); val 2104 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 141) << 2); val 2105 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 134) << 1); val 2106 libavcodec/vp9.c val += vp56_rac_get_prob(c, 130); val 2108 libavcodec/vp9.c val = 67 + (vp56_rac_get_prob(c, 254) << 13); val 2109 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 254) << 12); val 2110 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 254) << 11); val 2111 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 252) << 10); val 2112 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 249) << 9); val 2113 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 243) << 8); val 2114 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 230) << 7); val 2115 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 196) << 6); val 2116 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 177) << 5); val 2117 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 153) << 4); val 2118 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 140) << 3); val 2119 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 133) << 2); val 2120 libavcodec/vp9.c val += (vp56_rac_get_prob(c, 130) << 1); val 2121 libavcodec/vp9.c val += vp56_rac_get_prob(c, 129); val 2128 libavcodec/vp9.c coef[rc] = ((vp8_rac_get(c) ? -val : val) * qmul[!!i]) / 2; val 2130 libavcodec/vp9.c coef[rc] = (vp8_rac_get(c) ? -val : val) * qmul[!!i]; val 710 libavcodec/wavpack.c uint8_t val = bytestream2_get_byte(&gb); val 711 libavcodec/wavpack.c s->decorr[s->terms - i - 1].value = (val & 0x1F) - 5; val 712 libavcodec/wavpack.c s->decorr[s->terms - i - 1].delta = val >> 5; val 821 libavcodec/wavpack.c uint8_t val[4]; val 829 libavcodec/wavpack.c bytestream2_get_buffer(&gb, val, 4); val 830 libavcodec/wavpack.c if (val[0]) { val 831 libavcodec/wavpack.c s->extra_bits = val[0]; val 832 libavcodec/wavpack.c } else if (val[1]) { val 833 libavcodec/wavpack.c s->shift = val[1]; val 834 libavcodec/wavpack.c } else if (val[2]) { val 836 libavcodec/wavpack.c s->shift = val[2]; val 837 libavcodec/wavpack.c } else if (val[3]) { val 839 libavcodec/wavpack.c s->shift = val[3]; val 163 libavcodec/wavpack.h static av_always_inline int wp_exp2(int16_t val) val 167 libavcodec/wavpack.h if (val < 0) { val 168 libavcodec/wavpack.h val = -val; val 172 libavcodec/wavpack.h res = wp_exp2_table[val & 0xFF] | 0x100; val 173 libavcodec/wavpack.h val >>= 8; val 174 libavcodec/wavpack.h res = (val > 9) ? (res << (val - 9)) : (res >> (9 - val)); val 178 libavcodec/wavpack.h static av_always_inline int wp_log2(int32_t val) val 182 libavcodec/wavpack.h if (!val) val 184 libavcodec/wavpack.h if (val == 1) val 186 libavcodec/wavpack.h val += val >> 9; val 187 libavcodec/wavpack.h bits = av_log2(val) + 1; val 189 libavcodec/wavpack.h return (bits << 8) + wp_log2_table[(val << (9 - bits)) & 0xFF]; val 191 libavcodec/wavpack.h return (bits << 8) + wp_log2_table[(val >> (bits - 9)) & 0xFF]; val 218 libavcodec/wmadec.c int val, i; val 222 libavcodec/wmadec.c val = get_bits(&s->gb, 3); val 224 libavcodec/wmadec.c val = get_bits(&s->gb, 4); val 225 libavcodec/wmadec.c lsp_coefs[i] = ff_wma_lsp_codebook[i][val]; val 551 libavcodec/wmadec.c int i, n, val, code; val 554 libavcodec/wmadec.c val = (int) 0x80000000; val 557 libavcodec/wmadec.c if (val == (int) 0x80000000) { val 558 libavcodec/wmadec.c val = get_bits(&s->gb, 7) - 19; val 567 libavcodec/wmadec.c val += code - 18; val 569 libavcodec/wmadec.c s->high_band_values[ch][i] = val; val 943 libavcodec/wmaprodec.c int val; val 946 libavcodec/wmaprodec.c val = 45 / s->channel[c].scale_factor_step; val 948 libavcodec/wmaprodec.c val += get_vlc2(&s->gb, sf_vlc.table, SCALEVLCBITS, SCALEMAXDEPTH) - 60; val 949 libavcodec/wmaprodec.c *sf = val; val 957 libavcodec/wmaprodec.c int val; val 964 libavcodec/wmaprodec.c val = code >> 6; val 971 libavcodec/wmaprodec.c val = scale_rl_level[idx]; val 981 libavcodec/wmaprodec.c s->channel[c].scale_factors[i] += (val ^ sign) - sign; val 1148 libavcodec/wmavoice.c int val = get_bits(gb, 12 - 2 * (s->aw_idx_is_ext && !block_idx)); val 1166 libavcodec/wmavoice.c for (n = n_pulses - 1; n >= 0; n--, val >>= sh) { val 1167 libavcodec/wmavoice.c fcb->y[fcb->n] = (val & v_mask) ? -1.0 : 1.0; val 1168 libavcodec/wmavoice.c fcb->x[fcb->n] = (val & i_mask) * n_pulses + n + val 1176 libavcodec/wmavoice.c int num2 = (val & 0x1FF) >> 1, delta, idx; val 1182 libavcodec/wmavoice.c v = (val & 0x200) ? -1.0 : 1.0; val 1188 libavcodec/wmavoice.c fcb->y[fcb->n + 1] = (val & 1) ? -v : v; val 373 libavcodec/wmv2dec.c int val = ((code >> (5 - i)) & 1); val 376 libavcodec/wmv2dec.c val = val ^ pred; val 377 libavcodec/wmv2dec.c *coded_val = val; val 379 libavcodec/wmv2dec.c cbp |= val << (5 - i); val 178 libavcodec/wmv2enc.c int val, pred; val 179 libavcodec/wmv2enc.c val = (s->block_last_index[i] >= 1); val 180 libavcodec/wmv2enc.c cbp |= val << (5 - i); val 184 libavcodec/wmv2enc.c *coded_block = val; val 185 libavcodec/wmv2enc.c val = val ^ pred; val 187 libavcodec/wmv2enc.c coded_cbp |= val << (5 - i); val 214 libavcodec/x86/cabac.h static av_always_inline int get_cabac_bypass_sign_x86(CABACContext *c, int val) val 248 libavcodec/x86/cabac.h : "+c"(val), "=&r"(tmp) val 256 libavcodec/x86/cabac.h return val; val 123 libavcodec/xan.c uint8_t val = ival; val 132 libavcodec/xan.c while (val != 0x16) { val 133 libavcodec/xan.c unsigned idx = val - 0x17 + get_bits1(&gb) * byte; val 136 libavcodec/xan.c val = src[idx]; val 138 libavcodec/xan.c if (val < 0x16) { val 141 libavcodec/xan.c *dest++ = val; val 142 libavcodec/xan.c val = ival; val 96 libavcodec/xbmdec.c uint8_t val; val 103 libavcodec/xbmdec.c val = convert(*ptr++); val 105 libavcodec/xbmdec.c val = (val << 4) + convert(*ptr++); val 106 libavcodec/xbmdec.c *dst++ = ff_reverse[val]; val 109 libavcodec/xbmdec.c val = convert(*ptr++); val 111 libavcodec/xbmdec.c val = (val << 4) + convert(*ptr++); val 112 libavcodec/xbmdec.c *dst++ = ff_reverse[val]; val 41 libavcodec/xfaceenc.c char val, *row; val 44 libavcodec/xfaceenc.c val = *bitmap; val 49 libavcodec/xfaceenc.c if (*(row++) != val) val 49 libavcodec/xl.c uint32_t val; val 78 libavcodec/xl.c val = AV_RL32(buf); val 80 libavcodec/xl.c val = ((val >> 16) & 0xFFFF) | ((val & 0xFFFF) << 16); val 83 libavcodec/xl.c y0 = (val & 0x1F) << 2; val 85 libavcodec/xl.c y0 = y3 + xl_table[val & 0x1F]; val 86 libavcodec/xl.c val >>= 5; val 87 libavcodec/xl.c y1 = y0 + xl_table[val & 0x1F]; val 88 libavcodec/xl.c val >>= 5; val 89 libavcodec/xl.c y2 = y1 + xl_table[val & 0x1F]; val 90 libavcodec/xl.c val >>= 6; /* align to word */ val 91 libavcodec/xl.c y3 = y2 + xl_table[val & 0x1F]; val 92 libavcodec/xl.c val >>= 5; val 94 libavcodec/xl.c c0 = (val & 0x1F) << 2; val 96 libavcodec/xl.c c0 += xl_table[val & 0x1F]; val 97 libavcodec/xl.c val >>= 5; val 99 libavcodec/xl.c c1 = (val & 0x1F) << 2; val 101 libavcodec/xl.c c1 += xl_table[val & 0x1F]; val 184 libavcodec/xwdenc.c uint32_t val; val 187 libavcodec/xwdenc.c val = AV_RN32A(p->data[1] + i * 4); val 188 libavcodec/xwdenc.c red = (val >> 16) & 0xFF; val 189 libavcodec/xwdenc.c green = (val >> 8) & 0xFF; val 190 libavcodec/xwdenc.c blue = val & 0xFF; val 188 libavcodec/xxan.c int val, uval, vval; val 229 libavcodec/xxan.c val = *src++; val 230 libavcodec/xxan.c if (val) { val 231 libavcodec/xxan.c if (val >= table_size) val 233 libavcodec/xxan.c val = AV_RL16(table + (val << 1)); val 234 libavcodec/xxan.c uval = (val >> 3) & 0xF8; val 235 libavcodec/xxan.c vval = (val >> 8) & 0xF8; val 255 libavcodec/xxan.c val = *src++; val 256 libavcodec/xxan.c if (val) { val 257 libavcodec/xxan.c if (val >= table_size) val 259 libavcodec/xxan.c val = AV_RL16(table + (val << 1)); val 260 libavcodec/xxan.c uval = (val >> 3) & 0xF8; val 261 libavcodec/xxan.c vval = (val >> 8) & 0xF8; val 98 libavdevice/pulse_audio_enc.c double val; val 107 libavdevice/pulse_audio_enc.c val = (double)vol / PA_VOLUME_NORM; val 108 libavdevice/pulse_audio_enc.c avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED, &val, sizeof(val)); val 169 libavdevice/pulse_audio_enc.c int64_t val = nbytes; val 174 libavdevice/pulse_audio_enc.c avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_BUFFER_WRITABLE, &val, sizeof(val)); val 172 libavdevice/v4l.c int val; val 186 libavdevice/v4l.c val = 1; val 187 libavdevice/v4l.c if (ioctl(video_fd, VIDIOCCAPTURE, &val) < 0) { val 82 libavfilter/aeval.c static double (* const aeval_func1[])(void *, double) = { val, NULL }; val 534 libavfilter/af_ladspa.c LADSPA_Data val; val 541 libavfilter/af_ladspa.c if (sscanf(arg, "c%d=%f", &i, &val) != 2) { val 546 libavfilter/af_ladspa.c if ((ret = set_control(ctx, i, val)) < 0) val 382 libavfilter/avfilter.c int val; val 385 libavfilter/avfilter.c val = ff_poll_frame(link->src->inputs[i]); val 386 libavfilter/avfilter.c min = FFMIN(min, val); val 95 libavfilter/vf_frei0r.c } val; val 101 libavfilter/vf_frei0r.c if (!strcmp(param, "y")) val.d = 1.0; val 102 libavfilter/vf_frei0r.c else if (!strcmp(param, "n")) val.d = 0.0; val 107 libavfilter/vf_frei0r.c val.d = strtod(param, &tail); val 108 libavfilter/vf_frei0r.c if (*tail || val.d == HUGE_VAL) val 113 libavfilter/vf_frei0r.c if (sscanf(param, "%f/%f/%f", &val.col.r, &val.col.g, &val.col.b) != 3) { val 116 libavfilter/vf_frei0r.c val.col.r = rgba[0] / 255.0; val 117 libavfilter/vf_frei0r.c val.col.g = rgba[1] / 255.0; val 118 libavfilter/vf_frei0r.c val.col.b = rgba[2] / 255.0; val 123 libavfilter/vf_frei0r.c if (sscanf(param, "%lf/%lf", &val.pos.x, &val.pos.y) != 2) val 128 libavfilter/vf_frei0r.c s->set_param_value(s->instance, &val, index); val 70 libavfilter/vf_histeq.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } val 47 libavfilter/vf_hqdn3d.c #define STORE(x,val) (depth == 8 ? dst[x] = (val) >> (16 - depth) : \ val 48 libavfilter/vf_hqdn3d.c AV_WN16A(dst + (x) * 2, (val) >> (16 - depth))) val 134 libavfilter/vf_kerndeint.c int x, y, plane, val, hi, lo, g, h, n = kerndeint->frame++; val 248 libavfilter/vf_kerndeint.c val = (8 * ((int)srcpp[x] + (int)srcpn[x]) + 2 * ((int)srcp[x] + (int)prvp[x]) val 252 libavfilter/vf_kerndeint.c val = (8 * ((int)srcpp[x] + (int)srcpn[x]) + 2 * ((int)prvp[x]) val 255 libavfilter/vf_kerndeint.c dstp[x] = av_clip(val, lo, hi); val 141 libavfilter/vf_lut.c static double clip(void *opaque, double val) val 147 libavfilter/vf_lut.c return av_clip(val, minval, maxval); val 157 libavfilter/vf_lut.c double val = s->var_values[VAR_CLIPVAL]; val 161 libavfilter/vf_lut.c return pow((val-minval)/(maxval-minval), gamma) * (maxval-minval)+minval; val 170 libavfilter/vf_lut.c double val = s->var_values[VAR_CLIPVAL]; val 173 libavfilter/vf_lut.c double level = (val - minval) / (maxval - minval); val 200 libavfilter/vf_lut.c int val, color, ret; val 257 libavfilter/vf_lut.c for (val = 0; val < 256; val++) { val 258 libavfilter/vf_lut.c s->var_values[VAR_VAL] = val; val 259 libavfilter/vf_lut.c s->var_values[VAR_CLIPVAL] = av_clip(val, min[color], max[color]); val 268 libavfilter/vf_lut.c s->comp_expr_str[color], val, comp); val 271 libavfilter/vf_lut.c s->lut[comp][val] = av_clip((int)res, min[color], max[color]); val 272 libavfilter/vf_lut.c av_log(ctx, AV_LOG_DEBUG, "val[%d][%d] = %d\n", comp, val, s->lut[comp][val]); val 430 libavfilter/vf_lut3d.c float val[3]; val 433 libavfilter/vf_lut3d.c if (sscanf(line, "%f %f %f", val, val + 1, val + 2) != 3) val 435 libavfilter/vf_lut3d.c vec->r = val[rgb_map[0]] * scale; val 436 libavfilter/vf_lut3d.c vec->g = val[rgb_map[1]] * scale; val 437 libavfilter/vf_lut3d.c vec->b = val[rgb_map[2]] * scale; val 80 libavfilter/vf_mcdeint.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } val 56 libavfilter/vf_paletteuse.c uint8_t val[3]; val 202 libavfilter/vf_paletteuse.c const uint8_t *current = kd->val; val 245 libavfilter/vf_paletteuse.c const uint8_t *current = kd->val; val 483 libavfilter/vf_paletteuse.c const uint32_t fontcolor = node->val[0] > 0x50 && val 484 libavfilter/vf_paletteuse.c node->val[1] > 0x50 && val 485 libavfilter/vf_paletteuse.c node->val[2] > 0x50 ? 0 : 0xffffff; val 491 libavfilter/vf_paletteuse.c "[ "[node->split], node->val[0], val 492 libavfilter/vf_paletteuse.c "][ "[node->split], node->val[1], val 493 libavfilter/vf_paletteuse.c " ]["[node->split], node->val[2], val 495 libavfilter/vf_paletteuse.c node->val[0], node->val[1], node->val[2], val 667 libavfilter/vf_paletteuse.c node->val[0] = c>>16 & 0xff; val 668 libavfilter/vf_paletteuse.c node->val[1] = c>> 8 & 0xff; val 669 libavfilter/vf_paletteuse.c node->val[2] = c & 0xff; val 675 libavfilter/vf_paletteuse.c box1.max[component] = node->val[component]; val 676 libavfilter/vf_paletteuse.c box2.min[component] = node->val[component] + 1; val 53 libavfilter/vf_phase.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 514 libavfilter/vf_signalstats.c #define SET_META(key, fmt, val) do { \ val 515 libavfilter/vf_signalstats.c snprintf(metabuf, sizeof(metabuf), fmt, val); \ val 48 libavfilter/vf_w3fdif.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 506 libavfilter/vf_yadif.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } val 57 libavfilter/vsrc_mandelbrot.c uint32_t val; val 187 libavfilter/vsrc_mandelbrot.c if(color) color[x] = p->val; val 281 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx++].val = color[x + y*linesize]; val 385 libavfilter/vsrc_mandelbrot.c mb->next_cache[next_cidx++].val = c; val 466 libavfilter/vsrc_testsrc.c static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, int segment_width, val 476 libavfilter/vsrc_testsrc.c memset(dst, val, w); val 101 libavformat/aiffdec.c uint64_t val; val 113 libavformat/aiffdec.c val = avio_rb64(pb); val 114 libavformat/aiffdec.c sample_rate = ldexp(val, exp - 16383 - 63); val 122 libavformat/apetag.c uint32_t val, fields, tag_bytes; val 137 libavformat/apetag.c val = avio_rl32(pb); /* APE tag version */ val 138 libavformat/apetag.c if (val > APE_TAG_VERSION) { val 161 libavformat/apetag.c val = avio_rl32(pb); /* flags */ val 162 libavformat/apetag.c if (val & APE_TAG_FLAG_IS_HEADER) { val 775 libavformat/asfenc.c int val; val 777 libavformat/asfenc.c val = stream->num; val 779 libavformat/asfenc.c val |= ASF_PL_FLAG_KEY_FRAME; val 780 libavformat/asfenc.c avio_w8(pb, val); val 389 libavformat/avformat.h int64_t val, num, den; val 156 libavformat/avio.c char *key, *val; val 158 libavformat/avio.c while(ret >= 0 && (key= strchr(p, sep)) && p<key && (val = strchr(key+1, sep))){ val 159 libavformat/avio.c *val= *key= 0; val 163 libavformat/avio.c *val= *key= sep; val 164 libavformat/avio.c p= val+1; val 215 libavformat/avio.h void avio_wl64(AVIOContext *s, uint64_t val); val 216 libavformat/avio.h void avio_wb64(AVIOContext *s, uint64_t val); val 217 libavformat/avio.h void avio_wl32(AVIOContext *s, unsigned int val); val 218 libavformat/avio.h void avio_wb32(AVIOContext *s, unsigned int val); val 219 libavformat/avio.h void avio_wl24(AVIOContext *s, unsigned int val); val 220 libavformat/avio.h void avio_wb24(AVIOContext *s, unsigned int val); val 221 libavformat/avio.h void avio_wl16(AVIOContext *s, unsigned int val); val 222 libavformat/avio.h void avio_wb16(AVIOContext *s, unsigned int val); val 318 libavformat/aviobuf.c void avio_wl32(AVIOContext *s, unsigned int val) val 320 libavformat/aviobuf.c avio_w8(s, (uint8_t) val ); val 321 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 8 )); val 322 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 16)); val 323 libavformat/aviobuf.c avio_w8(s, val >> 24 ); val 326 libavformat/aviobuf.c void avio_wb32(AVIOContext *s, unsigned int val) val 328 libavformat/aviobuf.c avio_w8(s, val >> 24 ); val 329 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 16)); val 330 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 8 )); val 331 libavformat/aviobuf.c avio_w8(s, (uint8_t) val ); val 384 libavformat/aviobuf.c int ff_get_v_length(uint64_t val) val 388 libavformat/aviobuf.c while (val >>= 7) val 394 libavformat/aviobuf.c void ff_put_v(AVIOContext *bc, uint64_t val) val 396 libavformat/aviobuf.c int i = ff_get_v_length(val); val 399 libavformat/aviobuf.c avio_w8(bc, 128 | (uint8_t)(val >> (7*i))); val 401 libavformat/aviobuf.c avio_w8(bc, val & 127); val 404 libavformat/aviobuf.c void avio_wl64(AVIOContext *s, uint64_t val) val 406 libavformat/aviobuf.c avio_wl32(s, (uint32_t)(val & 0xffffffff)); val 407 libavformat/aviobuf.c avio_wl32(s, (uint32_t)(val >> 32)); val 410 libavformat/aviobuf.c void avio_wb64(AVIOContext *s, uint64_t val) val 412 libavformat/aviobuf.c avio_wb32(s, (uint32_t)(val >> 32)); val 413 libavformat/aviobuf.c avio_wb32(s, (uint32_t)(val & 0xffffffff)); val 416 libavformat/aviobuf.c void avio_wl16(AVIOContext *s, unsigned int val) val 418 libavformat/aviobuf.c avio_w8(s, (uint8_t)val); val 419 libavformat/aviobuf.c avio_w8(s, (int)val >> 8); val 422 libavformat/aviobuf.c void avio_wb16(AVIOContext *s, unsigned int val) val 424 libavformat/aviobuf.c avio_w8(s, (int)val >> 8); val 425 libavformat/aviobuf.c avio_w8(s, (uint8_t)val); val 428 libavformat/aviobuf.c void avio_wl24(AVIOContext *s, unsigned int val) val 430 libavformat/aviobuf.c avio_wl16(s, val & 0xffff); val 431 libavformat/aviobuf.c avio_w8(s, (int)val >> 16); val 434 libavformat/aviobuf.c void avio_wb24(AVIOContext *s, unsigned int val) val 436 libavformat/aviobuf.c avio_wb16(s, (int)val >> 8); val 437 libavformat/aviobuf.c avio_w8(s, (uint8_t)val); val 634 libavformat/aviobuf.c unsigned int val; val 635 libavformat/aviobuf.c val = avio_r8(s); val 636 libavformat/aviobuf.c val |= avio_r8(s) << 8; val 637 libavformat/aviobuf.c return val; val 642 libavformat/aviobuf.c unsigned int val; val 643 libavformat/aviobuf.c val = avio_rl16(s); val 644 libavformat/aviobuf.c val |= avio_r8(s) << 16; val 645 libavformat/aviobuf.c return val; val 650 libavformat/aviobuf.c unsigned int val; val 651 libavformat/aviobuf.c val = avio_rl16(s); val 652 libavformat/aviobuf.c val |= avio_rl16(s) << 16; val 653 libavformat/aviobuf.c return val; val 658 libavformat/aviobuf.c uint64_t val; val 659 libavformat/aviobuf.c val = (uint64_t)avio_rl32(s); val 660 libavformat/aviobuf.c val |= (uint64_t)avio_rl32(s) << 32; val 661 libavformat/aviobuf.c return val; val 666 libavformat/aviobuf.c unsigned int val; val 667 libavformat/aviobuf.c val = avio_r8(s) << 8; val 668 libavformat/aviobuf.c val |= avio_r8(s); val 669 libavformat/aviobuf.c return val; val 674 libavformat/aviobuf.c unsigned int val; val 675 libavformat/aviobuf.c val = avio_rb16(s) << 8; val 676 libavformat/aviobuf.c val |= avio_r8(s); val 677 libavformat/aviobuf.c return val; val 681 libavformat/aviobuf.c unsigned int val; val 682 libavformat/aviobuf.c val = avio_rb16(s) << 16; val 683 libavformat/aviobuf.c val |= avio_rb16(s); val 684 libavformat/aviobuf.c return val; val 748 libavformat/aviobuf.c uint64_t val; val 749 libavformat/aviobuf.c val = (uint64_t)avio_rb32(s) << 32; val 750 libavformat/aviobuf.c val |= (uint64_t)avio_rb32(s); val 751 libavformat/aviobuf.c return val; val 755 libavformat/aviobuf.c uint64_t val = 0; val 760 libavformat/aviobuf.c val= (val<<7) + (tmp&127); val 762 libavformat/aviobuf.c return val; val 353 libavformat/avisynth.c AVS_Value arg, val; val 372 libavformat/avisynth.c val = avs_library.avs_invoke(avs->env, "Import", arg, 0); val 373 libavformat/avisynth.c if (avs_is_error(val)) { val 374 libavformat/avisynth.c av_log(s, AV_LOG_ERROR, "%s\n", avs_as_error(val)); val 378 libavformat/avisynth.c if (!avs_is_clip(val)) { val 384 libavformat/avisynth.c avs->clip = avs_library.avs_take_clip(val, avs->env); val 388 libavformat/avisynth.c avs_library.avs_release_value(val); val 1007 libavformat/http.c char *val; val 1013 libavformat/http.c val = strstr(key, "='"); val 1014 libavformat/http.c if (!val) val 1016 libavformat/http.c end = strstr(val, "';"); val 1020 libavformat/http.c *val = '\0'; val 1022 libavformat/http.c val += 2; val 1024 libavformat/http.c av_dict_set(&s->metadata, key, val, 0); val 921 libavformat/id3v2.c uint8_t val = avio_r8(pb); val 922 libavformat/id3v2.c *b++ = val ? val : avio_r8(pb); val 189 libavformat/internal.h int ff_get_v_length(uint64_t val); val 194 libavformat/internal.h void ff_put_v(AVIOContext *bc, uint64_t val); val 205 libavformat/matroskaenc.c static void put_ebml_uint(AVIOContext *pb, unsigned int elementid, uint64_t val) val 208 libavformat/matroskaenc.c uint64_t tmp = val; val 215 libavformat/matroskaenc.c avio_w8(pb, (uint8_t)(val >> i * 8)); val 218 libavformat/matroskaenc.c static void put_ebml_sint(AVIOContext *pb, unsigned int elementid, int64_t val) val 221 libavformat/matroskaenc.c uint64_t tmp = 2*(val < 0 ? val^-1 : val); val 228 libavformat/matroskaenc.c avio_w8(pb, (uint8_t)(val >> i * 8)); val 231 libavformat/matroskaenc.c static void put_ebml_float(AVIOContext *pb, unsigned int elementid, double val) val 235 libavformat/matroskaenc.c avio_wb64(pb, av_double2int(val)); val 132 libavformat/mmf.c static void put_varlength(AVIOContext *pb, int val) val 134 libavformat/mmf.c if (val < 128) val 135 libavformat/mmf.c avio_w8(pb, val); val 137 libavformat/mmf.c val -= 128; val 138 libavformat/mmf.c avio_w8(pb, 0x80 | val >> 7); val 139 libavformat/mmf.c avio_w8(pb, 0x7f & val); val 1738 libavformat/mov.c int val; val 1739 libavformat/mov.c val = AV_RB32(st->codec->extradata + 4); val 1740 libavformat/mov.c tmcd_ctx->tmcd_flags = val; val 1741 libavformat/mov.c if (val & 1) val 2771 libavformat/mov.c uint8_t *key = NULL, *val = NULL; val 2801 libavformat/mov.c p = &val; val 2812 libavformat/mov.c if (key && val) { val 2815 libavformat/mov.c if(sscanf(val, "%*X %X %X %X", &priming, &remainder, &samples) == 3){ val 2821 libavformat/mov.c av_dict_set(&c->fc->metadata, key, val, val 2823 libavformat/mov.c key = val = NULL; val 2829 libavformat/mov.c av_freep(&val); val 100 libavformat/movenc.c int val; val 102 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) val 2968 libavformat/movenc.c int val; val 2970 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) val 2971 libavformat/movenc.c avio_wb16(pb, val); val 403 libavformat/mp3enc.c uint16_t val; val 409 libavformat/mp3enc.c val = FFABS(rg->track_gain / 10000) & ((1 << 9) - 1); val 410 libavformat/mp3enc.c val |= (rg->track_gain < 0) << 9; val 411 libavformat/mp3enc.c val |= 1 << 13; val 412 libavformat/mp3enc.c AV_WB16(mp3->xing_frame + mp3->xing_offset + 135, val); val 416 libavformat/mp3enc.c val = FFABS(rg->album_gain / 10000) & ((1 << 9) - 1); val 417 libavformat/mp3enc.c val |= (rg->album_gain < 0) << 9; val 418 libavformat/mp3enc.c val |= 1 << 14; val 419 libavformat/mp3enc.c AV_WB16(mp3->xing_frame + mp3->xing_offset + 137, val); val 170 libavformat/mpeg.c int val, n; val 181 libavformat/mpeg.c val = state; val 186 libavformat/mpeg.c val = -1; val 191 libavformat/mpeg.c return val; val 633 libavformat/mpegts.c int val; val 635 libavformat/mpegts.c val = get8(pp, p_end); val 636 libavformat/mpegts.c if (val < 0) val 637 libavformat/mpegts.c return val; val 638 libavformat/mpegts.c h->tid = val; val 640 libavformat/mpegts.c val = get16(pp, p_end); val 641 libavformat/mpegts.c if (val < 0) val 642 libavformat/mpegts.c return val; val 643 libavformat/mpegts.c h->id = val; val 644 libavformat/mpegts.c val = get8(pp, p_end); val 645 libavformat/mpegts.c if (val < 0) val 646 libavformat/mpegts.c return val; val 647 libavformat/mpegts.c h->version = (val >> 1) & 0x1f; val 648 libavformat/mpegts.c val = get8(pp, p_end); val 649 libavformat/mpegts.c if (val < 0) val 650 libavformat/mpegts.c return val; val 651 libavformat/mpegts.c h->sec_num = val; val 652 libavformat/mpegts.c val = get8(pp, p_end); val 653 libavformat/mpegts.c if (val < 0) val 654 libavformat/mpegts.c return val; val 655 libavformat/mpegts.c h->last_sec_num = val; val 2032 libavformat/mpegts.c int onid, val, sid, desc_list_len, desc_tag, desc_len, service_type; val 2049 libavformat/mpegts.c val = get8(&p, p_end); val 2050 libavformat/mpegts.c if (val < 0) val 2056 libavformat/mpegts.c val = get8(&p, p_end); val 2057 libavformat/mpegts.c if (val < 0) val 165 libavformat/mpegtsenc.c static inline void put16(uint8_t **q_ptr, int val) val 169 libavformat/mpegtsenc.c *q++ = val >> 8; val 170 libavformat/mpegtsenc.c *q++ = val; val 248 libavformat/mpegtsenc.c int val, stream_type, i, err = 0; val 258 libavformat/mpegtsenc.c val = 0xf000 | (q - program_info_length_ptr - 2); val 259 libavformat/mpegtsenc.c program_info_length_ptr[0] = val >> 8; val 260 libavformat/mpegtsenc.c program_info_length_ptr[1] = val; val 480 libavformat/mpegtsenc.c val = 0xf000 | (q - desc_length_ptr - 2); val 481 libavformat/mpegtsenc.c desc_length_ptr[0] = val >> 8; val 482 libavformat/mpegtsenc.c desc_length_ptr[1] = val; val 518 libavformat/mpegtsenc.c int i, running_status, free_ca_mode, val; val 542 libavformat/mpegtsenc.c val = (running_status << 13) | (free_ca_mode << 12) | val 544 libavformat/mpegtsenc.c desc_list_len_ptr[0] = val >> 8; val 545 libavformat/mpegtsenc.c desc_list_len_ptr[1] = val; val 911 libavformat/mpegtsenc.c int val; val 913 libavformat/mpegtsenc.c val = fourbits << 4 | (((pts >> 30) & 0x07) << 1) | 1; val 914 libavformat/mpegtsenc.c *q++ = val; val 915 libavformat/mpegtsenc.c val = (((pts >> 15) & 0x7fff) << 1) | 1; val 916 libavformat/mpegtsenc.c *q++ = val >> 8; val 917 libavformat/mpegtsenc.c *q++ = val; val 918 libavformat/mpegtsenc.c val = (((pts) & 0x7fff) << 1) | 1; val 919 libavformat/mpegtsenc.c *q++ = val >> 8; val 920 libavformat/mpegtsenc.c *q++ = val; val 968 libavformat/mpegtsenc.c int val, is_start, len, header_len, write_pcr, is_dvb_subtitle, is_dvb_teletext, flags; val 1004 libavformat/mpegtsenc.c val = ts_st->pid >> 8; val 1006 libavformat/mpegtsenc.c val |= 0x40; val 1007 libavformat/mpegtsenc.c *q++ = val; val 1113 libavformat/mpegtsenc.c val = 0x80; val 1116 libavformat/mpegtsenc.c val |= 0x04; val 1117 libavformat/mpegtsenc.c *q++ = val; val 64 libavformat/mux.c static void frac_init(AVFrac *f, int64_t val, int64_t num, int64_t den) val 68 libavformat/mux.c val += num / den; val 71 libavformat/mux.c f->val = val; val 89 libavformat/mux.c f->val += num / den; val 93 libavformat/mux.c f->val--; val 96 libavformat/mux.c f->val += num / den; val 474 libavformat/mux.c pkt->pts = st->pts.val; val 508 libavformat/mux.c st->pts.val = pkt->dts; val 520 libavformat/mux.c if (frame_size >= 0 && (pkt->size || st->pts.num != st->pts.den >> 1 || st->pts.val)) { val 222 libavformat/nut.c void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val) val 227 libavformat/nut.c av_rescale_rnd(val, val 132 libavformat/nut.h void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val); val 272 libavformat/nutenc.c static void put_tt(NUTContext *nut, AVRational *time_base, AVIOContext *bc, uint64_t val) val 274 libavformat/nutenc.c val *= nut->time_base_count; val 275 libavformat/nutenc.c val += time_base - nut->time_base; val 276 libavformat/nutenc.c ff_put_v(bc, val); val 289 libavformat/nutenc.c static void put_s(AVIOContext *bc, int64_t val) val 291 libavformat/nutenc.c ff_put_v(bc, 2 * FFABS(val) - (val > 0)); val 856 libavformat/nutenc.c const uint8_t *val = data + strlen(key) + 1; val 858 libavformat/nutenc.c if(val >= data_end) { val 864 libavformat/nutenc.c put_str(dyn_bc, val); val 865 libavformat/nutenc.c data = val + strlen(val) + 1; val 41 libavformat/oggparsevorbis.c static int ogm_chapter(AVFormatContext *as, uint8_t *key, uint8_t *val) val 50 libavformat/oggparsevorbis.c if (sscanf(val, "%02d:%02d:%02d.%03d", &h, &m, &s, &ms) < 4) val 56 libavformat/oggparsevorbis.c av_free(val); val 66 libavformat/oggparsevorbis.c av_dict_set(&chapter->metadata, "title", val, AV_DICT_DONT_STRDUP_VAL); val 370 libavformat/rmdec.c uint8_t name[128], val[128]; val 378 libavformat/rmdec.c case 2: get_strl(pb, val, sizeof(val), avio_rb16(pb)); val 379 libavformat/rmdec.c av_dict_set(&s->metadata, name, val, 0); val 31 libavformat/rtmppkt.c void ff_amf_write_bool(uint8_t **dst, int val) val 34 libavformat/rtmppkt.c bytestream_put_byte(dst, val); val 37 libavformat/rtmppkt.c void ff_amf_write_number(uint8_t **dst, double val) val 40 libavformat/rtmppkt.c bytestream_put_be64(dst, av_double2int(val)); val 87 libavformat/rtmppkt.c int ff_amf_read_bool(GetByteContext *bc, int *val) val 91 libavformat/rtmppkt.c *val = bytestream2_get_byte(bc); val 95 libavformat/rtmppkt.c int ff_amf_read_number(GetByteContext *bc, double *val) val 101 libavformat/rtmppkt.c *val = av_int2double(read); val 206 libavformat/rtmppkt.h void ff_amf_write_bool(uint8_t **dst, int val); val 269 libavformat/rtmppkt.h int ff_amf_read_bool(GetByteContext *gbc, int *val); val 278 libavformat/rtmppkt.h int ff_amf_read_number(GetByteContext *gbc, double *val); val 204 libavformat/rtpdec_jpeg.c int val = (default_quantizers[i] * q + 50) / 100; val 207 libavformat/rtpdec_jpeg.c val = av_clip(val, 1, 255); val 208 libavformat/rtpdec_jpeg.c qtables[i] = val; val 74 libavformat/rtpdec_latm.c uint8_t val = data->buf[data->pos++]; val 75 libavformat/rtpdec_latm.c cur_len += val; val 76 libavformat/rtpdec_latm.c if (val != 0xff) val 487 libavformat/spdifenc.c AVIOContext *pb, unsigned int val) val 490 libavformat/spdifenc.c avio_wb16(pb, val); val 492 libavformat/spdifenc.c avio_wl16(pb, val); val 67 libavformat/subtitles.c uint32_t val; val 72 libavformat/subtitles.c GET_UTF16(val, avio_rl16(r->pb), return 0;) val 74 libavformat/subtitles.c GET_UTF16(val, avio_rb16(r->pb), return 0;) val 78 libavformat/subtitles.c if (!val) val 82 libavformat/subtitles.c PUT_UTF8(val, tmp, r->buf[r->buf_len++] = tmp;) val 66 libavformat/swfenc.c static inline void max_nbits(int *nbits_ptr, int val) val 70 libavformat/swfenc.c if (val == 0) val 72 libavformat/swfenc.c val = abs(val); val 74 libavformat/swfenc.c while (val != 0) { val 76 libavformat/swfenc.c val >>= 1; val 178 libavformat/tedcaptionsdec.c int64_t val = 0; val 184 libavformat/tedcaptionsdec.c val = val * 10 + (*cur_byte - '0'); val 187 libavformat/tedcaptionsdec.c *result = val; val 61 libavformat/tee.c char *key, *val; val 74 libavformat/tee.c ret = av_opt_get_key_value(&p, "=", slave_opt_delim, 0, &key, &val); val 79 libavformat/tee.c ret = av_dict_set(options, key, val, val 118 libavformat/utils.c return st->pts.val; val 4272 libavformat/utils.c char *key, *val; val 4276 libavformat/utils.c val = strchr(spec, ':'); val 4278 libavformat/utils.c key = val ? av_strndup(spec, val - spec) : av_strdup(spec); val 4284 libavformat/utils.c if (!val || !strcmp(tag->value, val + 1)) val 71 libavresample/resample_template.c FELEM2 val = 0; val 77 libavresample/resample_template.c val += src[sample_index + i] * (FELEM2)filter[i]; val 80 libavresample/resample_template.c val += (v2 - val) * (FELEML)frac / c->src_incr; val 82 libavresample/resample_template.c OUT(dst[dst_index], val); val 93 libavresample/resample_template.c FELEM2 val = 0; val 98 libavresample/resample_template.c val += src[sample_index + i] * (FELEM2)filter[i]; val 100 libavresample/resample_template.c OUT(dst[dst_index], val); val 43 libavutil/atomic.c void avpriv_atomic_int_set(volatile int *ptr, int val) val 46 libavutil/atomic.c *ptr = val; val 80 libavutil/atomic.c void avpriv_atomic_int_set(volatile int *ptr, int val) val 82 libavutil/atomic.c *ptr = val; val 116 libavutil/atomic.c volatile int val = 1; val 119 libavutil/atomic.c res = avpriv_atomic_int_add_and_fetch(&val, 1); val 121 libavutil/atomic.c avpriv_atomic_int_set(&val, 3); val 122 libavutil/atomic.c res = avpriv_atomic_int_get(&val); val 54 libavutil/atomic.h void avpriv_atomic_int_set(volatile int *ptr, int val); val 40 libavutil/atomic_gcc.h static inline void atomic_int_set_gcc(volatile int *ptr, int val) val 43 libavutil/atomic_gcc.h __atomic_store_n(ptr, val, __ATOMIC_SEQ_CST); val 45 libavutil/atomic_gcc.h *ptr = val; val 36 libavutil/atomic_suncc.h static inline void atomic_int_set_suncc(volatile int *ptr, int val) val 38 libavutil/atomic_suncc.h *ptr = val; val 35 libavutil/atomic_win32.h static inline void atomic_int_set_win32(volatile int *ptr, int val) val 37 libavutil/atomic_win32.h *ptr = val; val 323 libavutil/common.h #define GET_UTF8(val, GET_BYTE, ERROR)\ val 324 libavutil/common.h val= GET_BYTE;\ val 326 libavutil/common.h uint32_t top = (val & 128) >> 1;\ val 327 libavutil/common.h if ((val & 0xc0) == 0x80 || val >= 0xFE)\ val 329 libavutil/common.h while (val & top) {\ val 333 libavutil/common.h val= (val<<6) + tmp;\ val 336 libavutil/common.h val &= (top << 1) - 1;\ val 348 libavutil/common.h #define GET_UTF16(val, GET_16BIT, ERROR)\ val 349 libavutil/common.h val = GET_16BIT;\ val 351 libavutil/common.h unsigned int hi = val - 0xD800;\ val 353 libavutil/common.h val = GET_16BIT - 0xDC00;\ val 354 libavutil/common.h if (val > 0x3FFU || hi > 0x3FFU)\ val 356 libavutil/common.h val += (hi<<10) + 0x10000;\ val 376 libavutil/common.h #define PUT_UTF8(val, tmp, PUT_BYTE)\ val 379 libavutil/common.h uint32_t in = val;\ val 410 libavutil/common.h #define PUT_UTF16(val, tmp, PUT_16BIT)\ val 412 libavutil/common.h uint32_t in = val;\ val 152 libavutil/dict.c char *val = NULL; val 157 libavutil/dict.c val = av_get_token(buf, pairs_sep); val 160 libavutil/dict.c if (key && *key && val && *val) val 161 libavutil/dict.c ret = av_dict_set(pm, key, val, flags); val 166 libavutil/dict.c av_freep(&val); val 253 libavutil/dict.c static void test_separators(const AVDictionary *m, const char pair, const char val) val 257 libavutil/dict.c char vals[] = {val, '\0'}; val 262 libavutil/dict.c av_dict_get_string(dict, &buffer, val, pair); val 73 libavutil/frame.c const char *av_get_colorspace_name(enum AVColorSpace val) val 84 libavutil/frame.c if ((unsigned)val >= FF_ARRAY_ELEMS(name)) val 86 libavutil/frame.c return name[val]; val 581 libavutil/frame.h void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val); val 583 libavutil/frame.h void av_frame_set_pkt_duration (AVFrame *frame, int64_t val); val 585 libavutil/frame.h void av_frame_set_pkt_pos (AVFrame *frame, int64_t val); val 587 libavutil/frame.h void av_frame_set_channel_layout (AVFrame *frame, int64_t val); val 589 libavutil/frame.h void av_frame_set_channels (AVFrame *frame, int val); val 591 libavutil/frame.h void av_frame_set_sample_rate (AVFrame *frame, int val); val 593 libavutil/frame.h void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); val 595 libavutil/frame.h void av_frame_set_decode_error_flags (AVFrame *frame, int val); val 597 libavutil/frame.h void av_frame_set_pkt_size(AVFrame *frame, int val); val 602 libavutil/frame.h void av_frame_set_colorspace(AVFrame *frame, enum AVColorSpace val); val 604 libavutil/frame.h void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val); val 610 libavutil/frame.h const char *av_get_colorspace_name(enum AVColorSpace val); val 187 libavutil/mem.c void *val; val 194 libavutil/mem.c memcpy(&val, ptr, sizeof(val)); val 195 libavutil/mem.c val = av_realloc(val, size); val 197 libavutil/mem.c if (!val) { val 202 libavutil/mem.c memcpy(ptr, &val, sizeof(val)); val 215 libavutil/mem.c void *val; val 217 libavutil/mem.c memcpy(&val, ptr, sizeof(val)); val 218 libavutil/mem.c val = av_realloc_f(val, nmemb, size); val 219 libavutil/mem.c memcpy(ptr, &val, sizeof(val)); val 220 libavutil/mem.c if (!val && nmemb && size) val 243 libavutil/mem.c void *val; val 245 libavutil/mem.c memcpy(&val, arg, sizeof(val)); val 246 libavutil/mem.c memcpy(arg, &(void *){ NULL }, sizeof(val)); val 247 libavutil/mem.c av_free(val); val 499 libavutil/mem.c void *val; val 505 libavutil/mem.c val = zero_realloc ? av_mallocz(min_size) : av_malloc(min_size); val 506 libavutil/mem.c memcpy(ptr, &val, sizeof(val)); val 507 libavutil/mem.c if (!val) val 341 libavutil/opencl.c int av_opencl_set_option(const char *key, const char *val) val 351 libavutil/opencl.c ret = av_opt_set(&opencl_ctx, key, val, 0); val 117 libavutil/opencl.h int av_opencl_set_option(const char *key, const char *val); val 129 libavutil/opt.c static int set_string_binary(void *obj, const AVOption *o, const char *val, uint8_t **dst) val 138 libavutil/opt.c if (!val || !(len = strlen(val))) val 148 libavutil/opt.c while (*val) { val 149 libavutil/opt.c int a = hexchar2int(*val++); val 150 libavutil/opt.c int b = hexchar2int(*val++); val 163 libavutil/opt.c static int set_string(void *obj, const AVOption *o, const char *val, uint8_t **dst) val 166 libavutil/opt.c *dst = av_strdup(val); val 176 libavutil/opt.c static int set_string_number(void *obj, void *target_obj, const AVOption *o, const char *val, void *dst) val 182 libavutil/opt.c if (sscanf(val, "%d%*1[:/]%d%c", &num, &den, &c) == 2) { val 196 libavutil/opt.c if (*val == '+' || *val == '-') val 197 libavutil/opt.c cmd = *(val++); val 198 libavutil/opt.c for (; i < sizeof(buf) - 1 && val[i] && val[i] != '+' && val[i] != '-'; i++) val 199 libavutil/opt.c buf[i] = val[i]; val 204 libavutil/opt.c const AVOption *o_named = av_opt_find(target_obj, i ? buf : val, o->unit, 0, 0); val 239 libavutil/opt.c res = av_expr_parse_and_eval(&d, i ? buf : val, const_names, val 242 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\"\n", val); val 255 libavutil/opt.c val += i; val 256 libavutil/opt.c if (!i || !*val) val 263 libavutil/opt.c static int set_string_image_size(void *obj, const AVOption *o, const char *val, int *dst) val 267 libavutil/opt.c if (!val || !strcmp(val, "none")) { val 272 libavutil/opt.c ret = av_parse_video_size(dst, dst + 1, val); val 274 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as image size\n", val); val 278 libavutil/opt.c static int set_string_video_rate(void *obj, const AVOption *o, const char *val, AVRational *dst) val 281 libavutil/opt.c if (!val) { val 284 libavutil/opt.c ret = av_parse_video_rate(dst, val); val 287 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as video rate\n", val); val 291 libavutil/opt.c static int set_string_color(void *obj, const AVOption *o, const char *val, uint8_t *dst) val 295 libavutil/opt.c if (!val) { val 298 libavutil/opt.c ret = av_parse_color(dst, val, -1, obj); val 300 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as color\n", val); val 306 libavutil/opt.c static int set_string_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst, val 311 libavutil/opt.c if (!val || !strcmp(val, "none")) { val 314 libavutil/opt.c fmt = get_fmt(val); val 317 libavutil/opt.c fmt = strtol(val, &tail, 0); val 320 libavutil/opt.c "Unable to parse option value \"%s\" as %s\n", val, desc); val 346 libavutil/opt.c static int set_string_pixel_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst) val 348 libavutil/opt.c return set_string_fmt(obj, o, val, dst, val 352 libavutil/opt.c static int set_string_sample_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst) val 354 libavutil/opt.c return set_string_fmt(obj, o, val, dst, val 359 libavutil/opt.c int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out) val 364 libavutil/opt.c return av_opt_set(obj, name, val, 0); val 368 libavutil/opt.c int av_opt_set(void *obj, const char *name, const char *val, int search_flags) val 375 libavutil/opt.c if (!val && (o->type != AV_OPT_TYPE_STRING && val 387 libavutil/opt.c case AV_OPT_TYPE_STRING: return set_string(obj, o, val, dst); val 388 libavutil/opt.c case AV_OPT_TYPE_BINARY: return set_string_binary(obj, o, val, dst); val 394 libavutil/opt.c case AV_OPT_TYPE_RATIONAL: return set_string_number(obj, target_obj, o, val, dst); val 395 libavutil/opt.c case AV_OPT_TYPE_IMAGE_SIZE: return set_string_image_size(obj, o, val, dst); val 396 libavutil/opt.c case AV_OPT_TYPE_VIDEO_RATE: return set_string_video_rate(obj, o, val, dst); val 397 libavutil/opt.c case AV_OPT_TYPE_PIXEL_FMT: return set_string_pixel_fmt(obj, o, val, dst); val 398 libavutil/opt.c case AV_OPT_TYPE_SAMPLE_FMT: return set_string_sample_fmt(obj, o, val, dst); val 400 libavutil/opt.c if (!val) { val 404 libavutil/opt.c if ((ret = av_parse_time(dst, val, 1)) < 0) val 405 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as duration\n", val); val 409 libavutil/opt.c case AV_OPT_TYPE_COLOR: return set_string_color(obj, o, val, dst); val 411 libavutil/opt.c if (!val || !strcmp(val, "none")) { val 415 libavutil/opt.c int64_t cl = ff_get_channel_layout(val, 0); val 417 libavutil/opt.c int64_t cl = av_get_channel_layout(val); val 420 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as channel layout\n", val); val 434 libavutil/opt.c int av_opt_eval_ ## name(void *obj, const AVOption *o, const char *val, vartype *name ## _out)\ val 438 libavutil/opt.c return set_string_number(obj, obj, o, val, name ## _out);\ val 490 libavutil/opt.c int av_opt_set_int(void *obj, const char *name, int64_t val, int search_flags) val 492 libavutil/opt.c return set_number(obj, name, 1, 1, val, search_flags); val 495 libavutil/opt.c int av_opt_set_double(void *obj, const char *name, double val, int search_flags) val 497 libavutil/opt.c return set_number(obj, name, val, 1, 1, search_flags); val 500 libavutil/opt.c int av_opt_set_q(void *obj, const char *name, AVRational val, int search_flags) val 502 libavutil/opt.c return set_number(obj, name, val.num, val.den, 1, search_flags); val 505 libavutil/opt.c int av_opt_set_bin(void *obj, const char *name, const uint8_t *val, int len, int search_flags) val 530 libavutil/opt.c memcpy(ptr, val, len); val 557 libavutil/opt.c int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags) val 569 libavutil/opt.c if (val.num <= 0 || val.den <= 0) val 571 libavutil/opt.c return set_number(obj, name, val.num, val.den, 1, search_flags); val 670 libavutil/opt.c int av_opt_set_dict_val(void *obj, const char *name, const AVDictionary *val, int search_flags) val 683 libavutil/opt.c av_dict_copy(dst, val, 0); val 1210 libavutil/opt.c double val; val 1211 libavutil/opt.c val = opt->default_val.dbl; val 1212 libavutil/opt.c write_number(s, opt, dst, val, 1, 1); val 1216 libavutil/opt.c AVRational val; val 1217 libavutil/opt.c val = av_d2q(opt->default_val.dbl, INT_MAX); val 1218 libavutil/opt.c write_number(s, opt, dst, 1, val.den, val.num); val 1272 libavutil/opt.c char *val; val 1280 libavutil/opt.c val = av_get_token(buf, pairs_sep); val 1281 libavutil/opt.c if (!val) { val 1291 libavutil/opt.c av_log(ctx, AV_LOG_DEBUG, "Setting entry with key '%s' to value '%s'\n", key, val); val 1293 libavutil/opt.c ret = av_opt_set(ctx, key, val, AV_OPT_SEARCH_CHILDREN); val 1298 libavutil/opt.c av_free(val); val 1366 libavutil/opt.c char *key = NULL, *val; val 1372 libavutil/opt.c if (!(val = av_get_token(&opts, pairs_sep))) { val 1378 libavutil/opt.c *rval = val; val 410 libavutil/opt.h int av_set_string3(void *obj, const char *name, const char *val, int alloc, const AVOption **o_out); val 592 libavutil/opt.h int av_opt_eval_flags (void *obj, const AVOption *o, const char *val, int *flags_out); val 593 libavutil/opt.h int av_opt_eval_int (void *obj, const AVOption *o, const char *val, int *int_out); val 594 libavutil/opt.h int av_opt_eval_int64 (void *obj, const AVOption *o, const char *val, int64_t *int64_out); val 595 libavutil/opt.h int av_opt_eval_float (void *obj, const AVOption *o, const char *val, float *float_out); val 596 libavutil/opt.h int av_opt_eval_double(void *obj, const AVOption *o, const char *val, double *double_out); val 597 libavutil/opt.h int av_opt_eval_q (void *obj, const AVOption *o, const char *val, AVRational *q_out); val 721 libavutil/opt.h int av_opt_set (void *obj, const char *name, const char *val, int search_flags); val 722 libavutil/opt.h int av_opt_set_int (void *obj, const char *name, int64_t val, int search_flags); val 723 libavutil/opt.h int av_opt_set_double (void *obj, const char *name, double val, int search_flags); val 724 libavutil/opt.h int av_opt_set_q (void *obj, const char *name, AVRational val, int search_flags); val 725 libavutil/opt.h int av_opt_set_bin (void *obj, const char *name, const uint8_t *val, int size, int search_flags); val 729 libavutil/opt.h int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags); val 735 libavutil/opt.h int av_opt_set_dict_val(void *obj, const char *name, const AVDictionary *val, int search_flags); val 747 libavutil/opt.h #define av_opt_set_int_list(obj, name, val, term, flags) \ val 748 libavutil/opt.h (av_int_list_length(val, term) > INT_MAX / sizeof(*(val)) ? \ val 750 libavutil/opt.h av_opt_set_bin(obj, name, (const uint8_t *)(val), \ val 751 libavutil/opt.h av_int_list_length(val, term) * sizeof(*(val)), flags)) val 443 libavutil/parseutils.c int i, val, c; val 447 libavutil/parseutils.c val = 0; val 452 libavutil/parseutils.c val = (val * 10) + c - '0'; val 458 libavutil/parseutils.c if (val < n_min || val > n_max) val 461 libavutil/parseutils.c return val; val 466 libavutil/parseutils.c int c, val; val 483 libavutil/parseutils.c val = date_get_num(&p, 0, c == 'H' ? 23 : INT_MAX, 2); val 484 libavutil/parseutils.c if (val == -1) val 486 libavutil/parseutils.c dt->tm_hour = val; val 489 libavutil/parseutils.c val = date_get_num(&p, 0, 59, 2); val 490 libavutil/parseutils.c if (val == -1) val 492 libavutil/parseutils.c dt->tm_min = val; val 495 libavutil/parseutils.c val = date_get_num(&p, 0, 59, 2); val 496 libavutil/parseutils.c if (val == -1) val 498 libavutil/parseutils.c dt->tm_sec = val; val 501 libavutil/parseutils.c val = date_get_num(&p, 0, 9999, 4); val 502 libavutil/parseutils.c if (val == -1) val 504 libavutil/parseutils.c dt->tm_year = val - 1900; val 507 libavutil/parseutils.c val = date_get_num(&p, 1, 12, 2); val 508 libavutil/parseutils.c if (val == -1) val 510 libavutil/parseutils.c dt->tm_mon = val - 1; val 513 libavutil/parseutils.c val = date_get_num(&p, 1, 31, 2); val 514 libavutil/parseutils.c if (val == -1) val 516 libavutil/parseutils.c dt->tm_mday = val; val 54 libavutil/pixdesc.c int val = (*p >> shift) & mask; val 56 libavutil/pixdesc.c val = data[1][4*val + c]; val 60 libavutil/pixdesc.c *dst++ = val; val 71 libavutil/pixdesc.c int val = is_8bit ? *p : val 73 libavutil/pixdesc.c val = (val >> shift) & mask; val 75 libavutil/pixdesc.c val = data[1][4 * val + c]; val 77 libavutil/pixdesc.c *dst++ = val; val 118 libavutil/pixdesc.c uint16_t val = AV_RB16(p) | (*src++ << shift); val 119 libavutil/pixdesc.c AV_WB16(p, val); val 121 libavutil/pixdesc.c uint16_t val = AV_RL16(p) | (*src++ << shift); val 122 libavutil/pixdesc.c AV_WL16(p, val); val 839 libpostproc/postprocess.c int val= strtol(options[o], &tail, 0); val 843 libpostproc/postprocess.c if(o==0) ppMode->baseDcDiff= val; val 844 libpostproc/postprocess.c else ppMode->flatnessThreshold= val; val 853 libpostproc/postprocess.c int val= strtol(options[o], &tail, 0); val 857 libpostproc/postprocess.c ppMode->forcedQuant= val; val 101 libswresample/resample_template.c FELEM2 val=0; val 104 libswresample/resample_template.c val += src[sample_index + i] * (FELEM2)filter[i]; val 106 libswresample/resample_template.c OUT(dst[dst_index], val); val 143 libswresample/resample_template.c FELEM2 val=0, v2 = 0; val 147 libswresample/resample_template.c val += src[sample_index + i] * (FELEM2)filter[i]; val 151 libswresample/resample_template.c val += (v2 - val) * (FELEML) frac / c->src_incr; val 154 libswresample/resample_template.c val += (v2 - val) * inv_src_incr * frac; val 156 libswresample/resample_template.c val += (v2 - val) / c->src_incr * frac; val 159 libswresample/resample_template.c OUT(dst[dst_index], val); val 136 libswscale/output.c #define output_pixel(pos, val, bias, signedness) \ val 138 libswscale/output.c AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ val 140 libswscale/output.c AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ val 152 libswscale/output.c int val = src[i] + (1 << (shift - 1)); val 153 libswscale/output.c output_pixel(&dest[i], val, 0, uint); val 167 libswscale/output.c int val = 1 << (shift - 1); val 175 libswscale/output.c val -= 0x40000000; val 177 libswscale/output.c val += src[j][i] * (unsigned)filter[j]; val 179 libswscale/output.c output_pixel(&dest[i], val, 0x8000, int); val 185 libswscale/output.c #define output_pixel(pos, val) \ val 187 libswscale/output.c AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \ val 189 libswscale/output.c AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \ val 200 libswscale/output.c int val = src[i] + (1 << (shift - 1)); val 201 libswscale/output.c output_pixel(&dest[i], val); val 214 libswscale/output.c int val = 1 << (shift - 1); val 218 libswscale/output.c val += src[j][i] * filter[j]; val 220 libswscale/output.c output_pixel(&dest[i], val); val 259 libswscale/output.c int val = dither[(i + offset) & 7] << 12; val 262 libswscale/output.c val += src[j][i] * filter[j]; val 264 libswscale/output.c dest[i]= av_clip_uint8(val>>19); val 273 libswscale/output.c int val = (src[i] + dither[(i + offset) & 7]) >> 7; val 274 libswscale/output.c dest[i]= av_clip_uint8(val); val 314 libswscale/output.c #define accumulate_bit(acc, val) \ val 316 libswscale/output.c acc |= (val) >= (128 + 110) val 674 libswscale/output.c #define output_pixel(pos, val) \ val 676 libswscale/output.c AV_WB16(pos, val); \ val 678 libswscale/output.c AV_WL16(pos, val); \ val 93 libswscale/ppc/swscale_altivec.c DECLARE_ALIGNED(16, int, val)[16]; val 101 libswscale/ppc/swscale_altivec.c val[i] = dither[(x + i + offset) & 7] << 12; val 103 libswscale/ppc/swscale_altivec.c vo1 = vec_ld(0, val); val 104 libswscale/ppc/swscale_altivec.c vo2 = vec_ld(16, val); val 105 libswscale/ppc/swscale_altivec.c vo3 = vec_ld(32, val); val 106 libswscale/ppc/swscale_altivec.c vo4 = vec_ld(48, val); val 224 libswscale/ppc/swscale_altivec.c register int val = 0; val 226 libswscale/ppc/swscale_altivec.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 227 libswscale/ppc/swscale_altivec.c dst[i] = FFMIN(val >> 7, (1 << 15) - 1); val 56 libswscale/swscale.c int height, int y, uint8_t val) val 61 libswscale/swscale.c memset(ptr, val, width); val 83 libswscale/swscale.c int val = 0; val 86 libswscale/swscale.c val += src[srcPos + j] * filter[filterSize * i + j]; val 89 libswscale/swscale.c dst[i] = FFMIN(val >> sh, (1 << 19) - 1); val 108 libswscale/swscale.c int val = 0; val 111 libswscale/swscale.c val += src[srcPos + j] * filter[filterSize * i + j]; val 114 libswscale/swscale.c dst[i] = FFMIN(val >> sh, (1 << 15) - 1); val 127 libswscale/swscale.c int val = 0; val 129 libswscale/swscale.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 131 libswscale/swscale.c dst[i] = FFMIN(val >> 7, (1 << 15) - 1); // the cubic equation does overflow ... val 144 libswscale/swscale.c int val = 0; val 146 libswscale/swscale.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 148 libswscale/swscale.c dst[i] = FFMIN(val >> 3, (1 << 19) - 1); // the cubic equation does overflow ... val 132 libswscale/swscale_unscaled.c uint8_t val) val 137 libswscale/swscale_unscaled.c memset(ptr, val, width); val 33 tests/audiogen.c unsigned int seed, val; val 38 tests/audiogen.c val = seed >> 24; val 40 tests/audiogen.c val = seed % n; val 43 tests/audiogen.c return val; val 32 tests/videogen.c unsigned int seed, val; val 37 tests/videogen.c val = seed >> 24; val 39 tests/videogen.c val = seed % n; val 42 tests/videogen.c return val; val 370 tools/crypto_bench.c unsigned i, j, val; val 380 tools/crypto_bench.c sscanf(impl->output + i * 2, "%02x", &val); val 381 tools/crypto_bench.c outref[i] = val; val 77 tools/trasher.c int val = ran() * 256ULL / UINT32_MAX; val 80 tools/trasher.c val = 0; val 82 tools/trasher.c fwrite(&val, 1, 1, f);