Lines Matching refs:frames
551 /* Convert to output frames */
554 /* Convert to input frames. The equation matches exactly the
556 * minimum number of input frames that are needed to produce
557 * the given number of output frames. */
570 /* Convert to intput frames */
591 /* Convert to output frames. This matches exactly the algorithm
611 size_t frames;
628 frames = block_size_max / max_fs - EXTRA_FRAMES;
630 pa_assert(frames >= (r->leftover_buf->length / r->w_fz));
632 frames -= r->leftover_buf->length / r->w_fz;
634 block_size_max = ((uint64_t) frames * r->i_ss.rate / max_ss.rate) * r->i_fz;
671 * of frames produced by the resampler. */
1672 /* Get delay in input frames. Some resamplers may have negative delay. */
1674 double frames;
1676 frames = r->out_frames * r->i_ss.rate / r->o_ss.rate;
1677 if (frames >= r->in_frames && !allow_negative)
1679 return r->in_frames - frames;