FFmpeg
Loading...
Searching...
No Matches
colorspacedsp_template.c File Reference

Go to the source code of this file.

Macros

#define ss   444
 
#define avg(a, b, c, d)
 
#define fn3(a, b, c)
 
#define fn2(a, b, c)
 
#define fn(a)
 
#define pixel   uint16_t
 
#define av_clip_pixel(x)
 
#define OUT_BIT_DEPTH   BIT_DEPTH
 
#define IN_BIT_DEPTH   8
 
#define IN_BIT_DEPTH   10
 
#define IN_BIT_DEPTH   12
 

Functions

static void fn yuv2rgb (int16_t *rgb[3], ptrdiff_t rgb_stride, uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int w, int h, const int16_t yuv2rgb_coeffs[3][3][8], const int16_t yuv_offset[8])
 
static void fn rgb2yuv (uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int16_t *rgb[3], ptrdiff_t s, int w, int h, const int16_t rgb2yuv_coeffs[3][3][8], const int16_t yuv_offset[8])
 
static void fn rgb2yuv_fsb (uint8_t *_yuv[3], const ptrdiff_t yuv_stride[3], int16_t *rgb[3], ptrdiff_t s, int w, int h, const int16_t rgb2yuv_coeffs[3][3][8], const int16_t yuv_offset[8], int *rnd_scratch[3][2])
 

Macro Definition Documentation

◆ ss

#define ss   444

Definition at line 27 of file colorspacedsp_template.c.

◆ avg

◆ fn3

#define fn3 ( a,
b,
c )
Value:
a##_##c##p##b##_c
#define _
#define b
Definition input.c:43
static double c[64]

Definition at line 40 of file colorspacedsp_template.c.

◆ fn2

#define fn2 ( a,
b,
c )
Value:
fn3(a,b,c)
#define fn3(a, b)

Definition at line 41 of file colorspacedsp_template.c.

◆ fn

#define fn ( a)
Value:
#define fn2(a, b)
#define BIT_DEPTH
Definition dsp_init.c:121
#define ss(width, name, subs,...)
Definition cbs_vp9.c:202

Definition at line 42 of file colorspacedsp_template.c.

◆ pixel

#define pixel   uint16_t

Definition at line 50 of file colorspacedsp_template.c.

◆ av_clip_pixel

#define av_clip_pixel ( x)
Value:
#define av_clip_uintp2
Definition common.h:124

Definition at line 51 of file colorspacedsp_template.c.

Referenced by rgb2yuv(), and rgb2yuv_fsb().

◆ OUT_BIT_DEPTH

#define OUT_BIT_DEPTH   BIT_DEPTH

Definition at line 332 of file colorspacedsp_template.c.

Referenced by yuv2yuv().

◆ IN_BIT_DEPTH [1/3]

#define IN_BIT_DEPTH   8

Definition at line 333 of file colorspacedsp_template.c.

Referenced by yuv2yuv().

◆ IN_BIT_DEPTH [2/3]

#define IN_BIT_DEPTH   10

Definition at line 333 of file colorspacedsp_template.c.

◆ IN_BIT_DEPTH [3/3]

#define IN_BIT_DEPTH   12

Definition at line 333 of file colorspacedsp_template.c.

Function Documentation

◆ yuv2rgb()

static void fn yuv2rgb ( int16_t * rgb[3],
ptrdiff_t rgb_stride,
uint8_t * _yuv[3],
const ptrdiff_t yuv_stride[3],
int w,
int h,
const int16_t yuv2rgb_coeffs[3][3][8],
const int16_t yuv_offset[8] )
static

Definition at line 54 of file colorspacedsp_template.c.

◆ rgb2yuv()

static void fn rgb2yuv ( uint8_t * _yuv[3],
const ptrdiff_t yuv_stride[3],
int16_t * rgb[3],
ptrdiff_t s,
int w,
int h,
const int16_t rgb2yuv_coeffs[3][3][8],
const int16_t yuv_offset[8] )
static

◆ rgb2yuv_fsb()

static void fn rgb2yuv_fsb ( uint8_t * _yuv[3],
const ptrdiff_t yuv_stride[3],
int16_t * rgb[3],
ptrdiff_t s,
int w,
int h,
const int16_t rgb2yuv_coeffs[3][3][8],
const int16_t yuv_offset[8],
int * rnd_scratch[3][2] )
static

Definition at line 208 of file colorspacedsp_template.c.

Referenced by rgb2yuv_fsb().