#include "libavutil/avassert.h"
#include "libavutil/cpu.h"
#include "libavutil/common.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "formats.h"
#include "internal.h"
#include "video.h"
#include "yadif.h"
#include <assert.h>
 
Go to the source code of this file.
 | 
| #define  | PERM_RWP   AV_PERM_WRITE | AV_PERM_PRESERVE | AV_PERM_REUSE | 
|   | 
| #define  | CHECK(j) | 
|   | 
| #define  | FILTER | 
|   | 
| #define  | OFFSET(x)   offsetof(YADIFContext, x) | 
|   | 
| #define  | FLAGS   AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM | 
|   | 
| #define  | CONST(name, help, val, unit)   { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } | 
|   | 
 | 
| static void  | filter_line_c (uint8_t *dst, uint8_t *prev, uint8_t *cur, uint8_t *next, int w, int prefs, int mrefs, int parity, int mode) | 
|   | 
| static void  | filter_line_c_16bit (uint16_t *dst, uint16_t *prev, uint16_t *cur, uint16_t *next, int w, int prefs, int mrefs, int parity, int mode) | 
|   | 
| static void  | filter (AVFilterContext *ctx, AVFilterBufferRef *dstpic, int parity, int tff) | 
|   | 
| static int  | return_frame (AVFilterContext *ctx, int is_second) | 
|   | 
| static int  | filter_frame (AVFilterLink *link, AVFilterBufferRef *picref) | 
|   | 
| static int  | request_frame (AVFilterLink *link) | 
|   | 
|   | AVFILTER_DEFINE_CLASS (yadif) | 
|   | 
| static av_cold void  | uninit (AVFilterContext *ctx) | 
|   | 
| static int  | query_formats (AVFilterContext *ctx) | 
|   | 
| static av_cold int  | init (AVFilterContext *ctx, const char *args) | 
|   | 
| static int  | config_props (AVFilterLink *link) | 
|   | 
Value:{   
int score = 
FFABS(cur[mrefs-1+(j)] - cur[prefs-1-(j)])\
 
                  + 
FFABS(cur[mrefs  +(j)] - cur[prefs  -(j)])\
 
                  + 
FFABS(cur[mrefs+1+(j)] - cur[prefs+1-(j)]);\
 
        if (score < spatial_score) {\
            spatial_score= score;\
            spatial_pred= (cur[mrefs  +(j)] + cur[prefs  -(j)])>>1;\
 
Definition at line 36 of file vf_yadif.c.
 
 
      
        
          | #define CONST | 
          ( | 
            | 
          name,  | 
        
        
           | 
           | 
            | 
          help,  | 
        
        
           | 
           | 
            | 
          val,  | 
        
        
           | 
           | 
            | 
          unit  | 
        
        
           | 
          ) | 
           |    { name, help, 0, AV_OPT_TYPE_CONST, {.i64=val}, INT_MIN, INT_MAX, FLAGS, unit } | 
        
      
 
 
  
  
      
        
          | static void filter_line_c_16bit  | 
          ( | 
          uint16_t *  | 
          dst,  | 
         
        
           | 
           | 
          uint16_t *  | 
          prev,  | 
         
        
           | 
           | 
          uint16_t *  | 
          cur,  | 
         
        
           | 
           | 
          uint16_t *  | 
          next,  | 
         
        
           | 
           | 
          int  | 
          w,  | 
         
        
           | 
           | 
          int  | 
          prefs,  | 
         
        
           | 
           | 
          int  | 
          mrefs,  | 
         
        
           | 
           | 
          int  | 
          parity,  | 
         
        
           | 
           | 
          int  | 
          mode  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
static   | 
  
 
 
      
        
          | AVFILTER_DEFINE_CLASS  | 
          ( | 
          yadif  | 
           | ) | 
           | 
        
      
 
 
Initial value:= {
    {
        .name             = "default",
    },
}
 
Definition at line 415 of file vf_yadif.c.
 
 
Initial value:= {
    {
        .name          = "default",
    },
}
 
Definition at line 425 of file vf_yadif.c.
 
 
Initial value:= {
    .name          = "yadif",
    .priv_class = &yadif_class,
}
 
Definition at line 435 of file vf_yadif.c.