Lines Matching refs:dp
370 DecoderProgress dp = &global_decoder_progress;
371 dp->last_mode_ext =0;
372 dp->frames_total = 0;
373 dp->frame_ctr = 0;
374 dp->framesize = framesize;
375 dp->samples = 0;
378 dp->frames_total = calcNumBlocks(n, framesize);
379 dp->samples = 576 + calcEndPadding(n, framesize);
382 dp->frames_total = n / framesize;
385 dp->frames_total = n;
388 return dp;
392 addSamples(DecoderProgress dp, int iread)
394 dp->samples += iread;
395 dp->frame_ctr += dp->samples / dp->framesize;
396 dp->samples %= dp->framesize;
397 if (dp->frames_total < dp->frame_ctr) {
398 dp->frames_total = dp->frame_ctr;
403 decoder_progress(DecoderProgress dp, const mp3data_struct * mp3data, int iread)
405 addSamples(dp, iread);
408 dp->frame_ctr, dp->frames_total, mp3data->bitrate);
419 int last = dp->last_mode_ext;
423 dp->last_mode_ext = curr;
427 dp->last_mode_ext = 0;
435 decoder_progress_finish(DecoderProgress dp)
437 (void) dp;