[][src]Type Definition webp_dev::sys::webp::WebPCSPMode

type WebPCSPMode = WEBP_CSP_MODE;

Colorspaces.

Note: the naming describes the byte-ordering of packed samples in memory. For instance, MODE_BGRA relates to samples ordered as B,G,R,A,B,G,R,A,... Non-capital names (e.g.:MODE_Argb) relates to pre-multiplied RGB channels. RGBA-4444 and RGB-565 colorspaces are represented by following byte-order: RGBA-4444: [r3 r2 r1 r0 g3 g2 g1 g0], [b3 b2 b1 b0 a3 a2 a1 a0], ... RGB-565: [r4 r3 r2 r1 r0 g5 g4 g3], [g2 g1 g0 b4 b3 b2 b1 b0], ... In the case WEBP_SWAP_16BITS_CSP is defined, the bytes are swapped for these two modes: RGBA-4444: [b3 b2 b1 b0 a3 a2 a1 a0], [r3 r2 r1 r0 g3 g2 g1 g0], ... RGB-565: [g2 g1 g0 b4 b3 b2 b1 b0], [r4 r3 r2 r1 r0 g5 g4 g3], ...