Lines Matching refs:frame
277 AVFrame *frame)
283 frame->buf[0] = NULL;
284 frame->width = avctx->width;
285 frame->height = avctx->height;
286 frame->format = avctx->pix_fmt;
287 frame->sample_aspect_ratio = avctx->sample_aspect_ratio;
290 frame->pts = av_rescale_q(info->presentationTimeUs,
294 frame->pts = info->presentationTimeUs;
296 frame->pkt_dts = AV_NOPTS_VALUE;
297 frame->color_range = avctx->color_range;
298 frame->color_primaries = avctx->color_primaries;
299 frame->color_trc = avctx->color_trc;
300 frame->colorspace = avctx->colorspace;
310 frame->buf[0] = av_buffer_create(NULL,
316 if (!frame->buf[0]) {
330 frame->data[3] = (uint8_t *)buffer;
340 av_buffer_unref(&frame->buf[0]);
356 AVFrame *frame)
361 frame->width = avctx->width;
362 frame->height = avctx->height;
363 frame->format = avctx->pix_fmt;
368 if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) {
373 /* Override frame->pkt_pts as ff_get_buffer will override its value based
374 * on the last avpacket received which is not in sync with the frame:
375 * * N avpackets can be pushed before 1 frame is actually returned
378 frame->pts = av_rescale_q(info->presentationTimeUs,
382 frame->pts = info->presentationTimeUs;
384 frame->pkt_dts = AV_NOPTS_VALUE;
392 frame->linesize[0], frame->linesize[1], frame->linesize[2]);
396 ff_mediacodec_sw_buffer_copy_yuv420_planar(avctx, s, data, size, info, frame);
401 ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(avctx, s, data, size, info, frame);
405 ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(avctx, s, data, size, info, frame);
408 ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(avctx, s, data, size, info, frame);
751 AVFrame *frame, bool wait)
768 * amount of time to ensure we got a frame */
773 * frame */
790 if ((ret = mediacodec_wrap_hw_buffer(avctx, s, index, &info, frame)) < 0) {
801 if ((ret = mediacodec_wrap_sw_buffer(avctx, s, data, size, index, &info, frame)) < 0) {