Lines Matching defs:px
33 uint8_t px[4] = { 0, 0, 0, 255 };
54 memcpy(px, src + x * channels, channels);
56 if (!memcmp(px, px_prev, 4)) {
70 index_pos = QOI_COLOR_HASH(px) & 63;
72 if (!memcmp(index[index_pos], px, 4)) {
75 memcpy(index[index_pos], px, 4);
77 if (px[3] == px_prev[3]) {
78 int8_t vr = px[0] - px_prev[0];
79 int8_t vg = px[1] - px_prev[1];
80 int8_t vb = px[2] - px_prev[2];
96 bytestream_put_byte(&buf, px[0]);
97 bytestream_put_byte(&buf, px[1]);
98 bytestream_put_byte(&buf, px[2]);
102 bytestream_put_byte(&buf, px[0]);
103 bytestream_put_byte(&buf, px[1]);
104 bytestream_put_byte(&buf, px[2]);
105 bytestream_put_byte(&buf, px[3]);
110 memcpy(px_prev, px, 4);