Lines Matching refs:pykms
3 import pykms
8 card = pykms.OmapCard()
10 res = pykms.ResourceManager(card)
15 rootplane = res.reserve_primary_plane(crtc, pykms.PixelFormat.XRGB8888)
16 plane = res.reserve_overlay_plane(crtc, pykms.PixelFormat.NV12)
20 req = pykms.AtomicReq(card)
51 if (rot & pykms.Rotation.ROTATE_90) or (rot & pykms.Rotation.ROTATE_270):
59 req = pykms.AtomicReq(card)
70 angle_str = pykms.Rotation(rot & pykms.Rotation.ROTATE_MASK).name
71 reflect_x_str = "REFLECT_X" if rot & pykms.Rotation.REFLECT_X else ""
72 reflect_y_str = "REFLECT_Y" if rot & pykms.Rotation.REFLECT_Y else ""
99 fb = pykms.OmapFramebuffer(card, fb_w, fb_h, "NV12", flags = pykms.OmapFramebuffer.Tiled);
101 pykms.draw_test_pattern(fb);
106 pykms.draw_text(fb, even((fb_w // 2) - (8 * 3) // 2), 4, "TOP", pykms.white)
107 pykms.draw_text(fb, even((fb_w // 2) - (8 * 6) // 2), fb_h - 8 - 4, "BOTTOM", pykms.white)
108 pykms.draw_text(fb, 4, even(((fb_h // 2) - 4)), "L", pykms.white)
109 pykms.draw_text(fb, fb_w - 8 - 4, even(((fb_h // 2) - 4)), "R", pykms.white)
111 rots = [ pykms.Rotation.ROTATE_0, pykms.Rotation.ROTATE_90, pykms.Rotation.ROTATE_180, pykms.Rotati…
123 current_rot = pykms.Rotation.ROTATE_0
152 current_rot &= ~pykms.Rotation.ROTATE_MASK
161 current_rot ^= pykms.Rotation.REFLECT_X
164 current_rot ^= pykms.Rotation.REFLECT_Y