Lines Matching defs:frame
111 put_bits(&pb, 1, 0); //frame length - 1024 samples
535 static void copy_input_samples(AACEncContext *s, const AVFrame *frame)
538 int end = 2048 + (frame ? frame->nb_samples : 0);
543 /* copy last 1024 samples of previous frame to the start of the current frame */
547 if (frame) {
549 frame->extended_data[channel_map[ch]],
550 frame->nb_samples * sizeof(s->planar_samples[0][0]));
558 const AVFrame *frame, int *got_packet_ptr)
571 /* add current frame to queue */
572 if (frame) {
573 if ((ret = ff_af_queue_add(&s->afq, frame)) < 0)
580 copy_input_samples(s, frame);
602 if (!frame)
849 * When frame bits fall within the stable range, we still need to adjust
1015 "Too many bits %f > %d per frame requested, clamping to max\n",