FFmpeg
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

#define ss   444

Definition at line 27 of file colorspacedsp_template.c.

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

Definition at line 40 of file colorspacedsp_template.c.

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

Definition at line 41 of file colorspacedsp_template.c.

Referenced by update_master_pl_info().

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

Definition at line 42 of file colorspacedsp_template.c.

Referenced by copy_pad(), and decoder_start().

#define pixel   uint16_t

Definition at line 50 of file colorspacedsp_template.c.

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

#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().

#define OUT_BIT_DEPTH   BIT_DEPTH

Definition at line 332 of file colorspacedsp_template.c.

Referenced by yuv2yuv().

#define IN_BIT_DEPTH   8

Definition at line 341 of file colorspacedsp_template.c.

Referenced by yuv2yuv().

#define IN_BIT_DEPTH   10

Definition at line 341 of file colorspacedsp_template.c.

#define IN_BIT_DEPTH   12

Definition at line 341 of file colorspacedsp_template.c.

Function Documentation

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.

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
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.