FFmpeg  4.0
Macros | Functions
colorspacedsp_template.c File Reference
#include "libavutil/avassert.h"
#include "colorspacedsp_yuv2yuv_template.c"

Go to the source code of this file.

Macros

#define ss   444
 
#define avg(a, b, c, d)   (a)
 
#define fn3(a, b, c)   a##_##c##p##b##_c
 
#define fn2(a, b, c)   fn3(a,b,c)
 
#define fn(a)   fn2(a, BIT_DEPTH, ss)
 
#define pixel   uint16_t
 
#define av_clip_pixel(x)   av_clip_uintp2(x, BIT_DEPTH)
 
#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

◆ avg

#define avg (   a,
  b,
  c,
 
)    (a)

◆ fn3

#define fn3 (   a,
  b,
  c 
)    a##_##c##p##b##_c

Definition at line 40 of file colorspacedsp_template.c.

◆ fn2

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

Definition at line 41 of file colorspacedsp_template.c.

Referenced by update_master_pl_info().

◆ fn

#define fn (   a)    fn2(a, BIT_DEPTH, ss)

Definition at line 42 of file colorspacedsp_template.c.

Referenced by copy_pad(), and decoder_start().

◆ pixel

#define pixel   uint16_t

Definition at line 50 of file colorspacedsp_template.c.

Referenced by rgb2yuv(), rgb2yuv_fsb(), and yuv2rgb().

◆ av_clip_pixel

#define av_clip_pixel (   x)    av_clip_uintp2(x, BIT_DEPTH)

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 341 of file colorspacedsp_template.c.

Referenced by yuv2yuv().

◆ IN_BIT_DEPTH [2/3]

#define IN_BIT_DEPTH   10

Definition at line 341 of file colorspacedsp_template.c.

◆ IN_BIT_DEPTH [3/3]

#define IN_BIT_DEPTH   12

Definition at line 341 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.