#include <float.h>
#include "libavutil/opt.h"
#include "libavutil/imgutils.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
 
Go to the source code of this file.
 | 
| static float  | envelope (const float x) | 
|   | 
| static float  | filter (float b, float r, float u, float v, float size) | 
|   | 
| static int  | monochrome_slice8 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) | 
|   | 
| static int  | monochrome_slice16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) | 
|   | 
| static int  | clear_slice8 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) | 
|   | 
| static int  | clear_slice16 (AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) | 
|   | 
| static int  | filter_frame (AVFilterLink *inlink, AVFrame *frame) | 
|   | 
| static av_cold int  | query_formats (AVFilterContext *ctx) | 
|   | 
| static av_cold int  | config_input (AVFilterLink *inlink) | 
|   | 
|   | AVFILTER_DEFINE_CLASS (monochrome) | 
|   | 
◆ PROCESS
Value:    const int cx = x >> subw;                \
    float y = yptr[x] * imax;                \
    float 
u = uptr[cx] * imax - .5f;         \
 
    float v = vptr[cx] * imax - .5f;         \
    float tt, t, ny;                         \
                                             \
    t = tt + (1.f - tt) * ihigh;             \
    ny = (1.f - t) * y + t * ny * y;
 
Definition at line 68 of file vf_monochrome.c.
 
 
◆ OFFSET
◆ VF
◆ envelope()
  
  
      
        
          | static float envelope  | 
          ( | 
          const float  | 
          x | ) | 
           | 
         
       
   | 
  
static   | 
  
 
 
◆ filter()
  
  
      
        
          | static float filter  | 
          ( | 
          float  | 
          b,  | 
         
        
           | 
           | 
          float  | 
          r,  | 
         
        
           | 
           | 
          float  | 
          u,  | 
         
        
           | 
           | 
          float  | 
          v,  | 
         
        
           | 
           | 
          float  | 
          size  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
◆ monochrome_slice8()
◆ monochrome_slice16()
◆ clear_slice8()
◆ clear_slice16()
◆ filter_frame()
◆ query_formats()
◆ config_input()
◆ AVFILTER_DEFINE_CLASS()
      
        
          | AVFILTER_DEFINE_CLASS  | 
          ( | 
          monochrome  | 
           | ) | 
           | 
        
      
 
 
◆ monochrome_inputs
Initial value:= {
    {
        .name           = "default",
        .needs_writable = 1,
    },
}
 
Definition at line 272 of file vf_monochrome.c.
 
 
◆ monochrome_outputs
Initial value:= {
    {
        .name = "default",
    },
}
 
Definition at line 283 of file vf_monochrome.c.
 
 
◆ monochrome_options
◆ ff_vf_monochrome
Initial value:= {
    .name          = "monochrome",
    .priv_class    = &monochrome_class,
}
 
Definition at line 304 of file vf_monochrome.c.
 
 
 
static const AVFilterPad monochrome_outputs[]
 
#define u(width, name, range_min, range_max)
 
static av_cold int query_formats(AVFilterContext *ctx)
 
static const AVFilterPad outputs[]
 
static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
 
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several inputs
 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
 
static int process_command(AVFilterContext *ctx, const char *cmd, const char *args, char *res, int res_len, int flags)
 
int ff_filter_process_command(AVFilterContext *ctx, const char *cmd, const char *arg, char *res, int res_len, int flags)
Generic processing of user supplied commands that are set in the same way as the filter options.
 
static const AVFilterPad monochrome_inputs[]
 
static av_cold int config_input(AVFilterLink *inlink)
 
#define AVFILTER_FLAG_SUPPORT_TIMELINE_GENERIC
Some filters support a generic "enable" expression option that can be used to enable or disable a fil...
 
static float envelope(const float x)
 
static float filter(float b, float r, float u, float v, float size)
 
#define AVFILTER_FLAG_SLICE_THREADS
The filter supports multithreading by splitting frames into multiple parts and processing them concur...
 
#define flags(name, subs,...)