MythTV  master
Classes | Macros | Typedefs | Functions | Variables
filter_bobdeint.c File Reference
#include <stdlib.h>
#include <stdio.h>
#include "mythconfig.h"
#include <string.h>
#include "filter.h"
#include "mythframe.h"
Include dependency graph for filter_bobdeint.c:

Go to the source code of this file.

Classes

struct  BDFilter
 

Macros

#define ODD(_n)   (((_n)%2)==1)
 

Typedefs

typedef struct BDFilter BDFilter
 

Functions

static void doSplit (BDFilter *filter, unsigned char *buf, int lines, int width)
 
int bobDeintFilter (VideoFilter *f, VideoFrame *frame, int field)
 
void bobDtor (VideoFilter *f)
 
static VideoFilternew_filter (VideoFrameType inpixfmt, VideoFrameType outpixfmt, const int *width, const int *height, const char *options, int threads)
 

Variables

static FmtConv FmtList []
 
const FilterInfo filter_table []
 

Macro Definition Documentation

◆ ODD

#define ODD (   _n)    (((_n)%2)==1)

Definition at line 29 of file filter_bobdeint.c.

Typedef Documentation

◆ BDFilter

typedef struct BDFilter BDFilter

Function Documentation

◆ doSplit()

static void doSplit ( BDFilter filter,
unsigned char *  buf,
int  lines,
int  width 
)
static

Definition at line 31 of file filter_bobdeint.c.

Referenced by bobDeintFilter().

◆ bobDeintFilter()

int bobDeintFilter ( VideoFilter f,
VideoFrame frame,
int  field 
)

Definition at line 62 of file filter_bobdeint.c.

Referenced by new_filter().

◆ bobDtor()

void bobDtor ( VideoFilter f)

Definition at line 98 of file filter_bobdeint.c.

Referenced by new_filter().

◆ new_filter()

static VideoFilter* new_filter ( VideoFrameType  inpixfmt,
VideoFrameType  outpixfmt,
const int *  width,
const int *  height,
const char *  options,
int  threads 
)
static

Definition at line 107 of file filter_bobdeint.c.

Referenced by HDHRStreamHandler::UpdateFilters().

Variable Documentation

◆ FmtList

FmtConv FmtList[]
static
Initial value:
=
{
}
#define FMT_NULL
Definition: filter.h:20

Definition at line 138 of file filter_bobdeint.c.

◆ filter_table

const FilterInfo filter_table[]
Initial value:
=
{
{
.filter_init= &new_filter,
.name= (char*)"bobdeint",
.descript= (char*)
"bob deinterlace filter; "
"splits fields to top and bottom of buffer",
.formats= FmtList,
.libname= NULL,
},
}
#define NULL
Definition: H264Parser.h:62
static VideoFilter * new_filter(VideoFrameType inpixfmt, VideoFrameType outpixfmt, const int *width, const int *height, const char *options, int threads)
#define FILT_NULL
Definition: filter.h:47
static FmtConv FmtList[]

Definition at line 144 of file filter_bobdeint.c.