Home
last modified time | relevance | path

Searched refs:in_frame (Results 1 – 21 of 21) sorted by relevance

/third_party/ffmpeg/tests/api/
Dapi-flac-test.c111 AVFrame *in_frame, *out_frame; in run_test() local
124 in_frame = av_frame_alloc(); in run_test()
125 if (!in_frame) { in run_test()
130 in_frame->nb_samples = enc_ctx->frame_size; in run_test()
131 in_frame->format = enc_ctx->sample_fmt; in run_test()
132 result = av_channel_layout_copy(&in_frame->ch_layout, &enc_ctx->ch_layout); in run_test()
135 if (av_frame_get_buffer(in_frame, 0) != 0) { in run_test()
146 raw_in = av_malloc(in_frame->linesize[0] * NUMBER_OF_AUDIO_FRAMES); in run_test()
152 raw_out = av_malloc(in_frame->linesize[0] * NUMBER_OF_AUDIO_FRAMES); in run_test()
159 result = av_frame_make_writable(in_frame); in run_test()
[all …]
/third_party/ffmpeg/libavfilter/dnn/
Ddnn_backend_common.c36 if (!exec_params->in_frame) { in ff_check_exec_params()
67 task->in_frame = exec_params->in_frame; in ff_dnn_fill_task()
154 *in = task->in_frame; in ff_dnn_get_result_common()
164 AVFrame *in_frame = NULL; in ff_dnn_fill_gettingoutput_task() local
167 in_frame = av_frame_alloc(); in ff_dnn_fill_gettingoutput_task()
168 if (!in_frame) { in ff_dnn_fill_gettingoutput_task()
175 av_frame_free(&in_frame); in ff_dnn_fill_gettingoutput_task()
180 in_frame->width = input_width; in ff_dnn_fill_gettingoutput_task()
181 in_frame->height = input_height; in ff_dnn_fill_gettingoutput_task()
182 exec_params->in_frame = in_frame; in ff_dnn_fill_gettingoutput_task()
Ddnn_backend_native.c110 .in_frame = NULL, in get_output_native()
131 av_frame_free(&task.in_frame); in get_output_native()
345 oprd->dims[1] = task->in_frame->height; in execute_model_native()
346 oprd->dims[2] = task->in_frame->width; in execute_model_native()
369 … native_model->model->frame_pre_proc(task->in_frame, &input, native_model->model->filter_ctx); in execute_model_native()
371 ff_proc_from_frame_to_dnn(task->in_frame, &input, ctx); in execute_model_native()
551 av_frame_free(&item->in_frame); in ff_dnn_free_model_native()
Ddnn_backend_openvino.c173 … ov_model->model->frame_pre_proc(task->in_frame, &input, ov_model->model->filter_ctx); in fill_model_input_ov()
175 ff_proc_from_frame_to_dnn(task->in_frame, &input, ctx); in fill_model_input_ov()
180 ff_frame_to_dnn_detect(task->in_frame, &input, ctx); in fill_model_input_ov()
183 ff_frame_to_dnn_classify(task->in_frame, &input, lltask->bbox_index, ctx); in fill_model_input_ov()
275 … ov_model->model->detect_post_proc(task->in_frame, &output, 1, ov_model->model->filter_ctx); in infer_completion_callback()
282 …ov_model->model->classify_post_proc(task->in_frame, &output, request->lltasks[i]->bbox_index, ov_m… in infer_completion_callback()
612 AVFrame *frame = task->in_frame; in extract_lltask_from_task()
670 .in_frame = NULL, in get_output_ov()
722 av_frame_free(&task.in_frame); in get_output_ov()
932 av_frame_free(&item->in_frame); in ff_dnn_free_model_ov()
Ddnn_backend_tf.c329 .in_frame = NULL, in get_output_tf()
357 av_frame_free(&task.in_frame); in get_output_tf()
966 input.height = task->in_frame->height; in fill_model_input_tf()
967 input.width = task->in_frame->width; in fill_model_input_tf()
996 … tf_model->model->frame_pre_proc(task->in_frame, &input, tf_model->model->filter_ctx); in fill_model_input_tf()
998 ff_proc_from_frame_to_dnn(task->in_frame, &input, ctx); in fill_model_input_tf()
1003 ff_frame_to_dnn_detect(task->in_frame, &input, ctx); in fill_model_input_tf()
1082 …tf_model->model->detect_post_proc(task->in_frame, outputs, task->nb_output, tf_model->model->filte… in infer_completion_callback()
1245 av_frame_free(&item->in_frame); in ff_dnn_free_model_tf()
Ddnn_backend_common.h38 AVFrame *in_frame; member
/third_party/ffmpeg/libavfilter/
Ddnn_filter_common.c120 int ff_dnn_execute_model(DnnContext *ctx, AVFrame *in_frame, AVFrame *out_frame) in ff_dnn_execute_model() argument
126 .in_frame = in_frame, in ff_dnn_execute_model()
132 int ff_dnn_execute_model_classification(DnnContext *ctx, AVFrame *in_frame, AVFrame *out_frame, con… in ff_dnn_execute_model_classification() argument
139 .in_frame = in_frame, in ff_dnn_execute_model_classification()
147 DNNAsyncStatusType ff_dnn_get_result(DnnContext *ctx, AVFrame **in_frame, AVFrame **out_frame) in ff_dnn_get_result() argument
149 return (ctx->dnn_module->get_result)(ctx->model, in_frame, out_frame); in ff_dnn_get_result()
Dvf_dnn_processing.c255 AVFrame *in_frame = NULL; in flush_frame() local
257 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in flush_frame()
259 if (isPlanarYUV(in_frame->format)) in flush_frame()
260 copy_uv_planes(ctx, out_frame, in_frame); in flush_frame()
261 av_frame_free(&in_frame); in flush_frame()
307 AVFrame *in_frame = NULL; in activate() local
309 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in activate()
311 if (isPlanarYUV(in_frame->format)) in activate()
312 copy_uv_planes(ctx, out_frame, in_frame); in activate()
313 av_frame_free(&in_frame); in activate()
Daf_apsyclip.c54 AVFrame *in_frame; member
213 s->in_frame = ff_get_audio_buffer(inlink, s->fft_size * 2); in config_input()
219 if (!s->in_buffer || !s->in_frame || in config_input()
268 const float *in_frame, float *out_frame, const int add_to_out_frame) in apply_window() argument
274 out_frame[i] += in_frame[i] * window[i]; in apply_window()
276 out_frame[i] = in_frame[i] * window[i]; in apply_window()
397 float *in_frame, float *out_dist_frame, in feed() argument
409 in_frame[i] = in_frame[i + s->overlap]; in feed()
414 in_frame[i + s->fft_size - s->overlap] = in_samples[i]; in feed()
418 apply_window(s, in_frame, windowed_frame, 0); in feed()
[all …]
Dvf_dnn_classify.c221 AVFrame *in_frame = NULL; in dnn_classify_flush_frame() local
223 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in dnn_classify_flush_frame()
225 ret = ff_filter_frame(outlink, in_frame); in dnn_classify_flush_frame()
229 *out_pts = in_frame->pts + pts; in dnn_classify_flush_frame()
264 AVFrame *in_frame = NULL; in dnn_classify_activate() local
266 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in dnn_classify_activate()
268 ret = ff_filter_frame(outlink, in_frame); in dnn_classify_activate()
Daf_dialoguenhance.c44 AVFrame *in_frame; member
98 s->in_frame = ff_get_audio_buffer(inlink, s->fft_size * 4); in config_input()
104 if (!s->in_frame || !s->windowed_out || !s->windowed_prev || in config_input()
128 const float *in_frame, float *out_frame, const int add_to_out_frame) in apply_window() argument
134 out_frame[i] += in_frame[i] * window[i]; in apply_window()
137 out_frame[i] = in_frame[i] * window[i]; in apply_window()
236 float *left_in = (float *)s->in_frame->extended_data[0]; in de_stereo()
237 float *right_in = (float *)s->in_frame->extended_data[1]; in de_stereo()
368 av_frame_free(&s->in_frame); in uninit()
Ddnn_filter_common.h58 int ff_dnn_execute_model(DnnContext *ctx, AVFrame *in_frame, AVFrame *out_frame);
59 int ff_dnn_execute_model_classification(DnnContext *ctx, AVFrame *in_frame, AVFrame *out_frame, con…
60 DNNAsyncStatusType ff_dnn_get_result(DnnContext *ctx, AVFrame **in_frame, AVFrame **out_frame);
Dvf_dnn_detect.c364 AVFrame *in_frame = NULL; in dnn_detect_flush_frame() local
366 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in dnn_detect_flush_frame()
368 ret = ff_filter_frame(outlink, in_frame); in dnn_detect_flush_frame()
372 *out_pts = in_frame->pts + pts; in dnn_detect_flush_frame()
407 AVFrame *in_frame = NULL; in dnn_detect_activate() local
409 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in dnn_detect_activate()
411 ret = ff_filter_frame(outlink, in_frame); in dnn_detect_activate()
Davf_showspectrum.c66 AVFrame *in_frame; member
344 av_frame_free(&s->in_frame); in uninit()
401 float *in_frame = (float *)s->in_frame->extended_data[ch]; in run_channel_fft() local
403 memmove(in_frame, in_frame + s->hop_size, (s->fft_size - s->hop_size) * sizeof(float)); in run_channel_fft()
404 memcpy(in_frame + s->fft_size - s->hop_size, p, fin->nb_samples * sizeof(float)); in run_channel_fft()
407 in_frame[i + s->fft_size - s->hop_size] = 0.f; in run_channel_fft()
419 s->fft_data[ch][n].re = in_frame[n] * window_func_lut[n]; in run_channel_fft()
486 s->fft_in[ch][n].re = in_frame[n] * window_func_lut[n]; in run_channel_fft()
1299 s->in_frame = ff_get_audio_buffer(inlink, s->win_size); in config_output()
1300 if (!s->in_frame) in config_output()
Ddnn_interface.h71 AVFrame *in_frame; member
Dqsvvpp.c799 QSVFrame *in_frame, *out_frame; in ff_qsvvpp_filter_frame() local
819 in_frame = submit_frame(s, inlink, picref); in ff_qsvvpp_filter_frame()
820 if (!in_frame) { in ff_qsvvpp_filter_frame()
834 ret = MFXVideoVPP_RunFrameVPPAsync(s->session, &in_frame->surface, in ff_qsvvpp_filter_frame()
/third_party/ffmpeg/libavcodec/
Dh274.c217 int ff_h274_apply_film_grain(AVFrame *out_frame, const AVFrame *in_frame, in ff_h274_apply_film_grain() argument
226 av_assert1(out_frame->format == in_frame->format); in ff_h274_apply_film_grain()
227 if (in_frame->format != AV_PIX_FMT_YUV420P) in ff_h274_apply_film_grain()
240 const uint8_t * const in = in_frame->data[c]; in ff_h274_apply_film_grain()
241 const int in_stride = in_frame->linesize[c]; in ff_h274_apply_film_grain()
Daudiotoolboxenc.c512 AVFrame *in_frame; in ffat_encode() local
527 in_frame = av_frame_clone(frame); in ffat_encode()
528 if (!in_frame) in ffat_encode()
531 ff_bufqueue_add(avctx, &at->frame_queue, in_frame); in ffat_encode()
Dinternal.h104 AVFrame *in_frame; member
Dencode.c178 AVFrame *frame = avci->in_frame; in encode_simple_internal()
592 avci->in_frame = av_frame_alloc(); in ff_encode_preinit()
593 if (!avci->in_frame) in ff_encode_preinit()
Davcodec.c391 if (avci->in_frame) in avcodec_flush_buffers()
392 av_frame_unref(avci->in_frame); in avcodec_flush_buffers()
472 av_frame_free(&avci->in_frame); in avcodec_close()