Lines Matching defs:frame
69 static int32_t get_sample(const AVFrame *frame, int sample,
75 ret = frame->data[0][sample] - 0x80;
77 const int16_t *ptr = (const int16_t *)frame->data[0];
80 const int32_t *ptr = (const int32_t *)frame->data[0];
88 const AVFrame *frame, int *got_packet_ptr)
93 int64_t pkt_size = frame->nb_samples * 2LL * avctx->ch_layout.nb_channels * s->bps;
108 for (i = 0; i < frame->nb_samples * avctx->ch_layout.nb_channels; i++) {
115 value = get_sample(frame, samples++, avctx->sample_fmt);
119 value = res = get_sample(frame, samples, avctx->sample_fmt) - value;
191 avpkt->pts = frame->pts;
193 avpkt->duration = ff_samples_to_time_base(avctx, frame->nb_samples);