FFmpeg
Macros
bit_depth_template.c File Reference
#include "mathops.h"
#include "rnd_avg.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Macros

#define BIT_DEPTH   8
 
#define AVCODEC_BIT_DEPTH_TEMPLATE_C
 
#define pixel   uint8_t
 
#define pixel2   uint16_t
 
#define pixel4   uint32_t
 
#define dctcoef   int16_t
 
#define idctin   int16_t
 
#define INIT_CLIP
 
#define no_rnd_avg_pixel4   no_rnd_avg32
 
#define rnd_avg_pixel4   rnd_avg32
 
#define AV_RN2P   AV_RN16
 
#define AV_RN4P   AV_RN32
 
#define AV_RN4PA   AV_RN32A
 
#define AV_WN2P   AV_WN16
 
#define AV_WN4P   AV_WN32
 
#define AV_WN4PA   AV_WN32A
 
#define PIXEL_SPLAT_X4(x)   ((x)*0x01010101U)
 
#define av_clip_pixel(a)   av_clip_uint8(a)
 
#define CLIP(a)   av_clip_uint8(a)
 
#define FUNC3(a, b, c)   a ## _ ## b ## c
 
#define FUNC2(a, b, c)   FUNC3(a, b, c)
 
#define FUNC(a)   FUNC2(a, BIT_DEPTH,)
 
#define FUNCC(a)   FUNC2(a, BIT_DEPTH, _c)
 
#define FUNC4(a, b, c)   a ## _int ## b ## _ ## c ## bit
 
#define FUNC5(a, b, c)   FUNC4(a, b, c)
 
#define FUNC6(a)   FUNC5(a, IN_IDCT_DEPTH, BIT_DEPTH)
 

Macro Definition Documentation

◆ BIT_DEPTH

#define BIT_DEPTH   8

Definition at line 24 of file bit_depth_template.c.

◆ AVCODEC_BIT_DEPTH_TEMPLATE_C

#define AVCODEC_BIT_DEPTH_TEMPLATE_C

Definition at line 48 of file bit_depth_template.c.

◆ pixel

#define pixel   uint8_t

Definition at line 81 of file bit_depth_template.c.

◆ pixel2

#define pixel2   uint16_t

Definition at line 82 of file bit_depth_template.c.

◆ pixel4

#define pixel4   uint32_t

Definition at line 83 of file bit_depth_template.c.

◆ dctcoef

#define dctcoef   int16_t

Definition at line 84 of file bit_depth_template.c.

◆ idctin

#define idctin   int16_t

Definition at line 85 of file bit_depth_template.c.

◆ INIT_CLIP

#define INIT_CLIP

Definition at line 87 of file bit_depth_template.c.

◆ no_rnd_avg_pixel4

#define no_rnd_avg_pixel4   no_rnd_avg32

Definition at line 88 of file bit_depth_template.c.

◆ rnd_avg_pixel4

#define rnd_avg_pixel4   rnd_avg32

Definition at line 89 of file bit_depth_template.c.

◆ AV_RN2P

#define AV_RN2P   AV_RN16

Definition at line 90 of file bit_depth_template.c.

◆ AV_RN4P

#define AV_RN4P   AV_RN32

Definition at line 91 of file bit_depth_template.c.

◆ AV_RN4PA

#define AV_RN4PA   AV_RN32A

Definition at line 92 of file bit_depth_template.c.

◆ AV_WN2P

#define AV_WN2P   AV_WN16

Definition at line 93 of file bit_depth_template.c.

◆ AV_WN4P

#define AV_WN4P   AV_WN32

Definition at line 94 of file bit_depth_template.c.

◆ AV_WN4PA

#define AV_WN4PA   AV_WN32A

Definition at line 95 of file bit_depth_template.c.

◆ PIXEL_SPLAT_X4

#define PIXEL_SPLAT_X4 (   x)    ((x)*0x01010101U)

Definition at line 96 of file bit_depth_template.c.

◆ av_clip_pixel

#define av_clip_pixel (   a)    av_clip_uint8(a)

Definition at line 98 of file bit_depth_template.c.

◆ CLIP

#define CLIP (   a)    av_clip_uint8(a)

Definition at line 99 of file bit_depth_template.c.

◆ FUNC3

#define FUNC3 (   a,
  b,
  c 
)    a ## _ ## b ## c

Definition at line 102 of file bit_depth_template.c.

◆ FUNC2

#define FUNC2 (   a,
  b,
  c 
)    FUNC3(a, b, c)

Definition at line 103 of file bit_depth_template.c.

◆ FUNC

#define FUNC (   a)    FUNC2(a, BIT_DEPTH,)

Definition at line 104 of file bit_depth_template.c.

◆ FUNCC

#define FUNCC (   a)    FUNC2(a, BIT_DEPTH, _c)

Definition at line 105 of file bit_depth_template.c.

◆ FUNC4

#define FUNC4 (   a,
  b,
  c 
)    a ## _int ## b ## _ ## c ## bit

Definition at line 106 of file bit_depth_template.c.

◆ FUNC5

#define FUNC5 (   a,
  b,
  c 
)    FUNC4(a, b, c)

Definition at line 107 of file bit_depth_template.c.

◆ FUNC6

#define FUNC6 (   a)    FUNC5(a, IN_IDCT_DEPTH, BIT_DEPTH)

Definition at line 108 of file bit_depth_template.c.