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

Go to the source code of this file.

Classes

struct  ThisFilter
 

Typedefs

typedef struct ThisFilter ThisFilter
 

Functions

static void adjustRegion (uint8_t *buf, const uint8_t *end, const uint8_t *table)
 
static int adjustFilter (VideoFilter *vf, VideoFrame *frame, int field)
 
static void fillTable (uint8_t *table, int in_min, int in_max, int out_min, int out_max, float gamma)
 
static VideoFilternewAdjustFilter (VideoFrameType inpixfmt, VideoFrameType outpixfmt, const int *width, const int *height, const char *options, int threads)
 

Variables

static FmtConv FmtList []
 
const FilterInfo filter_table []
 

Typedef Documentation

◆ ThisFilter

typedef struct ThisFilter ThisFilter

Function Documentation

◆ adjustRegion()

static void adjustRegion ( uint8_t *  buf,
const uint8_t *  end,
const uint8_t *  table 
)
static

Definition at line 57 of file filter_adjust.c.

Referenced by adjustFilter().

◆ adjustFilter()

static int adjustFilter ( VideoFilter vf,
VideoFrame frame,
int  field 
)
static

Definition at line 139 of file filter_adjust.c.

Referenced by newAdjustFilter().

◆ fillTable()

static void fillTable ( uint8_t *  table,
int  in_min,
int  in_max,
int  out_min,
int  out_max,
float  gamma 
)
static

Definition at line 192 of file filter_adjust.c.

Referenced by newAdjustFilter().

◆ newAdjustFilter()

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

Definition at line 236 of file filter_adjust.c.

Variable Documentation

◆ FmtList

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

Definition at line 305 of file filter_adjust.c.

◆ filter_table

const FilterInfo filter_table[]
Initial value:
=
{
{
.filter_init= &newAdjustFilter,
.name= (char*)"adjust",
.descript= (char*)"adjust range and gamma of video",
.formats= FmtList,
.libname= NULL
},
}
#define NULL
Definition: H264Parser.h:62
static FmtConv FmtList[]
#define FILT_NULL
Definition: filter.h:47
static VideoFilter * newAdjustFilter(VideoFrameType inpixfmt, VideoFrameType outpixfmt, const int *width, const int *height, const char *options, int threads)

Definition at line 312 of file filter_adjust.c.