libavfilter/vf_yadif.c File Reference

#include "libavutil/cpu.h"
#include "libavutil/common.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "yadif.h"
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  YADIFContext

Defines

#define CHECK(j)
#define FILTER

Functions

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 AVFilterBufferRefget_video_buffer (AVFilterLink *link, int perms, int w, int h)
static void return_frame (AVFilterContext *ctx, int is_second)
static void start_frame (AVFilterLink *link, AVFilterBufferRef *picref)
static void end_frame (AVFilterLink *link)
static int request_frame (AVFilterLink *link)
static int poll_frame (AVFilterLink *link)
static av_cold void uninit (AVFilterContext *ctx)
static int query_formats (AVFilterContext *ctx)
static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static void null_draw_slice (AVFilterLink *link, int y, int h, int slice_dir)

Variables

AVFilter avfilter_vf_yadif


Define Documentation

#define CHECK (  ) 

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 58 of file vf_yadif.c.

#define FILTER

Definition at line 66 of file vf_yadif.c.


Function Documentation

static void end_frame ( AVFilterLink link  )  [static]

Definition at line 257 of file vf_yadif.c.

static void filter ( AVFilterContext ctx,
AVFilterBufferRef dstpic,
int  parity,
int  tff 
) [static]

Definition at line 130 of file vf_yadif.c.

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]

Definition at line 106 of file vf_yadif.c.

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]

Definition at line 117 of file vf_yadif.c.

Referenced by return_frame().

static AVFilterBufferRef* get_video_buffer ( AVFilterLink link,
int  perms,
int  w,
int  h 
) [static]

Definition at line 167 of file vf_yadif.c.

static av_cold int init ( AVFilterContext ctx,
const char *  args,
void *  opaque 
) [static]

Definition at line 343 of file vf_yadif.c.

static void null_draw_slice ( AVFilterLink link,
int  y,
int  h,
int  slice_dir 
) [static]

Definition at line 367 of file vf_yadif.c.

static int poll_frame ( AVFilterLink link  )  [static]

Definition at line 288 of file vf_yadif.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 317 of file vf_yadif.c.

static int request_frame ( AVFilterLink link  )  [static]

Definition at line 268 of file vf_yadif.c.

static void return_frame ( AVFilterContext ctx,
int  is_second 
) [static]

Definition at line 185 of file vf_yadif.c.

Referenced by end_frame(), request_frame(), and start_frame().

static void start_frame ( AVFilterLink link,
AVFilterBufferRef picref 
) [static]

Definition at line 229 of file vf_yadif.c.

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 308 of file vf_yadif.c.


Variable Documentation

Initial value:

 {
    .name          = "yadif",
    .description   = NULL_IF_CONFIG_SMALL("Deinterlace the input image"),

    .priv_size     = sizeof(YADIFContext),
    .init          = init,
    .uninit        = uninit,
    .query_formats = query_formats,

    .inputs    = (AVFilterPad[]) {{ .name             = "default",
                                    .type             = AVMEDIA_TYPE_VIDEO,
                                    .start_frame      = start_frame,
                                    .get_video_buffer = get_video_buffer,
                                    .draw_slice       = null_draw_slice,
                                    .end_frame        = end_frame, },
                                  { .name = NULL}},

    .outputs   = (AVFilterPad[]) {{ .name             = "default",
                                    .type             = AVMEDIA_TYPE_VIDEO,
                                    .poll_frame       = poll_frame,
                                    .request_frame    = request_frame, },
                                  { .name = NULL}},
}

Definition at line 369 of file vf_yadif.c.


Generated on Fri Oct 26 02:38:20 2012 for FFmpeg by  doxygen 1.5.8