/third_party/ffmpeg/libavfilter/ |
D | af_bs2b.c | 123 AVFrame *out_frame; in filter_frame() local 129 out_frame = frame; in filter_frame() 131 out_frame = ff_get_audio_buffer(outlink, frame->nb_samples); in filter_frame() 132 if (!out_frame) { in filter_frame() 136 av_frame_copy(out_frame, frame); in filter_frame() 137 ret = av_frame_copy_props(out_frame, frame); in filter_frame() 139 av_frame_free(&out_frame); in filter_frame() 145 bs2b->filter(bs2b->bs2bp, out_frame->extended_data[0], out_frame->nb_samples); in filter_frame() 147 if (frame != out_frame) in filter_frame() 150 return ff_filter_frame(outlink, out_frame); in filter_frame()
|
D | dnn_filter_common.c | 120 int ff_dnn_execute_model(DnnContext *ctx, AVFrame *in_frame, AVFrame *out_frame) in ff_dnn_execute_model() argument 127 .out_frame = out_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 140 .out_frame = out_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()
|
D | af_compand.c | 151 AVFrame *out_frame; in compand_nodelay() local 156 out_frame = frame; in compand_nodelay() 158 out_frame = ff_get_audio_buffer(ctx->outputs[0], nb_samples); in compand_nodelay() 159 if (!out_frame) { in compand_nodelay() 163 err = av_frame_copy_props(out_frame, frame); in compand_nodelay() 165 av_frame_free(&out_frame); in compand_nodelay() 173 double *dst = (double *)out_frame->extended_data[chan]; in compand_nodelay() 183 if (frame != out_frame) in compand_nodelay() 186 return ff_filter_frame(ctx->outputs[0], out_frame); in compand_nodelay() 198 AVFrame *out_frame = NULL; in compand_delay() local [all …]
|
D | qsvvpp.c | 436 QSVFrame *out_frame; in query_frame() local 441 out_frame = get_free_frame(&s->out_frame_list); in query_frame() 442 if (!out_frame) in query_frame() 448 out_frame->frame = av_frame_alloc(); in query_frame() 449 if (!out_frame->frame) in query_frame() 452 ret = av_hwframe_get_buffer(outlink->hw_frames_ctx, out_frame->frame, 0); in query_frame() 458 out_frame->surface = *(mfxFrameSurface1 *)out_frame->frame->data[3]; in query_frame() 462 out_frame->frame = ff_get_video_buffer(outlink, in query_frame() 465 if (!out_frame->frame) in query_frame() 468 out_frame->frame->width = outlink->w; in query_frame() [all …]
|
D | vf_dnn_processing.c | 256 AVFrame *out_frame = NULL; in flush_frame() local 257 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in flush_frame() 258 if (out_frame) { in flush_frame() 260 copy_uv_planes(ctx, out_frame, in_frame); in flush_frame() 262 ret = ff_filter_frame(outlink, out_frame); in flush_frame() 266 *out_pts = out_frame->pts + pts; in flush_frame() 308 AVFrame *out_frame = NULL; in activate() local 309 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in activate() 310 if (out_frame) { in activate() 312 copy_uv_planes(ctx, out_frame, in_frame); in activate() [all …]
|
D | af_flanger.c | 116 AVFrame *out_frame; in filter_frame() local 120 out_frame = frame; in filter_frame() 122 out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples); in filter_frame() 123 if (!out_frame) { in filter_frame() 127 av_frame_copy_props(out_frame, frame); in filter_frame() 136 double *dst = (double *)out_frame->extended_data[chan]; in filter_frame() 171 if (frame != out_frame) in filter_frame() 174 return ff_filter_frame(ctx->outputs[0], out_frame); in filter_frame()
|
D | af_aecho.c | 248 AVFrame *out_frame; in filter_frame() local 251 out_frame = frame; in filter_frame() 253 out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples); in filter_frame() 254 if (!out_frame) { in filter_frame() 258 av_frame_copy_props(out_frame, frame); in filter_frame() 261 s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data, in filter_frame() 266 if (frame != out_frame) in filter_frame() 269 return ff_filter_frame(ctx->outputs[0], out_frame); in filter_frame()
|
D | af_chorus.c | 215 AVFrame *out_frame; in filter_frame() local 219 out_frame = frame; in filter_frame() 221 out_frame = ff_get_audio_buffer(ctx->outputs[0], frame->nb_samples); in filter_frame() 222 if (!out_frame) { in filter_frame() 226 av_frame_copy_props(out_frame, frame); in filter_frame() 231 float *dst = (float *)out_frame->extended_data[c]; in filter_frame() 258 if (frame != out_frame) in filter_frame() 261 return ff_filter_frame(ctx->outputs[0], out_frame); in filter_frame()
|
D | dnn_filter_common.h | 58 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);
|
D | af_adelay.c | 323 AVFrame *out_frame; in filter_frame() local 329 out_frame = ff_get_audio_buffer(outlink, frame->nb_samples); in filter_frame() 330 if (!out_frame) { in filter_frame() 334 av_frame_copy_props(out_frame, frame); in filter_frame() 339 uint8_t *dst = out_frame->extended_data[i]; in filter_frame() 347 out_frame->pts = s->next_pts; in filter_frame() 350 return ff_filter_frame(outlink, out_frame); in filter_frame()
|
D | vf_dnn_classify.c | 222 AVFrame *out_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() 265 AVFrame *out_frame = NULL; in dnn_classify_activate() local 266 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in dnn_classify_activate()
|
D | vf_chromakey_cuda.c | 295 CUtexObject src_tex[3], AVFrame *out_frame, in call_cuda_kernel() argument 305 (CUdeviceptr)out_frame->data[0], (CUdeviceptr)out_frame->data[1], in call_cuda_kernel() 306 (CUdeviceptr)out_frame->data[2], (CUdeviceptr)out_frame->data[3] in call_cuda_kernel()
|
D | vf_dnn_detect.c | 365 AVFrame *out_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() 408 AVFrame *out_frame = NULL; in dnn_detect_activate() local 409 async_state = ff_dnn_get_result(&ctx->dnnctx, &in_frame, &out_frame); in dnn_detect_activate()
|
D | vf_vif.c | 532 AVFrame *out_frame, *main_frame = NULL, *ref_frame = NULL; in process_frame() local 540 out_frame = main_frame; in process_frame() 542 out_frame = do_vif(ctx, main_frame, ref_frame); in process_frame() 545 out_frame->pts = av_rescale_q(s->fs.pts, s->fs.time_base, outlink->time_base); in process_frame() 547 return ff_filter_frame(outlink, out_frame); in process_frame()
|
D | vf_scale_cuda.c | 406 AVFrame *out_frame, int dst_width, int dst_height, int dst_pitch) in call_resize_kernel() argument 412 (CUdeviceptr)out_frame->data[0], (CUdeviceptr)out_frame->data[1], in call_resize_kernel() 413 (CUdeviceptr)out_frame->data[2], (CUdeviceptr)out_frame->data[3] in call_resize_kernel()
|
D | af_dialoguenhance.c | 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()
|
D | vf_blend_vulkan.c | 224 static int process_frames(AVFilterContext *avctx, AVFrame *out_frame, AVFrame *top_frame, AVFrame *… 233 AVVkFrame *out = (AVVkFrame *)out_frame->data[0]; 333 ff_vk_add_exec_dep(vkctx, s->exec, out_frame, VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT);
|
/third_party/ffmpeg/libavfilter/dnn/ |
D | dnn_backend_common.c | 41 if (!exec_params->out_frame && func_type == DFT_PROCESS_FRAME) { in ff_check_exec_params() 68 task->out_frame = exec_params->out_frame; in ff_dnn_fill_task() 155 *out = task->out_frame; in ff_dnn_get_result_common() 165 AVFrame *out_frame = NULL; in ff_dnn_fill_gettingoutput_task() local 173 out_frame = av_frame_alloc(); in ff_dnn_fill_gettingoutput_task() 174 if (!out_frame) { in ff_dnn_fill_gettingoutput_task() 183 exec_params->out_frame = out_frame; in ff_dnn_fill_gettingoutput_task()
|
D | dnn_backend_native.c | 111 .out_frame = NULL, in get_output_native() 126 *output_width = task.out_frame->width; in get_output_native() 127 *output_height = task.out_frame->height; in get_output_native() 130 av_frame_free(&task.out_frame); in get_output_native() 420 … native_model->model->frame_post_proc(task->out_frame, &output, native_model->model->filter_ctx); in execute_model_native() 422 ff_proc_from_dnn_to_frame(task->out_frame, &output, ctx); in execute_model_native() 425 task->out_frame->width = output.width; in execute_model_native() 426 task->out_frame->height = output.height; in execute_model_native() 552 av_frame_free(&item->out_frame); in ff_dnn_free_model_native()
|
D | dnn_backend_openvino.c | 261 … ov_model->model->frame_post_proc(task->out_frame, &output, ov_model->model->filter_ctx); in infer_completion_callback() 263 ff_proc_from_dnn_to_frame(task->out_frame, &output, ctx); in infer_completion_callback() 266 task->out_frame->width = output.width; in infer_completion_callback() 267 task->out_frame->height = output.height; in infer_completion_callback() 671 .out_frame = NULL, in get_output_ov() 718 *output_width = task.out_frame->width; in get_output_ov() 719 *output_height = task.out_frame->height; in get_output_ov() 721 av_frame_free(&task.out_frame); in get_output_ov() 933 av_frame_free(&item->out_frame); in ff_dnn_free_model_ov()
|
D | dnn_backend_tf.c | 330 .out_frame = NULL, in get_output_tf() 352 *output_width = task.out_frame->width; in get_output_tf() 353 *output_height = task.out_frame->height; in get_output_tf() 356 av_frame_free(&task.out_frame); in get_output_tf() 1068 … tf_model->model->frame_post_proc(task->out_frame, outputs, tf_model->model->filter_ctx); in infer_completion_callback() 1070 ff_proc_from_dnn_to_frame(task->out_frame, outputs, ctx); in infer_completion_callback() 1073 task->out_frame->width = outputs[0].width; in infer_completion_callback() 1074 task->out_frame->height = outputs[0].height; in infer_completion_callback() 1246 av_frame_free(&item->out_frame); in ff_dnn_free_model_tf()
|
D | dnn_backend_common.h | 39 AVFrame *out_frame; member
|
/third_party/ffmpeg/tests/api/ |
D | api-flac-test.c | 111 AVFrame *in_frame, *out_frame; in run_test() local 140 out_frame = av_frame_alloc(); in run_test() 141 if (!out_frame) { in run_test() 195 result = avcodec_receive_frame(dec_ctx, out_frame); in run_test() 207 if (in_frame->nb_samples != out_frame->nb_samples) { in run_test() 212 if (av_channel_layout_compare(&in_frame->ch_layout, &out_frame->ch_layout)) { in run_test() 217 if (in_frame->format != out_frame->format) { in run_test() 221 … out_frame_bytes = out_frame->nb_samples * out_frame->ch_layout.nb_channels * sizeof(uint16_t); in run_test() 222 if (out_frame_bytes > out_frame->linesize[0]) { in run_test() 226 memcpy(raw_out + out_offset, out_frame->data[0], out_frame_bytes); in run_test() [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | libdavs2.c | 38 davs2_picture_t out_frame; // output data, frame data member 135 frame->pts = cad->out_frame.pts; in davs2_dump_frames() 148 ret = davs2_decoder_flush(cad->decoder, &cad->headerset, &cad->out_frame); in davs2_flush() 149 davs2_decoder_frame_unref(cad->decoder, &cad->out_frame); in davs2_flush() 162 ret = davs2_decoder_flush(cad->decoder, &cad->headerset, &cad->out_frame); in send_delayed_frame() 168 ret = davs2_dump_frames(avctx, &cad->out_frame, got_frame, &cad->headerset, ret, frame); in send_delayed_frame() 169 davs2_decoder_frame_unref(cad->decoder, &cad->out_frame); in send_delayed_frame() 214 ret = davs2_decoder_recv_frame(cad->decoder, &cad->headerset, &cad->out_frame); in davs2_decode_frame() 217 ret = davs2_dump_frames(avctx, &cad->out_frame, got_frame, &cad->headerset, ret, frame); in davs2_decode_frame() 218 davs2_decoder_frame_unref(cad->decoder, &cad->out_frame); in davs2_decode_frame()
|
D | h274.c | 217 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() 233 const int width = c > 0 ? AV_CEIL_RSHIFT(out_frame->width, 1) : out_frame->width; in ff_h274_apply_film_grain() 234 const int height = c > 0 ? AV_CEIL_RSHIFT(out_frame->height, 1) : out_frame->height; in ff_h274_apply_film_grain() 236 uint8_t * const out = out_frame->data[c]; in ff_h274_apply_film_grain() 237 const int out_stride = out_frame->linesize[c]; in ff_h274_apply_film_grain() 238 int8_t * const grain = out_frame->data[c]; // re-use output buffer for grain in ff_h274_apply_film_grain()
|