FFmpeg
Loading...
Searching...
No Matches
video.c File Reference
#include <string.h>
#include <stdio.h>
#include "libavutil/buffer.h"
#include "libavutil/cpu.h"
#include "libavutil/framepool.h"
#include "libavutil/hwcontext.h"
#include "libavutil/pixfmt.h"
#include "avfilter.h"
#include "avfilter_internal.h"
#include "filters.h"
#include "video.h"

Go to the source code of this file.

Functions

AVFrame * ff_null_get_video_buffer (AVFilterLink *link, int w, int h)
 
static void set_link_props (AVFrame *frame, const AVFilterLink *link)
 
AVFrame * ff_default_get_video_buffer2 (AVFilterLink *link, int w, int h, int align)
 
AVFrame * ff_default_get_video_buffer (AVFilterLink *link, int w, int h)
 
AVFrame * ff_hwupload_get_video_buffer (AVFilterLink *link, int w, int h)
 get_buffer.video() of the input of a filter that uploads software frames to the hardware frames context of its output link.
 
AVFrame * ff_get_video_buffer (AVFilterLink *link, int w, int h)
 Request a picture buffer with a specific set of permissions.
 

Variables

const AVFilterPad ff_video_default_filterpad [1]
 An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.
 

Function Documentation

◆ ff_null_get_video_buffer()

◆ set_link_props()

static void set_link_props ( AVFrame * frame,
const AVFilterLink * link )
static

Definition at line 49 of file video.c.

Referenced by ff_default_get_video_buffer2(), and ff_hwupload_get_video_buffer().

◆ ff_default_get_video_buffer2()

AVFrame * ff_default_get_video_buffer2 ( AVFilterLink * link,
int w,
int h,
int align )

◆ ff_default_get_video_buffer()

◆ ff_hwupload_get_video_buffer()

AVFrame * ff_hwupload_get_video_buffer ( AVFilterLink * link,
int w,
int h )

get_buffer.video() of the input of a filter that uploads software frames to the hardware frames context of its output link.

Definition at line 95 of file video.c.

◆ ff_get_video_buffer()

AVFrame * ff_get_video_buffer ( AVFilterLink * link,
int w,
int h )

Request a picture buffer with a specific set of permissions.

Parameters
linkthe output link to the filter from which the buffer will be requested
wthe minimum width of the buffer to allocate
hthe minimum height of the buffer to allocate
Returns
on success, an AVFrame owned by the caller, NULL on error

Definition at line 120 of file video.c.

Referenced by activate(), activate(), activate(), activate(), activate(), alloc_out_frame(), apply_palette(), avgblur_opencl_filter_frame(), avgblur_vulkan_filter_frame(), blend_frame(), blend_frame(), blend_frames(), blur_frame(), chromaber_vulkan_filter_frame(), config_input(), config_input(), config_input(), config_output(), config_output(), config_output(), config_output(), config_video(), config_video_output(), convolution_opencl_filter_frame(), create_frame(), create_weave_frame(), cuda_bilateral_filter_frame(), cudachromakey_filter_frame(), cudaupload_filter_frame(), ddagrab_request_frame(), deint_vaapi_filter_frame(), do_morpho(), draw_background(), draw_spatial(), drawbox_vaapi_filter_frame(), extract_plane(), ff_inlink_make_frame_writable(), ff_null_get_video_buffer(), ff_yadif_filter_frame(), filter(), filter(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), filter_frame(), flip_bayer(), gblur_vulkan_filter_frame(), geq_filter_frame(), get_frame(), get_palette_frame(), get_video_buffer(), get_video_buffer(), get_video_buffer(), hwdownload_filter_frame(), hwmap_get_buffer(), hwupload_filter_frame(), interlace_vulkan_filter_frame(), misc_vaapi_filter_frame(), neighbor_opencl_filter_frame(), nlmeans_opencl_filter_frame(), nlmeans_vulkan_filter_frame(), output_dup_frame(), output_frame(), output_frame(), output_frame(), output_single_frame(), overlay_opencl_blend(), overlay_vaapi_blend(), overlay_vulkan_blend(), pad_vaapi_filter_frame(), passthrough_frame(), pixscope_filter_frame(), plot_cqt(), plot_freqs(), procamp_vaapi_filter_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame(), process_frame_if_exists(), process_work_frame(), program_opencl_run(), query_frame(), remap_opencl_process_frame(), request_frame(), request_frame(), request_frame(), request_frame(), request_frame(), request_frame(), request_frame(), return_frame(), scale_frame(), scale_vaapi_filter_frame(), scale_vt_filter_frame(), scale_vulkan_filter_frame(), send_output_picture(), shuffleplanes_filter_frame(), sierpinski_request_frame(), submit_frame(), testsrc_vulkan_activate(), tonemap_opencl_filter_frame(), tonemap_vaapi_filter_frame(), transpose_opencl_filter_frame(), transpose_vaapi_filter_frame(), transpose_vt_filter_frame(), try_push_frame(), unsharp_opencl_filter_frame(), v360_vulkan_filter_frame(), video_frame(), xfade_frame(), xfade_frame(), and xfade_frame().

Variable Documentation

◆ ff_video_default_filterpad

const AVFilterPad ff_video_default_filterpad[1]
Initial value:
= {
{
.name = "default",
}
}
@ AVMEDIA_TYPE_VIDEO
Definition avutil.h:200

An AVFilterPad array whose only entry has name "default" and is of type AVMEDIA_TYPE_VIDEO.

Definition at line 37 of file video.c.

Referenced by AVFILTER_DEFINE_CLASS_EXT(), and AVFILTER_DEFINE_CLASS_EXT().