• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching refs:nibble

164         avctx->frame_size = (BLKSIZE - 4 * avctx->channels) * 8 / (4 * avctx->channels) + 1; /* each 16 bits sample gives one nibble */
174 avctx->frame_size = (BLKSIZE - 7 * avctx->channels) * 2 / avctx->channels + 2; /* each 16 bits sample gives one nibble */
213 int nibble = FFMIN(7, abs(delta)*4/step_table[c->step_index]) + (delta<0)*8;
214 c->prev_sample += ((step_table[c->step_index] * yamaha_difflookup[nibble]) / 8);
216 c->step_index = av_clip(c->step_index + index_table[nibble], 0, 88);
217 return nibble;
222 int predictor, nibble, bias;
226 nibble= sample - predictor;
227 if(nibble>=0) bias= c->idelta/2;
230 nibble= (nibble + bias) / c->idelta;
231 nibble= av_clip(nibble, -8, 7)&0x0F;
233 predictor += (signed)((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta;
238 c->idelta = (AdaptationTable[(int)nibble] * c->idelta) >> 8;
241 return nibble;
246 int nibble, delta;
255 nibble = FFMIN(7, abs(delta)*4/c->step) + (delta<0)*8;
257 c->predictor += ((c->step * yamaha_difflookup[nibble]) / 8);
259 c->step = (c->step * yamaha_indexscale[nibble]) >> 8;
262 return nibble;
266 int nibble;
333 const int nibble = nidx & 0xf;
364 paths[u->path].nibble = nibble;\
372 STORE_NODE(ms, FFMAX(16, (AdaptationTable[nibble] * step) >> 8));
383 const int nibble = nidx<0 ? 7-nidx : nidx;\
384 int dec_sample = predictor + (STEP_TABLE * yamaha_difflookup[nibble]) / 8;\
387 LOOP_NODES(ima, step_table[step], av_clip(step + index_table[nibble], 0, 88));
389 LOOP_NODES(yamaha, step, av_clip((step * yamaha_indexscale[nibble]) >> 8, 127, 24567));
410 dst[k] = p->nibble;
424 dst[i] = p->nibble;
628 int nibble;
629 nibble = adpcm_ms_compress_sample(&c->status[ 0], *samples++)<<4;
630 nibble|= adpcm_ms_compress_sample(&c->status[st], *samples++);
631 *dst++ = nibble;
652 int nibble;
653 nibble = adpcm_yamaha_compress_sample(&c->status[i], samples[i]);
654 nibble |= adpcm_yamaha_compress_sample(&c->status[i], samples[i+avctx->channels]) << 4;
655 *dst++ = nibble;
700 static inline short adpcm_ima_expand_nibble(ADPCMChannelStatus *c, char nibble, int shift)
707 step_index = c->step_index + index_table[(unsigned)nibble];
711 sign = nibble & 8;
712 delta = nibble & 7;
727 static inline short adpcm_ms_expand_nibble(ADPCMChannelStatus *c, char nibble)
732 predictor += (signed)((nibble & 0x08)?(nibble - 0x10):(nibble)) * c->idelta;
736 c->idelta = (AdaptationTable[(int)nibble] * c->idelta) >> 8;
742 static inline short adpcm_ct_expand_nibble(ADPCMChannelStatus *c, char nibble)
747 sign = nibble & 8;
748 delta = nibble & 7;
757 new_step = (AdaptationTable[nibble & 7] * c->step) >> 8;
763 static inline short adpcm_sbpro_expand_nibble(ADPCMChannelStatus *c, char nibble, int size, int shift)
767 sign = nibble & (1<<(size-1));
768 delta = nibble & ((1<<(size-1))-1);
783 static inline short adpcm_yamaha_expand_nibble(ADPCMChannelStatus *c, unsigned char nibble)
790 c->predictor += (c->step * yamaha_difflookup[nibble]) / 8;
792 c->step = (c->step * yamaha_indexscale[nibble]) >> 8;
867 nibble = last_byte >> 4; \
874 nibble = last_byte & 0x0F; \
893 unsigned char nibble;
1068 /* take care of the top nibble (always left or mono channel) */
1072 /* take care of the bottom nibble, which is right sample for
1108 adpcm_ima_expand_nibble(&c->status[0], nibble, 3);
1112 adpcm_ima_expand_nibble(&c->status[1], nibble, 3);
1121 adpcm_ima_expand_nibble(&c->status[0], nibble, 3);