Home
last modified time | relevance | path

Searched refs:input_frame (Results 1 – 16 of 16) sorted by relevance

/third_party/ffmpeg/libavfilter/
Dvf_tonemap_vaapi.c50 static int tonemap_vaapi_save_metadata(AVFilterContext *avctx, AVFrame *input_frame) in tonemap_vaapi_save_metadata() argument
56 if (input_frame->color_trc != AVCOL_TRC_SMPTE2084) { in tonemap_vaapi_save_metadata()
60 ctx->src_display = av_frame_get_side_data(input_frame, in tonemap_vaapi_save_metadata()
127 ctx->src_light = av_frame_get_side_data(input_frame, in tonemap_vaapi_save_metadata()
151 static int tonemap_vaapi_set_filter_params(AVFilterContext *avctx, AVFrame *input_frame) in tonemap_vaapi_set_filter_params() argument
234 static int tonemap_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) in tonemap_vaapi_filter_frame() argument
247 av_get_pix_fmt_name(input_frame->format), in tonemap_vaapi_filter_frame()
248 input_frame->width, input_frame->height, input_frame->pts); in tonemap_vaapi_filter_frame()
251 av_frame_free(&input_frame); in tonemap_vaapi_filter_frame()
255 err = tonemap_vaapi_save_metadata(avctx, input_frame); in tonemap_vaapi_filter_frame()
[all …]
Dvf_deinterlace_vaapi.c177 static int deint_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) in deint_vaapi_filter_frame() argument
194 av_get_pix_fmt_name(input_frame->format), in deint_vaapi_filter_frame()
195 input_frame->width, input_frame->height, input_frame->pts); in deint_vaapi_filter_frame()
198 ctx->frame_queue[ctx->queue_count++] = input_frame; in deint_vaapi_filter_frame()
207 ctx->frame_queue[i] = input_frame; in deint_vaapi_filter_frame()
212 input_frame = ctx->frame_queue[current_frame_index]; in deint_vaapi_filter_frame()
213 input_surface = (VASurfaceID)(uintptr_t)input_frame->data[3]; 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()
249 if (!ctx->auto_enable || input_frame->interlaced_frame) { in deint_vaapi_filter_frame()
[all …]
Dvf_misc_vaapi.c123 static int misc_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) in misc_vaapi_filter_frame() argument
133 av_get_pix_fmt_name(input_frame->format), in misc_vaapi_filter_frame()
134 input_frame->width, input_frame->height, input_frame->pts); 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()
164 av_frame_free(&input_frame); in misc_vaapi_filter_frame()
173 av_frame_free(&input_frame); in misc_vaapi_filter_frame()
Dvf_transpose_vaapi.c119 static int transpose_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) in transpose_vaapi_filter_frame() argument
130 return ff_filter_frame(outlink, input_frame); in transpose_vaapi_filter_frame()
133 av_get_pix_fmt_name(input_frame->format), in transpose_vaapi_filter_frame()
134 input_frame->width, input_frame->height, input_frame->pts); 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()
162 av_frame_free(&input_frame); in transpose_vaapi_filter_frame()
171 av_frame_free(&input_frame); in transpose_vaapi_filter_frame()
Dvf_colorkey_opencl.c91 static int filter_frame(AVFilterLink *link, AVFrame *input_frame) in filter_frame() argument
102 if (!input_frame->hw_frames_ctx) in filter_frame()
107 (AVHWFramesContext*)input_frame->hw_frames_ctx->data; in filter_frame()
127 src = (cl_mem)input_frame->data[0]; in filter_frame()
143 err = ff_opencl_filter_work_size_from_image(avctx, global_work, input_frame, 0, 0); in filter_frame()
165 err = av_frame_copy_props(output_frame, input_frame); in filter_frame()
169 av_frame_free(&input_frame); in filter_frame()
175 av_frame_free(&input_frame); in filter_frame()
Dvf_procamp_vaapi.c128 static int procamp_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) in procamp_vaapi_filter_frame() argument
138 av_get_pix_fmt_name(input_frame->format), in procamp_vaapi_filter_frame()
139 input_frame->width, input_frame->height, input_frame->pts); 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()
167 av_frame_free(&input_frame); in procamp_vaapi_filter_frame()
176 av_frame_free(&input_frame); in procamp_vaapi_filter_frame()
Dvaapi_vpp.c422 const AVFrame *input_frame, in vaapi_vpp_colour_properties() argument
440 .colorspace = vaapi_vpp_frame_is_rgb(input_frame) in vaapi_vpp_colour_properties()
441 ? AVCOL_SPC_RGB : input_frame->colorspace, in vaapi_vpp_colour_properties()
442 .color_primaries = input_frame->color_primaries, in vaapi_vpp_colour_properties()
443 .color_trc = input_frame->color_trc, in vaapi_vpp_colour_properties()
444 .color_range = input_frame->color_range, in vaapi_vpp_colour_properties()
445 .chroma_sample_location = input_frame->chroma_location, in vaapi_vpp_colour_properties()
517 const AVFrame *input_frame, in ff_vaapi_vpp_init_params() argument
525 .x = input_frame->crop_left, in ff_vaapi_vpp_init_params()
526 .y = input_frame->crop_top, in ff_vaapi_vpp_init_params()
[all …]
Dvf_scale_vaapi.c102 static int scale_vaapi_filter_frame(AVFilterLink *inlink, AVFrame *input_frame) in scale_vaapi_filter_frame() argument
113 av_get_pix_fmt_name(input_frame->format), in scale_vaapi_filter_frame()
114 input_frame->width, input_frame->height, input_frame->pts); in scale_vaapi_filter_frame()
126 err = av_frame_copy_props(output_frame, input_frame); in scale_vaapi_filter_frame()
142 input_frame, output_frame); in scale_vaapi_filter_frame()
152 av_frame_free(&input_frame); in scale_vaapi_filter_frame()
162 av_frame_free(&input_frame); in scale_vaapi_filter_frame()
Dvf_deshake_opencl.c1385 static int filter_frame(AVFilterLink *link, AVFrame *input_frame) in filter_frame() argument
1413 const float center_w = (float)input_frame->width / 2; in filter_frame()
1414 const float center_h = (float)input_frame->height / 2; in filter_frame()
1417 const int chroma_width = AV_CEIL_RSHIFT(input_frame->width, desc->log2_chroma_w); in filter_frame()
1418 const int chroma_height = AV_CEIL_RSHIFT(input_frame->height, desc->log2_chroma_h); in filter_frame()
1423 const float luma_w_over_chroma_w = ((float)input_frame->width / (float)chroma_width); in filter_frame()
1424 const float luma_h_over_chroma_h = ((float)input_frame->height / (float)chroma_height); in filter_frame()
1435 if (input_frame->pkt_duration) { in filter_frame()
1436 duration = input_frame->pkt_duration; in filter_frame()
1440 deshake_ctx->duration = input_frame->pts + duration; in filter_frame()
[all …]
Dvf_pad_opencl.c81 static int pad_opencl_init(AVFilterContext *avctx, AVFrame *input_frame) in pad_opencl_init() argument
84 AVHWFramesContext *input_frames_ctx = (AVHWFramesContext *)input_frame->hw_frames_ctx->data; in pad_opencl_init()
142 static int filter_frame(AVFilterLink *link, AVFrame *input_frame) in filter_frame() argument
153 if (!input_frame->hw_frames_ctx) in filter_frame()
157 err = pad_opencl_init(avctx, input_frame); in filter_frame()
187 src = (cl_mem)input_frame->data[p]; in filter_frame()
212 err = av_frame_copy_props(output_frame, input_frame); in filter_frame()
216 av_frame_free(&input_frame); in filter_frame()
222 av_frame_free(&input_frame); in filter_frame()
Dvaapi_vpp.h73 const AVFrame *input_frame,
Daf_acrossover.c76 AVFrame *input_frame; member
389 AVFrame *in = s->input_frame; \ in BIQUAD_PROCESS()
530 s->input_frame = in; in filter_frame()
545 s->input_frame = NULL; in filter_frame()
/third_party/ffmpeg/doc/examples/
Dtranscode_aac.c558 AVFrame *input_frame = NULL; in read_decode_convert_and_store() local
565 if (init_input_frame(&input_frame)) in read_decode_convert_and_store()
568 if (decode_audio_frame(input_frame, input_format_context, in read_decode_convert_and_store()
582 input_frame->nb_samples)) in read_decode_convert_and_store()
587 if (convert_samples((const uint8_t**)input_frame->extended_data, converted_input_samples, in read_decode_convert_and_store()
588 input_frame->nb_samples, resampler_context)) in read_decode_convert_and_store()
593 input_frame->nb_samples)) in read_decode_convert_and_store()
604 av_frame_free(&input_frame); in read_decode_convert_and_store()
/third_party/ffmpeg/libavcodec/
Dcinepakenc.c111 AVFrame *input_frame; member
178 if (!(s->input_frame = av_frame_alloc())) in cinepak_encode_init()
243 s->input_frame->data[0] = s->pict_bufs[3]; in cinepak_encode_init()
244 s->input_frame->linesize[0] = s->w; in cinepak_encode_init()
245 s->input_frame->data[1] = s->input_frame->data[0] + s->w * s->h; in cinepak_encode_init()
246 s->input_frame->data[2] = s->input_frame->data[1] + ((s->w * s->h) >> 2); in cinepak_encode_init()
247 s->input_frame->linesize[1] = in cinepak_encode_init()
248 s->input_frame->linesize[2] = s->w >> 1; in cinepak_encode_init()
1005 s->input_frame->data, s->input_frame->linesize, in rd_frame()
1071 s->input_frame->data, s->input_frame->linesize, in rd_frame()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/x265/
Dgstx265enc.c189 x265_picture * pic_in, GstVideoCodecFrame * input_frame, guint32 * i_nal,
1513 GstVideoCodecFrame * input_frame, guint32 * i_nal, gboolean send) in gst_x265_enc_encode_frame() argument
1526 if (input_frame) in gst_x265_enc_encode_frame()
1527 gst_video_codec_frame_unref (input_frame); in gst_x265_enc_encode_frame()
1541 if (pic_in && input_frame) { in gst_x265_enc_encode_frame()
1542 if (GST_VIDEO_CODEC_FRAME_IS_FORCE_KEYFRAME (input_frame)) { in gst_x265_enc_encode_frame()
1563 frame = input_frame; in gst_x265_enc_encode_frame()
1568 if (input_frame) in gst_x265_enc_encode_frame()
1569 gst_video_codec_frame_unref (input_frame); in gst_x265_enc_encode_frame()
/third_party/gstreamer/gstplugins_bad/sys/msdk/
Dgstmsdkenc.c1145 GstVideoCodecFrame * input_frame) in gst_msdkenc_encode_frame() argument
1152 gst_msdkenc_dequeue_frame (thiz, input_frame); in gst_msdkenc_encode_frame()
1153 gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (thiz), input_frame); in gst_msdkenc_encode_frame()
1162 if (GST_VIDEO_CODEC_FRAME_IS_FORCE_KEYFRAME (input_frame)) in gst_msdkenc_encode_frame()
1180 gst_msdkenc_dequeue_frame (thiz, input_frame); in gst_msdkenc_encode_frame()
1181 gst_video_encoder_finish_frame (GST_VIDEO_ENCODER (thiz), input_frame); in gst_msdkenc_encode_frame()
1188 gst_msdkenc_dequeue_frame (thiz, input_frame); in gst_msdkenc_encode_frame()