#include "libavutil/avassert.h"#include "libavutil/mem.h"#include "libavutil/opt.h"#include "avfilter.h"#include "filters.h"#include "framesync.h"Go to the source code of this file.
Definition at line 28 of file framesync.c.
Definition at line 29 of file framesync.c.
| Enumerator | |
|---|---|
| STATE_BOF | |
| STATE_RUN | |
| STATE_EOF | |
Definition at line 70 of file framesync.c.
Definition at line 31 of file framesync.c.
Definition at line 63 of file framesync.c.
Definition at line 313 of file framesync.c.
Referenced by framesync_advance().
Pre-initialize a frame sync structure.
It sets the class pointer and inits the options to their default values. The entire structure is expected to be already set to 0. This step is optional, but necessary to use the options.
Definition at line 78 of file framesync.c.
Referenced by ff_framesync_init(), and preinit().
Initialize a frame sync structure.
The entire structure is expected to be already set to 0 or preinited.
Definition at line 86 of file framesync.c.
Referenced by config_output(), config_props(), ff_framesync_init_dualinput(), init_framesync(), lut2_config_output(), and program_opencl_config_output().
Definition at line 106 of file framesync.c.
Referenced by framesync_advance(), and framesync_sync_level_update().
Definition at line 113 of file framesync.c.
Referenced by ff_framesync_configure(), and framesync_inject_status().
Configure a frame sync structure.
Must be called after all options are set but before all use.
Definition at line 137 of file framesync.c.
Referenced by config_output(), config_props(), config_props_output(), init_framesync(), lut2_config_output(), overlay_cuda_config_output(), overlay_opencl_config_output(), overlay_vaapi_config_output(), overlay_vulkan_config_output(), and program_opencl_config_output().
Definition at line 187 of file framesync.c.
Referenced by ff_framesync_activate().
Definition at line 238 of file framesync.c.
Referenced by framesync_inject_status().
Definition at line 245 of file framesync.c.
Referenced by consume_from_fifos().
Definition at line 258 of file framesync.c.
Referenced by consume_from_fifos().
Get the current frame in an input.
Definition at line 269 of file framesync.c.
Referenced by blend_frame(), do_scale(), ff_framesync_dualinput_get(), overlay_opencl_blend(), overlay_vaapi_blend(), overlay_vulkan_blend(), process_frame(), program_opencl_filter(), and remap_opencl_process_frame().
Free all memory currently allocated.
Definition at line 301 of file framesync.c.
Referenced by config_props(), overlay_cuda_uninit(), overlay_opencl_uninit(), overlay_qsv_uninit(), overlay_vaapi_uninit(), overlay_vulkan_uninit(), program_opencl_uninit(), remap_opencl_uninit(), stack_uninit(), and uninit().
Examine the frames in the filter's input and try to produce output.
This function can be the complete implementation of the activate method of a filter using framesync.
Definition at line 352 of file framesync.c.
Referenced by activate(), overlay_cuda_activate(), overlay_opencl_activate(), overlay_vaapi_activate(), overlay_vulkan_activate(), program_opencl_activate(), and stack_activate().
Initialize a frame sync structure for dualinput.
Compared to generic framesync, dualinput assumes the first input is the main one and the filtering is performed on it. The first input will be the only one with sync set and generic timeline support will just pass it unchanged when disabled.
Equivalent to ff_framesync_init(fs, parent, 2) then setting the time base, sync and ext modes on the inputs.
Definition at line 372 of file framesync.c.
Referenced by config_output(), config_props_output(), overlay_cuda_config_output(), overlay_opencl_config_output(), overlay_vaapi_config_output(), and overlay_vulkan_config_output().
Definition at line 390 of file framesync.c.
Referenced by blend_frame_for_dualinput(), do_convolve(), do_corr(), do_identity(), do_morpho(), do_psnr(), do_ssim(), do_ssim360(), do_vmaf(), do_xpsnr(), ff_framesync_dualinput_get_writable(), overlay_cuda_blend(), process_frame(), and varblur_frame().
Same as ff_framesync_dualinput_get(), but make sure that f0 is writable.
Definition at line 410 of file framesync.c.
Referenced by do_alphamerge(), do_blend(), and load_apply_palette().
Definition at line 36 of file framesync.c.
Definition at line 54 of file framesync.c.
Referenced by child_class_iterate(), ff_framesync_child_class_iterate(), and ff_framesync_preinit().