Home
last modified time | relevance | path

Searched refs:output_frame (Results 1 – 25 of 25) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_scale_vaapi.c108 AVFrame *output_frame = NULL; in scale_vaapi_filter_frame() local
119 output_frame = ff_get_video_buffer(outlink, vpp_ctx->output_width, in scale_vaapi_filter_frame()
121 if (!output_frame) { in scale_vaapi_filter_frame()
126 err = av_frame_copy_props(output_frame, input_frame); in scale_vaapi_filter_frame()
131 output_frame->color_primaries = ctx->colour_primaries; in scale_vaapi_filter_frame()
133 output_frame->color_trc = ctx->colour_transfer; in scale_vaapi_filter_frame()
135 output_frame->colorspace = ctx->colour_matrix; in scale_vaapi_filter_frame()
137 output_frame->color_range = ctx->colour_range; in scale_vaapi_filter_frame()
139 output_frame->chroma_location = ctx->chroma_location; in scale_vaapi_filter_frame()
142 input_frame, output_frame); in scale_vaapi_filter_frame()
[all …]
Dvf_misc_vaapi.c128 AVFrame *output_frame = NULL; in misc_vaapi_filter_frame() local
139 output_frame = ff_get_video_buffer(outlink, vpp_ctx->output_width, in misc_vaapi_filter_frame()
141 if (!output_frame) { in misc_vaapi_filter_frame()
146 err = av_frame_copy_props(output_frame, input_frame); in misc_vaapi_filter_frame()
151 input_frame, output_frame); in misc_vaapi_filter_frame()
160 err = ff_vaapi_vpp_render_picture(avctx, &params, output_frame); in misc_vaapi_filter_frame()
167 av_get_pix_fmt_name(output_frame->format), in misc_vaapi_filter_frame()
168 output_frame->width, output_frame->height, output_frame->pts); in misc_vaapi_filter_frame()
170 return ff_filter_frame(outlink, output_frame); in misc_vaapi_filter_frame()
174 av_frame_free(&output_frame); in misc_vaapi_filter_frame()
Dvf_tonemap_vaapi.c240 AVFrame *output_frame = NULL; in tonemap_vaapi_filter_frame() local
267 output_frame = ff_get_video_buffer(outlink, vpp_ctx->output_width, in tonemap_vaapi_filter_frame()
269 if (!output_frame) { in tonemap_vaapi_filter_frame()
274 output_surface = (VASurfaceID)(uintptr_t)output_frame->data[3]; in tonemap_vaapi_filter_frame()
279 err = av_frame_copy_props(output_frame, input_frame); in tonemap_vaapi_filter_frame()
284 output_frame->color_primaries = ctx->color_primaries; in tonemap_vaapi_filter_frame()
287 output_frame->color_trc = ctx->color_transfer; in tonemap_vaapi_filter_frame()
289 output_frame->color_trc = AVCOL_TRC_BT709; in tonemap_vaapi_filter_frame()
292 output_frame->colorspace = ctx->color_matrix; in tonemap_vaapi_filter_frame()
295 input_frame, output_frame); in tonemap_vaapi_filter_frame()
[all …]
Dvf_procamp_vaapi.c133 AVFrame *output_frame = NULL; in procamp_vaapi_filter_frame() local
144 output_frame = ff_get_video_buffer(outlink, vpp_ctx->output_width, in procamp_vaapi_filter_frame()
146 if (!output_frame) { in procamp_vaapi_filter_frame()
151 err = av_frame_copy_props(output_frame, input_frame); in procamp_vaapi_filter_frame()
156 input_frame, output_frame); in procamp_vaapi_filter_frame()
163 err = ff_vaapi_vpp_render_picture(avctx, &params, output_frame); in procamp_vaapi_filter_frame()
170 av_get_pix_fmt_name(output_frame->format), in procamp_vaapi_filter_frame()
171 output_frame->width, output_frame->height, output_frame->pts); in procamp_vaapi_filter_frame()
173 return ff_filter_frame(outlink, output_frame); in procamp_vaapi_filter_frame()
177 av_frame_free(&output_frame); in procamp_vaapi_filter_frame()
Dvf_deinterlace_vaapi.c183 AVFrame *output_frame = NULL; in deint_vaapi_filter_frame() local
233 output_frame = ff_get_video_buffer(outlink, vpp_ctx->output_width, in deint_vaapi_filter_frame()
235 if (!output_frame) { in deint_vaapi_filter_frame()
240 err = av_frame_copy_props(output_frame, input_frame); in deint_vaapi_filter_frame()
245 input_frame, output_frame); in deint_vaapi_filter_frame()
287 err = ff_vaapi_vpp_render_picture(avctx, &params, output_frame); in deint_vaapi_filter_frame()
293 output_frame->pts = 2 * input_frame->pts; in deint_vaapi_filter_frame()
295 output_frame->pts = input_frame->pts + in deint_vaapi_filter_frame()
298 output_frame->interlaced_frame = 0; in deint_vaapi_filter_frame()
301 av_get_pix_fmt_name(output_frame->format), in deint_vaapi_filter_frame()
[all …]
Dvf_transpose_vaapi.c125 AVFrame *output_frame = NULL; in transpose_vaapi_filter_frame() local
139 output_frame = ff_get_video_buffer(outlink, vpp_ctx->output_width, in transpose_vaapi_filter_frame()
141 if (!output_frame) { in transpose_vaapi_filter_frame()
146 err = av_frame_copy_props(output_frame, input_frame); in transpose_vaapi_filter_frame()
151 input_frame, output_frame); in transpose_vaapi_filter_frame()
158 err = ff_vaapi_vpp_render_picture(avctx, &params, output_frame); in transpose_vaapi_filter_frame()
165 av_get_pix_fmt_name(output_frame->format), in transpose_vaapi_filter_frame()
166 output_frame->width, output_frame->height, output_frame->pts); in transpose_vaapi_filter_frame()
168 return ff_filter_frame(outlink, output_frame); in transpose_vaapi_filter_frame()
172 av_frame_free(&output_frame); in transpose_vaapi_filter_frame()
Dvaapi_vpp.c423 AVFrame *output_frame) in vaapi_vpp_colour_properties() argument
453 .colorspace = vaapi_vpp_frame_is_rgb(output_frame) in vaapi_vpp_colour_properties()
454 ? AVCOL_SPC_RGB : output_frame->colorspace, in vaapi_vpp_colour_properties()
455 .color_primaries = output_frame->color_primaries, in vaapi_vpp_colour_properties()
456 .color_trc = output_frame->color_trc, in vaapi_vpp_colour_properties()
457 .color_range = output_frame->color_range, in vaapi_vpp_colour_properties()
458 .chroma_sample_location = output_frame->chroma_location, in vaapi_vpp_colour_properties()
481 output_frame->colorspace = vaapi_vpp_frame_is_rgb(output_frame) in vaapi_vpp_colour_properties()
483 output_frame->color_primaries = output_standard->color_primaries; in vaapi_vpp_colour_properties()
484 output_frame->color_trc = output_standard->color_trc; in vaapi_vpp_colour_properties()
[all …]
Dvf_colorkey_opencl.c96 AVFrame *output_frame = NULL; in filter_frame() local
128 output_frame = ff_get_video_buffer(outlink, outlink->w, outlink->h); in filter_frame()
129 if (!output_frame) { in filter_frame()
133 dst = (cl_mem)output_frame->data[0]; in filter_frame()
165 err = av_frame_copy_props(output_frame, input_frame); in filter_frame()
171 return ff_filter_frame(outlink, output_frame); in filter_frame()
176 av_frame_free(&output_frame); in filter_frame()
Dvf_pad_opencl.c147 AVFrame *output_frame = NULL; in filter_frame() local
162 output_frame = ff_get_video_buffer(outlink, outlink->w, outlink->h); in filter_frame()
163 if (!output_frame) { in filter_frame()
168 for (int p = 0; p < FF_ARRAY_ELEMS(output_frame->data); p++) { in filter_frame()
188 dst = (cl_mem)output_frame->data[p]; in filter_frame()
198 err = ff_opencl_filter_work_size_from_image(avctx, global_work, output_frame, p, 16); in filter_frame()
212 err = av_frame_copy_props(output_frame, input_frame); in filter_frame()
218 return ff_filter_frame(outlink, output_frame); in filter_frame()
223 av_frame_free(&output_frame); in filter_frame()
Dvaapi_vpp.h74 AVFrame *output_frame);
84 AVFrame *output_frame);
Daf_amix.c297 static int output_frame(AVFilterLink *outlink) in output_frame() function
407 return output_frame(ctx->outputs[0]); in request_samples()
463 ret = output_frame(outlink); in activate()
Daf_afftdn.c1158 static int output_frame(AVFilterLink *inlink) in output_frame() function
1296 return output_frame(inlink); in activate()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/codecs/
Dgstvp8decoder.c76 output_frame);
329 gst_vp8_decoder_clear_output_frame (GstVp8DecoderOutputFrame * output_frame) in gst_vp8_decoder_clear_output_frame() argument
331 if (!output_frame) in gst_vp8_decoder_clear_output_frame()
334 if (output_frame->frame) { in gst_vp8_decoder_clear_output_frame()
335 gst_video_decoder_release_frame (GST_VIDEO_DECODER (output_frame->self), in gst_vp8_decoder_clear_output_frame()
336 output_frame->frame); in gst_vp8_decoder_clear_output_frame()
337 output_frame->frame = NULL; in gst_vp8_decoder_clear_output_frame()
340 gst_vp8_picture_clear (&output_frame->picture); in gst_vp8_decoder_clear_output_frame()
356 GstVp8DecoderOutputFrame output_frame; in gst_vp8_decoder_handle_frame() local
451 output_frame.frame = frame; in gst_vp8_decoder_handle_frame()
[all …]
Dgstvp9decoder.c114 gst_vp9_decoder_clear_output_frame (GstVp9DecoderOutputFrame * output_frame);
332 gst_vp9_decoder_clear_output_frame (GstVp9DecoderOutputFrame * output_frame) in gst_vp9_decoder_clear_output_frame() argument
334 if (!output_frame) in gst_vp9_decoder_clear_output_frame()
337 if (output_frame->frame) { in gst_vp9_decoder_clear_output_frame()
338 gst_video_decoder_release_frame (GST_VIDEO_DECODER (output_frame->self), in gst_vp9_decoder_clear_output_frame()
339 output_frame->frame); in gst_vp9_decoder_clear_output_frame()
340 output_frame->frame = NULL; in gst_vp9_decoder_clear_output_frame()
343 gst_vp9_picture_clear (&output_frame->picture); in gst_vp9_decoder_clear_output_frame()
361 GstVp9DecoderOutputFrame output_frame; in gst_vp9_decoder_handle_frame() local
527 output_frame.frame = frame; in gst_vp9_decoder_handle_frame()
[all …]
Dgstmpeg2decoder.c304 output_frame);
1118 GstMpeg2DecoderOutputFrame output_frame; in gst_mpeg2_decoder_do_output_picture() local
1137 output_frame.frame = frame; in gst_mpeg2_decoder_do_output_picture()
1138 output_frame.picture = to_output; in gst_mpeg2_decoder_do_output_picture()
1139 output_frame.self = decoder; in gst_mpeg2_decoder_do_output_picture()
1140 gst_queue_array_push_tail_struct (priv->output_queue, &output_frame); in gst_mpeg2_decoder_do_output_picture()
1183 gst_mpeg2_decoder_clear_output_frame (GstMpeg2DecoderOutputFrame * output_frame) in gst_mpeg2_decoder_clear_output_frame() argument
1185 if (!output_frame) in gst_mpeg2_decoder_clear_output_frame()
1188 if (output_frame->frame) { in gst_mpeg2_decoder_clear_output_frame()
1189 gst_video_decoder_release_frame (GST_VIDEO_DECODER (output_frame->self), in gst_mpeg2_decoder_clear_output_frame()
[all …]
Dgsth264decoder.c219 gst_h264_decoder_clear_output_frame (GstH264DecoderOutputFrame * output_frame);
448 gst_h264_decoder_clear_output_frame (GstH264DecoderOutputFrame * output_frame) in gst_h264_decoder_clear_output_frame() argument
450 if (!output_frame) in gst_h264_decoder_clear_output_frame()
453 if (output_frame->frame) { in gst_h264_decoder_clear_output_frame()
454 gst_video_decoder_release_frame (GST_VIDEO_DECODER (output_frame->self), in gst_h264_decoder_clear_output_frame()
455 output_frame->frame); in gst_h264_decoder_clear_output_frame()
456 output_frame->frame = NULL; in gst_h264_decoder_clear_output_frame()
459 gst_h264_picture_clear (&output_frame->picture); in gst_h264_decoder_clear_output_frame()
1783 GstH264DecoderOutputFrame *output_frame = (GstH264DecoderOutputFrame *) in gst_h264_decoder_drain_output_queue() local
1785 GstFlowReturn flow_ret = klass->output_picture (self, output_frame->frame, in gst_h264_decoder_drain_output_queue()
[all …]
/third_party/ffmpeg/libavcodec/
Dsbcdec.c214 int ch, int blk, AVFrame *output_frame) in sbc_synthesize_four() argument
241 AV_WN16A(&output_frame->data[ch][blk * 8 + i * 2], av_clip_int16( in sbc_synthesize_four()
257 int ch, int blk, AVFrame *output_frame) in sbc_synthesize_eight() argument
288 AV_WN16A(&output_frame->data[ch][blk * 16 + i * 2], av_clip_int16( in sbc_synthesize_eight()
303 struct sbc_frame *frame, AVFrame *output_frame) in sbc_synthesize_audio() argument
311 sbc_synthesize_four(state, frame, ch, blk, output_frame); in sbc_synthesize_audio()
317 sbc_synthesize_eight(state, frame, ch, blk, output_frame); in sbc_synthesize_audio()
Dvideotoolbox.c973 h->output_frame->crop_right = 0; in videotoolbox_hevc_end_frame()
974 h->output_frame->crop_left = 0; in videotoolbox_hevc_end_frame()
975 h->output_frame->crop_top = 0; in videotoolbox_hevc_end_frame()
976 h->output_frame->crop_bottom = 0; in videotoolbox_hevc_end_frame()
Dhevcdec.h490 AVFrame *output_frame; member
Dh264dec.c824 static int output_frame(H264Context *h, AVFrame *dst, H264Picture *srcp) in output_frame() function
905 ret = output_frame(h, dst, out); in finalize_frame()
Dpngdec.c1471 static int output_frame(PNGDecContext *s, AVFrame *f, in output_frame() function
1577 ret = output_frame(s, dst_frame, s->picture.f); in decode_frame_png()
1640 ret = output_frame(s, dst_frame, s->picture.f); in decode_frame_apng()
Dhevcdec.c2939 av_frame_unref(s->output_frame); in hevc_frame_start()
2940 ret = ff_hevc_output_frame(s, s->output_frame, 0); in hevc_frame_start()
3357 if (s->output_frame->buf[0]) { in hevc_decode_frame()
3358 av_frame_move_ref(data, s->output_frame); in hevc_decode_frame()
3420 av_frame_free(&s->output_frame); in hevc_decode_free()
3469 s->output_frame = av_frame_alloc(); in hevc_init_context()
3470 if (!s->output_frame) in hevc_init_context()
/third_party/ffmpeg/doc/examples/
Dtranscode_aac.c741 AVFrame *output_frame; in load_encode_and_write() local
750 if (init_output_frame(&output_frame, output_codec_context, frame_size)) in load_encode_and_write()
755 if (av_audio_fifo_read(fifo, (void **)output_frame->data, frame_size) < frame_size) { in load_encode_and_write()
757 av_frame_free(&output_frame); in load_encode_and_write()
762 if (encode_audio_frame(output_frame, output_format_context, in load_encode_and_write()
764 av_frame_free(&output_frame); in load_encode_and_write()
767 av_frame_free(&output_frame); in load_encode_and_write()
/third_party/gstreamer/gstplugins_bad/ext/closedcaption/
Dgstccconverter.c541 guint output_frame; in interpolate_time_code_with_framerate() local
579 output_frame = output_n / output_d; in interpolate_time_code_with_framerate()
589 tc->seconds, output_frame, tc->field_count); in interpolate_time_code_with_framerate()
590 output_frame++; in interpolate_time_code_with_framerate()
592 && output_frame < 10 && !gst_video_time_code_is_valid (out)); in interpolate_time_code_with_framerate()
/third_party/gstreamer/gstplugins_base/
DChangeLog79921 videodecoder: Protect all accesses to priv->output_frame with the stream lock
83585 Also, don't output a bogus warning about the output_frame being