Lines Matching defs:apad
56 AVFILTER_DEFINE_CLASS(apad);
60 APadContext *apad = ctx->priv;
62 apad->next_pts = AV_NOPTS_VALUE;
63 if (apad->whole_len && apad->pad_len) {
74 APadContext *apad = ctx->priv;
76 if (apad->whole_len)
77 apad->whole_len -= frame->nb_samples;
79 apad->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base);
86 APadContext *apad = ctx->priv;
92 int n_out = apad->packet_size;
95 if (apad->whole_len > 0) {
96 apad->pad_len = apad->whole_len;
97 apad->whole_len = 0;
99 if (apad->pad_len > 0) {
100 n_out = FFMIN(n_out, apad->pad_len);
101 apad->pad_len -= n_out;
119 outsamplesref->pts = apad->next_pts;
120 if (apad->next_pts != AV_NOPTS_VALUE)
121 apad->next_pts += av_rescale_q(n_out, (AVRational){1, outlink->sample_rate}, outlink->time_base);
147 .name = "apad",