Searched refs:SEGMENTS_PER_BYTE (Results 1 – 1 of 1) sorted by relevance
44 #define SEGMENTS_PER_BYTE (8 / BITS_PER_SEGMENT) macro104 ROUND_DOWN((buf_out_size * SEGMENTS_PER_BYTE) / segments_per_pixel, 8)); in ssd1322_conv_mono01_grayscale()111 size_t shift = BITS_PER_SEGMENT * (seg_idx % SEGMENTS_PER_BYTE); in ssd1322_conv_mono01_grayscale()114 buf_out[seg_idx / SEGMENTS_PER_BYTE] = color; in ssd1322_conv_mono01_grayscale()116 buf_out[seg_idx / SEGMENTS_PER_BYTE] |= color << shift; in ssd1322_conv_mono01_grayscale()123 return pixels_in_chunk * segments_per_pixel / SEGMENTS_PER_BYTE; in ssd1322_conv_mono01_grayscale()363 SEGMENTS_PER_BYTE)