Lines Matching full:h

283             H = data[1::3]
286 for h, l, a in zip(H, L, A):
287 p = (h << 8) | (l)
307 w: int, h: int,
327 #include "lvgl.h"
329 #include "../lvgl.h"
331 #include "lvgl/lvgl.h"
356 .header.h = {h},
393 h: int = 0,
400 self.h = h & 0xffff
401 if w > 0xffff or h > 0xffff:
402 raise ParameterError(f"w, h overflow: {w}x{h}")
434 binary += uint16_t(self.h) # 16bits height
449 self.h = int.from_bytes(data[6:8], 'little')
496 h: int = 0,
501 self.set_data(cf, w, h, data)
504 return (f"'LVGL image {self.w}x{self.h}, {self.cf.name}, "
520 header = LVGLImageHeader(self.cf, self.w, self.h, align=align)
536 current = LVGLImageHeader(self.cf, self.w, self.h, stride=self.stride)
542 def change_stride(data: bytearray, h, current_stride, new_stride): argument
546 for i in range(h):
552 for i in range(h):
561 change_stride(self.data[palette_size:], self.h, current.stride,
568 a8_map = self.data[-a8_stride * self.h:]
570 change_stride(a8_map, self.h, current.stride // 2,
608 for h in range(self.h):
609 offset = h * self.stride
628 for h in range(self.h):
630 offset = self.h * self.stride + h * (self.stride // 2)
634 offset = h * self.stride
653 for h in range(self.h):
654 offset = h * self.stride
674 p = self.cf.ncolors * 4 if self.is_indexed and self.w * self.h else 0
675 p += self.stride * self.h
678 p += a8_stride * self.h
683 return LVGLImageHeader(self.cf, self.w, self.h)
692 h: int,
699 if w > 0xffff or h > 0xffff:
700 raise ParameterError(f"w, h overflow: {w}x{h}")
704 self.h = h
708 self.stride = LVGLImageHeader(cf, w, h, stride, align=1).stride
720 return self.set_data(header.cf, header.w, header.h,
762 self.h,
783 write_c_array_file(self.w, self.h, self.stride, self.cf, filename,
804 self.h,
815 encoder = png.Writer(self.w, self.h, greyscale=False, alpha=True)
819 self.h,
826 self.h,
881 w, h, rows, metadata = reader.read()
889 w, h, rows, _ = reader.read()
926 self.set_data(cf, w, h, rawdata)
930 w, h, rows, info = reader.asRGBA8()
947 self.set_data(cf, w, h, rawdata)
961 w, h, rows, info = reader.asRGBA8()
976 self.set_data(ColorFormat.L8, w, h, rawdata)
1021 w, h, rows, _ = reader.asRGBA8()
1048 self.set_data(cf, w, h, rawdata)
1109 h: int = 0,
1111 super().__init__(cf, w, h, data)