FFmpeg
Data Structures | Functions
hscale.c File Reference
#include "libavutil/mem.h"
#include "swscale_internal.h"

Go to the source code of this file.

Data Structures

struct  FilterContext
 Scaler instance data. More...
 
struct  ColorContext
 Color conversion instance data. More...
 

Functions

static int lum_h_scale (SwsInternal *c, SwsFilterDescriptor *desc, int sliceY, int sliceH)
 
static int lum_convert (SwsInternal *c, SwsFilterDescriptor *desc, int sliceY, int sliceH)
 
int ff_init_desc_fmt_convert (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint32_t *pal)
 initializes lum pixel format conversion descriptor More...
 
int ff_init_desc_hscale (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint16_t *filter, int *filter_pos, int filter_size, int xInc)
 initializes lum horizontal scaling descriptor More...
 
static int chr_h_scale (SwsInternal *c, SwsFilterDescriptor *desc, int sliceY, int sliceH)
 
static int chr_convert (SwsInternal *c, SwsFilterDescriptor *desc, int sliceY, int sliceH)
 
int ff_init_desc_cfmt_convert (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint32_t *pal)
 initializes chr pixel format conversion descriptor More...
 
int ff_init_desc_chscale (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst, uint16_t *filter, int *filter_pos, int filter_size, int xInc)
 initializes chr horizontal scaling descriptor More...
 
static int no_chr_scale (SwsInternal *c, SwsFilterDescriptor *desc, int sliceY, int sliceH)
 
int ff_init_desc_no_chr (SwsFilterDescriptor *desc, SwsSlice *src, SwsSlice *dst)
 

Function Documentation

◆ lum_h_scale()

static int lum_h_scale ( SwsInternal c,
SwsFilterDescriptor desc,
int  sliceY,
int  sliceH 
)
static

Definition at line 39 of file hscale.c.

Referenced by ff_init_desc_hscale().

◆ lum_convert()

static int lum_convert ( SwsInternal c,
SwsFilterDescriptor desc,
int  sliceY,
int  sliceH 
)
static

Definition at line 87 of file hscale.c.

Referenced by ff_init_desc_fmt_convert().

◆ ff_init_desc_fmt_convert()

int ff_init_desc_fmt_convert ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint32_t *  pal 
)

initializes lum pixel format conversion descriptor

Definition at line 128 of file hscale.c.

Referenced by ff_init_filters().

◆ ff_init_desc_hscale()

int ff_init_desc_hscale ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint16_t *  filter,
int *  filter_pos,
int  filter_size,
int  xInc 
)

initializes lum horizontal scaling descriptor

Definition at line 145 of file hscale.c.

Referenced by ff_init_filters().

◆ chr_h_scale()

static int chr_h_scale ( SwsInternal c,
SwsFilterDescriptor desc,
int  sliceY,
int  sliceH 
)
static

Definition at line 167 of file hscale.c.

Referenced by ff_init_desc_chscale().

◆ chr_convert()

static int chr_convert ( SwsInternal c,
SwsFilterDescriptor desc,
int  sliceY,
int  sliceH 
)
static

Definition at line 203 of file hscale.c.

Referenced by ff_init_desc_cfmt_convert().

◆ ff_init_desc_cfmt_convert()

int ff_init_desc_cfmt_convert ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint32_t *  pal 
)

initializes chr pixel format conversion descriptor

Definition at line 236 of file hscale.c.

Referenced by ff_init_filters().

◆ ff_init_desc_chscale()

int ff_init_desc_chscale ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst,
uint16_t *  filter,
int *  filter_pos,
int  filter_size,
int  xInc 
)

initializes chr horizontal scaling descriptor

Definition at line 251 of file hscale.c.

Referenced by ff_init_filters().

◆ no_chr_scale()

static int no_chr_scale ( SwsInternal c,
SwsFilterDescriptor desc,
int  sliceY,
int  sliceH 
)
static

Definition at line 273 of file hscale.c.

Referenced by ff_init_desc_no_chr().

◆ ff_init_desc_no_chr()

int ff_init_desc_no_chr ( SwsFilterDescriptor desc,
SwsSlice src,
SwsSlice dst 
)

Definition at line 282 of file hscale.c.

Referenced by ff_init_filters().