FFmpeg
Functions
slice.c File Reference
#include "libavutil/mem.h"
#include "swscale_internal.h"

Go to the source code of this file.

Functions

static void free_lines (SwsSlice *s)
 
static int alloc_lines (SwsSlice *s, int size, int width)
 
static int alloc_slice (SwsSlice *s, enum AVPixelFormat fmt, int lumLines, int chrLines, int h_sub_sample, int v_sub_sample, int ring)
 
static void free_slice (SwsSlice *s)
 
int ff_rotate_slice (SwsSlice *s, int lum, int chr)
 
int ff_init_slice_from_src (SwsSlice *s, uint8_t *const src[4], const int stride[4], int srcW, int lumY, int lumH, int chrY, int chrH, int relative)
 
static void fill_ones (SwsSlice *s, int n, int bpc)
 
static void get_min_buffer_size (SwsInternal *c, int *out_lum_size, int *out_chr_size)
 
int ff_init_filters (SwsInternal *c)
 
int ff_free_filters (SwsInternal *c)
 

Function Documentation

◆ free_lines()

static void free_lines ( SwsSlice s)
static

Definition at line 24 of file slice.c.

Referenced by alloc_lines(), and free_slice().

◆ alloc_lines()

static int alloc_lines ( SwsSlice s,
int  size,
int  width 
)
static

Definition at line 46 of file slice.c.

Referenced by ff_init_filters().

◆ alloc_slice()

static int alloc_slice ( SwsSlice s,
enum AVPixelFormat  fmt,
int  lumLines,
int  chrLines,
int  h_sub_sample,
int  v_sub_sample,
int  ring 
)
static

Definition at line 79 of file slice.c.

Referenced by ff_init_filters().

◆ free_slice()

static void free_slice ( SwsSlice s)
static

Definition at line 107 of file slice.c.

Referenced by ff_free_filters().

◆ ff_rotate_slice()

int ff_rotate_slice ( SwsSlice s,
int  lum,
int  chr 
)

Definition at line 120 of file slice.c.

Referenced by ff_swscale().

◆ ff_init_slice_from_src()

int ff_init_slice_from_src ( SwsSlice s,
uint8_t *const  src[4],
const int  stride[4],
int  srcW,
int  lumY,
int  lumH,
int  chrY,
int  chrH,
int  relative 
)

Definition at line 148 of file slice.c.

Referenced by ff_swscale().

◆ fill_ones()

static void fill_ones ( SwsSlice s,
int  n,
int  bpc 
)
static

Definition at line 190 of file slice.c.

Referenced by ff_init_filters().

◆ get_min_buffer_size()

static void get_min_buffer_size ( SwsInternal c,
int *  out_lum_size,
int *  out_chr_size 
)
static

Definition at line 221 of file slice.c.

Referenced by ff_init_filters().

◆ ff_init_filters()

int ff_init_filters ( SwsInternal c)

Definition at line 250 of file slice.c.

Referenced by sws_init_single_context().

◆ ff_free_filters()

int ff_free_filters ( SwsInternal c)

Definition at line 390 of file slice.c.

Referenced by ff_init_filters(), sws_freeContext(), and sws_init_single_context().