Home
last modified time | relevance | path

Searched refs:idelta (Results 1 – 8 of 8) sorted by relevance

/third_party/libsnd/src/
Dms_adpcm.c111 static void choose_predictor (unsigned int channels, short *data, int *bpred, int *idelta) ;
217 int idelta ; in msadpcm_decode_block() local
291 idelta = chan_idelta [chan] ; in msadpcm_decode_block()
292 …chan_idelta [chan] = (AdaptationTable [bytecode] * idelta) >> 8 ; /* => / 256 => FIXED_POINT_ADAPT… in msadpcm_decode_block()
300 current = (bytecode * idelta) + predict ; in msadpcm_decode_block()
523 int chan, k, predict, bpred [2] = { 0 }, idelta [2] = { 0 }, in msadpcm_encode_block() local
526 choose_predictor (pms->channels, pms->samples, bpred, idelta) ; in msadpcm_encode_block()
532 pms->block [1] = idelta [0] & 0xFF ; in msadpcm_encode_block()
533 pms->block [2] = idelta [0] >> 8 ; in msadpcm_encode_block()
546 errordelta = (pms->samples [k] - predict) / idelta [0] ; in msadpcm_encode_block()
[all …]
/third_party/gstreamer/gstplugins_bad/gst/adpcmdec/
Dadpcmdec.c185 gint16 idelta[2]; in adpcmdec_decode_ms_block() local
192 idelta[0] = read_sample (data + 1); in adpcmdec_decode_ms_block()
206 idelta[0] = read_sample (data + 2); in adpcmdec_decode_ms_block()
207 idelta[1] = read_sample (data + 4); in adpcmdec_decode_ms_block()
232 delta = idelta[chan]; in adpcmdec_decode_ms_block()
233 idelta[chan] = (AdaptationTable[bytecode] * delta) >> 8; in adpcmdec_decode_ms_block()
234 if (idelta[chan] < 16) in adpcmdec_decode_ms_block()
235 idelta[chan] = 16; in adpcmdec_decode_ms_block()
/third_party/ffmpeg/libavcodec/
Dadpcmenc.c293 bias = c->idelta / 2; in adpcm_ms_compress_sample()
295 bias = -c->idelta / 2; in adpcm_ms_compress_sample()
297 nibble = (nibble + bias) / c->idelta; in adpcm_ms_compress_sample()
300 predictor += ((nibble & 0x08) ? (nibble - 0x10) : nibble) * c->idelta; in adpcm_ms_compress_sample()
305 c->idelta = (ff_adpcm_AdaptationTable[nibble] * c->idelta) >> 8; in adpcm_ms_compress_sample()
306 if (c->idelta < 16) in adpcm_ms_compress_sample()
307 c->idelta = 16; in adpcm_ms_compress_sample()
364 nodes[0]->step = c->idelta; in adpcm_compress_trellis()
538 c->idelta = nodes[0]->step; in adpcm_compress_trellis()
772 if (c->status[i].idelta < 16) in adpcm_encode_frame()
[all …]
Dadpcm.h43 int idelta; member
Dadpcm.c417 predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta; in adpcm_ms_expand_nibble()
421 c->idelta = (ff_adpcm_AdaptationTable[(int)nibble] * c->idelta) >> 8; in adpcm_ms_expand_nibble()
422 if (c->idelta < 16) c->idelta = 16; in adpcm_ms_expand_nibble()
423 if (c->idelta > INT_MAX/768) { in adpcm_ms_expand_nibble()
425 c->idelta = INT_MAX/768; in adpcm_ms_expand_nibble()
1129 c->status[channel].idelta = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1159 c->status[0].idelta = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
1161 c->status[1].idelta = sign_extend(bytestream2_get_le16u(&gb), 16); in adpcm_decode_frame()
/third_party/icu/icu4c/source/tools/tzcode/
Dlocaltime.c1460 register int idelta; in timesub() local
1467 idelta = tdelta; in timesub()
1468 if (idelta == 0) in timesub()
1469 idelta = (tdays < 0) ? -1 : 1; in timesub()
1471 if (increment_overflow(&newy, idelta)) in timesub()
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
Dlocaltime.c1460 register int idelta; in timesub() local
1467 idelta = tdelta; in timesub()
1468 if (idelta == 0) in timesub()
1469 idelta = (tdays < 0) ? -1 : 1; in timesub()
1471 if (increment_overflow(&newy, idelta)) in timesub()
/third_party/flutter/skia/third_party/externals/icu/source/tools/tzcode/
Dlocaltime.c1460 register int idelta; in timesub() local
1467 idelta = tdelta; in timesub()
1468 if (idelta == 0) in timesub()
1469 idelta = (tdays < 0) ? -1 : 1; in timesub()
1471 if (increment_overflow(&newy, idelta)) in timesub()