Home
last modified time | relevance | path

Searched refs:sign_extend (Results 1 – 25 of 71) sorted by relevance

123

/third_party/ffmpeg/libavcodec/
Dadpcm.c470 nibble = sign_extend(nibble & 0xF, 4); in adpcm_ima_cunning_expand_nibble()
707 t = sign_extend(d, 4); in xa_decode()
738 t = sign_extend(d >> 4, 4); in xa_decode()
820 int sample = sign_extend(nibble, 4) * (1 << shift); in ff_adpcm_argo_expand_nibble()
1113 predictor = sign_extend(bytestream2_get_be16u(&gb), 16); in adpcm_decode_frame()
1147 cs->predictor = samples_p[i][0] = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1149 cs->step_index = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1197 c->status[i].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1200 c->status[i].step_index = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1220 c->status[i].predictor = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
[all …]
Daptxdec.c96 channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 7); in aptx_unpack_codeword()
97 channel->quantize[1].quantized_sample = sign_extend(codeword >> 7, 4); in aptx_unpack_codeword()
98 channel->quantize[2].quantized_sample = sign_extend(codeword >> 11, 2); in aptx_unpack_codeword()
99 channel->quantize[3].quantized_sample = sign_extend(codeword >> 13, 3); in aptx_unpack_codeword()
106 channel->quantize[0].quantized_sample = sign_extend(codeword >> 0, 9); in aptxhd_unpack_codeword()
107 channel->quantize[1].quantized_sample = sign_extend(codeword >> 9, 6); in aptxhd_unpack_codeword()
108 channel->quantize[2].quantized_sample = sign_extend(codeword >> 15, 4); in aptxhd_unpack_codeword()
109 channel->quantize[3].quantized_sample = sign_extend(codeword >> 19, 5); in aptxhd_unpack_codeword()
Dmv30.c309 fill = sign_extend(bytestream2_get_ne16(gbyte), 16); in decode_intra_block()
316 fill = sign_extend(bytestream2_get_ne16(gbyte), 16); in decode_intra_block()
319 block[1] = sign_extend(bytestream2_get_ne16(gbyte), 16) * qtab[1]; in decode_intra_block()
320 block[8] = sign_extend(bytestream2_get_ne16(gbyte), 16) * qtab[8]; in decode_intra_block()
321 block[9] = sign_extend(bytestream2_get_ne16(gbyte), 16) * qtab[9]; in decode_intra_block()
325 fill = sign_extend(bytestream2_get_ne16(gbyte), 16); in decode_intra_block()
329 block[zigzag[i]] = sign_extend(bytestream2_get_ne16(gbyte), 16) * qtab[zigzag[i]]; in decode_intra_block()
350 fill = sign_extend(bytestream2_get_ne16(gbyte), 16); in decode_inter_block()
357 fill = sign_extend(bytestream2_get_ne16(gbyte), 16); in decode_inter_block()
360 block[1] = sign_extend(bytestream2_get_ne16(gbyte), 16) * qtab[1]; in decode_inter_block()
[all …]
Ddpcm.c270 predictor[1] = sign_extend(bytestream2_get_byteu(&gb) << 8, 16); in dpcm_decode_frame()
271 predictor[0] = sign_extend(bytestream2_get_byteu(&gb) << 8, 16); in dpcm_decode_frame()
273 predictor[0] = sign_extend(bytestream2_get_le16u(&gb), 16); in dpcm_decode_frame()
291 predictor[ch] = sign_extend(bytestream2_get_le16u(&gb), 16); in dpcm_decode_frame()
311 predictor[ch] = sign_extend(bytestream2_get_le16u(&gb), 16); in dpcm_decode_frame()
322 diff = sign_extend((diff &~ 3) << 8, 16); in dpcm_decode_frame()
Dflicvideo.c278 line_packets = sign_extend(bytestream2_get_le16(&g2), 16); in flic_decode_frame_8BPP()
304 byte_run = sign_extend(bytestream2_get_byte(&g2), 8); in flic_decode_frame_8BPP()
353 byte_run = sign_extend(bytestream2_get_byte(&g2),8); in flic_decode_frame_8BPP()
396 byte_run = sign_extend(bytestream2_get_byte(&g2), 8); in flic_decode_frame_8BPP()
576 line_packets = sign_extend(bytestream2_get_le16(&g2), 16); in flic_decode_frame_15_16BPP()
594 byte_run = sign_extend(bytestream2_get_byte(&g2), 8); in flic_decode_frame_15_16BPP()
642 byte_run = sign_extend(bytestream2_get_byte(&g2), 8); in flic_decode_frame_15_16BPP()
698 byte_run = sign_extend(bytestream2_get_byte(&g2), 8); in flic_decode_frame_15_16BPP()
876 line_packets = sign_extend(bytestream2_get_le16(&g2), 16); in flic_decode_frame_24BPP()
894 byte_run = sign_extend(bytestream2_get_byte(&g2), 8); in flic_decode_frame_24BPP()
[all …]
Dmathops.h131 #ifndef sign_extend
132 static inline av_const int sign_extend(int val, unsigned bits) in sign_extend() function
Dget_bits.h202 #define SHOW_SBITS_LE(name, gb, num) sign_extend(name ## _cache, num)
352 sign = sign_extend(~cache, n) >> 31; in get_xbits_le()
364 tmp = sign_extend(get_bits(s, n), n); in get_sbits()
596 return sign_extend(get_bits_long(s, n), n); in get_sbits_long()
Dpafaudio.c65 cb[i] = sign_extend(AV_RL16(src + i * 2), 16); in paf_audio_decode()
Ddsicinaudio.c108 delta = sign_extend(AV_RL16(buf), 16); in cinaudio_decode_frame()
Dalac.c196 buffer_out[i] = sign_extend(buffer_out[i - 1] + error_buffer[i], in lpc_prediction()
204 buffer_out[i] = sign_extend(buffer_out[i - 1] + error_buffer[i], bps); in lpc_prediction()
220 buffer_out[i] = sign_extend(val, bps); in lpc_prediction()
Dh263enc.h50 val = sign_extend(val, 6 + bit_size); in h263_get_motion_length()
Dffv1.h150 diff = sign_extend(diff, bits); in fold()
Dpixlet.c538 int32_t h = sign_extend(bytestream2_get_be32(&ctx->gb), 32); in decode_plane()
539 int32_t v = sign_extend(bytestream2_get_be32(&ctx->gb), 32); in decode_plane()
551 dst[0] = sign_extend(bytestream2_get_be16(&ctx->gb), 16); in decode_plane()
Dac3dec_fixed.c72 shift = 4 - (sign_extend(dynrng, 9) >> 5); in scale_coefs()
Datrac3plus.c467 sign_extend(delta, 4)) & 0x3F; in decode_channel_sf_idx()
491 diff = (diff + sign_extend(delta, 4)) & 0x3F; in decode_channel_sf_idx()
739 cf = sign_extend(cf, bits); in decode_qu_spectra()
1378 delta = sign_extend(delta, 3); in decode_band_numwavs()
1457 delta = sign_extend(delta, 8); in decode_tones_frequency()
1545 delta = sign_extend(delta, 5); in decode_tones_amplitude()
/third_party/ltp/tools/sparse/sparse-src/
Dbits.h36 static inline long long sign_extend(long long val, unsigned size) in sign_extend() function
49 val = sign_extend(val, size); in sign_extend_safe()
57 val = sign_extend(val, size); in bits_extend()
/third_party/ffmpeg/tests/checkasm/
Dfixed_dsp.c34 src0[i] = sign_extend(rnd(), 24); \
35 src1[i] = sign_extend(rnd(), 24); \
36 src2[i] = sign_extend(rnd(), 24); \
Dalacdsp.c36 int32_t r = sign_extend(rnd(), 24); \
75 int32_t r = sign_extend(rnd(), 24); \
Dg722dsp.c29 src0[i] = src1[i] = sign_extend(rnd(), 16); \
/third_party/node/deps/v8/src/compiler/backend/mips/
Dinstruction-scheduler-mips.cc992 int ExtractBitsLatency(int size, bool sign_extend) { in ExtractBitsLatency() argument
995 if (sign_extend) { in ExtractBitsLatency()
1001 if (sign_extend) { in ExtractBitsLatency()
1044 int Word32AtomicExchangeLatency(bool sign_extend, int size) { in Word32AtomicExchangeLatency() argument
1046 ExtractBitsLatency(size, sign_extend) + InsertBitsLatency() + in Word32AtomicExchangeLatency()
1050 int Word32AtomicCompareExchangeLatency(bool sign_extend, int size) { in Word32AtomicCompareExchangeLatency() argument
1052 ExtractBitsLatency(size, sign_extend) + BranchShortLatency() + 1; in Word32AtomicCompareExchangeLatency()
/third_party/node/deps/v8/src/compiler/backend/riscv64/
Dinstruction-scheduler-riscv64.cc1056 int ExtractBitsLatency(bool sign_extend, int size) { in ExtractBitsLatency() argument
1058 if (sign_extend) { in ExtractBitsLatency()
1076 int Word32AtomicExchangeLatency(bool sign_extend, int size) { in Word32AtomicExchangeLatency() argument
1078 ExtractBitsLatency(sign_extend, size) + InsertBitsLatency() + in Word32AtomicExchangeLatency()
1082 int Word32AtomicCompareExchangeLatency(bool sign_extend, int size) { in Word32AtomicCompareExchangeLatency() argument
1084 ExtractBitsLatency(sign_extend, size) + InsertBitsLatency() + in Word32AtomicCompareExchangeLatency()
/third_party/node/deps/v8/src/compiler/backend/mips64/
Dinstruction-scheduler-mips64.cc1222 int ExtractBitsLatency(bool sign_extend, int size) { in ExtractBitsLatency() argument
1224 if (sign_extend) { in ExtractBitsLatency()
1250 int Word32AtomicExchangeLatency(bool sign_extend, int size) { in Word32AtomicExchangeLatency() argument
1252 ExtractBitsLatency(sign_extend, size) + InsertBitsLatency() + in Word32AtomicExchangeLatency()
1256 int Word32AtomicCompareExchangeLatency(bool sign_extend, int size) { in Word32AtomicCompareExchangeLatency() argument
1258 ExtractBitsLatency(sign_extend, size) + InsertBitsLatency() + in Word32AtomicCompareExchangeLatency()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/
Dgraphics_robust_access_pass.h86 Instruction* WidenInteger(bool sign_extend, uint32_t bit_width,
/third_party/spirv-tools/source/opt/
Dgraphics_robust_access_pass.h86 Instruction* WidenInteger(bool sign_extend, uint32_t bit_width,
/third_party/skia/third_party/externals/spirv-tools/source/opt/
Dgraphics_robust_access_pass.h86 Instruction* WidenInteger(bool sign_extend, uint32_t bit_width,

123