libavfilter/vf_idet.c File Reference

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

Go to the source code of this file.

Data Structures

struct  IDETContext

Defines

#define HIST_SIZE   4

Enumerations

enum  Type { TFF, BFF, PROGRSSIVE, UNDETERMINED }

Functions

static const char * type2str (Type type)
static int filter_line_c (const uint8_t *a, const uint8_t *b, const uint8_t *c, int w)
static int filter_line_c_16bit (const uint16_t *a, const uint16_t *b, const uint16_t *c, int w)
static void filter (AVFilterContext *ctx)
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_idet


Define Documentation

#define HIST_SIZE   4

Definition at line 29 of file vf_idet.c.

Referenced by end_frame(), filter(), frame_sum_square_err(), and init().


Enumeration Type Documentation

enum Type

Enumerator:
TFF 
BFF 
PROGRSSIVE 
UNDETERMINED 

Definition at line 31 of file vf_idet.c.


Function Documentation

static void end_frame ( AVFilterLink link  )  [static]

Definition at line 191 of file vf_idet.c.

static void filter ( AVFilterContext ctx  )  [static]

Definition at line 92 of file vf_idet.c.

static int filter_line_c ( const uint8_t a,
const uint8_t b,
const uint8_t c,
int  w 
) [static]

Definition at line 68 of file vf_idet.c.

Referenced by init().

static int filter_line_c_16bit ( const uint16_t *  a,
const uint16_t *  b,
const uint16_t *  c,
int  w 
) [static]

Definition at line 80 of file vf_idet.c.

Referenced by end_frame(), and return_frame().

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

Definition at line 294 of file vf_idet.c.

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

Definition at line 313 of file vf_idet.c.

static int poll_frame ( AVFilterLink link  )  [static]

Definition at line 225 of file vf_idet.c.

static int query_formats ( AVFilterContext ctx  )  [static]

Definition at line 264 of file vf_idet.c.

static int request_frame ( AVFilterLink link  )  [static]

Definition at line 210 of file vf_idet.c.

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

Definition at line 171 of file vf_idet.c.

static const char* type2str ( Type  type  )  [static]

Definition at line 57 of file vf_idet.c.

Referenced by filter().

static av_cold void uninit ( AVFilterContext ctx  )  [static]

Definition at line 242 of file vf_idet.c.


Variable Documentation

Initial value:

 {
    .name          = "idet",
    .description   = NULL_IF_CONFIG_SMALL("Interlace detect Filter."),

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

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

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

Definition at line 315 of file vf_idet.c.


Generated on Fri Oct 26 02:48:01 2012 for FFmpeg by  doxygen 1.5.8