FFmpeg
Macros
pixels.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define CALL_2X_PIXELS_MACRO(STATIC, a, b, n)
 
#define CALL_2X_PIXELS(a, b, n)   CALL_2X_PIXELS_MACRO(static, a, b, n)
 
#define CALL_2X_PIXELS_EXPORT(a, b, n)   CALL_2X_PIXELS_MACRO(, a, b, n)
 

Macro Definition Documentation

◆ CALL_2X_PIXELS_MACRO

#define CALL_2X_PIXELS_MACRO (   STATIC,
  a,
  b,
 
)
Value:
STATIC void a(uint8_t *block, const uint8_t *pixels, \
ptrdiff_t line_size, int h) \
{ \
b(block, pixels, line_size, h); \
b(block + n, pixels + n, line_size, h); \
}

Definition at line 26 of file pixels.h.

◆ CALL_2X_PIXELS

#define CALL_2X_PIXELS (   a,
  b,
 
)    CALL_2X_PIXELS_MACRO(static, a, b, n)

Definition at line 34 of file pixels.h.

◆ CALL_2X_PIXELS_EXPORT

#define CALL_2X_PIXELS_EXPORT (   a,
  b,
 
)    CALL_2X_PIXELS_MACRO(, a, b, n)

Definition at line 35 of file pixels.h.

a
The reader does not expect b to be semantically here and if the code is changed by maybe adding a a division or other the signedness will almost certainly be mistaken To avoid this confusion a new type was SUINT is the C unsigned type but it holds a signed int to use the same example SUINT a
Definition: undefined.txt:41
STATIC
#define STATIC
Definition: vf_libplacebo.c:515
block
The exact code depends on how similar the blocks are and how related they are to the block
Definition: filter_design.txt:207
h
h
Definition: vp9dsp_template.c:2038