Home | History | Annotate | Download | only in lbmp

Lines Matching refs:rle

822   uint8_t rle[2] = {0};
830 rle[0] = bmp_rle8_search(&bmp_ptr->src_buf[index + i], size - index - i);
831 rle[1] = bmp_ptr->src_buf[index + i];
832 if (i + rle[0] >= (int32_t)bmp_ptr->src_pitch) {
833 rle[0] = uint8_t(bmp_ptr->src_pitch - i);
834 if (rle[0]) {
835 dst_buf[dst_pos++] = rle[0];
836 dst_buf[dst_pos++] = rle[1];
843 i += rle[0];
844 dst_buf[dst_pos++] = rle[0];
845 dst_buf[dst_pos++] = rle[1];
867 uint8_t rle[2] = {0};
874 rle[1] = 0) {
876 rle[0] = bmp_rle4_search(&bmp_ptr->src_buf[index + i], size - index - i);
877 rle[1] |= (bmp_ptr->src_buf[index + i] & 0x0f) << 4;
878 rle[1] |= bmp_ptr->src_buf[index + i + 1] & 0x0f;
879 if (i + rle[0] >= (int32_t)bmp_ptr->src_pitch) {
880 rle[0] = uint8_t(bmp_ptr->src_pitch - i);
881 if (rle[0]) {
882 dst_buf[dst_pos++] = rle[0];
883 dst_buf[dst_pos++] = rle[1];
890 i += rle[0];
891 dst_buf[dst_pos++] = rle[0];
892 dst_buf[dst_pos++] = rle[1];