Go to the source code of this file.
 | 
| static av_cold int  | cudachromakey_init (AVFilterContext *ctx) | 
|   | 
| static av_cold void  | cudachromakey_uninit (AVFilterContext *ctx) | 
|   | 
| static av_cold int  | init_hwframe_ctx (ChromakeyCUDAContext *s, AVBufferRef *device_ctx, int width, int height) | 
|   | 
| static int  | format_is_supported (enum AVPixelFormat fmt) | 
|   | 
| static av_cold void  | set_format_info (AVFilterContext *ctx, enum AVPixelFormat in_format, enum AVPixelFormat out_format) | 
|   | 
| static av_cold int  | init_processing_chain (AVFilterContext *ctx, int width, int height) | 
|   | 
| static av_cold int  | cudachromakey_load_functions (AVFilterContext *ctx) | 
|   | 
| static av_cold int  | cudachromakey_config_props (AVFilterLink *outlink) | 
|   | 
| static int  | call_cuda_kernel (AVFilterContext *ctx, CUfunction func, CUtexObject src_tex[3], AVFrame *out_frame, int width, int height, int pitch, int width_uv, int height_uv, int pitch_uv, float u_key, float v_key, float similarity, float blend) | 
|   | 
| static int  | cudachromakey_process_internal (AVFilterContext *ctx, AVFrame *out, AVFrame *in) | 
|   | 
| static int  | cudachromakey_process (AVFilterContext *ctx, AVFrame *out, AVFrame *in) | 
|   | 
| static int  | cudachromakey_filter_frame (AVFilterLink *link, AVFrame *in) | 
|   | 
◆ DIV_UP
      
        
          | #define DIV_UP | 
          ( | 
            | 
          a,  | 
        
        
           | 
           | 
            | 
          b  | 
        
        
           | 
          ) | 
           |    (((a) + (b)-1) / (b)) | 
        
      
 
 
◆ BLOCKX
◆ BLOCKY
◆ CHECK_CU
◆ FIXNUM
      
        
          | #define FIXNUM | 
          ( | 
            | 
          x | ) | 
             lrint((x) * (1 << 10)) | 
        
      
 
 
◆ RGB_TO_U
◆ RGB_TO_V
◆ OFFSET
◆ FLAGS
◆ cudachromakey_init()
◆ cudachromakey_uninit()
◆ init_hwframe_ctx()
◆ format_is_supported()
◆ set_format_info()
◆ init_processing_chain()
◆ cudachromakey_load_functions()
◆ cudachromakey_config_props()
◆ call_cuda_kernel()
  
  
      
        
          | static int call_cuda_kernel  | 
          ( | 
          AVFilterContext *  | 
          ctx,  | 
         
        
           | 
           | 
          CUfunction  | 
          func,  | 
         
        
           | 
           | 
          CUtexObject  | 
          src_tex[3],  | 
         
        
           | 
           | 
          AVFrame *  | 
          out_frame,  | 
         
        
           | 
           | 
          int  | 
          width,  | 
         
        
           | 
           | 
          int  | 
          height,  | 
         
        
           | 
           | 
          int  | 
          pitch,  | 
         
        
           | 
           | 
          int  | 
          width_uv,  | 
         
        
           | 
           | 
          int  | 
          height_uv,  | 
         
        
           | 
           | 
          int  | 
          pitch_uv,  | 
         
        
           | 
           | 
          float  | 
          u_key,  | 
         
        
           | 
           | 
          float  | 
          v_key,  | 
         
        
           | 
           | 
          float  | 
          similarity,  | 
         
        
           | 
           | 
          float  | 
          blend  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ cudachromakey_process_internal()
◆ cudachromakey_process()
◆ cudachromakey_filter_frame()
◆ supported_formats
◆ options
◆ cudachromakey_class
◆ cudachromakey_inputs
◆ cudachromakey_outputs
◆ ff_vf_chromakey_cuda
 
@ AV_PIX_FMT_CUDA
HW acceleration through CUDA.
 
#define FF_FILTER_FLAG_HWFRAME_AWARE
The filter is aware of hardware frames, and any hardware frame context should not be automatically pr...
 
@ AV_PIX_FMT_YUVA420P
planar YUV 4:2:0, 20bpp, (1 Cr & Cb sample per 2x2 Y & A samples)
 
static const AVOption options[]
 
static av_cold void cudachromakey_uninit(AVFilterContext *ctx)
 
@ AV_PIX_FMT_YUV420P
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
 
#define FILTER_INPUTS(array)
 
#define LIBAVUTIL_VERSION_INT
 
const char * av_default_item_name(void *ptr)
Return the context name.
 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
 
static av_cold int cudachromakey_init(AVFilterContext *ctx)
 
#define FILTER_SINGLE_PIXFMT(pix_fmt_)
 
static const AVClass cudachromakey_class
 
@ AV_PIX_FMT_NV12
planar YUV 4:2:0, 12bpp, 1 plane for Y and 1 plane for the UV components, which are interleaved (firs...
 
static const AVFilterPad cudachromakey_outputs[]
 
static int cudachromakey_filter_frame(AVFilterLink *link, AVFrame *in)
 
static const AVFilterPad cudachromakey_inputs[]
 
static av_cold int cudachromakey_config_props(AVFilterLink *outlink)
 
#define FILTER_OUTPUTS(array)