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

#define CALL_2X_PIXELS_MACRO (   STATIC,
  a,
  b,
  n 
)
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); \
}
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:36
The exact code depends on how similar the blocks are and how related they are to the block
uint8_t
#define b
Definition: input.c:41
int n
Definition: avisynth_c.h:760
int pixels
Definition: avisynth_c.h:390

Definition at line 26 of file pixels.h.

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

Definition at line 34 of file pixels.h.

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

Definition at line 35 of file pixels.h.