FFmpeg
Macros
qoi.h File Reference

Go to the source code of this file.

Macros

#define QOI_OP_INDEX   0x00 /* 00xxxxxx */
 
#define QOI_OP_DIFF   0x40 /* 01xxxxxx */
 
#define QOI_OP_LUMA   0x80 /* 10xxxxxx */
 
#define QOI_OP_RUN   0xc0 /* 11xxxxxx */
 
#define QOI_OP_RGB   0xfe /* 11111110 */
 
#define QOI_OP_RGBA   0xff /* 11111111 */
 
#define QOI_MASK_2   0xc0 /* 11000000 */
 
#define QOI_COLOR_HASH(px)   (px[0]*3 + px[1]*5 + px[2]*7 + px[3]*11)
 

Macro Definition Documentation

◆ QOI_OP_INDEX

#define QOI_OP_INDEX   0x00 /* 00xxxxxx */

Definition at line 24 of file qoi.h.

◆ QOI_OP_DIFF

#define QOI_OP_DIFF   0x40 /* 01xxxxxx */

Definition at line 25 of file qoi.h.

◆ QOI_OP_LUMA

#define QOI_OP_LUMA   0x80 /* 10xxxxxx */

Definition at line 26 of file qoi.h.

◆ QOI_OP_RUN

#define QOI_OP_RUN   0xc0 /* 11xxxxxx */

Definition at line 27 of file qoi.h.

◆ QOI_OP_RGB

#define QOI_OP_RGB   0xfe /* 11111110 */

Definition at line 28 of file qoi.h.

◆ QOI_OP_RGBA

#define QOI_OP_RGBA   0xff /* 11111111 */

Definition at line 29 of file qoi.h.

◆ QOI_MASK_2

#define QOI_MASK_2   0xc0 /* 11000000 */

Definition at line 31 of file qoi.h.

◆ QOI_COLOR_HASH

#define QOI_COLOR_HASH (   px)    (px[0]*3 + px[1]*5 + px[2]*7 + px[3]*11)

Definition at line 33 of file qoi.h.