Home
last modified time | relevance | path

Searched refs:tmp_frame (Results 1 – 10 of 10) sorted by relevance

/third_party/ffmpeg/fftools/
Dffmpeg_videotoolbox.c31 AVFrame *tmp_frame; member
47 av_frame_unref(vt->tmp_frame); in videotoolbox_retrieve_data()
50 case kCVPixelFormatType_420YpCbCr8Planar: vt->tmp_frame->format = AV_PIX_FMT_YUV420P; break; in videotoolbox_retrieve_data()
51 case kCVPixelFormatType_422YpCbCr8: vt->tmp_frame->format = AV_PIX_FMT_UYVY422; break; in videotoolbox_retrieve_data()
52 case kCVPixelFormatType_32BGRA: vt->tmp_frame->format = AV_PIX_FMT_BGRA; break; in videotoolbox_retrieve_data()
55 …case kCVPixelFormatType_420YpCbCr8BiPlanarFullRange: vt->tmp_frame->format = AV_PIX_FMT_NV12; brea… in videotoolbox_retrieve_data()
59 …case kCVPixelFormatType_420YpCbCr10BiPlanarFullRange: vt->tmp_frame->format = AV_PIX_FMT_P010; bre… in videotoolbox_retrieve_data()
68 vt->tmp_frame->width = frame->width; in videotoolbox_retrieve_data()
69 vt->tmp_frame->height = frame->height; in videotoolbox_retrieve_data()
70 ret = av_frame_get_buffer(vt->tmp_frame, 0); in videotoolbox_retrieve_data()
[all …]
/third_party/ffmpeg/doc/examples/
Dhw_decode.c80 AVFrame *tmp_frame = NULL; in decode_write() local
114 tmp_frame = sw_frame; in decode_write()
116 tmp_frame = frame; in decode_write()
118 size = av_image_get_buffer_size(tmp_frame->format, tmp_frame->width, in decode_write()
119 tmp_frame->height, 1); in decode_write()
127 (const uint8_t * const *)tmp_frame->data, in decode_write()
128 (const int *)tmp_frame->linesize, tmp_frame->format, in decode_write()
129 tmp_frame->width, tmp_frame->height, 1); in decode_write()
Dmuxing.c62 AVFrame *tmp_frame; member
276 ost->tmp_frame = alloc_audio_frame(AV_SAMPLE_FMT_S16, c->channel_layout, in open_audio()
312 AVFrame *frame = ost->tmp_frame; in get_audio_frame()
434 ost->tmp_frame = NULL; in open_video()
436 ost->tmp_frame = alloc_picture(AV_PIX_FMT_YUV420P, c->width, c->height); in open_video()
437 if (!ost->tmp_frame) { in open_video()
502 fill_yuv_image(ost->tmp_frame, ost->next_pts, c->width, c->height); in get_video_frame()
503 sws_scale(ost->sws_ctx, (const uint8_t * const *) ost->tmp_frame->data, in get_video_frame()
504 ost->tmp_frame->linesize, 0, c->height, ost->frame->data, in get_video_frame()
528 av_frame_free(&ost->tmp_frame); in close_stream()
/third_party/ffmpeg/libavfilter/
Dvf_scale_npp.c80 AVFrame *tmp_frame; member
127 s->tmp_frame = av_frame_alloc(); in nppscale_init()
128 if (!s->tmp_frame) in nppscale_init()
143 av_frame_free(&s->tmp_frame); in nppscale_uninit()
487 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in nppscale_scale()
491 s->tmp_frame->width = src->width; in nppscale_scale()
492 s->tmp_frame->height = src->height; in nppscale_scale()
495 av_frame_move_ref(src, s->tmp_frame); in nppscale_scale()
Dvf_transpose_npp.c77 AVFrame *tmp_frame; member
94 s->tmp_frame = av_frame_alloc(); in npptranspose_init()
95 if (!s->tmp_frame) in npptranspose_init()
111 av_frame_free(&s->tmp_frame); in npptranspose_uninit()
381 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in npptranspose_filter()
386 av_frame_move_ref(src, s->tmp_frame); in npptranspose_filter()
Dvf_scale_cuda.c83 AVFrame *tmp_frame; member
127 s->tmp_frame = av_frame_alloc(); in cudascale_init()
128 if (!s->tmp_frame) in cudascale_init()
150 av_frame_free(&s->tmp_frame); in cudascale_uninit()
552 ret = av_hwframe_get_buffer(src->hw_frames_ctx, s->tmp_frame, 0); in cudascale_scale()
557 av_frame_move_ref(s->frame, s->tmp_frame); in cudascale_scale()
/third_party/ffmpeg/libavcodec/
Dcuviddec.c545 AVFrame *tmp_frame = av_frame_alloc(); in cuvid_output_frame() local
546 if (!tmp_frame) { in cuvid_output_frame()
554 tmp_frame->format = AV_PIX_FMT_CUDA; in cuvid_output_frame()
555 tmp_frame->hw_frames_ctx = av_buffer_ref(ctx->hwframe); in cuvid_output_frame()
556 if (!tmp_frame->hw_frames_ctx) { in cuvid_output_frame()
558 av_frame_free(&tmp_frame); in cuvid_output_frame()
562 tmp_frame->width = avctx->width; in cuvid_output_frame()
563 tmp_frame->height = avctx->height; in cuvid_output_frame()
571 tmp_frame->data[i] = (uint8_t*)mapped_frame + offset; in cuvid_output_frame()
572 tmp_frame->linesize[i] = pitch; in cuvid_output_frame()
[all …]
/third_party/ffmpeg/libavutil/
Dhwcontext_qsv.c890 AVFrame tmp_frame; in qsv_transfer_data_to() local
921 memset(&tmp_frame, 0, sizeof(tmp_frame)); in qsv_transfer_data_to()
922 tmp_frame.format = src->format; in qsv_transfer_data_to()
923 tmp_frame.width = FFALIGN(src->width, 16); in qsv_transfer_data_to()
924 tmp_frame.height = FFALIGN(src->height, 16); in qsv_transfer_data_to()
925 ret = av_frame_get_buffer(&tmp_frame, 0); in qsv_transfer_data_to()
929 ret = av_frame_copy(&tmp_frame, src); in qsv_transfer_data_to()
931 av_frame_unref(&tmp_frame); in qsv_transfer_data_to()
936 src_frame = realigned ? &tmp_frame : src; in qsv_transfer_data_to()
969 av_frame_unref(&tmp_frame); in qsv_transfer_data_to()
/third_party/gstreamer/gstplugins_bad/gst/videoparsers/
Dgsth265parse.c1070 GstBaseParseFrame tmp_frame; in gst_h265_parse_handle_frame_packetized() local
1072 gst_base_parse_frame_init (&tmp_frame); in gst_h265_parse_handle_frame_packetized()
1073 tmp_frame.flags |= frame->flags; in gst_h265_parse_handle_frame_packetized()
1074 tmp_frame.offset = frame->offset; in gst_h265_parse_handle_frame_packetized()
1075 tmp_frame.overhead = frame->overhead; in gst_h265_parse_handle_frame_packetized()
1076 tmp_frame.buffer = gst_buffer_copy_region (buffer, GST_BUFFER_COPY_ALL, in gst_h265_parse_handle_frame_packetized()
1089 gst_h265_parse_parse_frame (parse, &tmp_frame); in gst_h265_parse_handle_frame_packetized()
1090 ret = gst_base_parse_finish_frame (parse, &tmp_frame, nl + nalu.size); in gst_h265_parse_handle_frame_packetized()
Dgsth264parse.c1260 GstBaseParseFrame tmp_frame; in gst_h264_parse_handle_frame_packetized() local
1262 gst_base_parse_frame_init (&tmp_frame); in gst_h264_parse_handle_frame_packetized()
1263 tmp_frame.flags |= frame->flags; in gst_h264_parse_handle_frame_packetized()
1264 tmp_frame.offset = frame->offset; in gst_h264_parse_handle_frame_packetized()
1265 tmp_frame.overhead = frame->overhead; in gst_h264_parse_handle_frame_packetized()
1266 tmp_frame.buffer = gst_buffer_copy_region (buffer, GST_BUFFER_COPY_ALL, in gst_h264_parse_handle_frame_packetized()
1279 gst_h264_parse_parse_frame (parse, &tmp_frame); in gst_h264_parse_handle_frame_packetized()
1280 ret = gst_base_parse_finish_frame (parse, &tmp_frame, nl + nalu.size); in gst_h264_parse_handle_frame_packetized()