val 28 compat/dispatch_semaphore/semaphore.h #define sem_timedwait(psem, val) dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0)) val 32 compat/dispatch_semaphore/semaphore.h int unused, int val) val 34 compat/dispatch_semaphore/semaphore.h int ret = !!(*psem = dispatch_semaphore_create(val)) - 1; val 432 fftools/cmdutils.c o->key, o->opt->help, o->val); val 434 fftools/cmdutils.c ret = write_option(optctx, o->opt, o->key, o->val); val 691 fftools/cmdutils.c const char *key, const char *val) val 699 fftools/cmdutils.c g->opts[g->nb_opts - 1].val = val; val 978 fftools/cmdutils.c char *key, *val; val 991 fftools/cmdutils.c if ((ret = av_opt_get_key_value(&env, "=", ":", 0, &key, &val)) < 0) { val 1003 fftools/cmdutils.c filename_template = val; val 1004 fftools/cmdutils.c val = NULL; val 1007 fftools/cmdutils.c report_file_level = strtol(val, &tail, 10); val 1016 fftools/cmdutils.c av_free(val); val 293 fftools/cmdutils.h const char *val; val 2707 fftools/ffmpeg_opt.c char type, *val; val 2711 fftools/ffmpeg_opt.c val = strchr(o->metadata[i].u.str, '='); val 2712 fftools/ffmpeg_opt.c if (!val) { val 2717 fftools/ffmpeg_opt.c *val++ = 0; val 2726 fftools/ffmpeg_opt.c double theta = av_strtod(val, &tail); val 2732 fftools/ffmpeg_opt.c av_dict_set(&oc->streams[j]->metadata, o->metadata[i].u.str, *val ? val : NULL, 0); val 2761 fftools/ffmpeg_opt.c av_dict_set(m, o->metadata[i].u.str, *val ? val : NULL, 0); val 1445 fftools/ffplay.c double val; val 1449 fftools/ffplay.c val = get_clock(&is->vidclk); val 1452 fftools/ffplay.c val = get_clock(&is->audclk); val 1455 fftools/ffplay.c val = get_clock(&is->extclk); val 1458 fftools/ffplay.c return val; val 363 fftools/ffprobe.c union { double d; long long int i; } val; val 374 fftools/ffprobe.c vald = uv.val.d; val 377 fftools/ffprobe.c vald = vali = uv.val.i; val 673 fftools/ffprobe.c const char *key, long long int val) val 678 fftools/ffprobe.c wctx->writer->print_integer(wctx, key, val); val 742 fftools/ffprobe.c const char *key, const char *val, int flags) val 756 fftools/ffprobe.c ret = validate_string(wctx, &val1, val); val 763 fftools/ffprobe.c key, val, section->unique_name); val 768 fftools/ffprobe.c wctx->writer->print_string(wctx, key, val); val 796 fftools/ffprobe.c uv.val.d = d; val 1829 fftools/ffprobe.c uv.val.i = v; \ val 1950 fftools/ffprobe.c const char *val = av_color_range_name(color_range); val 1951 fftools/ffprobe.c if (!val || color_range == AVCOL_RANGE_UNSPECIFIED) { val 1954 fftools/ffprobe.c print_str("color_range", val); val 1960 fftools/ffprobe.c const char *val = av_color_space_name(color_space); val 1961 fftools/ffprobe.c if (!val || color_space == AVCOL_SPC_UNSPECIFIED) { val 1964 fftools/ffprobe.c print_str("color_space", val); val 1970 fftools/ffprobe.c const char *val = av_color_primaries_name(color_primaries); val 1971 fftools/ffprobe.c if (!val || color_primaries == AVCOL_PRI_UNSPECIFIED) { val 1974 fftools/ffprobe.c print_str("color_primaries", val); val 1980 fftools/ffprobe.c const char *val = av_color_transfer_name(color_trc); val 1981 fftools/ffprobe.c if (!val || color_trc == AVCOL_TRC_UNSPECIFIED) { val 1984 fftools/ffprobe.c print_str("color_transfer", val); val 1990 fftools/ffprobe.c const char *val = av_chroma_location_name(chroma_location); val 1991 fftools/ffprobe.c if (!val || chroma_location == AVCHROMA_LOC_UNSPECIFIED) { val 1994 fftools/ffprobe.c print_str("chroma_location", val); val 499 libavcodec/4xm.c int code, i, j, level, val; val 507 libavcodec/4xm.c val = get_vlc2(&f->pre_gb, f->pre_vlc.table, ACDC_VLC_BITS, 3); val 508 libavcodec/4xm.c if (val >> 4) { val 513 libavcodec/4xm.c if (val) val 514 libavcodec/4xm.c val = get_xbits(&f->gb, val); val 516 libavcodec/4xm.c val = val * dequant_table[0] + f->last_dc; val 517 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 171 libavcodec/aacenc_utils.h static inline int quant_array_idx(const float val, const float *arr, const int num) val 176 libavcodec/aacenc_utils.h float error = (val - arr[i])*(val - arr[i]); val 102 libavcodec/aacps.c int val = PAR[e_prev][b] + get_vlc2(gb, vlc_table, 9, 3) - OFFSET; \ val 103 libavcodec/aacps.c if (MASK) val &= MASK; \ val 104 libavcodec/aacps.c PAR[e][b] = val; \ val 109 libavcodec/aacps.c int val = 0; \ val 111 libavcodec/aacps.c val += get_vlc2(gb, vlc_table, 9, 3) - OFFSET; \ val 112 libavcodec/aacps.c if (MASK) val &= MASK; \ val 113 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 1624 libavcodec/adpcm.c int val = sign_extend(bytestream2_get_le16u(&gb), 16); val 1626 libavcodec/adpcm.c coeff[i][n] = ea_adpcm_table[(val&0x0F)+4*i]; val 1627 libavcodec/adpcm.c s[0] = val & ~0x0F; val 1629 libavcodec/adpcm.c val = sign_extend(bytestream2_get_le16u(&gb), 16); val 1630 libavcodec/adpcm.c shift[n] = 20 - (val & 0x0F); val 1631 libavcodec/adpcm.c s[1] = val & ~0x0F; val 1085 libavcodec/agm.c int val = get_vlc2(gb, s->vlc.table, s->vlc.bits, 3); val 1086 libavcodec/agm.c if (val < 0) val 1088 libavcodec/agm.c s->output[x++] = val; val 192 libavcodec/aic.c #define GET_CODE(val, type, add_bits) \ val 195 libavcodec/aic.c val = get_ue_golomb(gb); \ val 197 libavcodec/aic.c val = get_unary(gb, 1, 31); \ val 199 libavcodec/aic.c val = (val << add_bits) + get_bits(gb, add_bits); \ val 209 libavcodec/aic.c unsigned val; val 225 libavcodec/aic.c GET_CODE(val, skip_type, skip_bits); val 226 libavcodec/aic.c if (val >= 0x10000) val 228 libavcodec/aic.c idx += val + 1; val 231 libavcodec/aic.c GET_CODE(val, coeff_type, coeff_bits); val 232 libavcodec/aic.c val++; val 233 libavcodec/aic.c if (val >= 0x10000) val 235 libavcodec/aic.c dst[scan[idx]] = val; val 242 libavcodec/aic.c GET_CODE(val, coeff_type, coeff_bits); val 243 libavcodec/aic.c if (val >= 0x10000) val 245 libavcodec/aic.c dst[scan[idx]] = val; val 300 libavcodec/aic.c int val = (uint16_t)block[i]; val 301 libavcodec/aic.c int sign = val & 1; val 303 libavcodec/aic.c block[i] = (((val >> 1) ^ -sign) * q * quant_matrix[i] >> 4) val 210 libavcodec/alac.c int val = 0; val 217 libavcodec/alac.c val += (pred[j] - d) * lpc_coefs[j]; val 218 libavcodec/alac.c val = (val + (1LL << (lpc_quant - 1))) >> lpc_quant; val 219 libavcodec/alac.c val += d + error_val; val 220 libavcodec/alac.c buffer_out[i] = sign_extend(val, bps); val 227 libavcodec/alac.c val = d - pred[j]; val 228 libavcodec/alac.c sign = sign_only(val) * error_sign; val 230 libavcodec/alac.c val *= (unsigned)sign; val 231 libavcodec/alac.c error_val -= (val >> lpc_quant) * (j + 1U); val 304 libavcodec/alacenc.c int val = samples[0] - samples[lpc.lpc_order - index]; val 305 libavcodec/alacenc.c int sign = (val ? FFSIGN(val) : 0); val 311 libavcodec/alacenc.c val *= sign; val 312 libavcodec/alacenc.c res_val -= (val >> lpc.lpc_quant) * (lpc.lpc_order - index); val 617 libavcodec/alsdec.c int32_t val = *bd->raw_samples; val 622 libavcodec/alsdec.c *dst++ = val; val 521 libavcodec/amfenc.c static AMF_RESULT amf_set_property_buffer(AMFSurface *object, const wchar_t *name, AMFBuffer *val) val 529 libavcodec/amfenc.c res = val->pVtbl->QueryInterface(val, &guid_AMFInterface, (void**)&amf_interface); val 543 libavcodec/amfenc.c static AMF_RESULT amf_get_property_buffer(AMFData *object, const wchar_t *name, AMFBuffer **val) val 554 libavcodec/amfenc.c res = amf_interface->pVtbl->QueryInterface(amf_interface, &guid_AMFBuffer, (void**)val); val 824 libavcodec/atrac3plus.c unsigned val; val 829 libavcodec/atrac3plus.c val = get_vlc2(gb, vlc_tab->table, vlc_tab->bits, 1); val 832 libavcodec/atrac3plus.c cf = av_mod_uintp2(val, bits); val 839 libavcodec/atrac3plus.c val >>= bits; val 275 libavcodec/atrac9dec.c int val = c->scalefactors[i - 1] + get_vlc2(gb, tab->table, 9, 2); val 276 libavcodec/atrac9dec.c c->scalefactors[i] = val & ((1 << len) - 1); val 328 libavcodec/atrac9dec.c int val = c->scalefactors[i - 1] + get_vlc2(gb, tab->table, 9, 2); val 329 libavcodec/atrac9dec.c c->scalefactors[i] = val & ((1 << len) - 1); val 414 libavcodec/atrac9dec.c uint16_t val = get_vlc2(gb, tab->table, 9, huff->max_bit_size); val 417 libavcodec/atrac9dec.c coeffs[k] = sign_extend(val, huff->value_bits); val 418 libavcodec/atrac9dec.c val >>= huff->value_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 2365 libavcodec/avcodec.h void av_codec_set_pkt_timebase (AVCodecContext *avctx, AVRational val); val 2379 libavcodec/avcodec.h void av_codec_set_lowres(AVCodecContext *avctx, int val); val 2385 libavcodec/avcodec.h void av_codec_set_seek_preroll(AVCodecContext *avctx, int val); val 2390 libavcodec/avcodec.h void av_codec_set_chroma_intra_matrix(AVCodecContext *avctx, uint16_t *val); val 541 libavcodec/avpacket.c const uint8_t *val = data + strlen(key) + 1; val 543 libavcodec/avpacket.c if (val >= end || !*key) val 546 libavcodec/avpacket.c ret = av_dict_set(dict, key, val, 0); val 549 libavcodec/avpacket.c data = val + strlen(val) + 1; val 621 libavcodec/bink.c int val = *c->bundle[bundle_num].cur_ptr++; val 622 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 |= (unsigned)*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 161 libavcodec/cabac_functions.h static av_always_inline int get_cabac_bypass_sign(CABACContext *c, int val){ val 173 libavcodec/cabac_functions.h return (val^mask)-mask; val 1591 libavcodec/cbs_av1_syntax_template.c uint32_t val; val 1601 libavcodec/cbs_av1_syntax_template.c val = get_bits(&fh, b); val 1603 libavcodec/cbs_av1_syntax_template.c val, val, val, 1, i / 8); 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 100 libavcodec/cdtoons.c uint8_t val; val 105 libavcodec/cdtoons.c val = bytestream_get_byte(&data); val 106 libavcodec/cdtoons.c raw = !(val & 0x80); val 107 libavcodec/cdtoons.c size = (int)(val & 0x7F) + 1; 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 87 libavcodec/clearvideo.c int idx = 1, last = 0, val, skip; val 99 libavcodec/clearvideo.c val = get_vlc2(gb, ctx->ac_vlc.table, 9, 2); val 100 libavcodec/clearvideo.c if (val < 0) val 102 libavcodec/clearvideo.c if (val != 0x1BFF) { val 103 libavcodec/clearvideo.c last = val >> 12; val 104 libavcodec/clearvideo.c skip = (val >> 4) & 0xFF; val 105 libavcodec/clearvideo.c val &= 0xF; val 107 libavcodec/clearvideo.c val = -val; val 111 libavcodec/clearvideo.c val = get_sbits(gb, 8); val 113 libavcodec/clearvideo.c if (val) { val 114 libavcodec/clearvideo.c int aval = FFABS(val), sign = val < 0; val 115 libavcodec/clearvideo.c val = ac_quant * (2 * aval + 1); val 117 libavcodec/clearvideo.c val--; val 119 libavcodec/clearvideo.c val = -val; val 124 libavcodec/clearvideo.c blk[ff_zigzag_direct[idx++]] = val; val 284 libavcodec/clearvideo.c int val = sptr[i] + bias; val 286 libavcodec/clearvideo.c dptr[i] = av_clip_uint8(val); val 40 libavcodec/cos_tablegen.c static void printval(double val, int fixed) val 44 libavcodec/cos_tablegen.c double new_val = val * (double) (1 << 15); val 50 libavcodec/cos_tablegen.c printf(" "FLOATFMT",", val); val 679 libavcodec/dcaenc.c int32_t val = quantize_value(c->subband[ch][band][sample], val 681 libavcodec/dcaenc.c c->quantized[ch][band][sample] = val; val 92 libavcodec/dct32_template.c tmp0 = val##a + val##b;\ val 93 libavcodec/dct32_template.c tmp1 = val##a - val##b;\ val 94 libavcodec/dct32_template.c val##a = tmp0;\ val 95 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ val 102 libavcodec/dct32_template.c val##a = tmp0;\ val 103 libavcodec/dct32_template.c val##b = MULH3(tmp1, c, 1<<(s));\ val 110 libavcodec/dct32_template.c val##c += val##d;\ val 117 libavcodec/dct32_template.c val##c += val##d;\ val 118 libavcodec/dct32_template.c val##a += val##c;\ val 119 libavcodec/dct32_template.c val##c += val##b;\ val 120 libavcodec/dct32_template.c val##b += val##d;\ val 123 libavcodec/dct32_template.c #define ADD(a, b) val##a += val##b val 704 libavcodec/dds.c uint8_t val = bytestream2_get_byte(gbc); val 705 libavcodec/dds.c dst[x ] = val & 0xF; val 706 libavcodec/dds.c dst[x + 1] = val >> 4; val 72 libavcodec/decode.c int64_t val; val 94 libavcodec/decode.c val = bytestream_get_le32(&data); val 95 libavcodec/decode.c if (val <= 0 || val > INT_MAX) { val 100 libavcodec/decode.c avctx->channels = val; val 112 libavcodec/decode.c val = bytestream_get_le32(&data); val 113 libavcodec/decode.c if (val <= 0 || val > INT_MAX) { val 118 libavcodec/decode.c avctx->sample_rate = val; val 42 libavcodec/dirac_vlc.c uint8_t val; /* Init value in case current value was terminated */ val 1075 libavcodec/dirac_vlc.c val <<= lut.val0_bits; \ val 1076 libavcodec/dirac_vlc.c val |= lut.val0; \ val 1077 libavcodec/dirac_vlc.c dst[0] = (val - 1) * lut.sign; \ val 1086 libavcodec/dirac_vlc.c val = lut.val; \ val 1098 libavcodec/dirac_vlc.c uint16_t val = 0; val 1108 libavcodec/dirac_vlc.c *dst++ = -((lut.state != STATE_SIGN ? (val << 1) | 1 : val) - 1); val 1118 libavcodec/dirac_vlc.c uint32_t val = 0; val 1128 libavcodec/dirac_vlc.c *dst++ = -((lut.state != STATE_SIGN ? (val << 1) | 1 : val) - 1); val 552 libavcodec/diracdec.c int val = coeff_unpack_golomb(gb, qfactor, qoffset); val 554 libavcodec/diracdec.c AV_WN32(&buf[4*x], val); val 556 libavcodec/diracdec.c AV_WN16(&buf[2*x], val); val 75 libavcodec/diracdsp.c #define OP_PUT(dst, val) (dst) = (val) val 76 libavcodec/diracdsp.c #define OP_AVG(dst, val) (dst) = (((dst) + (val) + 1)>>1) val 990 libavcodec/dnxhdenc.c uint8_t val = pix[x + y * ctx->m.linesize]; val 991 libavcodec/dnxhdenc.c sum += val; val 992 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 123 libavcodec/dvbsub.c #define PUTBITS4(val)\ val 125 libavcodec/dvbsub.c bitbuf |= (val) << bitcnt;\ val 37 libavcodec/dvdsubenc.c #define PUTNIBBLE(val)\ val 40 libavcodec/dvdsubenc.c *q++ = bitbuf | ((val) & 0x0f);\ val 42 libavcodec/dvdsubenc.c bitbuf = (val) << 4;\ val 181 libavcodec/dxtory.c uint8_t c, val; val 185 libavcodec/dxtory.c val = get_bits(gb, 8); val 188 libavcodec/dxtory.c val = lru[c - 1]; val 191 libavcodec/dxtory.c lru[0] = val; val 193 libavcodec/dxtory.c return val; val 249 libavcodec/dxtory.c uint8_t c, val; val 253 libavcodec/dxtory.c val = get_bits(gb, bits); val 256 libavcodec/dxtory.c val = lru[c - 1]; val 259 libavcodec/dxtory.c lru[0] = val; val 261 libavcodec/dxtory.c return val; val 431 libavcodec/dxv.c int sum, x, val, lshift, rshift, ret, i, idx; val 453 libavcodec/dxv.c val = optable[idx].val2; val 454 libavcodec/dxv.c sum = val + lshift; val 455 libavcodec/dxv.c x = (next << lshift) >> 1 >> (31 - val); val 52 libavcodec/extract_extradata_bsf.c static int val_in_array(const int *arr, int len, int val) val 56 libavcodec/extract_extradata_bsf.c if (arr[i] == val) val 354 libavcodec/ffwavesynth.c unsigned val; val 376 libavcodec/ffwavesynth.c val = amp * ws->sin[in->phi >> (64 - SIN_BITS)]; val 381 libavcodec/ffwavesynth.c val = amp * (unsigned)pink; val 384 libavcodec/ffwavesynth.c val = 0; val 389 libavcodec/ffwavesynth.c *cv += (unsigned)val; val 391 libavcodec/ffwavesynth.c val = (int32_t)lcg_next(&ws->dither_state) >> 16; val 394 libavcodec/ffwavesynth.c *cv += val; val 102 libavcodec/fits.c #define CHECK_VALUE(key, val) \ val 103 libavcodec/fits.c if (sscanf(value, "%d", &header->val) != 1) { \ 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 1198 libavcodec/flacenc.c static void write_utf8(PutBitContext *pb, uint32_t val) val 1201 libavcodec/flacenc.c PUT_UTF8(val, tmp, put_bits(pb, 8, tmp);) val 243 libavcodec/g2meet.c int dc, val, pos; val 262 libavcodec/g2meet.c val = get_vlc2(gb, c->ac_vlc[is_chroma].table, 9, 3); val 263 libavcodec/g2meet.c if (val < 0) val 265 libavcodec/g2meet.c pos += val >> 4; val 266 libavcodec/g2meet.c val &= 0xF; val 268 libavcodec/g2meet.c return val ? AVERROR_INVALIDDATA : 0; val 269 libavcodec/g2meet.c if (val) { val 270 libavcodec/g2meet.c int nbits = val; val 272 libavcodec/g2meet.c val = get_xbits(gb, nbits); val 273 libavcodec/g2meet.c val *= qmat[ff_zigzag_direct[pos]]; val 274 libavcodec/g2meet.c block[c->scantable.permutated[pos]] = val; val 509 libavcodec/g2meet.c #define TOSIGNED(val) (((val) >> 1) ^ -((val) & 1)) val 1327 libavcodec/g2meet.c int val = bytestream2_get_be32(gb); val 1328 libavcodec/g2meet.c *dst++ = val >> 0; val 1329 libavcodec/g2meet.c *dst++ = val >> 8; val 1330 libavcodec/g2meet.c *dst++ = val >> 16; val 1331 libavcodec/g2meet.c *dst++ = val >> 24; val 193 libavcodec/g723_1dec.c static int16_t square_root(unsigned val) val 195 libavcodec/g723_1dec.c av_assert2(!(val & 0x80000000)); val 197 libavcodec/g723_1dec.c return (ff_sqrt(val << 1) >> 1) & (~1); val 670 libavcodec/g723_1dec.c int i, shift, seg, seg2, t, val, val_add, x, y; val 699 libavcodec/g723_1dec.c val = 1 << shift; val 700 libavcodec/g723_1dec.c val_add = val >> 1; val 702 libavcodec/g723_1dec.c t = seg * 32 + (val << seg2); val 705 libavcodec/g723_1dec.c val += val_add; val 707 libavcodec/g723_1dec.c val -= val_add; val 711 libavcodec/g723_1dec.c t = seg * 32 + (val << seg2); val 714 libavcodec/g723_1dec.c t = seg * 32 + (val + 1 << seg2); val 716 libavcodec/g723_1dec.c val = (seg2 - 1) * 16 + val; val 718 libavcodec/g723_1dec.c val++; val 720 libavcodec/g723_1dec.c t = seg * 32 + (val - 1 << seg2); val 722 libavcodec/g723_1dec.c val = (seg2 - 1) * 16 + val; val 724 libavcodec/g723_1dec.c val--; val 727 libavcodec/g723_1dec.c return val; val 943 libavcodec/g723_1enc.c int val = buf[optim->grid_index + (i << 1)]; val 944 libavcodec/g723_1enc.c if (!val) { val 948 libavcodec/g723_1enc.c if (val < 0) val 353 libavcodec/gdv.c int val; val 356 libavcodec/gdv.c val = read_bits32(&bits, gb, lbits); val 357 libavcodec/gdv.c len += val; val 358 libavcodec/gdv.c if (val != ((1 << lbits) - 1)) { val 33 libavcodec/gsmdec_template.c int i, val; val 37 libavcodec/gsmdec_template.c val = get_bits(gb, frame_bits[i]); val 38 libavcodec/gsmdec_template.c dst[3 * i] += tab[ff_gsm_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 135 libavcodec/h261enc.c static void h261_encode_motion(H261Context *h, int val) val 139 libavcodec/h261enc.c if (val == 0) { val 143 libavcodec/h261enc.c if (val > 15) val 144 libavcodec/h261enc.c val -= 32; val 145 libavcodec/h261enc.c if (val < -16) val 146 libavcodec/h261enc.c val += 32; val 147 libavcodec/h261enc.c sign = val < 0; val 148 libavcodec/h261enc.c code = sign ? -val : val; val 96 libavcodec/h263.h void ff_h263_encode_motion(PutBitContext *pb, int val, int f_code); val 99 libavcodec/h263.h static inline int h263_get_motion_length(int val, int f_code){ val 102 libavcodec/h263.h if (val == 0) { val 108 libavcodec/h263.h val = (val<<l)>>l; val 109 libavcodec/h263.h val--; val 110 libavcodec/h263.h code = (val >> bit_size) + 1; val 2391 libavcodec/h264_cabac.c int val = 1; val 2397 libavcodec/h264_cabac.c val++; val 2398 libavcodec/h264_cabac.c if(val > 2*max_qp){ //prevent infinite loop val 2404 libavcodec/h264_cabac.c if( val&0x01 ) val 2405 libavcodec/h264_cabac.c val= (val + 1)>>1 ; val 2407 libavcodec/h264_cabac.c val= -((val + 1)>>1); val 2408 libavcodec/h264_cabac.c sl->last_qscale_diff = val; val 2409 libavcodec/h264_cabac.c sl->qscale += val; val 960 libavcodec/h264_cavlc.c unsigned int val; val 964 libavcodec/h264_cavlc.c val= 0; val 966 libavcodec/h264_cavlc.c val= get_bits1(&sl->gb)^1; val 968 libavcodec/h264_cavlc.c val= get_ue_golomb_31(&sl->gb); val 969 libavcodec/h264_cavlc.c if (val >= rc) { val 970 libavcodec/h264_cavlc.c av_log(h->avctx, AV_LOG_ERROR, "ref %u overflow\n", val); val 974 libavcodec/h264_cavlc.c fill_rectangle(&sl->ref_cache[list][ scan8[0] ], 4, 4, 8, val, 1); val 991 libavcodec/h264_cavlc.c unsigned int val; val 995 libavcodec/h264_cavlc.c val= 0; val 997 libavcodec/h264_cavlc.c val= get_bits1(&sl->gb)^1; val 999 libavcodec/h264_cavlc.c val= get_ue_golomb_31(&sl->gb); val 1000 libavcodec/h264_cavlc.c if (val >= rc) { val 1001 libavcodec/h264_cavlc.c av_log(h->avctx, AV_LOG_ERROR, "ref %u overflow\n", val); val 1006 libavcodec/h264_cavlc.c val= LIST_NOT_USED&0xFF; val 1007 libavcodec/h264_cavlc.c fill_rectangle(&sl->ref_cache[list][ scan8[0] + 16*i ], 4, 2, 8, val, 1); val 1012 libavcodec/h264_cavlc.c unsigned int val; val 1019 libavcodec/h264_cavlc.c val= pack16to32(mx,my); val 1021 libavcodec/h264_cavlc.c val=0; val 1022 libavcodec/h264_cavlc.c fill_rectangle(sl->mv_cache[list][ scan8[0] + 16*i ], 4, 2, 8, val, 4); val 1029 libavcodec/h264_cavlc.c unsigned int val; val 1033 libavcodec/h264_cavlc.c val= 0; val 1035 libavcodec/h264_cavlc.c val= get_bits1(&sl->gb)^1; val 1037 libavcodec/h264_cavlc.c val= get_ue_golomb_31(&sl->gb); val 1038 libavcodec/h264_cavlc.c if (val >= rc) { val 1039 libavcodec/h264_cavlc.c av_log(h->avctx, AV_LOG_ERROR, "ref %u overflow\n", val); val 1044 libavcodec/h264_cavlc.c val= LIST_NOT_USED&0xFF; val 1045 libavcodec/h264_cavlc.c fill_rectangle(&sl->ref_cache[list][ scan8[0] + 2*i ], 2, 4, 8, val, 1); val 1050 libavcodec/h264_cavlc.c unsigned int val; val 1057 libavcodec/h264_cavlc.c val= pack16to32(mx,my); val 1059 libavcodec/h264_cavlc.c val=0; val 1060 libavcodec/h264_cavlc.c fill_rectangle(sl->mv_cache[list][ scan8[0] + 2*i ], 2, 4, 8, val, 4); val 313 libavcodec/h264_refs.c unsigned int val = sl->ref_modifications[list][index].val; val 321 libavcodec/h264_refs.c const unsigned int abs_diff_pic_num = val + 1; val 352 libavcodec/h264_refs.c pic_id = val; // long_term_pic_idx val 449 libavcodec/h264_refs.c sl->ref_modifications[list][index].val = get_ue_golomb_long(&sl->gb); val 280 libavcodec/h264dec.h uint32_t val; val 1429 libavcodec/hevc_ps.c int val = 0; val 1446 libavcodec/hevc_ps.c val += pps->row_height[tile_y] * pps->column_width[i]; val 1448 libavcodec/hevc_ps.c val += sps->ctb_width * pps->row_height[i]; val 1450 libavcodec/hevc_ps.c val += (tb_y - pps->row_bd[tile_y]) * pps->column_width[tile_x] + val 1453 libavcodec/hevc_ps.c pps->ctb_addr_rs_to_ts[ctb_addr_rs] = val; val 1454 libavcodec/hevc_ps.c pps->ctb_addr_ts_to_rs[val] = ctb_addr_rs; val 1483 libavcodec/hevc_ps.c int val = pps->ctb_addr_rs_to_ts[rs] << (log2_diff * 2); val 1486 libavcodec/hevc_ps.c val += (m & x ? m * m : 0) + (m & y ? 2 * m * m : 0); val 1488 libavcodec/hevc_ps.c pps->min_tb_addr_zs[y * (sps->tb_mask+2) + x] = val; val 874 libavcodec/hevcdec.c unsigned val = get_bits_long(gb, offset_len); val 875 libavcodec/hevcdec.c sh->entry_point_offset[i] = val + 1; // +1; // +1 to get the size val 43 libavcodec/hevcpred_template.c #define EXTEND(ptr, val, len) \ val 45 libavcodec/hevcpred_template.c pixel4 pix = PIXEL_SPLAT_X4(val); \ val 66 libavcodec/hq_hqa.c int val, pos = 1; val 79 libavcodec/hq_hqa.c val = get_vlc2(gb, c->hq_ac_vlc.table, 9, 2); val 80 libavcodec/hq_hqa.c if (val < 0) val 83 libavcodec/hq_hqa.c pos += ff_hq_ac_skips[val]; val 86 libavcodec/hq_hqa.c block[ff_zigzag_direct[pos]] = (int)(ff_hq_ac_syms[val] * (unsigned)q[pos]) >> 12; val 102 libavcodec/hqx.c int val; val 104 libavcodec/hqx.c val = show_bits(gb, ac->lut_bits); val 105 libavcodec/hqx.c if (ac->lut[val].bits == -1) { val 108 libavcodec/hqx.c val = ac->lut[val].lev + show_bits(&gb2, ac->extra_bits); val 110 libavcodec/hqx.c *run = ac->lut[val].run; val 111 libavcodec/hqx.c *lev = ac->lut[val].lev; val 112 libavcodec/hqx.c skip_bits(gb, ac->lut[val].bits); val 40 libavcodec/huffman.c uint64_t val; val 48 libavcodec/huffman.c if (child < size - 1 && h[child].val > h[child+1].val) val 50 libavcodec/huffman.c if (h[root].val > h[child].val) { val 82 libavcodec/huffman.c h[i].val = (stats[map[i]] << 14) + offset; val 89 libavcodec/huffman.c uint64_t min1v = h[0].val; val 91 libavcodec/huffman.c h[0].val = INT64_MAX; val 95 libavcodec/huffman.c h[0].val += min1v; val 101 libavcodec/huffyuvdec.c int i, val, repeat; val 105 libavcodec/huffyuvdec.c val = get_bits(gb, 5); val 113 libavcodec/huffyuvdec.c dst[i++] = val; val 162 libavcodec/huffyuvenc.c int val = len[i]; val 165 libavcodec/huffyuvenc.c for (; i < n && len[i] == val && repeat < 255; i++) val 168 libavcodec/huffyuvenc.c av_assert0(val < 32 && val >0 && repeat < 256 && repeat>0); val 170 libavcodec/huffyuvenc.c buf[index++] = val; val 173 libavcodec/huffyuvenc.c buf[index++] = val | (repeat << 5); val 391 libavcodec/internal.h int ff_int_from_list_or_default(void *ctx, const char * val_name, int val, val 518 libavcodec/interplayacm.c int pwr, count, val, i, x, ret; val 521 libavcodec/interplayacm.c val = get_bits(gb, 16); val 527 libavcodec/interplayacm.c x += val; val 530 libavcodec/interplayacm.c for (i = 1, x = -val; i <= count; i++) { val 532 libavcodec/interplayacm.c x -= (unsigned)val; val 589 libavcodec/interplayacm.c int val = s->block[n] >> s->level; val 590 libavcodec/interplayacm.c *samples++ = val; val 159 libavcodec/ituh263dec.c unsigned int val, gob_number; val 163 libavcodec/ituh263dec.c val = show_bits(&s->gb, 16); val 164 libavcodec/ituh263dec.c if(val) val 272 libavcodec/ituh263dec.c int code, val, sign, shift; val 282 libavcodec/ituh263dec.c val = code; val 284 libavcodec/ituh263dec.c val = (val - 1) << shift; val 285 libavcodec/ituh263dec.c val |= get_bits(&s->gb, shift); val 286 libavcodec/ituh263dec.c val++; val 289 libavcodec/ituh263dec.c val = -val; val 290 libavcodec/ituh263dec.c val += pred; val 294 libavcodec/ituh263dec.c val = sign_extend(val, 5 + f_code); val 297 libavcodec/ituh263dec.c if (pred < -31 && val < -63) val 298 libavcodec/ituh263dec.c val += 64; val 299 libavcodec/ituh263dec.c if (pred > 32 && val > 63) val 300 libavcodec/ituh263dec.c val -= 64; val 303 libavcodec/ituh263dec.c return val; val 410 libavcodec/ituh263enc.c static void h263p_encode_umotion(PutBitContext *pb, int val) val 419 libavcodec/ituh263enc.c if ( val == 0) val 421 libavcodec/ituh263enc.c else if (val == 1) val 423 libavcodec/ituh263enc.c else if (val == -1) val 427 libavcodec/ituh263enc.c sval = ((val < 0) ? (short)(-val):(short)val); val 442 libavcodec/ituh263enc.c code = ((code << 1) | (val < 0)) << 1; val 646 libavcodec/ituh263enc.c void ff_h263_encode_motion(PutBitContext *pb, int val, int f_code) val 650 libavcodec/ituh263enc.c if (val == 0) { val 658 libavcodec/ituh263enc.c val = sign_extend(val, 6 + bit_size); val 659 libavcodec/ituh263enc.c sign = val>>31; val 660 libavcodec/ituh263enc.c val= (val^sign)-sign; val 663 libavcodec/ituh263enc.c val--; val 664 libavcodec/ituh263enc.c code = (val >> bit_size) + 1; val 665 libavcodec/ituh263enc.c bits = val & (range - 1); val 685 libavcodec/ituh263enc.c int val, bit_size, code; val 689 libavcodec/ituh263enc.c val=mv; val 690 libavcodec/ituh263enc.c if (val < 0) val 691 libavcodec/ituh263enc.c val = -val; val 692 libavcodec/ituh263enc.c val--; val 693 libavcodec/ituh263enc.c code = (val >> bit_size) + 1; val 122 libavcodec/ivi.c static uint16_t inv_bits(uint16_t val, int nbits) val 127 libavcodec/ivi.c res = ff_reverse[val] >> (8 - nbits); val 129 libavcodec/ivi.c res = ((ff_reverse[val & 0xFF] << 8) + val 130 libavcodec/ivi.c (ff_reverse[val >> 8])) >> (16 - nbits); val 510 libavcodec/ivi.c int pos, run, val; val 543 libavcodec/ivi.c val = IVI_TOSIGNED((hi << 6) | lo); val 550 libavcodec/ivi.c val = rvmap->valtab[sym]; val 559 libavcodec/ivi.c if (!val) val 564 libavcodec/ivi.c val = val * q + FFSIGN(val) * (((q ^ 1) - 1) >> 1); val 565 libavcodec/ivi.c trvec[pos] = val; val 567 libavcodec/ivi.c col_flags[pos & col_mask] |= !!val; val 290 libavcodec/ivi.h #define IVI_TOSIGNED(val) (-(((val) >> 1) ^ -((val) & 1))) val 208 libavcodec/j2kenc.c static void put_bits(Jpeg2000EncoderContext *s, int val, int n) // TODO: optimize val 216 libavcodec/j2kenc.c *s->buf |= val << (7 - s->bit_index++); val 248 libavcodec/j2kenc.c curval = node->val; val 256 libavcodec/j2kenc.c if (stack[sp]->val >= threshold){ val 260 libavcodec/j2kenc.c put_bits(s, 0, stack[sp]->val - curval); val 262 libavcodec/j2kenc.c curval = stack[sp]->val; val 271 libavcodec/j2kenc.c if (node->parent->val <= node->val) val 273 libavcodec/j2kenc.c node->parent->val = node->val; val 753 libavcodec/j2kenc.c prec->cblkincl[pos].val = prec->cblk[yi * cblknw + xi].ninclpasses == 0; val 755 libavcodec/j2kenc.c prec->zerobits[pos].val = expn[bandno] + numgbits - 1 - prec->cblk[yi * cblknw + xi].nonzerobits; val 90 libavcodec/jpeg2000.c t[i].val = 0; val 129 libavcodec/jpeg2000.h uint8_t val; val 177 libavcodec/jpeg2000dec.c curval = node->val; val 179 libavcodec/jpeg2000dec.c curval = stack[sp]->val; val 182 libavcodec/jpeg2000dec.c if (curval < stack[sp]->val) val 183 libavcodec/jpeg2000dec.c curval = stack[sp]->val; val 194 libavcodec/jpeg2000dec.c stack[sp]->val = curval; val 1642 libavcodec/jpeg2000dec.c int val; val 1643 libavcodec/jpeg2000dec.c val = ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1644 libavcodec/jpeg2000dec.c val = (val << 1) + ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1645 libavcodec/jpeg2000dec.c val = (val << 1) + ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1646 libavcodec/jpeg2000dec.c val = (val << 1) + ff_mqc_decode(&t1->mqc, t1->mqc.cx_states + MQC_CX_UNI); val 1647 libavcodec/jpeg2000dec.c if (val != 0xa) val 1735 libavcodec/jpeg2000dec.c int val; val 1737 libavcodec/jpeg2000dec.c val = (quan_parameter < 0)?-quan_parameter:quan_parameter; val 1739 libavcodec/jpeg2000dec.c if (val > (1 << roi_shift)) val 1740 libavcodec/jpeg2000dec.c return (quan_parameter < 0)?-(val >> roi_shift):(val >> roi_shift); val 1946 libavcodec/jpeg2000dec.c int val = lrintf(*datap) + (1 << (cbps - 1)); \ val 1948 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); \ val 1949 libavcodec/jpeg2000dec.c *dst = val << (precision - cbps); \ val 1955 libavcodec/jpeg2000dec.c int val = *i_datap + (1 << (cbps - 1)); \ val 1957 libavcodec/jpeg2000dec.c val = av_clip(val, 0, (1 << cbps) - 1); \ val 1958 libavcodec/jpeg2000dec.c *dst = val << (precision - cbps); \ val 51 libavcodec/jpeglsenc.c int val; val 63 libavcodec/jpeglsenc.c val = 2 * FFABS(err) - 1 - map; val 65 libavcodec/jpeglsenc.c val = 2 * err + map; val 67 libavcodec/jpeglsenc.c set_ur_golomb_jpegls(pb, val, k, state->limit, state->qbpp); val 79 libavcodec/jpeglsenc.c int val, map; val 93 libavcodec/jpeglsenc.c val = -(2 * err) - 1 - RItype + map; val 95 libavcodec/jpeglsenc.c val = 2 * err - RItype - map; val 96 libavcodec/jpeglsenc.c set_ur_golomb_jpegls(pb, val, k, state->limit - limit_add - 1, state->qbpp); val 100 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 108 libavcodec/lagarith.c unsigned val; val 127 libavcodec/lagarith.c val = get_bits_long(gb, bits); val 128 libavcodec/lagarith.c val |= 1U << bits; val 130 libavcodec/lagarith.c *value = val - 1; val 81 libavcodec/lagarithrac.h int val; val 90 libavcodec/lagarithrac.h val = 0; val 94 libavcodec/lagarithrac.h val = l->range_hash[low_scaled]; val 95 libavcodec/lagarithrac.h while (l->low >= range_scaled * l->prob[val + 1]) val 96 libavcodec/lagarithrac.h val++; val 99 libavcodec/lagarithrac.h l->range = range_scaled * (l->prob[val + 1] - l->prob[val]); val 101 libavcodec/lagarithrac.h val = 255; val 108 libavcodec/lagarithrac.h l->low -= range_scaled * l->prob[val]; val 110 libavcodec/lagarithrac.h return val; val 242 libavcodec/libaomenc.c int val) val 250 libavcodec/libaomenc.c av_log(avctx, AV_LOG_DEBUG, " %*s%d\n", width, buf, val); val 252 libavcodec/libaomenc.c res = aom_codec_control(&ctx->encoder, id, val); val 314 libavcodec/libvpxenc.c enum vp8e_enc_control_id id, int val) val 322 libavcodec/libvpxenc.c av_log(avctx, AV_LOG_DEBUG, " %*s%d\n", width, buf, val); val 324 libavcodec/libvpxenc.c res = vpx_codec_control(&ctx->encoder, id, val); val 336 libavcodec/libvpxenc.c enum vp8e_enc_control_id id, int *val) val 344 libavcodec/libvpxenc.c av_log(avctx, AV_LOG_DEBUG, " %*s%d\n", width, buf, *val); val 346 libavcodec/libvpxenc.c res = vpx_codec_control(&ctx->encoder, id, val); val 891 libavcodec/libx264.c char param[4096]={0}, val[4096]={0}; val 892 libavcodec/libx264.c if(sscanf(p, "%4095[^:=]=%4095[^:]", param, val) == 1){ val 895 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 134 libavcodec/loco.c unsigned val; val 153 libavcodec/loco.c val = loco_get_rice(&rc); val 154 libavcodec/loco.c data[0] = 128 + val; val 157 libavcodec/loco.c val = loco_get_rice(&rc); val 158 libavcodec/loco.c if (val == INT_MIN) val 160 libavcodec/loco.c data[i] = data[i - 1] + val; val 165 libavcodec/loco.c val = loco_get_rice(&rc); val 166 libavcodec/loco.c if (val == INT_MIN) val 168 libavcodec/loco.c data[0] = data[-stride] + val; val 171 libavcodec/loco.c val = loco_get_rice(&rc); val 172 libavcodec/loco.c if (val == INT_MIN) val 174 libavcodec/loco.c data[i] = loco_predict(&data[i], stride) + 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 130 libavcodec/mathops.h static inline av_const int sign_extend(int val, unsigned bits) val 133 libavcodec/mathops.h union { unsigned u; int s; } v = { (unsigned) val << shift }; val 139 libavcodec/mathops.h static inline av_const unsigned zero_extend(unsigned val, unsigned bits) val 141 libavcodec/mathops.h return (val << ((8 * sizeof(int)) - bits)) >> ((8 * sizeof(int)) - bits); val 122 libavcodec/metasound.c float val = ((const float []) { 0.4, 0.35, 0.28 })[ftype]; val 128 libavcodec/metasound.c val = 0.5; val 137 libavcodec/metasound.c tmp2 + val * hist[idx] + 1.0 : tmp2 + 1.0; val 139 libavcodec/metasound.c st = use_hist ? (1.0 - val) * tmp2 + val * hist[idx] + 1.0 val 27 libavcodec/mips/blockdsp_mips.h void ff_fill_block16_msa(uint8_t *src, uint8_t val, ptrdiff_t stride, int height); val 28 libavcodec/mips/blockdsp_mips.h void ff_fill_block8_msa(uint8_t *src, uint8_t val, ptrdiff_t stride, int height); val 24 libavcodec/mips/blockdsp_msa.c static void copy_8bit_value_width8_msa(uint8_t *src, uint8_t val, val 31 libavcodec/mips/blockdsp_msa.c val0 = (v16u8) __msa_fill_b(val); val 40 libavcodec/mips/blockdsp_msa.c static void copy_8bit_value_width16_msa(uint8_t *src, uint8_t val, val 46 libavcodec/mips/blockdsp_msa.c val0 = (v16u8) __msa_fill_b(val); val 68 libavcodec/mips/blockdsp_msa.c void ff_fill_block16_msa(uint8_t *src, uint8_t val, ptrdiff_t stride, int height) val 70 libavcodec/mips/blockdsp_msa.c copy_8bit_value_width16_msa(src, val, stride, height); val 73 libavcodec/mips/blockdsp_msa.c void ff_fill_block8_msa(uint8_t *src, uint8_t val, ptrdiff_t stride, int height) val 75 libavcodec/mips/blockdsp_msa.c copy_8bit_value_width8_msa(src, val, stride, height); val 109 libavcodec/mips/h264pred_msa.c #define INTRA_PREDICT_VALDC_8X8_MSA(val) \ val 110 libavcodec/mips/h264pred_msa.c static void intra_predict_##val##dc_8x8_msa(uint8_t *dst, int32_t dst_stride) \ val 112 libavcodec/mips/h264pred_msa.c v16i8 store = __msa_fill_b(val); \ val 123 libavcodec/mips/h264pred_msa.c #define INTRA_PREDICT_VALDC_16X16_MSA(val) \ val 124 libavcodec/mips/h264pred_msa.c static void intra_predict_##val##dc_16x16_msa(uint8_t *dst, \ val 127 libavcodec/mips/h264pred_msa.c v16u8 out = (v16u8) __msa_fill_b(val); \ val 662 libavcodec/mips/hevc_idct_msa.c int32_t val; val 665 libavcodec/mips/hevc_idct_msa.c val = (coeffs[0] + 1) >> 1; val 666 libavcodec/mips/hevc_idct_msa.c val = (val + 32) >> 6; val 667 libavcodec/mips/hevc_idct_msa.c dst = __msa_fill_h(val); val 674 libavcodec/mips/hevc_idct_msa.c int32_t val; val 677 libavcodec/mips/hevc_idct_msa.c val = (coeffs[0] + 1) >> 1; val 678 libavcodec/mips/hevc_idct_msa.c val = (val + 32) >> 6; val 679 libavcodec/mips/hevc_idct_msa.c dst = __msa_fill_h(val); val 687 libavcodec/mips/hevc_idct_msa.c int32_t val; val 690 libavcodec/mips/hevc_idct_msa.c val = (coeffs[0] + 1) >> 1; val 691 libavcodec/mips/hevc_idct_msa.c val = (val + 32) >> 6; val 692 libavcodec/mips/hevc_idct_msa.c dst = __msa_fill_h(val); val 703 libavcodec/mips/hevc_idct_msa.c int32_t val; val 706 libavcodec/mips/hevc_idct_msa.c val = (coeffs[0] + 1) >> 1; val 707 libavcodec/mips/hevc_idct_msa.c val = (val + 32) >> 6; val 708 libavcodec/mips/hevc_idct_msa.c dst = __msa_fill_h(val); val 407 libavcodec/mips/hevcpred_msa.c uint32_t row, col, val; val 441 libavcodec/mips/hevcpred_msa.c val = (src_left[0] + 2 * addition + src_top[0] + 2) >> 2; val 442 libavcodec/mips/hevcpred_msa.c store = (v16u8) __msa_insert_b((v16i8) store, 0, val); val 466 libavcodec/mips/hevcpred_msa.c uint32_t row, col, val; val 499 libavcodec/mips/hevcpred_msa.c val = (src_left[0] + 2 * addition + src_top[0] + 2) >> 2; val 500 libavcodec/mips/hevcpred_msa.c store = (v16u8) __msa_insert_b((v16i8) store, 0, val); val 74 libavcodec/mips/lsp_mips.h double val = lsp[2*i]; val 101 libavcodec/mips/lsp_mips.h : [f_j_2]"=&f"(f_j_2), [f_j_1]"=&f"(f_j_1), [val]"+f"(val), val 107 libavcodec/mips/lsp_mips.h f[1] += val; val 1104 libavcodec/mips/vp8dsp_mmi.c int val = (dc[0] + 3) >> 3; val 1108 libavcodec/mips/vp8dsp_mmi.c block[0][0][0] = val; val 1109 libavcodec/mips/vp8dsp_mmi.c block[0][1][0] = val; val 1110 libavcodec/mips/vp8dsp_mmi.c block[0][2][0] = val; val 1111 libavcodec/mips/vp8dsp_mmi.c block[0][3][0] = val; val 1112 libavcodec/mips/vp8dsp_mmi.c block[1][0][0] = val; val 1113 libavcodec/mips/vp8dsp_mmi.c block[1][1][0] = val; val 1114 libavcodec/mips/vp8dsp_mmi.c block[1][2][0] = val; val 1115 libavcodec/mips/vp8dsp_mmi.c block[1][3][0] = val; val 1116 libavcodec/mips/vp8dsp_mmi.c block[2][0][0] = val; val 1117 libavcodec/mips/vp8dsp_mmi.c block[2][1][0] = val; val 1118 libavcodec/mips/vp8dsp_mmi.c block[2][2][0] = val; val 1119 libavcodec/mips/vp8dsp_mmi.c block[2][3][0] = val; val 1120 libavcodec/mips/vp8dsp_mmi.c block[3][0][0] = val; val 1121 libavcodec/mips/vp8dsp_mmi.c block[3][1][0] = val; val 1122 libavcodec/mips/vp8dsp_mmi.c block[3][2][0] = val; val 1123 libavcodec/mips/vp8dsp_mmi.c block[3][3][0] = val; val 603 libavcodec/mips/vp9_idct_msa.c int32_t val; val 608 libavcodec/mips/vp9_idct_msa.c val = ROUND_POWER_OF_TWO(out, 5); val 609 libavcodec/mips/vp9_idct_msa.c vec = __msa_fill_h(val); val 322 libavcodec/mips/vp9_intra_msa.c #define INTRA_PREDICT_VALDC_16X16_MSA(val) \ val 323 libavcodec/mips/vp9_intra_msa.c void ff_dc_##val##_16x16_msa(uint8_t *dst, ptrdiff_t dst_stride, \ val 326 libavcodec/mips/vp9_intra_msa.c v16u8 out = (v16u8) __msa_ldi_b(val); \ val 337 libavcodec/mips/vp9_intra_msa.c #define INTRA_PREDICT_VALDC_32X32_MSA(val) \ val 338 libavcodec/mips/vp9_intra_msa.c void ff_dc_##val##_32x32_msa(uint8_t *dst, ptrdiff_t dst_stride, \ val 342 libavcodec/mips/vp9_intra_msa.c v16u8 out = (v16u8) __msa_ldi_b(val); \ val 799 libavcodec/mjpegdec.c int code, i, j, level, val; val 802 libavcodec/mjpegdec.c val = mjpeg_decode_dc(s, dc_index); val 803 libavcodec/mjpegdec.c if (val == 0xfffff) { val 807 libavcodec/mjpegdec.c val = val * (unsigned)quant_matrix[0] + s->last_dc[component]; val 808 libavcodec/mjpegdec.c val = av_clip_int16(val); val 809 libavcodec/mjpegdec.c s->last_dc[component] = val; val 810 libavcodec/mjpegdec.c block[0] = val; val 849 libavcodec/mjpegdec.c unsigned val; val 851 libavcodec/mjpegdec.c val = mjpeg_decode_dc(s, dc_index); val 852 libavcodec/mjpegdec.c if (val == 0xfffff) { val 856 libavcodec/mjpegdec.c val = (val * (quant_matrix[0] << Al)) + s->last_dc[component]; val 857 libavcodec/mjpegdec.c s->last_dc[component] = val; val 858 libavcodec/mjpegdec.c block[0] = val; val 868 libavcodec/mjpegdec.c int code, i, j, val, run; val 916 libavcodec/mjpegdec.c val = (1 << run); val 919 libavcodec/mjpegdec.c val += NEG_USR32(GET_CACHE(re, &s->gb), run); val 922 libavcodec/mjpegdec.c *EOBRUN = val - 1; val 967 libavcodec/mjpegdec.c int code, i = ss, j, sign, val, run; val 981 libavcodec/mjpegdec.c val = SHOW_UBITS(re, &s->gb, 1); val 985 libavcodec/mjpegdec.c val--; val 986 libavcodec/mjpegdec.c block[j] = ((quant_matrix[i] << Al) ^ val) - val; val 998 libavcodec/mjpegdec.c val = run; val 1000 libavcodec/mjpegdec.c if (val) { val 1002 libavcodec/mjpegdec.c run += SHOW_UBITS(re, &s->gb, val); val 1003 libavcodec/mjpegdec.c LAST_SKIP_BITS(re, &s->gb, val); val 2172 libavcodec/mjpegdec.c int val; val 2180 libavcodec/mjpegdec.c val = *buf_ptr++; val 2186 libavcodec/mjpegdec.c val = -1; val 2190 libavcodec/mjpegdec.c return val; val 154 libavcodec/mjpegenc.c static void ff_mjpeg_encode_coef(MJpegContext *s, uint8_t table_id, int val, int run) val 158 libavcodec/mjpegenc.c if (val == 0) { val 162 libavcodec/mjpegenc.c mant = val; val 163 libavcodec/mjpegenc.c if (val < 0) { val 164 libavcodec/mjpegenc.c val = -val; val 168 libavcodec/mjpegenc.c code = (run << 4) | (av_log2_16bit(val) + 1); val 185 libavcodec/mjpegenc.c int component, dc, last_index, val, run; val 192 libavcodec/mjpegenc.c val = dc - s->last_dc[component]; val 194 libavcodec/mjpegenc.c ff_mjpeg_encode_coef(m, table_id, val, 0); val 206 libavcodec/mjpegenc.c val = block[j]; val 208 libavcodec/mjpegenc.c if (val == 0) { val 215 libavcodec/mjpegenc.c ff_mjpeg_encode_coef(m, table_id, val, run); val 228 libavcodec/mjpegenc.c int component, dc, run, last_index, val; val 236 libavcodec/mjpegenc.c val = dc - s->last_dc[component]; val 238 libavcodec/mjpegenc.c ff_mjpeg_encode_dc(&s->pb, val, m->huff_size_dc_luminance, m->huff_code_dc_luminance); val 242 libavcodec/mjpegenc.c ff_mjpeg_encode_dc(&s->pb, val, m->huff_size_dc_chrominance, m->huff_code_dc_chrominance); val 254 libavcodec/mjpegenc.c val = block[j]; val 255 libavcodec/mjpegenc.c if (val == 0) { val 262 libavcodec/mjpegenc.c mant = val; val 263 libavcodec/mjpegenc.c if (val < 0) { val 264 libavcodec/mjpegenc.c val = -val; val 268 libavcodec/mjpegenc.c nbits= av_log2_16bit(val) + 1; val 594 libavcodec/mjpegenc_common.c void ff_mjpeg_encode_dc(PutBitContext *pb, int val, val 599 libavcodec/mjpegenc_common.c if (val == 0) { val 602 libavcodec/mjpegenc_common.c mant = val; val 603 libavcodec/mjpegenc_common.c if (val < 0) { val 604 libavcodec/mjpegenc_common.c val = -val; val 608 libavcodec/mjpegenc_common.c nbits= av_log2_16bit(val) + 1; val 41 libavcodec/mjpegenc_common.h void ff_mjpeg_encode_dc(PutBitContext *pb, int val, val 162 libavcodec/mjpegenc_huffman.c uint8_t val[], int max_nval) val 189 libavcodec/mjpegenc_huffman.c val[i] = distincts[i].code; val 39 libavcodec/mjpegenc_huffman.h uint8_t val) val 41 libavcodec/mjpegenc_huffman.h s->val_count[val]++; val 44 libavcodec/mjpegenc_huffman.h uint8_t bits[17], uint8_t val[], val 104 libavcodec/mpeg12dec.c int code, sign, val, shift; val 114 libavcodec/mpeg12dec.c val = code; val 116 libavcodec/mpeg12dec.c val = (val - 1) << shift; val 117 libavcodec/mpeg12dec.c val |= get_bits(&s->gb, shift); val 118 libavcodec/mpeg12dec.c val++; val 121 libavcodec/mpeg12dec.c val = -val; val 122 libavcodec/mpeg12dec.c val += pred; val 125 libavcodec/mpeg12dec.c return sign_extend(val, 5 + shift); val 658 libavcodec/mpeg12dec.c int i, j, k, cbp, val, mb_type, motion_type; val 870 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][k], val 872 libavcodec/mpeg12dec.c s->last_mv[i][j][k] = val; val 873 libavcodec/mpeg12dec.c s->mv[i][j][k] = val; val 888 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][0], val 890 libavcodec/mpeg12dec.c s->last_mv[i][j][0] = val; val 891 libavcodec/mpeg12dec.c s->mv[i][j][0] = val; val 892 libavcodec/mpeg12dec.c ff_tlog(s->avctx, "fmx=%d\n", val); val 893 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][1], val 895 libavcodec/mpeg12dec.c s->last_mv[i][j][1] = 2 * val; val 896 libavcodec/mpeg12dec.c s->mv[i][j][1] = val; val 897 libavcodec/mpeg12dec.c ff_tlog(s->avctx, "fmy=%d\n", val); val 908 libavcodec/mpeg12dec.c val = mpeg_decode_motion(s, s->mpeg_f_code[i][k], val 910 libavcodec/mpeg12dec.c s->last_mv[i][0][k] = val; val 911 libavcodec/mpeg12dec.c s->last_mv[i][1][k] = val; val 912 libavcodec/mpeg12dec.c s->mv[i][0][k] = val; val 598 libavcodec/mpeg12enc.c static void mpeg1_encode_motion(MpegEncContext *s, int val, int f_or_b_code) val 600 libavcodec/mpeg12enc.c if (val == 0) { val 610 libavcodec/mpeg12enc.c val = sign_extend(val, 5 + bit_size); val 612 libavcodec/mpeg12enc.c if (val >= 0) { val 613 libavcodec/mpeg12enc.c val--; val 614 libavcodec/mpeg12enc.c code = (val >> bit_size) + 1; val 615 libavcodec/mpeg12enc.c bits = val & (range - 1); val 618 libavcodec/mpeg12enc.c val = -val; val 619 libavcodec/mpeg12enc.c val--; val 620 libavcodec/mpeg12enc.c code = (val >> bit_size) + 1; val 621 libavcodec/mpeg12enc.c bits = val & (range - 1); val 1090 libavcodec/mpeg12enc.c int val, bit_size, code; val 1094 libavcodec/mpeg12enc.c val = mv; val 1095 libavcodec/mpeg12enc.c if (val < 0) val 1096 libavcodec/mpeg12enc.c val = -val; val 1097 libavcodec/mpeg12enc.c val--; val 1098 libavcodec/mpeg12enc.c code = (val >> bit_size) + 1; val 216 libavcodec/mpegaudiodec_template.c int64_t val; val 221 libavcodec/mpegaudiodec_template.c val = MUL64((int)(mant + (-1U << n) + 1), scale_factor_mult[n-1][mod]); val 224 libavcodec/mpegaudiodec_template.c return (int)((val + (1LL << (shift - 1))) >> shift); val 229 libavcodec/mpegaudiodec_template.c int shift, mod, val; val 235 libavcodec/mpegaudiodec_template.c val = (mant - (steps >> 1)) * scale_factor_mult2[steps >> 2][mod]; val 238 libavcodec/mpegaudiodec_template.c val = (val + (1 << (shift - 1))) >> shift; val 239 libavcodec/mpegaudiodec_template.c return val; val 349 libavcodec/mpegaudiodec_template.c int val = j; val 351 libavcodec/mpegaudiodec_template.c val1 = val % steps; val 352 libavcodec/mpegaudiodec_template.c val /= steps; val 353 libavcodec/mpegaudiodec_template.c val2 = val % steps; val 354 libavcodec/mpegaudiodec_template.c val3 = val / steps; val 75 libavcodec/msmpeg4dec.c int code, val, sign, shift; val 86 libavcodec/msmpeg4dec.c val = code; val 88 libavcodec/msmpeg4dec.c val = (val - 1) << shift; val 89 libavcodec/msmpeg4dec.c val |= get_bits(&s->gb, shift); val 90 libavcodec/msmpeg4dec.c val++; val 93 libavcodec/msmpeg4dec.c val = -val; val 95 libavcodec/msmpeg4dec.c val += pred; val 96 libavcodec/msmpeg4dec.c if (val <= -64) val 97 libavcodec/msmpeg4dec.c val += 64; val 98 libavcodec/msmpeg4dec.c else if (val >= 64) val 99 libavcodec/msmpeg4dec.c val -= 64; val 101 libavcodec/msmpeg4dec.c return val; val 247 libavcodec/msmpeg4dec.c int val = ((code >> (5 - i)) & 1); val 250 libavcodec/msmpeg4dec.c val = val ^ pred; val 251 libavcodec/msmpeg4dec.c *coded_val = val; val 253 libavcodec/msmpeg4dec.c cbp |= val << (5 - i); val 343 libavcodec/msmpeg4enc.c static void msmpeg4v2_encode_motion(MpegEncContext * s, int val) val 347 libavcodec/msmpeg4enc.c if (val == 0) { val 354 libavcodec/msmpeg4enc.c if (val <= -64) val 355 libavcodec/msmpeg4enc.c val += 64; val 356 libavcodec/msmpeg4enc.c else if (val >= 64) val 357 libavcodec/msmpeg4enc.c val -= 64; val 359 libavcodec/msmpeg4enc.c if (val >= 0) { val 362 libavcodec/msmpeg4enc.c val = -val; val 365 libavcodec/msmpeg4enc.c val--; val 366 libavcodec/msmpeg4enc.c code = (val >> bit_size) + 1; val 367 libavcodec/msmpeg4enc.c bits = val & (range - 1); val 445 libavcodec/msmpeg4enc.c int val, pred; val 446 libavcodec/msmpeg4enc.c val = (s->block_last_index[i] >= 1); val 447 libavcodec/msmpeg4enc.c cbp |= val << (5 - i); val 451 libavcodec/msmpeg4enc.c *coded_block = val; val 452 libavcodec/msmpeg4enc.c val = val ^ pred; val 454 libavcodec/msmpeg4enc.c coded_cbp |= val << (5 - i); val 70 libavcodec/mss1.c int val = (((c->value - c->low + 1) << bits) - 1) / range; val 71 libavcodec/mss1.c int prob = range * val; val 78 libavcodec/mss1.c return val; val 84 libavcodec/mss1.c int val = ((c->value - c->low + 1) * mod_val - 1) / range; val 85 libavcodec/mss1.c int prob = range * val; val 92 libavcodec/mss1.c return val; val 98 libavcodec/mss1.c int val = ((c->value - c->low + 1) * probs[0] - 1) / range; val 101 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 166 libavcodec/mss12.c val = acoder->get_model_sym(acoder, &pctx->cache_model); val 167 libavcodec/mss12.c if (val < pctx->num_syms) { val 177 libavcodec/mss12.c if (idx == val) val 182 libavcodec/mss12.c val = FFMIN(i, pctx->cache_size - 1); val 184 libavcodec/mss12.c pix = pctx->cache[val]; val 190 libavcodec/mss12.c val = i; val 192 libavcodec/mss12.c if (val) { val 193 libavcodec/mss12.c for (i = val; i > 0; i--) val 448 libavcodec/mss12.c int val, inv; val 451 libavcodec/mss12.c val = acoder->get_model_sym(acoder, &sc->pivot) + 1; val 453 libavcodec/mss12.c if (val > 2) { val 457 libavcodec/mss12.c val = acoder->get_number(acoder, (base + 1) / 2 - 2) + 3; val 460 libavcodec/mss12.c if ((unsigned)val >= base) val 463 libavcodec/mss12.c return inv ? base - val : val; val 98 libavcodec/mss12.h void ff_mss12_model_update(Model *m, int val); val 123 libavcodec/mss12.h int idx, val; \ val 127 libavcodec/mss12.h val = m->idx2sym[idx]; \ val 132 libavcodec/mss12.h return val; \ val 98 libavcodec/mss2.c int val; val 105 libavcodec/mss2.c val = arith2_get_scaled_value(c->value - c->low, n, range) >> scale; val 107 libavcodec/mss2.c arith2_rescale_interval(c, range, val << scale, (val + 1) << scale, n); val 111 libavcodec/mss2.c return val; val 118 libavcodec/mss2.c int i = 0, val; val 125 libavcodec/mss2.c val = arith2_get_scaled_value(c->value - c->low, n, range) >> scale; val 126 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 328 libavcodec/mss3.c int val; val 331 libavcodec/mss3.c val = c->low / c->range; val 332 libavcodec/mss3.c c->low -= c->range * val; val 337 libavcodec/mss3.c return val; val 363 libavcodec/mss3.c int val; val 370 libavcodec/mss3.c val = 0; val 376 libavcodec/mss3.c val = end; val 382 libavcodec/mss3.c end = (end2 + val) >> 1; val 383 libavcodec/mss3.c } while (end != val); val 389 libavcodec/mss3.c model_update(m, val); val 391 libavcodec/mss3.c return val; val 396 libavcodec/mss3.c int val; val 406 libavcodec/mss3.c val = m->secondary[ssym]; val 409 libavcodec/mss3.c while (end > val + 1) { val 410 libavcodec/mss3.c ssym = (end + val) >> 1; val 413 libavcodec/mss3.c val = ssym; val 415 libavcodec/mss3.c end = (end + val) >> 1; val 419 libavcodec/mss3.c prob = m->freqs[val] * c->range; val 420 libavcodec/mss3.c if (val != 255) val 421 libavcodec/mss3.c prob2 = m->freqs[val + 1] * c->range; val 428 libavcodec/mss3.c model256_update(m, val); val 430 libavcodec/mss3.c return val; val 442 libavcodec/mss3.c int val, sign; val 444 libavcodec/mss3.c val = rac_get_model_sym(c, m); val 445 libavcodec/mss3.c if (val) { val 447 libavcodec/mss3.c if (val > 1) { val 448 libavcodec/mss3.c val--; val 449 libavcodec/mss3.c val = (1 << val) + rac_get_bits(c, val); val 452 libavcodec/mss3.c val = -val; val 455 libavcodec/mss3.c return val; val 506 libavcodec/mss3.c int skip, val, sign, pos = 1, zz_pos, dc; val 534 libavcodec/mss3.c val = rac_get_model256_sym(c, &bc->ac_model); val 535 libavcodec/mss3.c if (!val) val 537 libavcodec/mss3.c if (val == 0xF0) { val 541 libavcodec/mss3.c skip = val >> 4; val 542 libavcodec/mss3.c val = val & 0xF; val 543 libavcodec/mss3.c if (!val) val 550 libavcodec/mss3.c if (val > 1) { val 551 libavcodec/mss3.c val--; val 552 libavcodec/mss3.c val = (1 << val) + rac_get_bits(c, val); val 555 libavcodec/mss3.c val = -val; val 558 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 111 libavcodec/mvha.c int val = nodes[new_node].count; val 112 libavcodec/mvha.c if (val && (val < nodes[first_node].count)) { val 113 libavcodec/mvha.c if (val >= nodes[second_node].count) { 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 = -exp2(val/2048) * s->scale_bias; val 80 libavcodec/nellymoserdec.c *bptr++ = val; val 210 libavcodec/nellymoserenc.c #define find_best(val, table, LUT, LUT_add, LUT_size) \ val 212 libavcodec/nellymoserenc.c LUT[av_clip ((lrintf(val) >> 8) + LUT_add, 0, LUT_size - 1)]; \ val 213 libavcodec/nellymoserenc.c if (fabs(val - table[best_idx]) > fabs(val - table[best_idx + 1])) \ val 316 libavcodec/nvenc.c int ret, val = 0; val 321 libavcodec/nvenc.c ret = p_nvenc->nvEncGetEncodeCaps(ctx->nvencoder, ctx->init_encode_params.encodeGUID, ¶ms, &val); val 324 libavcodec/nvenc.c return val; val 195 libavcodec/on2avc.c int i, j, val, val1; val 198 libavcodec/on2avc.c val = get_vlc2(gb, c->cb_vlc[type].table, 9, 3); val 201 libavcodec/on2avc.c val1 = sign_extend((val >> (12 - j * 4)) & 0xF, 4); val 228 libavcodec/on2avc.c int i, val, val1, val2, sign; val 231 libavcodec/on2avc.c val = get_vlc2(gb, c->cb_vlc[type].table, 9, 3); val 233 libavcodec/on2avc.c val1 = sign_extend(val >> 8, 8); val 234 libavcodec/on2avc.c val2 = sign_extend(val & 0xFF, 8); val 54 libavcodec/opus.c int val; val 58 libavcodec/opus.c val = *(*ptr)++; val 59 libavcodec/opus.c if (val >= 252) { val 62 libavcodec/opus.c val += 4 * *(*ptr)++; val 64 libavcodec/opus.c return val; val 72 libavcodec/opus.c int val = 0; val 76 libavcodec/opus.c if (*ptr >= end || val > INT_MAX - 254) val 79 libavcodec/opus.c val += next; val 83 libavcodec/opus.c val--; val 85 libavcodec/opus.c return val; val 272 libavcodec/opus_pvq.c int s, val; val 298 libavcodec/opus_pvq.c val = (k0 - K + s) ^ s; val 299 libavcodec/opus_pvq.c norm += val * val; val 300 libavcodec/opus_pvq.c *y++ = val; val 320 libavcodec/opus_pvq.c val = (k0 - K + s) ^ s; val 321 libavcodec/opus_pvq.c norm += val * val; val 322 libavcodec/opus_pvq.c *y++ = val; val 338 libavcodec/opus_pvq.c val = (k0 - K + s) ^ s; val 339 libavcodec/opus_pvq.c norm += val * val; val 340 libavcodec/opus_pvq.c *y++ = val; val 344 libavcodec/opus_pvq.c val = (K + s) ^ s; val 345 libavcodec/opus_pvq.c norm += val * val; val 346 libavcodec/opus_pvq.c *y = val; val 109 libavcodec/opus_rc.c void ff_opus_rc_enc_cdf(OpusRangeCoder *rc, int val, const uint16_t *cdf) val 111 libavcodec/opus_rc.c opus_rc_enc_update(rc, (!!val)*cdf[val], cdf[val + 1], cdf[0], 1); val 131 libavcodec/opus_rc.c void ff_opus_rc_enc_log(OpusRangeCoder *rc, int val, uint32_t bits) val 134 libavcodec/opus_rc.c opus_rc_enc_update(rc, (!!val)*bits, bits + !!val, bits + 1, 1); val 161 libavcodec/opus_rc.c void ff_opus_rc_put_raw(OpusRangeCoder *rc, uint32_t val, uint32_t count) val 166 libavcodec/opus_rc.c rc->rb.cacheval |= av_mod_uintp2(val, to_write) << rc->rb.cachelen; val 174 libavcodec/opus_rc.c rc->rb.cacheval = av_mod_uintp2(val >> to_write, rc->rb.cachelen); val 204 libavcodec/opus_rc.c void ff_opus_rc_enc_uint(OpusRangeCoder *rc, uint32_t val, uint32_t size) val 207 libavcodec/opus_rc.c opus_rc_enc_update(rc, val >> ps, (val >> ps) + 1, ((size - 1) >> ps) + 1, 0); val 208 libavcodec/opus_rc.c ff_opus_rc_put_raw(rc, val, ps); val 226 libavcodec/opus_rc.c void ff_opus_rc_enc_uint_step(OpusRangeCoder *rc, uint32_t val, int k0) val 228 libavcodec/opus_rc.c const uint32_t a = val <= k0, b = 2*a + 1; val 230 libavcodec/opus_rc.c val = b*(val + k0) - 3*a*k0; val 231 libavcodec/opus_rc.c opus_rc_enc_update(rc, val, val + b, (k0 << 1) - 1, 0); val 317 libavcodec/opus_rc.c int i = 1, val = FFABS(*value), pos = *value > 0; val 318 libavcodec/opus_rc.c if (!val) { val 323 libavcodec/opus_rc.c for (; i < val && symbol; i++) { val 330 libavcodec/opus_rc.c const int distance = FFMIN(val - i, (((32768 - low) - !pos) >> 1) - 1); val 86 libavcodec/opus_rc.h void ff_opus_rc_enc_cdf(OpusRangeCoder *rc, int val, const uint16_t *cdf); val 89 libavcodec/opus_rc.h void ff_opus_rc_enc_log(OpusRangeCoder *rc, int val, uint32_t bits); val 92 libavcodec/opus_rc.h void ff_opus_rc_enc_uint_step(OpusRangeCoder *rc, uint32_t val, int k0); val 98 libavcodec/opus_rc.h void ff_opus_rc_enc_uint(OpusRangeCoder *rc, uint32_t val, uint32_t size); val 101 libavcodec/opus_rc.h void ff_opus_rc_put_raw(OpusRangeCoder *rc, uint32_t val, uint32_t count); val 154 libavcodec/pafvideo.c int val = bytestream2_get_be16(&c->gb); val 155 libavcodec/pafvideo.c int page = val >> 14; val 156 libavcodec/pafvideo.c int x = (val & 0x7F); val 157 libavcodec/pafvideo.c int y = ((val >> 7) & 0x7F); val 180 libavcodec/pafvideo.c int page, val, x, y; val 181 libavcodec/pafvideo.c val = bytestream2_get_be16(&c->gb); val 182 libavcodec/pafvideo.c page = val >> 14; val 183 libavcodec/pafvideo.c x = (val & 0x7F) * 2; val 184 libavcodec/pafvideo.c y = ((val >> 7) & 0x7F) * 2; val 130 libavcodec/pictordec.c int i, x, y, plane, tmp, ret, val; val 223 libavcodec/pictordec.c val = 0; val 241 libavcodec/pictordec.c val = bytestream2_get_byte(&s->g); val 242 libavcodec/pictordec.c if (val == marker) { val 246 libavcodec/pictordec.c val = bytestream2_get_byte(&s->g); val 252 libavcodec/pictordec.c picmemset_8bpp(s, frame, val, run, &x, &y); val 256 libavcodec/pictordec.c picmemset(s, frame, val, run, &x, &y, &plane, bits_per_plane); val 267 libavcodec/pictordec.c picmemset_8bpp(s, frame, val, run, &x, &y); val 269 libavcodec/pictordec.c picmemset(s, frame, val, run / (8 / bits_per_plane), &x, &y, &plane, bits_per_plane); val 360 libavcodec/pixlet.c int16_t val; val 366 libavcodec/pixlet.c val = pred[0] + dst[0]; val 367 libavcodec/pixlet.c dst[0] = pred[0] = val; val 369 libavcodec/pixlet.c val = pred[j] + dst[j]; val 370 libavcodec/pixlet.c dst[j] = pred[j] = val; val 57 libavcodec/proresdec2.c int i, idx, val, alpha_val; val 64 libavcodec/proresdec2.c val = get_bits(gb, num_bits); val 67 libavcodec/proresdec2.c val = get_bits(gb, num_bits == 16 ? 7 : 4); val 68 libavcodec/proresdec2.c sign = val & 1; val 69 libavcodec/proresdec2.c val = (val + 2) >> 1; val 71 libavcodec/proresdec2.c val = -val; val 73 libavcodec/proresdec2.c alpha_val = (alpha_val + val) & mask; val 90 libavcodec/proresdec2.c val = get_bits(gb, 4); val 91 libavcodec/proresdec2.c if (!val) val 92 libavcodec/proresdec2.c val = get_bits(gb, 11); val 93 libavcodec/proresdec2.c if (idx + val > num_coeffs) val 94 libavcodec/proresdec2.c val = num_coeffs - idx; val 96 libavcodec/proresdec2.c for (i = 0; i < val; i++) { val 104 libavcodec/proresdec2.c for (i = 0; i < val; i++) { val 403 libavcodec/proresdec2.c #define DECODE_CODEWORD(val, codebook, SKIP) \ val 422 libavcodec/proresdec2.c val = SHOW_UBITS(re, gb, bits) - (1 << exp_order) + \ val 427 libavcodec/proresdec2.c val = (q << rice_order) + SHOW_UBITS(re, gb, rice_order); \ val 430 libavcodec/proresdec2.c val = q; \ val 198 libavcodec/proresenc_anatoliy.c static void encode_codeword(PutBitContext *pb, int val, int codebook) val 209 libavcodec/proresenc_anatoliy.c if (val >= first_exp) { /* exp golomb */ val 210 libavcodec/proresenc_anatoliy.c val -= first_exp; val 211 libavcodec/proresenc_anatoliy.c val += (1 << exp_order); val 212 libavcodec/proresenc_anatoliy.c exp = av_log2(val); val 215 libavcodec/proresenc_anatoliy.c put_bits(pb, exp + 1, val); val 217 libavcodec/proresenc_anatoliy.c put_bits(pb, (val >> rice_order), 0); val 219 libavcodec/proresenc_anatoliy.c put_sbits(pb, rice_order, val); val 221 libavcodec/proresenc_anatoliy.c put_bits(pb, val, 0); val 226 libavcodec/proresenc_anatoliy.c #define QSCALE(qmat,ind,val) ((val) / ((qmat)[ind])) val 227 libavcodec/proresenc_anatoliy.c #define TO_GOLOMB(val) (((val) * 2) ^ ((val) >> 31)) val 228 libavcodec/proresenc_anatoliy.c #define DIFF_SIGN(val, sign) (((val) >> 31) ^ (sign)) val 229 libavcodec/proresenc_anatoliy.c #define IS_NEGATIVE(val) ((((val) >> 31) ^ -1) + 1) val 230 libavcodec/proresenc_anatoliy.c #define TO_GOLOMB2(val,sign) ((val)==0 ? 0 : ((val) << 1) + (sign)) val 232 libavcodec/proresenc_anatoliy.c static av_always_inline int get_level(int val) val 234 libavcodec/proresenc_anatoliy.c int sign = (val >> 31); val 235 libavcodec/proresenc_anatoliy.c return (val ^ sign) - sign; val 283 libavcodec/proresenc_anatoliy.c int val = QSCALE(qmat, indp, in[(j << 6) + indp]); val 284 libavcodec/proresenc_anatoliy.c if (val) { val 289 libavcodec/proresenc_anatoliy.c level = get_level(val); val 296 libavcodec/proresenc_anatoliy.c put_bits(pb, 1, IS_NEGATIVE(val)); val 374 libavcodec/proresenc_kostya.c static inline void encode_vlc_codeword(PutBitContext *pb, unsigned codebook, int val) val 386 libavcodec/proresenc_kostya.c if (val >= switch_val) { val 387 libavcodec/proresenc_kostya.c val -= switch_val - (1 << exp_order); val 388 libavcodec/proresenc_kostya.c exponent = av_log2(val); val 391 libavcodec/proresenc_kostya.c put_bits(pb, exponent + 1, val); val 393 libavcodec/proresenc_kostya.c exponent = val >> rice_order; val 399 libavcodec/proresenc_kostya.c put_sbits(pb, rice_order, val); val 640 libavcodec/proresenc_kostya.c static inline int estimate_vlc(unsigned codebook, int val) val 652 libavcodec/proresenc_kostya.c if (val >= switch_val) { val 653 libavcodec/proresenc_kostya.c val -= switch_val - (1 << exp_order); val 654 libavcodec/proresenc_kostya.c exponent = av_log2(val); val 658 libavcodec/proresenc_kostya.c return (val >> rice_order) + rice_order + 1; val 156 libavcodec/qpeg.c int corr, val; val 166 libavcodec/qpeg.c val = corr >> 4; val 167 libavcodec/qpeg.c if(val > 7) val 168 libavcodec/qpeg.c val -= 16; val 169 libavcodec/qpeg.c me_x = val; val 171 libavcodec/qpeg.c val = corr & 0xF; val 172 libavcodec/qpeg.c if(val > 7) val 173 libavcodec/qpeg.c val -= 16; val 174 libavcodec/qpeg.c me_y = val; val 123 libavcodec/qsvenc.c static const char *print_threestate(mfxU16 val) val 125 libavcodec/qsvenc.c if (val == MFX_CODINGOPTION_ON) val 127 libavcodec/qsvenc.c else if (val == MFX_CODINGOPTION_OFF) 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 = ((unsigned)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 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 520 libavcodec/rv34.c static int calc_add_mv(RV34DecContext *r, int dir, int val) val 524 libavcodec/rv34.c return (int)(val * (SUINT)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 115 libavcodec/rv40.c val += t << 2; val 118 libavcodec/rv40.c return val; val 561 libavcodec/sanm.c int i, j, len, flag, code, val, pos, end; val 582 libavcodec/sanm.c val = bytestream2_get_byteu(&ctx->gb); val 583 libavcodec/sanm.c if (val) val 584 libavcodec/sanm.c memset(dst + pos, val, code); val 590 libavcodec/sanm.c val = bytestream2_get_byteu(&ctx->gb); val 591 libavcodec/sanm.c if (val) val 592 libavcodec/sanm.c dst[pos] = val; val 36 libavcodec/sbcdec_data.c #define SS4(val) ((int32_t)val >> 12) val 37 libavcodec/sbcdec_data.c #define SS8(val) ((int32_t)val >> 14) val 38 libavcodec/sbcdec_data.c #define SN4(val) ((int32_t)val >> 11 + 1 + SBCDEC_FIXED_EXTRA_BITS) val 39 libavcodec/sbcdec_data.c #define SN8(val) ((int32_t)val >> 11 + 1 + SBCDEC_FIXED_EXTRA_BITS) val 482 libavcodec/scpr3.c static int update_model1_to_2(PixelModel3 *m, uint32_t val) val 492 libavcodec/scpr3.c n.symbols[b] = val; val 499 libavcodec/scpr3.c static int update_model1_to_4(PixelModel3 *m, uint32_t val) val 512 libavcodec/scpr3.c if (val == n.symbols[i]) { val 525 libavcodec/scpr3.c static int update_model1_to_5(PixelModel3 *m, uint32_t val) val 539 libavcodec/scpr3.c if (val == n.symbols[i]) { val 557 libavcodec/scpr3.c static int decode_static1(PixelModel3 *m, uint32_t val) val 563 libavcodec/scpr3.c if (val == m->symbols[i]) { val 565 libavcodec/scpr3.c return update_model1_to_4(m, val); val 567 libavcodec/scpr3.c return update_model1_to_5(m, val); val 572 libavcodec/scpr3.c return update_model1_to_2(m, val); val 574 libavcodec/scpr3.c m->symbols[size] = val; val 638 libavcodec/scpr3.c static int update_model2_to_3(PixelModel3 *m, uint32_t val) val 649 libavcodec/scpr3.c n.symbols[size] = val; val 656 libavcodec/scpr3.c static int decode_static2(PixelModel3 *m, uint32_t val) val 662 libavcodec/scpr3.c if (val == m->symbols[i]) { val 669 libavcodec/scpr3.c return update_model2_to_6(m, val, a); val 674 libavcodec/scpr3.c return update_model2_to_3(m, val); val 676 libavcodec/scpr3.c m->symbols[size] = val; val 722 libavcodec/scpr3.c static int decode_static3(PixelModel3 *m, uint32_t val) val 727 libavcodec/scpr3.c if (val == m->symbols[i]) val 728 libavcodec/scpr3.c return update_model3_to_7(m, val); val 734 libavcodec/scpr3.c m->symbols[size] = val; val 54 libavcodec/sgienc.c int val, count, x, start = bytestream2_tell_p(pbc); val 69 libavcodec/sgienc.c val = bpp == 1 ? *src : AV_RB16(src); val 71 libavcodec/sgienc.c bytestream2_put(pbc, val); val 81 libavcodec/sgienc.c val = bpp == 1 ? src[i] : AV_RB16(src + i * bpp); val 82 libavcodec/sgienc.c bytestream2_put(pbc, val); val 216 libavcodec/shorten.c uint64_t val; val 262 libavcodec/shorten.c val = bytestream2_get_be64(&gb); val 268 libavcodec/shorten.c avctx->sample_rate = val << exp; val 270 libavcodec/shorten.c avctx->sample_rate = (val + (1ULL<<(-exp-1))) >> -exp; 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 149 libavcodec/smacker.c int val, i1, i2; val 154 libavcodec/smacker.c val = ctx->recode1[i1] | (ctx->recode2[i2] << 8); val 155 libavcodec/smacker.c if(val == ctx->escapes[0]) { val 157 libavcodec/smacker.c val = 0; val 158 libavcodec/smacker.c } else if(val == ctx->escapes[1]) { val 160 libavcodec/smacker.c val = 0; val 161 libavcodec/smacker.c } else if(val == ctx->escapes[2]) { val 163 libavcodec/smacker.c val = 0; val 166 libavcodec/smacker.c hc->values[hc->current++] = val; val 643 libavcodec/smacker.c int val; val 742 libavcodec/smacker.c val = h[2].values[res]; val 752 libavcodec/smacker.c val |= h[3].values[res] << 8; val 753 libavcodec/smacker.c pred[1] += (unsigned)sign_extend(val, 16); val 765 libavcodec/smacker.c val = h[0].values[res]; val 775 libavcodec/smacker.c val |= h[1].values[res] << 8; val 776 libavcodec/smacker.c pred[0] += (unsigned)sign_extend(val, 16); val 36 libavcodec/snappy.c uint64_t val = 0; val 44 libavcodec/snappy.c val |= (tmp & 127) << shift; val 48 libavcodec/snappy.c return val; val 51 libavcodec/snappy.c static int snappy_literal(GetByteContext *gb, uint8_t *p, int size, int val) val 55 libavcodec/snappy.c switch (val) { val 69 libavcodec/snappy.c len += val; val 97 libavcodec/snappy.c int size, int val) val 99 libavcodec/snappy.c int len = 4 + (val & 0x7); val 100 libavcodec/snappy.c unsigned int off = bytestream2_get_byte(gb) | (val & 0x38) << 5; val 106 libavcodec/snappy.c int size, int val) val 108 libavcodec/snappy.c int len = 1 + val; val 115 libavcodec/snappy.c int size, int val) val 117 libavcodec/snappy.c int len = 1 + val; val 160 libavcodec/snappy.c int val = s >> 2; val 164 libavcodec/snappy.c ret = snappy_literal(gb, p, len, val); val 167 libavcodec/snappy.c ret = snappy_copy1(gb, buf, p, len, val); val 170 libavcodec/snappy.c ret = snappy_copy2(gb, buf, p, len, val); val 173 libavcodec/snappy.c ret = snappy_copy4(gb, buf, p, len, val); val 284 libavcodec/tdsc.c int val = bytestream2_get_be32(&ctx->gbc); val 285 libavcodec/tdsc.c *dst++ = val >> 24; val 286 libavcodec/tdsc.c *dst++ = val >> 16; val 287 libavcodec/tdsc.c *dst++ = val >> 8; val 288 libavcodec/tdsc.c *dst++ = val >> 0; val 295 libavcodec/tdsc.c int val = bytestream2_get_be32(&ctx->gbc); val 296 libavcodec/tdsc.c *dst++ = val >> 0; val 297 libavcodec/tdsc.c *dst++ = val >> 24; val 298 libavcodec/tdsc.c *dst++ = val >> 16; val 299 libavcodec/tdsc.c *dst++ = val >> 8; val 513 libavcodec/texturedspenc.c int val = block[3 + x * 4 + y * stride]; val 514 libavcodec/texturedspenc.c if (val < mn) val 515 libavcodec/texturedspenc.c mn = val; val 516 libavcodec/texturedspenc.c else if (val > mx) val 517 libavcodec/texturedspenc.c mx = val; val 125 libavcodec/tiff.c if (s->geotags[i].val) val 126 libavcodec/tiff.c av_freep(&s->geotags[i].val); val 171 libavcodec/tiff.c static char *get_geokey_val(int key, int val) val 175 libavcodec/tiff.c if (val == TIFF_GEO_KEY_UNDEFINED) val 177 libavcodec/tiff.c if (val == TIFF_GEO_KEY_USER_DEFINED) val 181 libavcodec/tiff.c if (val >= TIFF_##TYPE##_OFFSET &&\ val 182 libavcodec/tiff.c val - TIFF_##TYPE##_OFFSET < FF_ARRAY_ELEMS(ff_tiff_##array##_codes))\ val 183 libavcodec/tiff.c return av_strdup(ff_tiff_##array##_codes[val - TIFF_##TYPE##_OFFSET]); val 216 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 220 libavcodec/tiff.c ap = av_strdup(search_keyval(ff_tiff_projection_codes, FF_ARRAY_ELEMS(ff_tiff_projection_codes), val)); val 235 libavcodec/tiff.c snprintf(ap, 14, "Unknown-%d", val); val 1606 libavcodec/tiff.c s->geotags[i].val = get_geokey_val(s->geotags[i].key, ff_tget_short(&s->gb, s->le)); val 1628 libavcodec/tiff.c } else if (s->geotags[i].val) { val 1637 libavcodec/tiff.c s->geotags[i].val = ap; val 1656 libavcodec/tiff.c if (s->geotags[i].val) val 1665 libavcodec/tiff.c s->geotags[i].val = ap; val 1876 libavcodec/tiff.c ret = av_dict_set(&p->metadata, keyname, s->geotags[i].val, 0); val 212 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 238 libavcodec/tiffenc.c #define ADD_ENTRY1(s, tag, type, val) \ val 240 libavcodec/tiffenc.c ret = add_entry1(s, tag, type, val); \ val 241 libavcodec/truemotion2.c int val; val 242 libavcodec/truemotion2.c val = get_vlc2(gb, code->vlc.table, code->bits, 1); val 243 libavcodec/truemotion2.c if(val<0) val 245 libavcodec/truemotion2.c return code->recode[val]; val 94 libavcodec/tscc2.c #define DEQUANT(val, q) (((q) * (val) + 0x80) >> 8) val 131 libavcodec/tscc2.c int prev_dc, dc, nc, ac, bpos, val; val 136 libavcodec/tscc2.c val = get_bits(gb, 8); val 138 libavcodec/tscc2.c memset(dst, val, 16); val 182 libavcodec/tscc2.c val = sign_extend(ac >> 4, 8); val 183 libavcodec/tscc2.c c->block[ff_zigzag_scan[bpos++]] = val; val 226 libavcodec/tscc2.c int i, val, len, pos = 0; val 275 libavcodec/tscc2.c val = bytestream2_get_byte(&gb); val 276 libavcodec/tscc2.c len = val & 0x3F; val 277 libavcodec/tscc2.c val >>= 6; val 282 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 2260 libavcodec/utils.c int ff_int_from_list_or_default(void *ctx, const char * val_name, int val, val 2269 libavcodec/utils.c if (val == ref_val) val 2270 libavcodec/utils.c return val; val 2275 libavcodec/utils.c "%s %d are not supported. Set to default value : %d\n", val_name, val, default_value); val 28 libavcodec/v210_template.c val = CLIP(*a++, depth) << (10-depth); \ val 29 libavcodec/v210_template.c val |= (CLIP(*b++, depth) << (20-depth)) | \ val 31 libavcodec/v210_template.c AV_WL32(dst, val); \ val 50 libavcodec/v210_template.c uint32_t val; val 68 libavcodec/v210_template.c val = CLIP(*y++, DEPTH) << (10-DEPTH); val 70 libavcodec/v210_template.c AV_WL32(dst, val); val 75 libavcodec/v210_template.c val |= (CLIP(*u++, DEPTH) << (20-DEPTH)) | (CLIP(*y++, DEPTH) << (30-DEPTH)); val 76 libavcodec/v210_template.c AV_WL32(dst, val); val 79 libavcodec/v210_template.c val = CLIP(*v++, DEPTH) << (10-DEPTH) | (CLIP(*y++, DEPTH) << (20-DEPTH)); val 80 libavcodec/v210_template.c AV_WL32(dst, val); val 35 libavcodec/v210dec.c val = av_le2ne32(*src++); \ val 36 libavcodec/v210dec.c *a++ = val & 0x3FF; \ val 37 libavcodec/v210dec.c *b++ = (val >> 10) & 0x3FF; \ val 38 libavcodec/v210dec.c *c++ = (val >> 20) & 0x3FF; \ val 49 libavcodec/v210dec.c uint32_t val; val 98 libavcodec/v210dec.c uint32_t val; val 119 libavcodec/v210dec.c val = av_le2ne32(*src++); val 120 libavcodec/v210dec.c *y++ = val & 0x3FF; val 122 libavcodec/v210dec.c *u++ = (val >> 10) & 0x3FF; val 123 libavcodec/v210dec.c *y++ = (val >> 20) & 0x3FF; val 125 libavcodec/v210dec.c val = av_le2ne32(*src++); val 126 libavcodec/v210dec.c *v++ = val & 0x3FF; val 127 libavcodec/v210dec.c *y++ = (val >> 10) & 0x3FF; val 53 libavcodec/v210enc.c uint32_t val; val 73 libavcodec/v210enc.c uint32_t val; val 62 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 46 libavcodec/v410enc.c uint32_t val; val 67 libavcodec/v410enc.c val = u[j] << 2; val 68 libavcodec/v410enc.c val |= y[j] << 12; val 69 libavcodec/v410enc.c val |= (uint32_t) v[j] << 22; val 70 libavcodec/v410enc.c AV_WL32(dst, val); val 177 libavcodec/v4l2_m2m_enc.c int ret, val; val 209 libavcodec/v4l2_m2m_enc.c val = v4l2_h264_profile_from_ff(avctx->profile); val 210 libavcodec/v4l2_m2m_enc.c if (val < 0) val 213 libavcodec/v4l2_m2m_enc.c v4l2_set_ext_ctrl(s, MPEG_CID(H264_PROFILE), val, "h264 profile", 1); val 222 libavcodec/v4l2_m2m_enc.c val = v4l2_mpeg4_profile_from_ff(avctx->profile); val 223 libavcodec/v4l2_m2m_enc.c if (val < 0) val 226 libavcodec/v4l2_m2m_enc.c v4l2_set_ext_ctrl(s, MPEG_CID(MPEG4_PROFILE), val, "mpeg4 profile", 1); val 42 libavcodec/vble.c uint8_t *val; ///< This array first holds the lengths of vlc symbols and then their value. val 63 libavcodec/vble.c int val = show_bits(gb, 8); val 66 libavcodec/vble.c if (val) { val 67 libavcodec/vble.c val = LUT[val]; val 68 libavcodec/vble.c skip_bits(gb, val + 1); val 69 libavcodec/vble.c ctx->val[i] = val; val 74 libavcodec/vble.c ctx->val[i] = 8; val 76 libavcodec/vble.c allbits += ctx->val[i]; val 90 libavcodec/vble.c uint8_t *val = ctx->val + offset; val 97 libavcodec/vble.c if (val[j]) { val 98 libavcodec/vble.c int v = (1 << val[j]) + get_bits(gb, val[j]) - 1; val 99 libavcodec/vble.c val[j] = (v >> 1) ^ -(v & 1); val 105 libavcodec/vble.c ctx->llviddsp.add_median_pred(dst, dst - stride, val, val 108 libavcodec/vble.c dst[0] = val[0]; val 110 libavcodec/vble.c dst[j] = val[j] + dst[j - 1]; val 113 libavcodec/vble.c val += width; val 177 libavcodec/vble.c av_freep(&ctx->val); val 196 libavcodec/vble.c ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val)); val 198 libavcodec/vble.c if (!ctx->val) { val 245 libavcodec/vc1_block.c val = size_table[index1] - (!s->quarter_sample && index1 == 5); \ val 246 libavcodec/vc1_block.c if (val > 0) { \ val 247 libavcodec/vc1_block.c val = get_bits(gb, val); \ val 248 libavcodec/vc1_block.c sign = 0 - (val & 1); \ val 249 libavcodec/vc1_block.c _dmv_x = (sign ^ ((val >> 1) + _dmv_x)) - sign; \ val 254 libavcodec/vc1_block.c val = size_table[index1] - (!s->quarter_sample && index1 == 5); \ val 255 libavcodec/vc1_block.c if (val > 0) { \ val 256 libavcodec/vc1_block.c val = get_bits(gb, val); \ val 257 libavcodec/vc1_block.c sign = 0 - (val & 1); \ val 258 libavcodec/vc1_block.c _dmv_y = (sign ^ ((val >> 1) + _dmv_y)) - sign; \ val 269 libavcodec/vc1_block.c int val, sign; val 294 libavcodec/vc1_block.c val = get_bits(gb, index1 + extend_x); val 295 libavcodec/vc1_block.c sign = 0 - (val & 1); val 296 libavcodec/vc1_block.c *dmv_x = (sign ^ ((val >> 1) + offset_table[extend_x][index1])) - sign; val 301 libavcodec/vc1_block.c val = get_bits(gb, (index1 >> v->numref) + extend_y); val 302 libavcodec/vc1_block.c sign = 0 - (val & 1); val 303 libavcodec/vc1_block.c *dmv_y = (sign ^ ((val >> 1) + offset_table[extend_y][index1 >> v->numref])) - sign; val 1311 libavcodec/vc1_block.c int val, sign; /* temp values */ val 1363 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1374 libavcodec/vc1_block.c vc1_decode_intra_block(v, v->block[v->cur_blk_idx][block_map[i]], i, val, mquant, val 1384 libavcodec/vc1_block.c } else if (val) { val 1414 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1421 libavcodec/vc1_block.c if (val) { val 1433 libavcodec/vc1_block.c is_coded[i] = val; val 1542 libavcodec/vc1_block.c int val; /* temp value */ val 1615 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1621 libavcodec/vc1_block.c vc1_decode_intra_block(v, v->block[v->cur_blk_idx][block_map[i]], i, val, mquant, val 1695 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1700 libavcodec/vc1_block.c if (val) { val 1752 libavcodec/vc1_block.c int val; /* temp values */ val 1783 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1789 libavcodec/vc1_block.c vc1_decode_intra_block(v, v->block[v->cur_blk_idx][block_map[i]], i, val, mquant, val 1835 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1837 libavcodec/vc1_block.c if (val) { val 1875 libavcodec/vc1_block.c int val, sign; /* temp values */ val 1982 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 1993 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 2005 libavcodec/vc1_block.c } else if (val) { val 2032 libavcodec/vc1_block.c int val; /* temp value */ val 2066 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2072 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 2165 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2167 libavcodec/vc1_block.c if (val) { val 2201 libavcodec/vc1_block.c int val; /* temp value */ val 2260 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2266 libavcodec/vc1_block.c vc1_decode_intra_block(v, s->block[i], i, val, mquant, val 2373 libavcodec/vc1_block.c val = ((mvbp >> (3 - i)) & 1); val 2374 libavcodec/vc1_block.c if (val) val 2461 libavcodec/vc1_block.c val = ((cbp >> (5 - i)) & 1); val 2466 libavcodec/vc1_block.c if (val) { val 2543 libavcodec/vc1_block.c int cbp, val; val 2601 libavcodec/vc1_block.c val = ((cbp >> (5 - k)) & 1); val 2605 libavcodec/vc1_block.c val = val ^ pred; val 2606 libavcodec/vc1_block.c *coded_val = val; val 2608 libavcodec/vc1_block.c cbp |= val << (5 - k); val 2610 libavcodec/vc1_block.c vc1_decode_i_block(v, v->block[v->cur_blk_idx][block_map[k]], k, val, (k < 4) ? v->codingset : v->codingset2); val 2668 libavcodec/vc1_block.c int cbp, val; val 2755 libavcodec/vc1_block.c val = ((cbp >> (5 - k)) & 1); val 2759 libavcodec/vc1_block.c val = val ^ pred; val 2760 libavcodec/vc1_block.c *coded_val = val; val 2762 libavcodec/vc1_block.c cbp |= val << (5 - k); val 2767 libavcodec/vc1_block.c vc1_decode_i_block_adv(v, v->block[v->cur_blk_idx][block_map[k]], k, val, val 183 libavcodec/vc2enc.c static av_always_inline void put_vc2_ue_uint(PutBitContext *pb, uint32_t val) val 188 libavcodec/vc2enc.c if (!val++) { val 193 libavcodec/vc2enc.c while (val > maxval) { val 204 libavcodec/vc2enc.c if (val & topbit) val 211 libavcodec/vc2enc.c static av_always_inline int count_vc2_ue_uint(uint32_t val) val 215 libavcodec/vc2enc.c if (!val++) val 218 libavcodec/vc2enc.c while (val > maxval) { val 347 libavcodec/vc2enc.c int val; val 353 libavcodec/vc2enc.c val = 2; val 355 libavcodec/vc2enc.c val = 1; val 357 libavcodec/vc2enc.c val = 1; val 359 libavcodec/vc2enc.c val = 0; val 360 libavcodec/vc2enc.c put_vc2_ue_uint(&s->pb, val); val 365 libavcodec/vc2enc.c val = 3; val 367 libavcodec/vc2enc.c val = 2; val 369 libavcodec/vc2enc.c val = 1; val 371 libavcodec/vc2enc.c val = 0; val 372 libavcodec/vc2enc.c put_vc2_ue_uint(&s->pb, val); val 377 libavcodec/vc2enc.c val = 2; val 379 libavcodec/vc2enc.c val = 1; val 381 libavcodec/vc2enc.c val = 0; val 382 libavcodec/vc2enc.c put_vc2_ue_uint(&s->pb, val); val 339 libavcodec/vdpau.c int val; val 341 libavcodec/vdpau.c val = ff_vdpau_common_reinit(avctx); val 342 libavcodec/vdpau.c if (val < 0) val 343 libavcodec/vdpau.c return val; val 366 libavcodec/vdpau.c int val; val 368 libavcodec/vdpau.c val = ff_vdpau_common_end_frame(avctx, pic->f, pic_ctx); val 369 libavcodec/vdpau.c if (val < 0) val 370 libavcodec/vdpau.c return val; val 188 libavcodec/vdpau_h264.c int val; val 190 libavcodec/vdpau_h264.c val = ff_vdpau_add_buffer(pic_ctx, start_code_prefix, 3); val 191 libavcodec/vdpau_h264.c if (val) val 192 libavcodec/vdpau_h264.c return val; val 194 libavcodec/vdpau_h264.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 195 libavcodec/vdpau_h264.c if (val) val 196 libavcodec/vdpau_h264.c return val; val 208 libavcodec/vdpau_h264.c int val; val 210 libavcodec/vdpau_h264.c val = ff_vdpau_common_end_frame(avctx, pic->f, pic_ctx); val 211 libavcodec/vdpau_h264.c if (val < 0) val 212 libavcodec/vdpau_h264.c return val; val 406 libavcodec/vdpau_hevc.c int val; val 408 libavcodec/vdpau_hevc.c val = ff_vdpau_add_buffer(pic_ctx, start_code_prefix, 3); val 409 libavcodec/vdpau_hevc.c if (val) val 410 libavcodec/vdpau_hevc.c return val; val 412 libavcodec/vdpau_hevc.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 413 libavcodec/vdpau_hevc.c if (val) val 414 libavcodec/vdpau_hevc.c return val; val 423 libavcodec/vdpau_hevc.c int val; val 425 libavcodec/vdpau_hevc.c val = ff_vdpau_common_end_frame(avctx, h->ref->frame, pic_ctx); val 426 libavcodec/vdpau_hevc.c if (val < 0) val 427 libavcodec/vdpau_hevc.c return val; val 89 libavcodec/vdpau_mpeg12.c int val; val 91 libavcodec/vdpau_mpeg12.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 92 libavcodec/vdpau_mpeg12.c if (val < 0) val 93 libavcodec/vdpau_mpeg12.c return val; val 107 libavcodec/vdpau_vc1.c int val; val 109 libavcodec/vdpau_vc1.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 110 libavcodec/vdpau_vc1.c if (val < 0) val 111 libavcodec/vdpau_vc1.c return val; val 174 libavcodec/vdpau_vp9.c int val; val 176 libavcodec/vdpau_vp9.c val = ff_vdpau_add_buffer(pic_ctx, start_code_prefix, 3); val 177 libavcodec/vdpau_vp9.c if (val) val 178 libavcodec/vdpau_vp9.c return val; val 180 libavcodec/vdpau_vp9.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); val 181 libavcodec/vdpau_vp9.c if (val) val 182 libavcodec/vdpau_vp9.c return val; val 193 libavcodec/vdpau_vp9.c int val; val 195 libavcodec/vdpau_vp9.c val = ff_vdpau_common_end_frame(avctx, pic.tf.f, pic_ctx); val 196 libavcodec/vdpau_vp9.c if (val < 0) val 197 libavcodec/vdpau_vp9.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 1278 libavcodec/vorbisdec.c unsigned val, highroom, lowroom, room, high_neigh_offs, low_neigh_offs; val 1293 libavcodec/vorbisdec.c val = floor1_Y[i]; val 1301 libavcodec/vorbisdec.c if (val) { val 1305 libavcodec/vorbisdec.c if (val >= room) { val 1307 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(val - lowroom + predicted); val 1309 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(predicted - val + highroom - 1); val 1312 libavcodec/vorbisdec.c if (val & 1) { val 1313 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(predicted - (val + 1) / 2); val 1315 libavcodec/vorbisdec.c floor1_Y_final[i] = av_clip_uint16(predicted + val / 2); val 1324 libavcodec/vorbisdec.c vf->list[i].x, floor1_Y_final[i], val); val 62 libavcodec/vp56.h int8_t val; val 383 libavcodec/vp56.h while (tree->val > 0) { val 385 libavcodec/vp56.h tree += tree->val; val 389 libavcodec/vp56.h return -tree->val; val 395 libavcodec/vp6.c unsigned val = get_bits(&s->gb, 2); val 396 libavcodec/vp6.c if (val == 2) val 397 libavcodec/vp6.c val += get_bits(&s->gb, 2); val 398 libavcodec/vp6.c else if (val == 3) { val 399 libavcodec/vp6.c val = get_bits1(&s->gb) << 2; val 400 libavcodec/vp6.c val = 6+val + get_bits(&s->gb, 2+val); val 402 libavcodec/vp6.c return val; val 86 libavcodec/vp8dsp.c int i, val = (23170 * (23170 * dc[0] >> 14) + 0x20000) >> 18; val 90 libavcodec/vp8dsp.c block[i][0][0] = val; val 91 libavcodec/vp8dsp.c block[i][1][0] = val; val 92 libavcodec/vp8dsp.c block[i][2][0] = val; val 93 libavcodec/vp8dsp.c block[i][3][0] = val; val 182 libavcodec/vp8dsp.c int i, val = (dc[0] + 3) >> 3; val 186 libavcodec/vp8dsp.c block[i][0][0] = val; val 187 libavcodec/vp8dsp.c block[i][1][0] = val; val 188 libavcodec/vp8dsp.c block[i][2][0] = val; val 189 libavcodec/vp8dsp.c block[i][3][0] = val; val 682 libavcodec/vp9block.c #define SPLAT_CTX(var, val, n) \ val 684 libavcodec/vp9block.c case 1: var = val; break; \ val 685 libavcodec/vp9block.c case 2: AV_WN16A(&var, val * 0x0101); break; \ val 686 libavcodec/vp9block.c case 4: AV_WN32A(&var, val * 0x01010101); break; \ val 687 libavcodec/vp9block.c case 8: AV_WN64A(&var, val * 0x0101010101010101ULL); break; \ val 689 libavcodec/vp9block.c uint64_t v64 = val * 0x0101010101010101ULL; \ val 696 libavcodec/vp9block.c #define SPLAT_CTX(var, val, n) \ val 698 libavcodec/vp9block.c case 1: var = val; break; \ val 699 libavcodec/vp9block.c case 2: AV_WN16A(&var, val * 0x0101); break; \ val 700 libavcodec/vp9block.c case 4: AV_WN32A(&var, val * 0x01010101); break; \ val 702 libavcodec/vp9block.c uint32_t v32 = val * 0x01010101; \ val 708 libavcodec/vp9block.c uint32_t v32 = val * 0x01010101; \ val 816 libavcodec/vp9block.c int val, rc; val 818 libavcodec/vp9block.c val = vp56_rac_get_prob_branchy(c, tp[0]); // eob val 819 libavcodec/vp9block.c eob[band][nnz][val]++; val 820 libavcodec/vp9block.c if (!val) val 839 libavcodec/vp9block.c val = 1; val 845 libavcodec/vp9block.c cache[rc] = val = 2; val 847 libavcodec/vp9block.c val = 3 + vp56_rac_get_prob(c, tp[5]); val 853 libavcodec/vp9block.c val = vp56_rac_get_prob(c, 159) + 5; val 855 libavcodec/vp9block.c val = (vp56_rac_get_prob(c, 165) << 1) + 7; val 856 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 145); val 862 libavcodec/vp9block.c val = 11 + (vp56_rac_get_prob(c, 173) << 2); val 863 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 148) << 1); val 864 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 140); val 866 libavcodec/vp9block.c val = 19 + (vp56_rac_get_prob(c, 176) << 3); val 867 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 155) << 2); val 868 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 140) << 1); val 869 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 135); val 872 libavcodec/vp9block.c val = (vp56_rac_get_prob(c, 180) << 4) + 35; val 873 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 157) << 3); val 874 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 141) << 2); val 875 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 134) << 1); val 876 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 130); val 878 libavcodec/vp9block.c val = 67; val 881 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 255) << 17; val 882 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 255) << 16; val 884 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 255) << 15); val 885 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 255) << 14); val 887 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 254) << 13); val 888 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 254) << 12); val 889 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 254) << 11); val 890 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 252) << 10); val 891 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 249) << 9); val 892 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 243) << 8); val 893 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 230) << 7); val 894 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 196) << 6); val 895 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 177) << 5); val 896 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 153) << 4); val 897 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 140) << 3); val 898 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 133) << 2); val 899 libavcodec/vp9block.c val += (vp56_rac_get_prob(c, 130) << 1); val 900 libavcodec/vp9block.c val += vp56_rac_get_prob(c, 129); val 914 libavcodec/vp9block.c STORE_COEF(coef, rc, (int)((vp8_rac_get(c) ? -val : val) * (unsigned)qmul[!!i]) / 2); val 916 libavcodec/vp9block.c STORE_COEF(coef, rc, (vp8_rac_get(c) ? -val : val) * (unsigned)qmul[!!i]); val 575 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4(128 << (BIT_DEPTH - 8)); val 578 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 0, val); val 579 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 1, val); val 580 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 2, val); val 581 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 3, val); val 588 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4(128 << (BIT_DEPTH - 8)); val 593 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 594 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 603 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4(128 << (BIT_DEPTH - 8)); val 608 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 609 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 610 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 8, val); val 611 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 12, val); val 620 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4(128 << (BIT_DEPTH - 8)); val 625 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 626 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 627 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 8, val); val 628 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 12, val); val 629 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 16, val); val 630 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 20, val); val 631 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 24, val); val 632 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 28, val); val 641 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) - 1); val 644 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 0, val); val 645 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 1, val); val 646 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 2, val); val 647 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 3, val);} val 653 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) - 1); val 658 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 659 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 668 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) - 1); val 673 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 674 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 675 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 8, val); val 676 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 12, val); val 685 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) - 1); val 690 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 691 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 692 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 8, val); val 693 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 12, val); val 694 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 16, val); val 695 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 20, val); val 696 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 24, val); val 697 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 28, val); val 706 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) + 1); val 709 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 0, val); val 710 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 1, val); val 711 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 2, val); val 712 libavcodec/vp9dsp_template.c AV_WN4PA(dst + stride * 3, val); val 719 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) + 1); val 724 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 725 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 734 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) + 1); val 739 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 740 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 741 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 8, val); val 742 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 12, val); val 751 libavcodec/vp9dsp_template.c pixel4 val = PIXEL_SPLAT_X4((128 << (BIT_DEPTH - 8)) + 1); val 756 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 0, val); val 757 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 4, val); val 758 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 8, val); val 759 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 12, val); val 760 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 16, val); val 761 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 20, val); val 762 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 24, val); val 763 libavcodec/vp9dsp_template.c AV_WN4PA(dst + 28, val); val 773 libavcodec/vp9dsp_template.c static inline void memset_bpc(uint16_t *dst, int val, int len) { val 776 libavcodec/vp9dsp_template.c dst[n] = val; val 132 libavcodec/vp9recon.c int n, val = AV_RN16A(&(v)[(i2) * 2]); \ val 134 libavcodec/vp9recon.c AV_WN16A(&(c)[((i1) + n) * 2], val); \ val 142 libavcodec/vp9recon.c #define memset_val(c, val, num) do { \ val 144 libavcodec/vp9recon.c memset((c), (val), (num)); \ val 148 libavcodec/vp9recon.c AV_WN16A(&(c)[n * 2], (val)); \ val 1182 libavcodec/wavpack.c uint8_t val = bytestream2_get_byte(&gb); val 1183 libavcodec/wavpack.c s->decorr[s->terms - i - 1].value = (val & 0x1F) - 5; val 1184 libavcodec/wavpack.c s->decorr[s->terms - i - 1].delta = val >> 5; val 1293 libavcodec/wavpack.c uint8_t val[4]; val 1301 libavcodec/wavpack.c bytestream2_get_buffer(&gb, val, 4); val 1302 libavcodec/wavpack.c if (val[0] > 30) { val 1304 libavcodec/wavpack.c "Invalid INT32INFO, extra_bits = %d (> 30)\n", val[0]); val 1306 libavcodec/wavpack.c } else if (val[0]) { val 1307 libavcodec/wavpack.c s->extra_bits = val[0]; val 1308 libavcodec/wavpack.c } else if (val[1]) { val 1309 libavcodec/wavpack.c s->shift = val[1]; val 1310 libavcodec/wavpack.c } else if (val[2]) { val 1312 libavcodec/wavpack.c s->shift = val[2]; val 1313 libavcodec/wavpack.c } else if (val[3]) { val 1315 libavcodec/wavpack.c s->shift = val[3]; val 165 libavcodec/wavpack.h static av_always_inline int wp_exp2(int16_t val) val 169 libavcodec/wavpack.h if (val < 0) { val 170 libavcodec/wavpack.h val = -val; val 174 libavcodec/wavpack.h res = wp_exp2_table[val & 0xFF] | 0x100; val 175 libavcodec/wavpack.h val >>= 8; val 176 libavcodec/wavpack.h if (val > 31U) val 178 libavcodec/wavpack.h res = (val > 9) ? (res << (val - 9)) : (res >> (9 - val)); val 182 libavcodec/wavpack.h static av_always_inline int wp_log2(uint32_t val) val 186 libavcodec/wavpack.h if (!val) val 188 libavcodec/wavpack.h if (val == 1) val 190 libavcodec/wavpack.h val += val >> 9; val 191 libavcodec/wavpack.h bits = av_log2(val) + 1; val 193 libavcodec/wavpack.h return (bits << 8) + wp_log2_table[(val << (9 - bits)) & 0xFF]; val 195 libavcodec/wavpack.h return (bits << 8) + wp_log2_table[(val >> (bits - 9)) & 0xFF]; val 219 libavcodec/wmadec.c int val, i; val 223 libavcodec/wmadec.c val = get_bits(&s->gb, 3); val 225 libavcodec/wmadec.c val = get_bits(&s->gb, 4); val 226 libavcodec/wmadec.c lsp_coefs[i] = ff_wma_lsp_codebook[i][val]; val 552 libavcodec/wmadec.c int i, n, val, code; val 555 libavcodec/wmadec.c val = (int) 0x80000000; val 558 libavcodec/wmadec.c if (val == (int) 0x80000000) { val 559 libavcodec/wmadec.c val = get_bits(&s->gb, 7) - 19; val 568 libavcodec/wmadec.c val += code - 18; val 570 libavcodec/wmadec.c s->high_band_values[ch][i] = val; val 1034 libavcodec/wmaprodec.c int val; val 1037 libavcodec/wmaprodec.c val = 45 / s->channel[c].scale_factor_step; val 1039 libavcodec/wmaprodec.c val += get_vlc2(&s->gb, sf_vlc.table, SCALEVLCBITS, SCALEMAXDEPTH) - 60; val 1040 libavcodec/wmaprodec.c *sf = val; val 1048 libavcodec/wmaprodec.c int val; val 1055 libavcodec/wmaprodec.c val = code >> 6; val 1062 libavcodec/wmaprodec.c val = scale_rl_level[idx]; val 1072 libavcodec/wmaprodec.c s->channel[c].scale_factors[i] += (val ^ sign) - sign; val 1181 libavcodec/wmavoice.c int val = get_bits(gb, 12 - 2 * (s->aw_idx_is_ext && !block_idx)); val 1199 libavcodec/wmavoice.c for (n = n_pulses - 1; n >= 0; n--, val >>= sh) { val 1200 libavcodec/wmavoice.c fcb->y[fcb->n] = (val & v_mask) ? -1.0 : 1.0; val 1201 libavcodec/wmavoice.c fcb->x[fcb->n] = (val & i_mask) * n_pulses + n + val 1209 libavcodec/wmavoice.c int num2 = (val & 0x1FF) >> 1, delta, idx; val 1215 libavcodec/wmavoice.c v = (val & 0x200) ? -1.0 : 1.0; val 1221 libavcodec/wmavoice.c fcb->y[fcb->n + 1] = (val & 1) ? -v : v; val 430 libavcodec/wmv2dec.c int val = ((code >> (5 - i)) & 1); val 433 libavcodec/wmv2dec.c val = val ^ pred; val 434 libavcodec/wmv2dec.c *coded_val = val; val 436 libavcodec/wmv2dec.c cbp |= val << (5 - i); val 179 libavcodec/wmv2enc.c int val, pred; val 180 libavcodec/wmv2enc.c val = (s->block_last_index[i] >= 1); val 181 libavcodec/wmv2enc.c cbp |= val << (5 - i); val 185 libavcodec/wmv2enc.c *coded_block = val; val 186 libavcodec/wmv2enc.c val = val ^ pred; val 188 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 124 libavcodec/xan.c uint8_t val = ival; val 133 libavcodec/xan.c while (val != 0x16) { val 137 libavcodec/xan.c idx = val - 0x17 + get_bits1(&gb) * byte; val 140 libavcodec/xan.c val = src[idx]; val 142 libavcodec/xan.c if (val < 0x16) { val 145 libavcodec/xan.c *dest++ = val; val 146 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 191 libavcodec/xwdenc.c uint32_t val; val 194 libavcodec/xwdenc.c val = pal[i]; val 195 libavcodec/xwdenc.c red = (val >> 16) & 0xFF; val 196 libavcodec/xwdenc.c green = (val >> 8) & 0xFF; val 197 libavcodec/xwdenc.c blue = val & 0xFF; val 187 libavcodec/xxan.c int val, uval, vval; val 228 libavcodec/xxan.c val = *src++; val 229 libavcodec/xxan.c if (val) { val 230 libavcodec/xxan.c if (val >= table_size) val 232 libavcodec/xxan.c val = AV_RL16(table + (val << 1)); val 233 libavcodec/xxan.c uval = (val >> 3) & 0xF8; val 234 libavcodec/xxan.c vval = (val >> 8) & 0xF8; val 254 libavcodec/xxan.c val = *src++; val 255 libavcodec/xxan.c if (val) { val 256 libavcodec/xxan.c if (val >= table_size) val 258 libavcodec/xxan.c val = AV_RL16(table + (val << 1)); val 259 libavcodec/xxan.c uval = (val >> 3) & 0xF8; val 260 libavcodec/xxan.c vval = (val >> 8) & 0xF8; val 117 libavcodec/ylc.c int val = nodes[new_node].count; val 118 libavcodec/ylc.c if (val && (val < nodes[first_node].count)) { val 119 libavcodec/ylc.c if (val >= nodes[second_node].count) { val 330 libavcodec/ylc.c uint32_t val = ((1U << len) - 1) + get_bits_long(&gb, len); val 332 libavcodec/ylc.c s->table[x] = val; val 374 libavcodec/ylc.c int val = get_vlc2(&gb, s->vlc[0].table, s->vlc[0].bits, 3); val 375 libavcodec/ylc.c if (val < 0) { val 377 libavcodec/ylc.c } else if (val < 0xE1) { val 378 libavcodec/ylc.c dst[x ] = table_y1[val]; val 379 libavcodec/ylc.c dst[x + 1] = table_u[val]; val 380 libavcodec/ylc.c dst[x + 2] = table_y2[val]; val 381 libavcodec/ylc.c dst[x + 3] = table_v[val]; val 384 libavcodec/ylc.c int incr = (val - 0xDF) * 4; val 95 libavdevice/android_camera.c static const char *camera_status_string(camera_status_t val) val 97 libavdevice/android_camera.c switch(val) { val 117 libavdevice/android_camera.c static const char *media_status_string(media_status_t val) val 119 libavdevice/android_camera.c switch(val) { val 145 libavdevice/android_camera.c static const char *error_state_callback_string(int val) val 147 libavdevice/android_camera.c switch(val) { val 99 libavdevice/pulse_audio_enc.c double val; val 108 libavdevice/pulse_audio_enc.c val = (double)vol / PA_VOLUME_NORM; val 109 libavdevice/pulse_audio_enc.c avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_VOLUME_LEVEL_CHANGED, &val, sizeof(val)); val 170 libavdevice/pulse_audio_enc.c int64_t val = nbytes; val 175 libavdevice/pulse_audio_enc.c avdevice_dev_to_app_control_message(h, AV_DEV_TO_APP_BUFFER_WRITABLE, &val, sizeof(val)); val 82 libavfilter/aeval.c static double (* const aeval_func1[])(void *, double) = { val, NULL }; val 199 libavfilter/af_acrusher.c double val; val 204 libavfilter/af_acrusher.c val = sin((phs * 360.) * M_PI / 180); val 206 libavfilter/af_acrusher.c return val * lfo->amount; val 95 libavfilter/af_apulsator.c double val; val 102 libavfilter/af_apulsator.c val = sin(phs * 2 * M_PI); val 106 libavfilter/af_apulsator.c val = (phs - 0.75) * 4 - 1; val 108 libavfilter/af_apulsator.c val = -4 * phs + 2; val 110 libavfilter/af_apulsator.c val = phs * 4; val 113 libavfilter/af_apulsator.c val = phs < 0.5 ? -1 : +1; val 116 libavfilter/af_apulsator.c val = phs * 2 - 1; val 119 libavfilter/af_apulsator.c val = 1 - phs * 2; val 124 libavfilter/af_apulsator.c return val * lfo->amount; val 394 libavfilter/af_astats.c const char *fmt, double val) val 399 libavfilter/af_astats.c snprintf(value, sizeof(value), fmt, val); val 385 libavfilter/af_dynaudnorm.c static inline double bound(const double threshold, const double val) val 388 libavfilter/af_dynaudnorm.c return erf(CONST * (val / threshold)) * threshold; val 544 libavfilter/af_ladspa.c LADSPA_Data val; val 551 libavfilter/af_ladspa.c if (av_sscanf(arg, "c%d=%f", &i, &val) != 2) { val 552 libavfilter/af_ladspa.c if (av_sscanf(arg, "%f", &val) != 1) { val 559 libavfilter/af_ladspa.c if ((ret = set_control(ctx, i, val)) < 0) val 350 libavfilter/af_lv2.c float val; val 366 libavfilter/af_lv2.c val = atof(vstr+1); val 374 libavfilter/af_lv2.c s->controls[index] = val; val 151 libavfilter/avf_showcqt.c av_freep(&s->coeffs[k].val); val 186 libavfilter/avf_showcqt.c double val, double min, double max, val 190 libavfilter/avf_showcqt.c if (isnan(val)) { val 193 libavfilter/avf_showcqt.c val = nan_replace; val 194 libavfilter/avf_showcqt.c } else if (val < min) { val 196 libavfilter/avf_showcqt.c idx, name, val, min); val 197 libavfilter/avf_showcqt.c val = min; val 198 libavfilter/avf_showcqt.c } else if (val > max) { val 200 libavfilter/avf_showcqt.c idx, name, val, max); val 201 libavfilter/avf_showcqt.c val = max; val 203 libavfilter/avf_showcqt.c return val; val 278 libavfilter/avf_showcqt.c FFTSample u = coeffs[k].val[x]; val 330 libavfilter/avf_showcqt.c if (!(s->coeffs[m].val = av_calloc(s->coeffs[m].len, sizeof(*s->coeffs[m].val)))) val 339 libavfilter/avf_showcqt.c s->coeffs[m].val[x - s->coeffs[m].start] = w; val 343 libavfilter/avf_showcqt.c s->permute_coeffs(s->coeffs[m].val, s->coeffs[m].len); val 354 libavfilter/avf_showcqt.c av_freep(&s->coeffs[k].val); val 29 libavfilter/avf_showcqt.h FFTSample *val; val 38 libavfilter/dnn/dnn_backend_native_layer_maximum.c params->val.u32 = avio_rl32(model_file_context); val 77 libavfilter/dnn/dnn_backend_native_layer_maximum.c dst[i] = FFMAX(src[i], params->val.y); val 37 libavfilter/dnn/dnn_backend_native_layer_maximum.h }val; val 452 libavfilter/dnn/dnn_backend_tf.c *y = params->val.y; val 99 libavfilter/opencl/deshake.cl static void write_to_1d_arrf(__global float *buf, int2 loc, float val) { val 100 libavfilter/opencl/deshake.cl buf[loc.x + loc.y * get_global_size(0)] = val; val 103 libavfilter/opencl/deshake.cl static void write_to_1d_arrul8(__global ulong8 *buf, int2 loc, ulong8 val) { val 104 libavfilter/opencl/deshake.cl buf[loc.x + loc.y * get_global_size(0)] = val; val 107 libavfilter/opencl/deshake.cl static void write_to_1d_arrvec(__global MotionVector *buf, int2 loc, MotionVector val) { val 108 libavfilter/opencl/deshake.cl buf[loc.x + loc.y * get_global_size(0)] = val; val 111 libavfilter/opencl/deshake.cl static void write_to_1d_arrf2(__global float2 *buf, int2 loc, float2 val) { val 112 libavfilter/opencl/deshake.cl buf[loc.x + loc.y * get_global_size(0)] = val; val 35 libavfilter/opencl/overlay.cl float4 val = read_imagef(main, sampler, loc); val 36 libavfilter/opencl/overlay.cl write_imagef(dst, loc, val); val 39 libavfilter/opencl/overlay.cl float4 val = read_imagef(overlay, sampler, loc - loc_overlay); val 40 libavfilter/opencl/overlay.cl write_imagef(dst, loc, val); val 60 libavfilter/opencl/overlay.cl float4 val = read_imagef(main, sampler, loc); val 61 libavfilter/opencl/overlay.cl write_imagef(dst, loc, val); val 66 libavfilter/opencl/overlay.cl float4 val = in_overlay * in_overlay.w + in_main * (1.0f - in_overlay.w); val 67 libavfilter/opencl/overlay.cl write_imagef(dst, loc, val); val 90 libavfilter/opencl/overlay.cl float4 val = read_imagef(main, sampler, loc); val 91 libavfilter/opencl/overlay.cl write_imagef(dst, loc, val); val 101 libavfilter/opencl/overlay.cl float4 val = in_overlay * in_alpha.x + in_main * (1.0f - in_alpha.x); val 102 libavfilter/opencl/overlay.cl write_imagef(dst, loc, val); val 31 libavfilter/opencl/unsharp.cl float4 val = read_imagef(src, sampler, loc); val 43 libavfilter/opencl/unsharp.cl write_imagef(dst, loc, val + (val - sum) * amount); val 75 libavfilter/opencl/unsharp.cl float4 val = tmp[pos.y + 8][pos.x + 8]; val 98 libavfilter/opencl/unsharp.cl write_imagef(dst, block + pos, val + (val - sum) * amount); val 62 libavfilter/signature_lookup.c unsigned int val=0,i; val 64 libavfilter/signature_lookup.c val += av_popcount( (first[i] & second[i] ) << 24 | val 69 libavfilter/signature_lookup.c val += av_popcount( (first[28] & second[28]) << 16 | val 72 libavfilter/signature_lookup.c return val; val 77 libavfilter/signature_lookup.c unsigned int val=0,i; val 79 libavfilter/signature_lookup.c val += av_popcount( (first[i] | second[i] ) << 24 | val 84 libavfilter/signature_lookup.c val += av_popcount( (first[28] | second[28]) << 16 | val 87 libavfilter/signature_lookup.c return val; val 61 libavfilter/vf_addroi.c double val; val 75 libavfilter/vf_addroi.c val = av_expr_eval(ctx->region_expr[i], vars, NULL); val 76 libavfilter/vf_addroi.c if (val < 0.0) { val 78 libavfilter/vf_addroi.c "less than zero - using zero instead.\n", val, val 80 libavfilter/vf_addroi.c val = 0.0; val 81 libavfilter/vf_addroi.c } else if (val > max_value) { val 84 libavfilter/vf_addroi.c "using %d instead.\n", val, addroi_param_names[i], val 86 libavfilter/vf_addroi.c val = max_value; val 88 libavfilter/vf_addroi.c ctx->region[i] = val; val 95 libavfilter/vf_bitplanenoise.c bit = (((val[(x)] & mask) == (val[(x) + (a)] & mask)) + \ val 96 libavfilter/vf_bitplanenoise.c ((val[(x)] & mask) == (val[(x) + (b)] & mask)) + \ val 97 libavfilter/vf_bitplanenoise.c ((val[(x)] & mask) == (val[(x) + (c)] & mask))) > 1; \ val 127 libavfilter/vf_bitplanenoise.c uint8_t *val = in->data[plane]; val 139 libavfilter/vf_bitplanenoise.c val += linesize; val 156 libavfilter/vf_bitplanenoise.c uint16_t *val = (uint16_t *)in->data[plane]; val 159 libavfilter/vf_bitplanenoise.c val = (uint16_t *)in->data[plane]; val 169 libavfilter/vf_bitplanenoise.c val += linesize; val 373 libavfilter/vf_bwdif.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } val 58 libavfilter/vf_codecview.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 825 libavfilter/vf_deshake_opencl.c float val = gaussian_for(i - window_half, sigma); val 827 libavfilter/vf_deshake_opencl.c gauss_sum += val; val 828 libavfilter/vf_deshake_opencl.c gauss_kernel[i] = val; val 857 libavfilter/vf_deshake_opencl.c float *val, val 886 libavfilter/vf_deshake_opencl.c val, val 97 libavfilter/vf_frei0r.c } val; val 103 libavfilter/vf_frei0r.c if (!strcmp(param, "y")) val.d = 1.0; val 104 libavfilter/vf_frei0r.c else if (!strcmp(param, "n")) val.d = 0.0; val 109 libavfilter/vf_frei0r.c val.d = av_strtod(param, &tail); val 110 libavfilter/vf_frei0r.c if (*tail || val.d == HUGE_VAL) val 115 libavfilter/vf_frei0r.c if (sscanf(param, "%f/%f/%f", &val.col.r, &val.col.g, &val.col.b) != 3) { val 118 libavfilter/vf_frei0r.c val.col.r = rgba[0] / 255.0; val 119 libavfilter/vf_frei0r.c val.col.g = rgba[1] / 255.0; val 120 libavfilter/vf_frei0r.c val.col.b = rgba[2] / 255.0; val 125 libavfilter/vf_frei0r.c if (sscanf(param, "%lf/%lf", &val.pos.x, &val.pos.y) != 2) val 130 libavfilter/vf_frei0r.c val.str = param; val 134 libavfilter/vf_frei0r.c s->set_param_value(s->instance, &val, index); val 71 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 153 libavfilter/vf_hysteresis.c uint32_t val = s->xy[s->index--]; val 155 libavfilter/vf_hysteresis.c *x = val >> 16; val 156 libavfilter/vf_hysteresis.c *y = val & 0x0000FFFF; val 135 libavfilter/vf_kerndeint.c int x, y, plane, val, hi, lo, g, h, n = kerndeint->frame++; val 249 libavfilter/vf_kerndeint.c val = (8 * ((int)srcpp[x] + (int)srcpn[x]) + 2 * ((int)srcp[x] + (int)prvp[x]) val 253 libavfilter/vf_kerndeint.c val = (8 * ((int)srcpp[x] + (int)srcpn[x]) + 2 * ((int)prvp[x]) val 256 libavfilter/vf_kerndeint.c dstp[x] = av_clip(val, lo, hi); val 162 libavfilter/vf_lut.c static double clip(void *opaque, double val) val 168 libavfilter/vf_lut.c return av_clip(val, minval, maxval); val 178 libavfilter/vf_lut.c double val = s->var_values[VAR_CLIPVAL]; val 182 libavfilter/vf_lut.c return pow((val-minval)/(maxval-minval), gamma) * (maxval-minval)+minval; val 191 libavfilter/vf_lut.c double val = s->var_values[VAR_CLIPVAL]; val 194 libavfilter/vf_lut.c double level = (val - minval) / (maxval - minval); val 221 libavfilter/vf_lut.c int val, color, ret; val 318 libavfilter/vf_lut.c for (val = 0; val < FF_ARRAY_ELEMS(s->lut[comp]); val++) { val 319 libavfilter/vf_lut.c s->var_values[VAR_VAL] = val; val 320 libavfilter/vf_lut.c s->var_values[VAR_CLIPVAL] = av_clip(val, min[color], max[color]); val 329 libavfilter/vf_lut.c s->comp_expr_str[color], val, comp); val 332 libavfilter/vf_lut.c s->lut[comp][val] = av_clip((int)res, 0, max[A]); val 333 libavfilter/vf_lut.c av_log(ctx, AV_LOG_DEBUG, "val[%d][%d] = %d\n", comp, val, s->lut[comp][val]); val 758 libavfilter/vf_lut3d.c float val[3]; val 761 libavfilter/vf_lut3d.c if (av_sscanf(line, "%f %f %f", val, val + 1, val + 2) != 3) val 763 libavfilter/vf_lut3d.c vec->r = val[rgb_map[0]] * scale; val 764 libavfilter/vf_lut3d.c vec->g = val[rgb_map[1]] * scale; val 765 libavfilter/vf_lut3d.c vec->b = val[rgb_map[2]] * scale; val 82 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 51 libavfilter/vf_mestimate.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 203 libavfilter/vf_minterpolate.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 931 libavfilter/vf_minterpolate.c int i, val = 0; val 963 libavfilter/vf_minterpolate.c val += pixel_weights->weights[i] * frame->avf->data[plane][x_mv + y_mv * frame->avf->linesize[plane]]; val 966 libavfilter/vf_minterpolate.c val = ROUNDED_DIV(val, weight_sum); val 969 libavfilter/vf_minterpolate.c avf_out->data[plane][(x >> mi_ctx->log2_chroma_w) + (y >> mi_ctx->log2_chroma_h) * avf_out->linesize[plane]] = val; val 971 libavfilter/vf_minterpolate.c avf_out->data[plane][x + y * avf_out->linesize[plane]] = val; val 151 libavfilter/vf_mix.c int val = 0; val 156 libavfilter/vf_mix.c val += src * s->weights[i]; val 159 libavfilter/vf_mix.c dst[x] = av_clip_uint8(val * s->wfactor); val 173 libavfilter/vf_mix.c int val = 0; val 178 libavfilter/vf_mix.c val += src * s->weights[i]; val 181 libavfilter/vf_mix.c dst[x] = av_clip(val * s->wfactor, 0, s->max); val 59 libavfilter/vf_paletteuse.c uint8_t val[4]; val 224 libavfilter/vf_paletteuse.c const uint8_t *current = kd->val; val 267 libavfilter/vf_paletteuse.c const uint8_t *current = kd->val; val 509 libavfilter/vf_paletteuse.c const uint32_t fontcolor = node->val[1] > 0x50 && val 510 libavfilter/vf_paletteuse.c node->val[2] > 0x50 && val 511 libavfilter/vf_paletteuse.c node->val[3] > 0x50 ? 0 : 0xffffff; val 518 libavfilter/vf_paletteuse.c "[ "[rgb_comp], node->val[1], val 519 libavfilter/vf_paletteuse.c "][ "[rgb_comp], node->val[2], val 520 libavfilter/vf_paletteuse.c " ]["[rgb_comp], node->val[3], val 522 libavfilter/vf_paletteuse.c node->val[1], node->val[2], node->val[3], val 702 libavfilter/vf_paletteuse.c node->val[0] = c>>24 & 0xff; val 703 libavfilter/vf_paletteuse.c node->val[1] = c>>16 & 0xff; val 704 libavfilter/vf_paletteuse.c node->val[2] = c>> 8 & 0xff; val 705 libavfilter/vf_paletteuse.c node->val[3] = c & 0xff; val 711 libavfilter/vf_paletteuse.c box1.max[component-1] = node->val[component]; val 712 libavfilter/vf_paletteuse.c box2.min[component-1] = node->val[component] + 1; val 78 libavfilter/vf_phase.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 462 libavfilter/vf_pseudocolor.c int val; val 477 libavfilter/vf_pseudocolor.c for (val = 0; val < FF_ARRAY_ELEMS(s->lut[color]); val++) { val 478 libavfilter/vf_pseudocolor.c s->var_values[VAR_VAL] = val; val 484 libavfilter/vf_pseudocolor.c s->comp_expr_str[color], val, color); val 487 libavfilter/vf_pseudocolor.c s->lut[color][val] = res; val 287 libavfilter/vf_removegrain.c const int val = (sum + 8) >> 4; val 289 libavfilter/vf_removegrain.c return val; val 364 libavfilter/vf_removegrain.c const int val = (sum + 4) >> 3; val 366 libavfilter/vf_removegrain.c return val; val 372 libavfilter/vf_removegrain.c const int val = (sum + 4) / 9; val 374 libavfilter/vf_removegrain.c return val; val 187 libavfilter/vf_selectivecolor.c int16_t val; val 216 libavfilter/vf_selectivecolor.c READ16(val); val 217 libavfilter/vf_selectivecolor.c if (val) val 219 libavfilter/vf_selectivecolor.c "but %d\n", "CMYK"[i], val); val 225 libavfilter/vf_selectivecolor.c READ16(val); val 226 libavfilter/vf_selectivecolor.c s->cmyk_adjust[i][k] = val / 100.; val 715 libavfilter/vf_signalstats.c #define SET_META(key, fmt, val) do { \ val 716 libavfilter/vf_signalstats.c snprintf(metabuf, sizeof(metabuf), fmt, val); \ val 109 libavfilter/vf_unsharp_opencl.c double val, sum; val 160 libavfilter/vf_unsharp_opencl.c val = ctx->plane[p].blur_x[x] * ctx->plane[p].blur_y[y]; val 161 libavfilter/vf_unsharp_opencl.c matrix[y * size_x + x] = val; val 53 libavfilter/vf_w3fdif.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, 0, 0, FLAGS, unit } val 550 libavfilter/vf_xfade.c int val = progress < 0.5f ? xf1[x] : xf0[x]; \ val 551 libavfilter/vf_xfade.c dst[x] = (z < dist) ? bg : val; \ val 585 libavfilter/vf_xfade.c int val = progress < 0.5f ? xf1[x] : xf0[x]; \ val 586 libavfilter/vf_xfade.c dst[x] = !dist ? bg : val; \ val 57 libavfilter/vsrc_mandelbrot.c uint32_t val; val 189 libavfilter/vsrc_mandelbrot.c if(color) color[x] = p->val; val 283 libavfilter/vsrc_mandelbrot.c s->next_cache[next_cidx++].val = color[x + y*linesize]; val 387 libavfilter/vsrc_mandelbrot.c s->next_cache[next_cidx++].val = c; val 467 libavfilter/vsrc_testsrc.c static void draw_rectangle(unsigned val, uint8_t *dst, int dst_linesize, int segment_width, val 477 libavfilter/vsrc_testsrc.c memset(dst, val, w); val 196 libavfilter/yadif_common.c #define CONST(name, help, val, unit) { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } val 76 libavformat/aadec.c char key[128], val[128], codec_name[64] = {0}; val 107 libavformat/aadec.c memset(val, 0, sizeof(val)); val 113 libavformat/aadec.c avio_get_str(pb, nval, val, sizeof(val)); val 115 libavformat/aadec.c av_log(s, AV_LOG_DEBUG, "Codec is <%s>\n", val); val 116 libavformat/aadec.c strncpy(codec_name, val, sizeof(codec_name) - 1); val 118 libavformat/aadec.c av_log(s, AV_LOG_DEBUG, "HeaderSeed is <%s>\n", val); val 119 libavformat/aadec.c header_seed = atoi(val); val 121 libavformat/aadec.c av_log(s, AV_LOG_DEBUG, "HeaderKey is <%s>\n", val); val 123 libavformat/aadec.c ret = sscanf(val, "%"SCNu32"%"SCNu32"%"SCNu32"%"SCNu32, val 136 libavformat/aadec.c av_dict_set(&s->metadata, key, val, 0); val 101 libavformat/aiffdec.c uint64_t val; val 113 libavformat/aiffdec.c val = avio_rb64(pb); val 119 libavformat/aiffdec.c sample_rate = val << exp; val 121 libavformat/aiffdec.c sample_rate = (val + (1ULL<<(-exp-1))) >> -exp; 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 160 libavformat/apetag.c val = avio_rl32(pb); /* flags */ val 161 libavformat/apetag.c if (val & APE_TAG_FLAG_IS_HEADER) { val 168 libavformat/apetag.c if (val & APE_TAG_FLAG_CONTAINS_HEADER) val 911 libavformat/asfenc.c int val; val 913 libavformat/asfenc.c val = stream->num; val 915 libavformat/asfenc.c val |= ASF_PL_FLAG_KEY_FRAME; val 916 libavformat/asfenc.c avio_w8(pb, val); val 122 libavformat/avio.c char *key, *val; val 128 libavformat/avio.c while(ret >= 0 && (key= strchr(p, sep)) && p<key && (val = strchr(key+1, sep))){ val 129 libavformat/avio.c *val= *key= 0; val 136 libavformat/avio.c *val= *key= sep; val 137 libavformat/avio.c p= val+1; val 481 libavformat/avio.h void avio_wl64(AVIOContext *s, uint64_t val); val 482 libavformat/avio.h void avio_wb64(AVIOContext *s, uint64_t val); val 483 libavformat/avio.h void avio_wl32(AVIOContext *s, unsigned int val); val 484 libavformat/avio.h void avio_wb32(AVIOContext *s, unsigned int val); val 485 libavformat/avio.h void avio_wl24(AVIOContext *s, unsigned int val); val 486 libavformat/avio.h void avio_wb24(AVIOContext *s, unsigned int val); val 487 libavformat/avio.h void avio_wl16(AVIOContext *s, unsigned int val); val 488 libavformat/avio.h void avio_wb16(AVIOContext *s, unsigned int val); val 367 libavformat/aviobuf.c void avio_wl32(AVIOContext *s, unsigned int val) val 369 libavformat/aviobuf.c avio_w8(s, (uint8_t) val ); val 370 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 8 )); val 371 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 16)); val 372 libavformat/aviobuf.c avio_w8(s, val >> 24 ); val 375 libavformat/aviobuf.c void avio_wb32(AVIOContext *s, unsigned int val) val 377 libavformat/aviobuf.c avio_w8(s, val >> 24 ); val 378 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 16)); val 379 libavformat/aviobuf.c avio_w8(s, (uint8_t)(val >> 8 )); val 380 libavformat/aviobuf.c avio_w8(s, (uint8_t) val ); val 435 libavformat/aviobuf.c void avio_wl64(AVIOContext *s, uint64_t val) val 437 libavformat/aviobuf.c avio_wl32(s, (uint32_t)(val & 0xffffffff)); val 438 libavformat/aviobuf.c avio_wl32(s, (uint32_t)(val >> 32)); val 441 libavformat/aviobuf.c void avio_wb64(AVIOContext *s, uint64_t val) val 443 libavformat/aviobuf.c avio_wb32(s, (uint32_t)(val >> 32)); val 444 libavformat/aviobuf.c avio_wb32(s, (uint32_t)(val & 0xffffffff)); val 447 libavformat/aviobuf.c void avio_wl16(AVIOContext *s, unsigned int val) val 449 libavformat/aviobuf.c avio_w8(s, (uint8_t)val); val 450 libavformat/aviobuf.c avio_w8(s, (int)val >> 8); val 453 libavformat/aviobuf.c void avio_wb16(AVIOContext *s, unsigned int val) val 455 libavformat/aviobuf.c avio_w8(s, (int)val >> 8); val 456 libavformat/aviobuf.c avio_w8(s, (uint8_t)val); val 459 libavformat/aviobuf.c void avio_wl24(AVIOContext *s, unsigned int val) val 461 libavformat/aviobuf.c avio_wl16(s, val & 0xffff); val 462 libavformat/aviobuf.c avio_w8(s, (int)val >> 16); val 465 libavformat/aviobuf.c void avio_wb24(AVIOContext *s, unsigned int val) val 467 libavformat/aviobuf.c avio_wb16(s, (int)val >> 8); val 468 libavformat/aviobuf.c avio_w8(s, (uint8_t)val); val 733 libavformat/aviobuf.c unsigned int val; val 734 libavformat/aviobuf.c val = avio_r8(s); val 735 libavformat/aviobuf.c val |= avio_r8(s) << 8; val 736 libavformat/aviobuf.c return val; val 741 libavformat/aviobuf.c unsigned int val; val 742 libavformat/aviobuf.c val = avio_rl16(s); val 743 libavformat/aviobuf.c val |= avio_r8(s) << 16; val 744 libavformat/aviobuf.c return val; val 749 libavformat/aviobuf.c unsigned int val; val 750 libavformat/aviobuf.c val = avio_rl16(s); val 751 libavformat/aviobuf.c val |= avio_rl16(s) << 16; val 752 libavformat/aviobuf.c return val; val 757 libavformat/aviobuf.c uint64_t val; val 758 libavformat/aviobuf.c val = (uint64_t)avio_rl32(s); val 759 libavformat/aviobuf.c val |= (uint64_t)avio_rl32(s) << 32; val 760 libavformat/aviobuf.c return val; val 765 libavformat/aviobuf.c unsigned int val; val 766 libavformat/aviobuf.c val = avio_r8(s) << 8; val 767 libavformat/aviobuf.c val |= avio_r8(s); val 768 libavformat/aviobuf.c return val; val 773 libavformat/aviobuf.c unsigned int val; val 774 libavformat/aviobuf.c val = avio_rb16(s) << 8; val 775 libavformat/aviobuf.c val |= avio_r8(s); val 776 libavformat/aviobuf.c return val; val 780 libavformat/aviobuf.c unsigned int val; val 781 libavformat/aviobuf.c val = avio_rb16(s) << 16; val 782 libavformat/aviobuf.c val |= avio_rb16(s); val 783 libavformat/aviobuf.c return val; val 901 libavformat/aviobuf.c uint64_t val; val 902 libavformat/aviobuf.c val = (uint64_t)avio_rb32(s) << 32; val 903 libavformat/aviobuf.c val |= (uint64_t)avio_rb32(s); val 904 libavformat/aviobuf.c return val; val 908 libavformat/aviobuf.c uint64_t val = 0; val 913 libavformat/aviobuf.c val= (val<<7) + (tmp&127); val 915 libavformat/aviobuf.c return val; val 546 libavformat/avisynth.c AVS_Value arg, val; val 565 libavformat/avisynth.c val = avs_library.avs_invoke(avs->env, "Import", arg, 0); val 566 libavformat/avisynth.c if (avs_is_error(val)) { val 567 libavformat/avisynth.c av_log(s, AV_LOG_ERROR, "%s\n", avs_as_error(val)); val 571 libavformat/avisynth.c if (!avs_is_clip(val)) { val 577 libavformat/avisynth.c avs->clip = avs_library.avs_take_clip(val, avs->env); val 592 libavformat/avisynth.c avs_library.avs_release_value(val); val 171 libavformat/dashdec.c static int aligned(int val) val 173 libavformat/dashdec.c return ((val + 0x3F) >> 6) << 6; val 473 libavformat/dashdec.c char *val) val 500 libavformat/dashdec.c if (val) val 501 libavformat/dashdec.c ff_make_absolute_url(tmp_str, max_url_size, tmp_str, val); val 527 libavformat/dashdec.c char *val; val 531 libavformat/dashdec.c val = xmlGetProp(nodes[i], attrname); val 532 libavformat/dashdec.c if (val) val 533 libavformat/dashdec.c return val; val 562 libavformat/dashdec.c char *val = NULL; val 567 libavformat/dashdec.c val = xmlGetProp(node, attr); val 568 libavformat/dashdec.c if (val) { val 569 libavformat/dashdec.c if (av_stristr((const char *)val, "video")) { val 571 libavformat/dashdec.c } else if (av_stristr((const char *)val, "audio")) { val 573 libavformat/dashdec.c } else if (av_stristr((const char *)val, "text")) { val 576 libavformat/dashdec.c xmlFree(val); val 672 libavformat/dashdec.c char *val = NULL; val 681 libavformat/dashdec.c val = xmlGetProp(fragment_timeline_node, attr->name); val 683 libavformat/dashdec.c if (!val) { val 689 libavformat/dashdec.c tml->starttime = (int64_t)strtoll(val, NULL, 10); val 691 libavformat/dashdec.c tml->repeat =(int64_t) strtoll(val, NULL, 10); val 693 libavformat/dashdec.c tml->duration = (int64_t)strtoll(val, NULL, 10); val 696 libavformat/dashdec.c xmlFree(val); val 855 libavformat/dashdec.c char *val = NULL; val 969 libavformat/dashdec.c val = xmlGetProp(adaptionset_supplementalproperty_node,"value"); val 970 libavformat/dashdec.c if (!val) { val 973 libavformat/dashdec.c rep->last_seq_no =(int64_t) strtoll(val, NULL, 10) - 1; val 974 libavformat/dashdec.c xmlFree(val); val 1191 libavformat/dashdec.c xmlChar *val = NULL; val 1196 libavformat/dashdec.c val = xmlNodeGetContent(node); val 1197 libavformat/dashdec.c if (val) { val 1198 libavformat/dashdec.c av_dict_set(&s->metadata, "Title", val, 0); val 1201 libavformat/dashdec.c val = xmlNodeGetContent(node); val 1202 libavformat/dashdec.c if (val) { val 1203 libavformat/dashdec.c av_dict_set(&s->metadata, "Source", val, 0); val 1206 libavformat/dashdec.c val = xmlNodeGetContent(node); val 1207 libavformat/dashdec.c if (val) { val 1208 libavformat/dashdec.c av_dict_set(&s->metadata, "Copyright", val, 0); val 1212 libavformat/dashdec.c xmlFree(val); val 1213 libavformat/dashdec.c val = NULL; val 1238 libavformat/dashdec.c char *val = NULL; val 1292 libavformat/dashdec.c val = xmlGetProp(node, "type"); val 1293 libavformat/dashdec.c if (!val) { val 1298 libavformat/dashdec.c if (!av_strcasecmp(val, (const char *)"dynamic")) val 1300 libavformat/dashdec.c xmlFree(val); val 1304 libavformat/dashdec.c val = xmlGetProp(node, attr->name); val 1307 libavformat/dashdec.c c->availability_start_time = get_utc_date_time_insec(s, (const char *)val); val 1310 libavformat/dashdec.c c->availability_end_time = get_utc_date_time_insec(s, (const char *)val); val 1313 libavformat/dashdec.c c->publish_time = get_utc_date_time_insec(s, (const char *)val); val 1316 libavformat/dashdec.c c->minimum_update_period = get_duration_insec(s, (const char *)val); val 1319 libavformat/dashdec.c c->time_shift_buffer_depth = get_duration_insec(s, (const char *)val); val 1322 libavformat/dashdec.c c->min_buffer_time = get_duration_insec(s, (const char *)val); val 1325 libavformat/dashdec.c c->suggested_presentation_delay = get_duration_insec(s, (const char *)val); val 1328 libavformat/dashdec.c c->media_presentation_duration = get_duration_insec(s, (const char *)val); val 1332 libavformat/dashdec.c xmlFree(val); val 1350 libavformat/dashdec.c val = xmlGetProp(node, attr->name); val 1352 libavformat/dashdec.c period_duration_sec = get_duration_insec(s, (const char *)val); val 1354 libavformat/dashdec.c period_start_sec = get_duration_insec(s, (const char *)val); val 1357 libavformat/dashdec.c xmlFree(val); val 1899 libavformat/hlsenc.c const char *val; val 1964 libavformat/hlsenc.c if (av_strstart(keyval, "language:", &val)) { val 1965 libavformat/hlsenc.c vs->language = val; val 1967 libavformat/hlsenc.c } else if (av_strstart(keyval, "default:", &val)) { val 1968 libavformat/hlsenc.c vs->is_default = (!av_strncasecmp(val, "YES", strlen("YES")) || val 1969 libavformat/hlsenc.c (!av_strncasecmp(val, "1", strlen("1")))); val 1972 libavformat/hlsenc.c } else if (av_strstart(keyval, "name:", &val)) { val 1973 libavformat/hlsenc.c vs->varname = val; val 1975 libavformat/hlsenc.c } else if (av_strstart(keyval, "agroup:", &val)) { val 1976 libavformat/hlsenc.c vs->agroup = val; val 1978 libavformat/hlsenc.c } else if (av_strstart(keyval, "sgroup:", &val)) { val 1979 libavformat/hlsenc.c vs->sgroup = val; val 1981 libavformat/hlsenc.c } else if (av_strstart(keyval, "ccgroup:", &val)) { val 1982 libavformat/hlsenc.c vs->ccgroup = val; val 1984 libavformat/hlsenc.c } else if (av_strstart(keyval, "v:", &val)) { val 1987 libavformat/hlsenc.c } else if (av_strstart(keyval, "a:", &val)) { val 1989 libavformat/hlsenc.c } else if (av_strstart(keyval, "s:", &val)) { val 1996 libavformat/hlsenc.c num = strtoll(val, &end, 10); val 1997 libavformat/hlsenc.c if (!av_isdigit(*val) || *end != '\0') { val 1998 libavformat/hlsenc.c av_log(s, AV_LOG_ERROR, "Invalid stream number: '%s'\n", val); val 2040 libavformat/hlsenc.c const char *val; val 2072 libavformat/hlsenc.c if (av_strstart(keyval, "ccgroup:", &val)) { val 2073 libavformat/hlsenc.c ccs->ccgroup = val; val 2074 libavformat/hlsenc.c } else if (av_strstart(keyval, "instreamid:", &val)) { val 2075 libavformat/hlsenc.c ccs->instreamid = val; val 2076 libavformat/hlsenc.c } else if (av_strstart(keyval, "language:", &val)) { val 2077 libavformat/hlsenc.c ccs->language = val; val 2089 libavformat/hlsenc.c if (av_strstart(ccs->instreamid, "CC", &val)) { val 2090 libavformat/hlsenc.c if (atoi(val) < 1 || atoi(val) > 4) { val 2092 libavformat/hlsenc.c atoi(val), ccs->instreamid); val 2095 libavformat/hlsenc.c } else if (av_strstart(ccs->instreamid, "SERVICE", &val)) { val 2096 libavformat/hlsenc.c if (atoi(val) < 1 || atoi(val) > 63) { val 2098 libavformat/hlsenc.c atoi(val), ccs->instreamid); val 1562 libavformat/http.c char *val; val 1569 libavformat/http.c val = strstr(key, "='"); val 1570 libavformat/http.c if (!val) val 1572 libavformat/http.c end = strstr(val, "';"); val 1576 libavformat/http.c *val = '\0'; val 1578 libavformat/http.c val += 2; val 1580 libavformat/http.c av_dict_set(&s->metadata, key, val, 0); val 1581 libavformat/http.c av_log(h, AV_LOG_VERBOSE, "Metadata update for %s: %s\n", key, val); val 60 libavformat/internal.h int64_t val, num, den; val 264 libavformat/matroskaenc.c static void put_ebml_uint(AVIOContext *pb, uint32_t elementid, uint64_t val) val 267 libavformat/matroskaenc.c uint64_t tmp = val; val 274 libavformat/matroskaenc.c avio_w8(pb, (uint8_t)(val >> i * 8)); val 277 libavformat/matroskaenc.c static void put_ebml_sint(AVIOContext *pb, uint32_t elementid, int64_t val) val 280 libavformat/matroskaenc.c uint64_t tmp = 2*(val < 0 ? val^-1 : val); val 288 libavformat/matroskaenc.c avio_w8(pb, (uint8_t)(val >> i * 8)); val 291 libavformat/matroskaenc.c static void put_ebml_float(AVIOContext *pb, uint32_t elementid, double val) val 295 libavformat/matroskaenc.c avio_wb64(pb, av_double2int(val)); val 130 libavformat/mmf.c static void put_varlength(AVIOContext *pb, int val) val 132 libavformat/mmf.c if (val < 128) val 133 libavformat/mmf.c avio_w8(pb, val); val 135 libavformat/mmf.c val -= 128; val 136 libavformat/mmf.c avio_w8(pb, 0x80 | val >> 7); val 137 libavformat/mmf.c avio_w8(pb, 0x7f & val); val 472 libavformat/mov.c int val = 0; val 474 libavformat/mov.c val = (int8_t)avio_r8(pb); val 476 libavformat/mov.c val = (int16_t)avio_rb16(pb); val 478 libavformat/mov.c val = ((int32_t)(avio_rb24(pb)<<8))>>8; val 480 libavformat/mov.c val = (int32_t)avio_rb32(pb); val 481 libavformat/mov.c if (snprintf(str, str_size_alloc, "%d", val) >= str_size_alloc) { val 483 libavformat/mov.c "Failed to store the number (%d) in string.\n", val); val 488 libavformat/mov.c unsigned int val = 0; val 490 libavformat/mov.c val = avio_r8(pb); val 492 libavformat/mov.c val = avio_rb16(pb); val 494 libavformat/mov.c val = avio_rb24(pb); val 496 libavformat/mov.c val = avio_rb32(pb); val 497 libavformat/mov.c if (snprintf(str, str_size_alloc, "%u", val) >= str_size_alloc) { val 499 libavformat/mov.c "Failed to store the number (%u) in string.\n", val); val 504 libavformat/mov.c float val = av_int2float(avio_rb32(pb)); val 505 libavformat/mov.c if (snprintf(str, str_size_alloc, "%f", val) >= str_size_alloc) { val 507 libavformat/mov.c "Failed to store the float32 number (%f) in string.\n", val); val 2317 libavformat/mov.c int val; val 2318 libavformat/mov.c val = AV_RB32(st->codecpar->extradata + 4); val 2319 libavformat/mov.c tmcd_ctx->tmcd_flags = val; val 4400 libavformat/mov.c uint8_t *key = NULL, *val = NULL, *mean = NULL; val 4433 libavformat/mov.c p = &val; val 4453 libavformat/mov.c if (mean && key && val) { val 4456 libavformat/mov.c if(sscanf(val, "%*X %X %X %X", &priming, &remainder, &samples) == 3){ val 4462 libavformat/mov.c av_dict_set(&c->fc->metadata, key, val, val 4464 libavformat/mov.c key = val = NULL; val 4473 libavformat/mov.c av_freep(&val); val 5690 libavformat/mov.c const char *val; val 5703 libavformat/mov.c (val = av_stristr(buffer, "<GSpherical:Spherical>")) && val 5704 libavformat/mov.c av_stristr(val, "true") && val 5705 libavformat/mov.c (val = av_stristr(buffer, "<GSpherical:Stitched>")) && val 5706 libavformat/mov.c av_stristr(val, "true") && val 5707 libavformat/mov.c (val = av_stristr(buffer, "<GSpherical:ProjectionType>")) && val 5708 libavformat/mov.c av_stristr(val, "equirectangular")) { val 5733 libavformat/mov.c val = av_stristr(buffer, "<GSpherical:InitialViewHeadingDegrees>"); val 5734 libavformat/mov.c if (val) val 5735 libavformat/mov.c sc->spherical->yaw = strtol(val, NULL, 10) * (1 << 16); val 5736 libavformat/mov.c val = av_stristr(buffer, "<GSpherical:InitialViewPitchDegrees>"); val 5737 libavformat/mov.c if (val) val 5738 libavformat/mov.c sc->spherical->pitch = strtol(val, NULL, 10) * (1 << 16); val 5739 libavformat/mov.c val = av_stristr(buffer, "<GSpherical:InitialViewRollDegrees>"); val 5740 libavformat/mov.c if (val) val 5741 libavformat/mov.c sc->spherical->roll = strtol(val, NULL, 10) * (1 << 16); val 126 libavformat/movenc.c int val; val 128 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) val 3791 libavformat/movenc.c int val; val 3793 libavformat/movenc.c GET_UTF8(val, *b++, return -1;) val 3794 libavformat/movenc.c avio_wb16(pb, val); val 426 libavformat/mp3enc.c uint16_t val; val 432 libavformat/mp3enc.c val = FFABS(rg->track_gain / 10000) & ((1 << 9) - 1); val 433 libavformat/mp3enc.c val |= (rg->track_gain < 0) << 9; val 434 libavformat/mp3enc.c val |= 1 << 13; val 435 libavformat/mp3enc.c AV_WB16(mp3->xing_frame + mp3->xing_offset + 135, val); val 439 libavformat/mp3enc.c val = FFABS(rg->album_gain / 10000) & ((1 << 9) - 1); val 440 libavformat/mp3enc.c val |= (rg->album_gain < 0) << 9; val 441 libavformat/mp3enc.c val |= 1 << 14; val 442 libavformat/mp3enc.c AV_WB16(mp3->xing_frame + mp3->xing_offset + 137, val); val 161 libavformat/mpeg.c int val, n; val 172 libavformat/mpeg.c val = state; val 177 libavformat/mpeg.c val = -1; val 182 libavformat/mpeg.c return val; val 755 libavformat/mpegts.c int val; val 757 libavformat/mpegts.c val = get8(pp, p_end); val 758 libavformat/mpegts.c if (val < 0) val 759 libavformat/mpegts.c return val; val 760 libavformat/mpegts.c h->tid = val; val 762 libavformat/mpegts.c val = get16(pp, p_end); val 763 libavformat/mpegts.c if (val < 0) val 764 libavformat/mpegts.c return val; val 765 libavformat/mpegts.c h->id = val; val 766 libavformat/mpegts.c val = get8(pp, p_end); val 767 libavformat/mpegts.c if (val < 0) val 768 libavformat/mpegts.c return val; val 769 libavformat/mpegts.c h->version = (val >> 1) & 0x1f; val 770 libavformat/mpegts.c val = get8(pp, p_end); val 771 libavformat/mpegts.c if (val < 0) val 772 libavformat/mpegts.c return val; val 773 libavformat/mpegts.c h->sec_num = val; val 774 libavformat/mpegts.c val = get8(pp, p_end); val 775 libavformat/mpegts.c if (val < 0) val 776 libavformat/mpegts.c return val; val 777 libavformat/mpegts.c h->last_sec_num = val; val 2619 libavformat/mpegts.c int onid, val, sid, desc_list_len, desc_tag, desc_len, service_type; val 2639 libavformat/mpegts.c val = get8(&p, p_end); val 2640 libavformat/mpegts.c if (val < 0) val 2646 libavformat/mpegts.c val = get8(&p, p_end); val 2647 libavformat/mpegts.c if (val < 0) val 180 libavformat/mpegtsenc.c static inline void put16(uint8_t **q_ptr, int val) val 184 libavformat/mpegtsenc.c *q++ = val >> 8; val 185 libavformat/mpegtsenc.c *q++ = val; val 430 libavformat/mpegtsenc.c int val, stream_type, i, err = 0; val 448 libavformat/mpegtsenc.c val = 0xf000 | (q - program_info_length_ptr - 2); val 449 libavformat/mpegtsenc.c program_info_length_ptr[0] = val >> 8; val 450 libavformat/mpegtsenc.c program_info_length_ptr[1] = val; val 715 libavformat/mpegtsenc.c val = 0xf000 | (q - desc_length_ptr - 2); val 716 libavformat/mpegtsenc.c desc_length_ptr[0] = val >> 8; val 717 libavformat/mpegtsenc.c desc_length_ptr[1] = val; val 736 libavformat/mpegtsenc.c int i, running_status, free_ca_mode, val; val 760 libavformat/mpegtsenc.c val = (running_status << 13) | (free_ca_mode << 12) | val 762 libavformat/mpegtsenc.c desc_list_len_ptr[0] = val >> 8; val 763 libavformat/mpegtsenc.c desc_list_len_ptr[1] = val; val 1212 libavformat/mpegtsenc.c int val; val 1214 libavformat/mpegtsenc.c val = fourbits << 4 | (((pts >> 30) & 0x07) << 1) | 1; val 1215 libavformat/mpegtsenc.c *q++ = val; val 1216 libavformat/mpegtsenc.c val = (((pts >> 15) & 0x7fff) << 1) | 1; val 1217 libavformat/mpegtsenc.c *q++ = val >> 8; val 1218 libavformat/mpegtsenc.c *q++ = val; val 1219 libavformat/mpegtsenc.c val = (((pts) & 0x7fff) << 1) | 1; val 1220 libavformat/mpegtsenc.c *q++ = val >> 8; val 1221 libavformat/mpegtsenc.c *q++ = val; val 1269 libavformat/mpegtsenc.c int val, is_start, len, header_len, write_pcr, is_dvb_subtitle, is_dvb_teletext, flags; val 1344 libavformat/mpegtsenc.c val = ts_st->pid >> 8; val 1346 libavformat/mpegtsenc.c val |= 0x20; val 1348 libavformat/mpegtsenc.c val |= 0x40; val 1349 libavformat/mpegtsenc.c *q++ = val; val 1464 libavformat/mpegtsenc.c val = 0x80; val 1467 libavformat/mpegtsenc.c val |= 0x04; val 1468 libavformat/mpegtsenc.c *q++ = val; val 162 libavformat/mpjpegdec.c long int val = strtol(value, NULL, 10); val 164 libavformat/mpjpegdec.c if (val == LONG_MIN || val == LONG_MAX) val 166 libavformat/mpjpegdec.c if (val > INT_MAX) val 168 libavformat/mpjpegdec.c return val; val 51 libavformat/mux.c static void frac_init(FFFrac *f, int64_t val, int64_t num, int64_t den) val 55 libavformat/mux.c val += num / den; val 58 libavformat/mux.c f->val = val; val 76 libavformat/mux.c f->val += num / den; val 80 libavformat/mux.c f->val--; val 83 libavformat/mux.c f->val += num / den; val 593 libavformat/mux.c pkt->pts = st->internal->priv_pts->val; val 630 libavformat/mux.c st->internal->priv_pts->val = pkt->dts; val 642 libavformat/mux.c if (frame_size >= 0 && (pkt->size || st->internal->priv_pts->num != st->internal->priv_pts->den >> 1 || st->internal->priv_pts->val)) { val 1386 libavformat/mxfdec.c int val; val 1397 libavformat/mxfdec.c val = (*essence_container_ul)[codec_ul->wrapping_indicator_pos]; val 1400 libavformat/mxfdec.c val = val % 4; val 1403 libavformat/mxfdec.c if (val == 0x03 || val == 0x04) val 1404 libavformat/mxfdec.c val -= 0x02; val 1407 libavformat/mxfdec.c if (val == 0x02) val 1408 libavformat/mxfdec.c val = 0x01; val 1411 libavformat/mxfdec.c if (val == 0x01) val 1413 libavformat/mxfdec.c if (val == 0x02) val 253 libavformat/nut.c void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val) val 258 libavformat/nut.c av_rescale_rnd(val, val 133 libavformat/nut.h void ff_nut_reset_ts(NUTContext *nut, AVRational time_base, int64_t val); val 283 libavformat/nutenc.c static int get_v_length(uint64_t val) val 287 libavformat/nutenc.c while (val >>= 7) val 296 libavformat/nutenc.c static void put_v(AVIOContext *bc, uint64_t val) val 298 libavformat/nutenc.c int i = get_v_length(val); val 301 libavformat/nutenc.c avio_w8(bc, 128 | (uint8_t)(val >> (7*i))); val 303 libavformat/nutenc.c avio_w8(bc, val & 127); val 306 libavformat/nutenc.c static void put_tt(NUTContext *nut, AVRational *time_base, AVIOContext *bc, uint64_t val) val 308 libavformat/nutenc.c val *= nut->time_base_count; val 309 libavformat/nutenc.c val += time_base - nut->time_base; val 310 libavformat/nutenc.c put_v(bc, val); val 323 libavformat/nutenc.c static void put_s(AVIOContext *bc, int64_t val) val 325 libavformat/nutenc.c put_v(bc, 2 * FFABS(val) - (val > 0)); val 857 libavformat/nutenc.c const uint8_t *val = data + strlen(key) + 1; val 859 libavformat/nutenc.c if(val >= data_end) { val 865 libavformat/nutenc.c put_str(dyn_bc, val); val 866 libavformat/nutenc.c data = val + strlen(val) + 1; val 42 libavformat/oggparsevorbis.c static int ogm_chapter(AVFormatContext *as, uint8_t *key, uint8_t *val) val 51 libavformat/oggparsevorbis.c if (sscanf(val, "%02d:%02d:%02d.%03d", &h, &m, &s, &ms) < 4) val 57 libavformat/oggparsevorbis.c av_free(val); val 67 libavformat/oggparsevorbis.c av_dict_set(&chapter->metadata, "title", val, AV_DICT_DONT_STRDUP_VAL); val 67 libavformat/pcmdec.c char val[14]; /* sizeof("little-endian") == 14 */ val 68 libavformat/pcmdec.c if (sscanf(options, " endianness=%13s", val) == 1) { val 69 libavformat/pcmdec.c little_endian = strcmp(val, "little-endian") == 0; val 353 libavformat/rmdec.c uint8_t name[128], val[128]; val 361 libavformat/rmdec.c case 2: get_strl(pb, val, sizeof(val), avio_rb16(pb)); val 362 libavformat/rmdec.c av_dict_set(&s->metadata, name, val, 0); val 1169 libavformat/rmdec.c uint8_t key[256], val[256]; val 1218 libavformat/rmdec.c avio_get_str(pb, len, val, sizeof(val)); val 1219 libavformat/rmdec.c av_log(s, AV_LOG_DEBUG, "%s = '%s'\n", key, val); val 1260 libavformat/rmdec.c avio_get_str(pb, len, val, sizeof(val)); val 1261 libavformat/rmdec.c av_log(s, AV_LOG_DEBUG, "%s = '%s'\n", key, val); 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 206 libavformat/rtpdec_jpeg.c int val = (default_quantizers[i] * S + 50) / 100; val 209 libavformat/rtpdec_jpeg.c val = av_clip(val, 1, 255); val 210 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 305 libavformat/rtpdec_mpeg4.c long long int val = strtoll(value, &end_ptr, 10); val 312 libavformat/rtpdec_mpeg4.c if (val < attr_names[i].range.min || val 313 libavformat/rtpdec_mpeg4.c val > attr_names[i].range.max) { val 316 libavformat/rtpdec_mpeg4.c attr, attr_names[i].range.min, attr_names[i].range.max, val); val 321 libavformat/rtpdec_mpeg4.c attr_names[i].offset) = (int) val; val 323 libavformat/rtpdec_mpeg4.c char *val = av_strdup(value); val 324 libavformat/rtpdec_mpeg4.c if (!val) val 327 libavformat/rtpdec_mpeg4.c attr_names[i].offset) = val; val 614 libavformat/spdifenc.c AVIOContext *pb, unsigned int val) val 617 libavformat/spdifenc.c avio_wb16(pb, val); val 619 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 = FFABS(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 36 libavformat/tee_common.c char *key, *val; val 49 libavformat/tee_common.c ret = av_opt_get_key_value(&p, "=", slave_opt_delim, 0, &key, &val); val 54 libavformat/tee_common.c ret = av_dict_set(options, key, val, val 139 libavformat/utils.c return st->internal->priv_pts->val; val 5242 libavformat/utils.c char *key, *val; val 5247 libavformat/utils.c val = strchr(spec, ':'); val 5249 libavformat/utils.c key = val ? av_strndup(spec, val - spec) : av_strdup(spec); val 5255 libavformat/utils.c if (!val || !strcmp(tag->value, val + 1)) val 5272 libavformat/utils.c int val; val 5275 libavformat/utils.c val = par->sample_rate && par->channels; val 5277 libavformat/utils.c val = val || (codec->sample_rate && codec->channels); val 5287 libavformat/utils.c val = par->width && par->height; val 5289 libavformat/utils.c val = val || (codec->width && codec->height); val 5299 libavformat/utils.c val = 0; val 5302 libavformat/utils.c val = 1; val 5306 libavformat/utils.c return match && ((par->codec_id != AV_CODEC_ID_NONE || codec->codec_id != AV_CODEC_ID_NONE) && val != 0); val 5308 libavformat/utils.c return match && (par->codec_id != AV_CODEC_ID_NONE && val != 0); 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 140 libavutil/avsscanf.c const unsigned char *val = table+1; val 157 libavutil/avsscanf.c if (val[c]>=16) { val 169 libavutil/avsscanf.c if (val[c] >= base) { val 184 libavutil/avsscanf.c for (x=0; val[c]<base && x<=UINT_MAX/32; c=shgetc(f)) val 185 libavutil/avsscanf.c x = x<<bs | val[c]; val 186 libavutil/avsscanf.c for (y=x; val[c]<base && y<=ULLONG_MAX>>bs; c=shgetc(f)) val 187 libavutil/avsscanf.c y = y<<bs | val[c]; val 189 libavutil/avsscanf.c for (x=0; val[c]<base && x<=UINT_MAX/36-1; c=shgetc(f)) val 190 libavutil/avsscanf.c x = x*base + val[c]; val 191 libavutil/avsscanf.c for (y=x; val[c]<base && y<=ULLONG_MAX/base && base*y<=ULLONG_MAX-val[c]; c=shgetc(f)) val 192 libavutil/avsscanf.c y = y*base + val[c]; val 194 libavutil/avsscanf.c if (val[c]<base) { val 195 libavutil/avsscanf.c for (; val[c]<base; c=shgetc(f)); val 427 libavutil/common.h #define GET_UTF8(val, GET_BYTE, ERROR)\ val 428 libavutil/common.h val= (GET_BYTE);\ val 430 libavutil/common.h uint32_t top = (val & 128) >> 1;\ val 431 libavutil/common.h if ((val & 0xc0) == 0x80 || val >= 0xFE)\ val 433 libavutil/common.h while (val & top) {\ val 437 libavutil/common.h val= (val<<6) + tmp;\ val 440 libavutil/common.h val &= (top << 1) - 1;\ val 452 libavutil/common.h #define GET_UTF16(val, GET_16BIT, ERROR)\ val 453 libavutil/common.h val = (GET_16BIT);\ val 455 libavutil/common.h unsigned int hi = val - 0xD800;\ val 457 libavutil/common.h val = (GET_16BIT) - 0xDC00;\ val 458 libavutil/common.h if (val > 0x3FFU || hi > 0x3FFU)\ val 460 libavutil/common.h val += (hi<<10) + 0x10000;\ val 480 libavutil/common.h #define PUT_UTF8(val, tmp, PUT_BYTE)\ val 483 libavutil/common.h uint32_t in = val;\ val 514 libavutil/common.h #define PUT_UTF16(val, tmp, PUT_16BIT)\ val 516 libavutil/common.h uint32_t in = val;\ val 161 libavutil/dict.c char *val = NULL; val 166 libavutil/dict.c val = av_get_token(buf, pairs_sep); val 169 libavutil/dict.c if (key && *key && val && *val) val 170 libavutil/dict.c ret = av_dict_set(pm, key, val, flags); val 175 libavutil/dict.c av_freep(&val); val 123 libavutil/frame.c const char *av_get_colorspace_name(enum AVColorSpace val) val 134 libavutil/frame.c if ((unsigned)val >= FF_ARRAY_ELEMS(name)) val 136 libavutil/frame.c return name[val]; val 690 libavutil/frame.h void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val); val 694 libavutil/frame.h void av_frame_set_pkt_duration (AVFrame *frame, int64_t val); val 698 libavutil/frame.h void av_frame_set_pkt_pos (AVFrame *frame, int64_t val); val 702 libavutil/frame.h void av_frame_set_channel_layout (AVFrame *frame, int64_t val); val 706 libavutil/frame.h void av_frame_set_channels (AVFrame *frame, int val); val 710 libavutil/frame.h void av_frame_set_sample_rate (AVFrame *frame, int val); val 714 libavutil/frame.h void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); val 718 libavutil/frame.h void av_frame_set_decode_error_flags (AVFrame *frame, int val); val 722 libavutil/frame.h void av_frame_set_pkt_size(AVFrame *frame, int val); val 732 libavutil/frame.h void av_frame_set_colorspace(AVFrame *frame, enum AVColorSpace val); val 736 libavutil/frame.h void av_frame_set_color_range(AVFrame *frame, enum AVColorRange val); val 743 libavutil/frame.h const char *av_get_colorspace_name(enum AVColorSpace val); val 125 libavutil/hwcontext_vulkan.c #define ADD_VAL_TO_LIST(list, count, val) \ val 132 libavutil/hwcontext_vulkan.c list[count - 1] = av_strdup(val); \ val 245 libavutil/intreadwrite.h # define AV_WB16(p, val) do { \ val 246 libavutil/intreadwrite.h uint16_t d = (val); \ val 258 libavutil/intreadwrite.h # define AV_WL16(p, val) do { \ val 259 libavutil/intreadwrite.h uint16_t d = (val); \ val 273 libavutil/intreadwrite.h # define AV_WB32(p, val) do { \ val 274 libavutil/intreadwrite.h uint32_t d = (val); \ val 290 libavutil/intreadwrite.h # define AV_WL32(p, val) do { \ val 291 libavutil/intreadwrite.h uint32_t d = (val); \ val 311 libavutil/intreadwrite.h # define AV_WB64(p, val) do { \ val 312 libavutil/intreadwrite.h uint64_t d = (val); \ val 336 libavutil/intreadwrite.h # define AV_WL64(p, val) do { \ val 337 libavutil/intreadwrite.h uint64_t d = (val); \ val 163 libavutil/mem.c void *val; val 170 libavutil/mem.c memcpy(&val, ptr, sizeof(val)); val 171 libavutil/mem.c val = av_realloc(val, size); val 173 libavutil/mem.c if (!val) { val 178 libavutil/mem.c memcpy(ptr, &val, sizeof(val)); val 208 libavutil/mem.c void *val; val 210 libavutil/mem.c memcpy(&val, ptr, sizeof(val)); val 211 libavutil/mem.c val = av_realloc_f(val, nmemb, size); val 212 libavutil/mem.c memcpy(ptr, &val, sizeof(val)); val 213 libavutil/mem.c if (!val && nmemb && size) val 230 libavutil/mem.c void *val; val 232 libavutil/mem.c memcpy(&val, arg, sizeof(val)); val 233 libavutil/mem.c memcpy(arg, &(void *){ NULL }, sizeof(val)); val 234 libavutil/mem.c av_free(val); val 29 libavutil/mem_internal.h void *val; val 31 libavutil/mem_internal.h memcpy(&val, ptr, sizeof(val)); val 33 libavutil/mem_internal.h av_assert0(val || !min_size); val 38 libavutil/mem_internal.h val = zero_realloc ? av_mallocz(min_size) : av_malloc(min_size); val 39 libavutil/mem_internal.h memcpy(ptr, &val, sizeof(val)); val 40 libavutil/mem_internal.h if (!val) val 88 libavutil/mips/generic_macros_msa.h #define SH(val, pdst) *(uint16_t *)(pdst) = (val); val 89 libavutil/mips/generic_macros_msa.h #define SW(val, pdst) *(uint32_t *)(pdst) = (val); val 90 libavutil/mips/generic_macros_msa.h #define SD(val, pdst) *(uint64_t *)(pdst) = (val); val 156 libavutil/mips/generic_macros_msa.h #define SH(val, pdst) \ val 159 libavutil/mips/generic_macros_msa.h uint16_t val_sh_m = (val); \ val 169 libavutil/mips/generic_macros_msa.h #define SW(val, pdst) \ val 172 libavutil/mips/generic_macros_msa.h uint32_t val_sw_m = (val); \ val 182 libavutil/mips/generic_macros_msa.h #define SD(val, pdst) \ val 187 libavutil/mips/generic_macros_msa.h val0_sd_m = (uint32_t) ((val) & 0x00000000FFFFFFFF); \ val 188 libavutil/mips/generic_macros_msa.h val1_sd_m = (uint32_t) (((val) >> 32) & 0x00000000FFFFFFFF); \ val 180 libavutil/opt.c static int set_string_binary(void *obj, const AVOption *o, const char *val, uint8_t **dst) val 189 libavutil/opt.c if (!val || !(len = strlen(val))) val 199 libavutil/opt.c while (*val) { val 200 libavutil/opt.c int a = hexchar2int(*val++); val 201 libavutil/opt.c int b = hexchar2int(*val++); val 214 libavutil/opt.c static int set_string(void *obj, const AVOption *o, const char *val, uint8_t **dst) val 217 libavutil/opt.c *dst = av_strdup(val); val 229 libavutil/opt.c static int set_string_number(void *obj, void *target_obj, const AVOption *o, const char *val, void *dst) val 236 libavutil/opt.c if (sscanf(val, "%d%*1[:/]%d%c", &num, &den, &c) == 2) { val 251 libavutil/opt.c if (*val == '+' || *val == '-') val 252 libavutil/opt.c cmd = *(val++); val 253 libavutil/opt.c for (; i < sizeof(buf) - 1 && val[i] && val[i] != '+' && val[i] != '-'; i++) val 254 libavutil/opt.c buf[i] = val[i]; val 264 libavutil/opt.c const AVOption *o_named = av_opt_find(target_obj, i ? buf : val, o->unit, 0, search_flags); val 295 libavutil/opt.c res = av_expr_parse_and_eval(&d, i ? buf : val, const_names, val 298 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\"\n", val); val 313 libavutil/opt.c val += i; val 314 libavutil/opt.c if (!i || !*val) val 319 libavutil/opt.c static int set_string_image_size(void *obj, const AVOption *o, const char *val, int *dst) val 323 libavutil/opt.c if (!val || !strcmp(val, "none")) { val 328 libavutil/opt.c ret = av_parse_video_size(dst, dst + 1, val); val 330 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as image size\n", val); val 334 libavutil/opt.c static int set_string_video_rate(void *obj, const AVOption *o, const char *val, AVRational *dst) val 336 libavutil/opt.c int ret = av_parse_video_rate(dst, val); val 338 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as video rate\n", val); val 342 libavutil/opt.c static int set_string_color(void *obj, const AVOption *o, const char *val, uint8_t *dst) val 346 libavutil/opt.c if (!val) { val 349 libavutil/opt.c ret = av_parse_color(dst, val, -1, obj); val 351 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as color\n", val); val 357 libavutil/opt.c static const char *get_bool_name(int val) val 359 libavutil/opt.c if (val < 0) val 361 libavutil/opt.c return val ? "true" : "false"; val 364 libavutil/opt.c static int set_string_bool(void *obj, const AVOption *o, const char *val, int *dst) val 368 libavutil/opt.c if (!val) val 371 libavutil/opt.c if (!strcmp(val, "auto")) { val 373 libavutil/opt.c } else if (av_match_name(val, "true,y,yes,enable,enabled,on")) { val 375 libavutil/opt.c } else if (av_match_name(val, "false,n,no,disable,disabled,off")) { val 379 libavutil/opt.c n = strtol(val, &end, 10); val 380 libavutil/opt.c if (val + strlen(val) != end) val 391 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as boolean\n", val); val 395 libavutil/opt.c static int set_string_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst, val 400 libavutil/opt.c if (!val || !strcmp(val, "none")) { val 403 libavutil/opt.c fmt = get_fmt(val); val 406 libavutil/opt.c fmt = strtol(val, &tail, 0); val 409 libavutil/opt.c "Unable to parse option value \"%s\" as %s\n", val, desc); val 435 libavutil/opt.c static int set_string_pixel_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst) val 437 libavutil/opt.c return set_string_fmt(obj, o, val, dst, val 441 libavutil/opt.c static int set_string_sample_fmt(void *obj, const AVOption *o, const char *val, uint8_t *dst) val 443 libavutil/opt.c return set_string_fmt(obj, o, val, dst, val 447 libavutil/opt.c static int set_string_dict(void *obj, const AVOption *o, const char *val, uint8_t **dst) val 451 libavutil/opt.c if (val) { val 452 libavutil/opt.c int ret = av_dict_parse_string(&options, val, "=", ":", 0); val 465 libavutil/opt.c int av_opt_set(void *obj, const char *name, const char *val, int search_flags) val 472 libavutil/opt.c if (!val && (o->type != AV_OPT_TYPE_STRING && val 488 libavutil/opt.c return set_string_bool(obj, o, val, dst); val 490 libavutil/opt.c return set_string(obj, o, val, dst); val 492 libavutil/opt.c return set_string_binary(obj, o, val, dst); val 500 libavutil/opt.c return set_string_number(obj, target_obj, o, val, dst); val 502 libavutil/opt.c return set_string_image_size(obj, o, val, dst); val 505 libavutil/opt.c ret = set_string_video_rate(obj, o, val, &tmp); val 511 libavutil/opt.c return set_string_pixel_fmt(obj, o, val, dst); val 513 libavutil/opt.c return set_string_sample_fmt(obj, o, val, dst); val 517 libavutil/opt.c if (val) { val 518 libavutil/opt.c if ((ret = av_parse_time(&usecs, val, 1)) < 0) { val 519 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as duration\n", val); val 532 libavutil/opt.c return set_string_color(obj, o, val, dst); val 534 libavutil/opt.c if (!val || !strcmp(val, "none")) { val 537 libavutil/opt.c int64_t cl = av_get_channel_layout(val); val 539 libavutil/opt.c av_log(obj, AV_LOG_ERROR, "Unable to parse option value \"%s\" as channel layout\n", val); val 547 libavutil/opt.c return set_string_dict(obj, o, val, dst); val 556 libavutil/opt.c const char *val, vartype *name ## _out) \ val 560 libavutil/opt.c return set_string_number(obj, obj, o, val, name ## _out); \ val 586 libavutil/opt.c int av_opt_set_int(void *obj, const char *name, int64_t val, int search_flags) val 588 libavutil/opt.c return set_number(obj, name, 1, 1, val, search_flags); val 591 libavutil/opt.c int av_opt_set_double(void *obj, const char *name, double val, int search_flags) val 593 libavutil/opt.c return set_number(obj, name, val, 1, 1, search_flags); val 596 libavutil/opt.c int av_opt_set_q(void *obj, const char *name, AVRational val, int search_flags) val 598 libavutil/opt.c return set_number(obj, name, val.num, val.den, 1, search_flags); val 601 libavutil/opt.c int av_opt_set_bin(void *obj, const char *name, const uint8_t *val, int len, int search_flags) val 626 libavutil/opt.c memcpy(ptr, val, len); val 653 libavutil/opt.c int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags) val 665 libavutil/opt.c if (val.num <= 0 || val.den <= 0) val 667 libavutil/opt.c return set_number(obj, name, val.num, val.den, 1, search_flags); val 725 libavutil/opt.c int av_opt_set_dict_val(void *obj, const char *name, const AVDictionary *val, val 739 libavutil/opt.c av_dict_copy(dst, val, 0); val 1391 libavutil/opt.c double val; val 1392 libavutil/opt.c val = opt->default_val.dbl; val 1393 libavutil/opt.c write_number(s, opt, dst, val, 1, 1); val 1397 libavutil/opt.c AVRational val; val 1398 libavutil/opt.c val = av_d2q(opt->default_val.dbl, INT_MAX); val 1399 libavutil/opt.c write_number(s, opt, dst, 1, val.den, val.num); val 1448 libavutil/opt.c char *val; val 1456 libavutil/opt.c val = av_get_token(buf, pairs_sep); val 1457 libavutil/opt.c if (!val) { val 1467 libavutil/opt.c av_log(ctx, AV_LOG_DEBUG, "Setting entry with key '%s' to value '%s'\n", key, val); val 1469 libavutil/opt.c ret = av_opt_set(ctx, key, val, AV_OPT_SEARCH_CHILDREN); val 1474 libavutil/opt.c av_free(val); val 1542 libavutil/opt.c char *key = NULL, *val; val 1548 libavutil/opt.c if (!(val = av_get_token(&opts, pairs_sep))) { val 1554 libavutil/opt.c *rval = val; val 548 libavutil/opt.h int av_opt_eval_flags (void *obj, const AVOption *o, const char *val, int *flags_out); val 549 libavutil/opt.h int av_opt_eval_int (void *obj, const AVOption *o, const char *val, int *int_out); val 550 libavutil/opt.h int av_opt_eval_int64 (void *obj, const AVOption *o, const char *val, int64_t *int64_out); val 551 libavutil/opt.h int av_opt_eval_float (void *obj, const AVOption *o, const char *val, float *float_out); val 552 libavutil/opt.h int av_opt_eval_double(void *obj, const AVOption *o, const char *val, double *double_out); val 553 libavutil/opt.h int av_opt_eval_q (void *obj, const AVOption *o, const char *val, AVRational *q_out); val 686 libavutil/opt.h int av_opt_set (void *obj, const char *name, const char *val, int search_flags); val 687 libavutil/opt.h int av_opt_set_int (void *obj, const char *name, int64_t val, int search_flags); val 688 libavutil/opt.h int av_opt_set_double (void *obj, const char *name, double val, int search_flags); val 689 libavutil/opt.h int av_opt_set_q (void *obj, const char *name, AVRational val, int search_flags); val 690 libavutil/opt.h int av_opt_set_bin (void *obj, const char *name, const uint8_t *val, int size, int search_flags); val 694 libavutil/opt.h int av_opt_set_video_rate(void *obj, const char *name, AVRational val, int search_flags); val 700 libavutil/opt.h int av_opt_set_dict_val(void *obj, const char *name, const AVDictionary *val, int search_flags); val 712 libavutil/opt.h #define av_opt_set_int_list(obj, name, val, term, flags) \ val 713 libavutil/opt.h (av_int_list_length(val, term) > INT_MAX / sizeof(*(val)) ? \ val 715 libavutil/opt.h av_opt_set_bin(obj, name, (const uint8_t *)(val), \ val 716 libavutil/opt.h av_int_list_length(val, term) * sizeof(*(val)), flags)) val 453 libavutil/parseutils.c int i, val, c; val 457 libavutil/parseutils.c val = 0; val 462 libavutil/parseutils.c val = (val * 10) + c - '0'; val 468 libavutil/parseutils.c if (val < n_min || val > n_max) val 471 libavutil/parseutils.c return val; val 491 libavutil/parseutils.c int c, val; val 507 libavutil/parseutils.c val = date_get_num(&p, 0, c == 'H' ? 23 : INT_MAX, c == 'H' ? 2 : 4); val 509 libavutil/parseutils.c if (val == -1) val 511 libavutil/parseutils.c dt->tm_hour = val; val 514 libavutil/parseutils.c val = date_get_num(&p, 0, 59, 2); val 515 libavutil/parseutils.c if (val == -1) val 517 libavutil/parseutils.c dt->tm_min = val; val 520 libavutil/parseutils.c val = date_get_num(&p, 0, 59, 2); val 521 libavutil/parseutils.c if (val == -1) val 523 libavutil/parseutils.c dt->tm_sec = val; val 526 libavutil/parseutils.c val = date_get_num(&p, 0, 9999, 4); val 527 libavutil/parseutils.c if (val == -1) val 529 libavutil/parseutils.c dt->tm_year = val - 1900; val 532 libavutil/parseutils.c val = date_get_num(&p, 1, 12, 2); val 533 libavutil/parseutils.c if (val == -1) val 535 libavutil/parseutils.c dt->tm_mon = val - 1; val 538 libavutil/parseutils.c val = date_get_num(&p, 1, 31, 2); val 539 libavutil/parseutils.c if (val == -1) val 541 libavutil/parseutils.c dt->tm_mday = val; val 551 libavutil/parseutils.c val = date_get_month(&p); val 552 libavutil/parseutils.c if (val == -1) val 554 libavutil/parseutils.c dt->tm_mon = val; val 57 libavutil/pixdesc.c int val = (*p >> shift) & mask; val 59 libavutil/pixdesc.c val = data[1][4*val + c]; val 63 libavutil/pixdesc.c if (dst_element_size == 4) *dst32++ = val; val 64 libavutil/pixdesc.c else *dst16++ = val; val 76 libavutil/pixdesc.c unsigned val; val 77 libavutil/pixdesc.c if (is_8bit) val = *p; val 78 libavutil/pixdesc.c else if(is_16bit) val = flags & AV_PIX_FMT_FLAG_BE ? AV_RB16(p) : AV_RL16(p); val 79 libavutil/pixdesc.c else val = flags & AV_PIX_FMT_FLAG_BE ? AV_RB32(p) : AV_RL32(p); val 80 libavutil/pixdesc.c val = (val >> shift) & mask; val 82 libavutil/pixdesc.c val = data[1][4 * val + c]; val 84 libavutil/pixdesc.c if (dst_element_size == 4) *dst32++ = val; val 85 libavutil/pixdesc.c else *dst16++ = val; val 141 libavutil/pixdesc.c uint16_t val = AV_RB16(p) | (s << shift); val 142 libavutil/pixdesc.c AV_WB16(p, val); val 144 libavutil/pixdesc.c uint16_t val = AV_RL16(p) | (s << shift); val 145 libavutil/pixdesc.c AV_WL16(p, val); val 149 libavutil/pixdesc.c uint32_t val = AV_RB32(p) | (s << shift); val 150 libavutil/pixdesc.c AV_WB32(p, val); val 152 libavutil/pixdesc.c uint32_t val = AV_RL32(p) | (s << shift); val 153 libavutil/pixdesc.c AV_WL32(p, val); val 207 libavutil/softfloat.h static av_always_inline SoftFloat av_sqrt_sf(SoftFloat val) val 211 libavutil/softfloat.h if (val.mant == 0) val 212 libavutil/softfloat.h val.exp = MIN_EXP; val 213 libavutil/softfloat.h else if (val.mant < 0) val 217 libavutil/softfloat.h tabIndex = (val.mant - 0x20000000) >> 20; val 219 libavutil/softfloat.h rem = val.mant & 0xFFFFF; val 220 libavutil/softfloat.h val.mant = (int)(((int64_t)av_sqrttbl_sf[tabIndex] * (0x100000 - rem) + val 223 libavutil/softfloat.h val.mant = (int)(((int64_t)av_sqr_exp_multbl_sf[val.exp & 1] * val.mant + val 226 libavutil/softfloat.h if (val.mant < 0x40000000) val 227 libavutil/softfloat.h val.exp -= 2; val 229 libavutil/softfloat.h val.mant >>= 1; val 231 libavutil/softfloat.h val.exp = (val.exp >> 1) + 1; val 234 libavutil/softfloat.h return val; val 31 libavutil/tests/dict.c static void test_separators(const AVDictionary *m, const char pair, const char val) val 35 libavutil/tests/dict.c char vals[] = {val, '\0'}; val 42 libavutil/tests/dict.c av_dict_get_string(dict, &buffer, val, pair); val 801 libpostproc/postprocess.c int val= strtol(options[o], &tail, 0); val 805 libpostproc/postprocess.c if(o==0) ppMode->baseDcDiff= val; val 806 libpostproc/postprocess.c else ppMode->flatnessThreshold= val; val 815 libpostproc/postprocess.c int val= strtol(options[o], &tail, 0); val 819 libpostproc/postprocess.c ppMode->forcedQuant= val; val 59 libswresample/aarch64/resample_init.c FELEM2 val = 0; \ val 62 libswresample/aarch64/resample_init.c ff_resample_common_apply_filter_x8_##TYPE##_neon(&val, &src[sample_index], \ val 67 libswresample/aarch64/resample_init.c ff_resample_common_apply_filter_x4_##TYPE##_neon(&val, &src[sample_index], \ val 72 libswresample/aarch64/resample_init.c val += src[sample_index + i] * (FELEM2)filter[i]; \ val 74 libswresample/aarch64/resample_init.c OUT(dst[dst_index], val); \ val 59 libswresample/arm/resample_init.c FELEM2 val = 0; \ val 62 libswresample/arm/resample_init.c ff_resample_common_apply_filter_x8_##TYPE##_neon(&val, &src[sample_index], \ val 67 libswresample/arm/resample_init.c ff_resample_common_apply_filter_x4_##TYPE##_neon(&val, &src[sample_index], \ val 72 libswresample/arm/resample_init.c val += src[sample_index + i] * (FELEM2)filter[i]; \ val 74 libswresample/arm/resample_init.c OUT(dst[dst_index], val); \ val 107 libswresample/resample_template.c FELEM2 val = FOFFSET; val 111 libswresample/resample_template.c val += src[sample_index + i ] * (FELEM2)filter[i ]; val 115 libswresample/resample_template.c val += src[sample_index + i ] * (FELEM2)filter[i ]; val 117 libswresample/resample_template.c OUT(dst[dst_index], val + (FELEML)val2); val 119 libswresample/resample_template.c OUT(dst[dst_index], val + val2); val 164 libswresample/resample_template.c FELEM2 val = FOFFSET, v2 = FOFFSET; val 168 libswresample/resample_template.c val += src[sample_index + i] * (FELEM2)filter[i]; val 172 libswresample/resample_template.c val += (v2 - val) * (FELEML) frac / c->src_incr; val 175 libswresample/resample_template.c val += (v2 - val) * inv_src_incr * frac; val 177 libswresample/resample_template.c val += (v2 - val) / c->src_incr * frac; val 180 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 217 libswscale/output.c int i, val; val 221 libswscale/output.c val = src[i] + (1 << (shift - 1)); val 222 libswscale/output.c output_pixel(&val_uint, val, 0, uint); val 233 libswscale/output.c int i, val; val 237 libswscale/output.c val = src[i] + (1 << (shift - 1)); val 238 libswscale/output.c output_pixel(&val_uint, val, 0, uint); val 250 libswscale/output.c int i, j, val; val 254 libswscale/output.c val = (1 << (shift - 1)) - 0x40000000; val 256 libswscale/output.c val += src[j][i] * (unsigned)filter[j]; val 258 libswscale/output.c output_pixel(&val_uint, val, 0x8000, int); val 270 libswscale/output.c int i, j, val; val 274 libswscale/output.c val = (1 << (shift - 1)) - 0x40000000; val 276 libswscale/output.c val += src[j][i] * (unsigned)filter[j]; val 278 libswscale/output.c output_pixel(&val_uint, val, 0x8000, int); val 312 libswscale/output.c #define output_pixel(pos, val) \ val 314 libswscale/output.c AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \ val 316 libswscale/output.c AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \ val 327 libswscale/output.c int val = src[i] + (1 << (shift - 1)); val 328 libswscale/output.c output_pixel(&dest[i], val); val 341 libswscale/output.c int val = 1 << (shift - 1); val 345 libswscale/output.c val += src[j][i] * filter[j]; val 347 libswscale/output.c output_pixel(&dest[i], val); val 386 libswscale/output.c int val = dither[(i + offset) & 7] << 12; val 389 libswscale/output.c val += src[j][i] * filter[j]; val 391 libswscale/output.c dest[i]= av_clip_uint8(val>>19); val 400 libswscale/output.c int val = (src[i] + dither[(i + offset) & 7]) >> 7; val 401 libswscale/output.c dest[i]= av_clip_uint8(val); val 443 libswscale/output.c #define output_pixel(pos, val) \ val 445 libswscale/output.c AV_WB16(pos, av_clip_uintp2(val >> shift, 10) << 6); \ val 447 libswscale/output.c AV_WL16(pos, av_clip_uintp2(val >> shift, 10) << 6); \ val 458 libswscale/output.c int val = src[i] + (1 << (shift - 1)); val 459 libswscale/output.c output_pixel(&dest[i], val); val 471 libswscale/output.c int val = 1 << (shift - 1); val 474 libswscale/output.c val += src[j][i] * filter[j]; val 476 libswscale/output.c output_pixel(&dest[i], val); val 534 libswscale/output.c #define accumulate_bit(acc, val) \ val 536 libswscale/output.c acc |= (val) >= 234 val 887 libswscale/output.c #define output_pixel(pos, val) \ val 889 libswscale/output.c AV_WB16(pos, val); \ val 891 libswscale/output.c AV_WL16(pos, val); \ val 110 libswscale/ppc/swscale_altivec.c #define output_pixel(pos, val, bias, signedness) \ val 112 libswscale/ppc/swscale_altivec.c AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ val 114 libswscale/ppc/swscale_altivec.c AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ val 123 libswscale/ppc/swscale_altivec.c int i, val; val 127 libswscale/ppc/swscale_altivec.c val = src[i] + (1 << (shift - 1)); val 128 libswscale/ppc/swscale_altivec.c output_pixel(&val_uint, val, 0, uint); val 139 libswscale/ppc/swscale_altivec.c int i, val; val 143 libswscale/ppc/swscale_altivec.c val = src[i] + (1 << (shift - 1)); val 144 libswscale/ppc/swscale_altivec.c output_pixel(&val_uint, val, 0, uint); val 29 libswscale/ppc/swscale_ppc_template.c LOCAL_ALIGNED(16, int, val, [16]); val 37 libswscale/ppc/swscale_ppc_template.c val[i] = dither[(x + i + offset) & 7] << 12; val 39 libswscale/ppc/swscale_ppc_template.c vo1 = vec_ld(0, val); val 40 libswscale/ppc/swscale_ppc_template.c vo2 = vec_ld(16, val); val 41 libswscale/ppc/swscale_ppc_template.c vo3 = vec_ld(32, val); val 42 libswscale/ppc/swscale_ppc_template.c vo4 = vec_ld(48, val); val 108 libswscale/ppc/swscale_ppc_template.c register int val = 0; val 110 libswscale/ppc/swscale_ppc_template.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 111 libswscale/ppc/swscale_ppc_template.c dst[i] = FFMIN(val >> 7, (1 << 15) - 1); val 95 libswscale/ppc/swscale_vsx.c int val = (src[i] + dither[(i + offset) & 7]) >> 7; val 96 libswscale/ppc/swscale_vsx.c dest[i] = av_clip_uint8(val); val 105 libswscale/ppc/swscale_vsx.c LOCAL_ALIGNED(16, int16_t, val, [16]); val 111 libswscale/ppc/swscale_vsx.c val[j] = dither[(dst_u + offset + j) & 7]; val 114 libswscale/ppc/swscale_vsx.c ditherleft = vec_ld(0, val); val 115 libswscale/ppc/swscale_vsx.c ditherright = vec_ld(0, &val[8]); val 138 libswscale/ppc/swscale_vsx.c #define output_pixel(pos, val) \ val 140 libswscale/ppc/swscale_vsx.c AV_WB16(pos, av_clip_uintp2(val >> shift, output_bits)); \ val 142 libswscale/ppc/swscale_vsx.c AV_WL16(pos, av_clip_uintp2(val >> shift, output_bits)); \ val 152 libswscale/ppc/swscale_vsx.c int val = src[i] + (1 << (shift - 1)); val 153 libswscale/ppc/swscale_vsx.c output_pixel(&dest[i], val); val 195 libswscale/ppc/swscale_vsx.c int val = 1 << (shift - 1); val 199 libswscale/ppc/swscale_vsx.c val += src[j][i] * filter[j]; val 201 libswscale/ppc/swscale_vsx.c output_pixel(&dest[i], val); val 259 libswscale/ppc/swscale_vsx.c #define output_pixel(pos, val, bias, signedness) \ val 261 libswscale/ppc/swscale_vsx.c AV_WB16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ val 263 libswscale/ppc/swscale_vsx.c AV_WL16(pos, bias + av_clip_ ## signedness ## 16(val >> shift)); \ val 273 libswscale/ppc/swscale_vsx.c int val = src[i] + (1 << (shift - 1)); val 274 libswscale/ppc/swscale_vsx.c output_pixel(&dest[i], val, 0, uint); val 323 libswscale/ppc/swscale_vsx.c int val = 1 << (shift - 1); val 331 libswscale/ppc/swscale_vsx.c val -= 0x40000000; val 333 libswscale/ppc/swscale_vsx.c val += src[j][i] * (unsigned)filter[j]; val 335 libswscale/ppc/swscale_vsx.c output_pixel(&dest[i], val, 0x8000, int); val 1893 libswscale/ppc/swscale_vsx.c int val = 0; val 1895 libswscale/ppc/swscale_vsx.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 1897 libswscale/ppc/swscale_vsx.c dst[i] = FFMIN(val >> 3, (1 << 19) - 1); // the cubic equation does overflow ... val 1960 libswscale/ppc/swscale_vsx.c int val = 0; val 1963 libswscale/ppc/swscale_vsx.c val += src[srcPos + j] * filter[filterSize * i + j]; val 1966 libswscale/ppc/swscale_vsx.c dst[i] = FFMIN(val >> sh, (1 << 19) - 1); val 2036 libswscale/ppc/swscale_vsx.c int val = 0; val 2039 libswscale/ppc/swscale_vsx.c val += src[srcPos + j] * filter[filterSize * i + j]; val 2042 libswscale/ppc/swscale_vsx.c dst[i] = FFMIN(val >> sh, (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 86 libswscale/swscale.c int val = 0; val 89 libswscale/swscale.c val += src[srcPos + j] * filter[filterSize * i + j]; val 92 libswscale/swscale.c dst[i] = FFMIN(val >> sh, (1 << 19) - 1); val 114 libswscale/swscale.c int val = 0; val 117 libswscale/swscale.c val += src[srcPos + j] * filter[filterSize * i + j]; val 120 libswscale/swscale.c dst[i] = FFMIN(val >> sh, (1 << 15) - 1); val 133 libswscale/swscale.c int val = 0; val 135 libswscale/swscale.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 137 libswscale/swscale.c dst[i] = FFMIN(val >> 7, (1 << 15) - 1); // the cubic equation does overflow ... val 150 libswscale/swscale.c int val = 0; val 152 libswscale/swscale.c val += ((int)src[srcPos + j]) * filter[filterSize * i + j]; val 154 libswscale/swscale.c dst[i] = FFMIN(val >> 3, (1 << 19) - 1); // the cubic equation does overflow ... val 115 libswscale/swscale_unscaled.c uint8_t val) val 120 libswscale/swscale_unscaled.c memset(ptr, val, width); val 73 tests/api/api-threadmessage-test.c char *val; val 86 tests/api/api-threadmessage-test.c val = av_asprintf("frame %d/%d from sender %d", val 88 tests/api/api-threadmessage-test.c if (!val) { val 93 tests/api/api-threadmessage-test.c ret = av_dict_set(&meta, "sig", val, AV_DICT_DONT_STRDUP_VAL); 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 100 tests/checkasm/vf_blend.c #define check_and_report(name, val, depth) \ val 101 tests/checkasm/vf_blend.c param.mode = val; \ val 308 tests/checkasm/vp8dsp.c int val = (i == -1 || i == 2) ? 0 : 0xff; val 311 tests/checkasm/vp8dsp.c src[i ] = val; val 312 tests/checkasm/vp8dsp.c src[i * SRC_BUF_STRIDE] = val; val 38 tests/dnn/dnn-layer-maximum-test.c params.val.y = 2.3; val 52 tests/dnn/dnn-layer-maximum-test.c float expected_output = input[i] > params.val.y ? input[i] : params.val.y; 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 585 tools/crypto_bench.c unsigned i, j, val; val 595 tools/crypto_bench.c sscanf(impl->output + i * 2, "%02x", &val); val 596 tools/crypto_bench.c outref[i] = val; val 61 tools/qt-faststart.c #define AV_WB32(p, val) { \ val 62 tools/qt-faststart.c ((uint8_t*)(p))[0] = ((val) >> 24) & 0xff; \ val 63 tools/qt-faststart.c ((uint8_t*)(p))[1] = ((val) >> 16) & 0xff; \ val 64 tools/qt-faststart.c ((uint8_t*)(p))[2] = ((val) >> 8) & 0xff; \ val 65 tools/qt-faststart.c ((uint8_t*)(p))[3] = (val) & 0xff; \ val 68 tools/qt-faststart.c #define AV_WB64(p, val) { \ val 69 tools/qt-faststart.c AV_WB32(p, (val) >> 32) \ val 70 tools/qt-faststart.c AV_WB32(p + 4, 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);