• Home
  • Raw
  • Download

Lines Matching refs:nibble

355 static inline int16_t adpcm_agm_expand_nibble(ADPCMChannelStatus *c, int8_t nibble)  in adpcm_agm_expand_nibble()  argument
360 delta = nibble & 7; in adpcm_agm_expand_nibble()
366 if ((nibble & 8) == 0) in adpcm_agm_expand_nibble()
399 static inline int16_t adpcm_ima_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int shift) in adpcm_ima_expand_nibble() argument
406 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble]; in adpcm_ima_expand_nibble()
409 sign = nibble & 8; in adpcm_ima_expand_nibble()
410 delta = nibble & 7; in adpcm_ima_expand_nibble()
425 static inline int16_t adpcm_ima_alp_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int shift) in adpcm_ima_alp_expand_nibble() argument
432 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble]; in adpcm_ima_alp_expand_nibble()
435 sign = nibble & 8; in adpcm_ima_alp_expand_nibble()
436 delta = nibble & 7; in adpcm_ima_alp_expand_nibble()
448 static inline int16_t adpcm_ima_mtf_expand_nibble(ADPCMChannelStatus *c, int nibble) in adpcm_ima_mtf_expand_nibble() argument
454 delta = step * (2 * nibble - 15); in adpcm_ima_mtf_expand_nibble()
457 step_index = c->step_index + mtf_index_table[(unsigned)nibble]; in adpcm_ima_mtf_expand_nibble()
464 static inline int16_t adpcm_ima_cunning_expand_nibble(ADPCMChannelStatus *c, int8_t nibble) in adpcm_ima_cunning_expand_nibble() argument
470 nibble = sign_extend(nibble & 0xF, 4); in adpcm_ima_cunning_expand_nibble()
473 step_index = c->step_index + ima_cunning_index_table[abs(nibble)]; in adpcm_ima_cunning_expand_nibble()
476 predictor = c->predictor + step * nibble; in adpcm_ima_cunning_expand_nibble()
486 int nibble, step_index, predictor, sign, delta, diff, step, shift; in adpcm_ima_wav_expand_nibble() local
489 nibble = get_bits_le(gb, bps), in adpcm_ima_wav_expand_nibble()
491 step_index = c->step_index + adpcm_index_tables[bps - 2][nibble]; in adpcm_ima_wav_expand_nibble()
494 sign = nibble & (1 << shift); in adpcm_ima_wav_expand_nibble()
495 delta = av_mod_uintp2(nibble, shift); in adpcm_ima_wav_expand_nibble()
507 static inline int adpcm_ima_qt_expand_nibble(ADPCMChannelStatus *c, int nibble) in adpcm_ima_qt_expand_nibble() argument
514 step_index = c->step_index + ff_adpcm_index_table[nibble]; in adpcm_ima_qt_expand_nibble()
518 if (nibble & 4) diff += step; in adpcm_ima_qt_expand_nibble()
519 if (nibble & 2) diff += step >> 1; in adpcm_ima_qt_expand_nibble()
520 if (nibble & 1) diff += step >> 2; in adpcm_ima_qt_expand_nibble()
522 if (nibble & 8) in adpcm_ima_qt_expand_nibble()
533 static inline int16_t adpcm_ms_expand_nibble(ADPCMChannelStatus *c, int nibble) in adpcm_ms_expand_nibble() argument
538 predictor += ((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta; in adpcm_ms_expand_nibble()
542 c->idelta = (ff_adpcm_AdaptationTable[(int)nibble] * c->idelta) >> 8; in adpcm_ms_expand_nibble()
552 static inline int16_t adpcm_ima_oki_expand_nibble(ADPCMChannelStatus *c, int nibble) in adpcm_ima_oki_expand_nibble() argument
557 step_index = c->step_index + ff_adpcm_index_table[(unsigned)nibble]; in adpcm_ima_oki_expand_nibble()
560 sign = nibble & 8; in adpcm_ima_oki_expand_nibble()
561 delta = nibble & 7; in adpcm_ima_oki_expand_nibble()
573 static inline int16_t adpcm_ct_expand_nibble(ADPCMChannelStatus *c, int8_t nibble) in adpcm_ct_expand_nibble() argument
578 sign = nibble & 8; in adpcm_ct_expand_nibble()
579 delta = nibble & 7; in adpcm_ct_expand_nibble()
588 new_step = (ff_adpcm_AdaptationTable[nibble & 7] * c->step) >> 8; in adpcm_ct_expand_nibble()
594 static inline int16_t adpcm_sbpro_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int size, int… in adpcm_sbpro_expand_nibble() argument
598 sign = nibble & (1<<(size-1)); in adpcm_sbpro_expand_nibble()
599 delta = nibble & ((1<<(size-1))-1); in adpcm_sbpro_expand_nibble()
614 static inline int16_t adpcm_yamaha_expand_nibble(ADPCMChannelStatus *c, uint8_t nibble) in adpcm_yamaha_expand_nibble() argument
621 c->predictor += (c->step * ff_adpcm_yamaha_difflookup[nibble]) / 8; in adpcm_yamaha_expand_nibble()
623 c->step = (c->step * ff_adpcm_yamaha_indexscale[nibble]) >> 8; in adpcm_yamaha_expand_nibble()
628 static inline int16_t adpcm_mtaf_expand_nibble(ADPCMChannelStatus *c, uint8_t nibble) in adpcm_mtaf_expand_nibble() argument
630 c->predictor += mtaf_stepsize[c->step][nibble]; in adpcm_mtaf_expand_nibble()
632 c->step += ff_adpcm_index_table[nibble]; in adpcm_mtaf_expand_nibble()
637 static inline int16_t adpcm_zork_expand_nibble(ADPCMChannelStatus *c, uint8_t nibble) in adpcm_zork_expand_nibble() argument
643 if (nibble & 0x40) in adpcm_zork_expand_nibble()
645 if (nibble & 0x20) in adpcm_zork_expand_nibble()
647 if (nibble & 0x10) in adpcm_zork_expand_nibble()
649 if (nibble & 0x08) in adpcm_zork_expand_nibble()
651 if (nibble & 0x04) in adpcm_zork_expand_nibble()
653 if (nibble & 0x02) in adpcm_zork_expand_nibble()
655 if (nibble & 0x01) in adpcm_zork_expand_nibble()
657 if (nibble & 0x80) in adpcm_zork_expand_nibble()
663 index += zork_index_table[(nibble >> 4) & 7]; in adpcm_zork_expand_nibble()
818 int16_t ff_adpcm_argo_expand_nibble(ADPCMChannelStatus *cs, int nibble, int shift, int flag) in ff_adpcm_argo_expand_nibble() argument
820 int sample = sign_extend(nibble, 4) * (1 << shift); in ff_adpcm_argo_expand_nibble()
1337 nibble = last_byte >> 4; \ in adpcm_decode_frame()
1341 nibble = last_byte & 0x0F; \ in adpcm_decode_frame()
1346 int nibble; in adpcm_decode_frame()
1371 adpcm_ima_expand_nibble(&c->status[0], nibble, 3); in adpcm_decode_frame()
1375 adpcm_ima_expand_nibble(&c->status[1], nibble, 3); in adpcm_decode_frame()
1384 adpcm_ima_expand_nibble(&c->status[0], nibble, 3); in adpcm_decode_frame()