/external/libkmsxx/py/tests/ |
D | trans-test.py | 3 import pykms 7 card = pykms.Card() 10 card = pykms.Card() 11 res = pykms.ResourceManager(card) 30 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24")) 31 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24")) 34 pykms.draw_rect(fb, 0, 0, fb.width, fb.height, pykms.purple) 35 pykms.draw_rect(fb, 100, 100, 100, 200, pykms.green) 36 pykms.draw_rect(fb, 300, 100, 100, 200, pykms.red) 37 pykms.draw_rect(fb, 500, 100, 100, 200, pykms.white) [all …]
|
D | rottest.py | 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 "" [all …]
|
D | plane_csc.py | 3 import pykms 5 card = pykms.Card() 6 res = pykms.ResourceManager(card) 11 plane = res.reserve_generic_plane(crtc, pykms.PixelFormat.UYVY) 16 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "UYVY"); 17 pykms.draw_test_pattern(fb); 19 req = pykms.AtomicReq(card) 29 req = pykms.AtomicReq(card) 44 yuv_types = [pykms.YUVType.BT601_Lim, 45 pykms.YUVType.BT601_Full, [all …]
|
D | alpha-test.py | 3 import pykms 6 card = pykms.Card() 7 res = pykms.ResourceManager(card) 31 fbs.append(pykms.DumbFramebuffer(card, w, h, "AR24")) 33 pykms.draw_rect(fbs[0], 50, 50, 200, 200, pykms.RGB(128, 255, 0, 0)) 34 pykms.draw_rect(fbs[1], 150, 50, 200, 200, pykms.RGB(128, 0, 255, 0)) 35 pykms.draw_rect(fbs[2], 50, 150, 200, 200, pykms.RGB(128, 0, 0, 255))
|
D | test.py | 4 import pykms 13 card = pykms.OmapCard() 15 card = pykms.Card() 22 res = pykms.ResourceManager(card) 30 origfb = pykms.OmapFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 32 origfb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 35 fb = pykms.ExtFramebuffer(card, origfb.width, origfb.height, origfb.format, 40 pykms.draw_test_pattern(fb); 44 req = pykms.AtomicReq(card)
|
D | big_fb.py | 3 import pykms 11 black = pykms.RGB(0, 0, 0) 21 card = pykms.Card() 32 res = pykms.ResourceManager(card) 62 fb_tmp = pykms.DumbFramebuffer(card, fbX, fbY, 'XR24'); 78 req = pykms.AtomicReq(card) 121 self.color = pykms.RGB(r, g, b) 122 self.color2 = pykms.RGB(r // 2, g // 2, b // 2) 123 self.color3 = pykms.RGB(r // 3, g // 3, b // 3) 152 pykms.draw_rect(fb, 0, old_box_y, self.fbX, self.bar_size, black) [all …]
|
D | gamma.py | 3 import pykms 6 card = pykms.Card() 9 card = pykms.Card() 10 res = pykms.ResourceManager(card) 15 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 16 pykms.draw_test_pattern(fb); 32 gamma = pykms.Blob(card, arr);
|
D | plane_hog.py | 3 import pykms 6 card = pykms.Card() 7 res = pykms.ResourceManager(card) 34 fb = pykms.DumbFramebuffer(card, fbwidth, fbheight, "AR24"); 35 pykms.draw_test_pattern(fb); 52 req = pykms.AtomicReq(card) 69 req = pykms.AtomicReq(card) 91 req = pykms.AtomicReq(card) 109 req = pykms.AtomicReq(card) 117 req = pykms.AtomicReq(card)
|
D | modeset_event.py | 3 import pykms 23 card = pykms.Card() 27 res = pykms.ResourceManager(card) 36 if format == pykms.PixelFormat.XRGB8888: 38 if format == pykms.PixelFormat.RGB565: 41 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, format); 42 pykms.draw_test_pattern(fb); 49 req = pykms.AtomicReq(card)
|
D | cam.py | 5 import pykms 9 fmt = pykms.PixelFormat.YUYV 11 card = pykms.Card() 12 res = pykms.ResourceManager(card) 20 req = pykms.AtomicReq(card) 30 fb = pykms.DumbFramebuffer(card, w, h, fmt) 33 vidpath = pykms.VideoDevice.get_capture_devices()[0] 35 vid = pykms.VideoDevice(vidpath)
|
D | iact.py | 5 import pykms 10 card = pykms.Card() 11 res = pykms.ResourceManager(card) 17 fb = pykms.DumbFramebuffer(card, 200, 200, "XR24"); 18 pykms.draw_test_pattern(fb); 33 if p.plane_type == pykms.PlaneType.Overlay:
|
D | db.py | 4 import pykms 15 self.fb1 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 16 self.fb2 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 50 pykms.draw_color_bar(fb, old_xpos, new_xpos, bar_width) 53 ctx = pykms.AtomicReq(card) 64 card = pykms.Card() 65 res = pykms.ResourceManager(card) 79 if ev.type == pykms.DrmEventType.FLIP_COMPLETE:
|
D | functest.py | 3 import pykms 5 card = pykms.Card() 6 res = pykms.ResourceManager(card) 12 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 13 pykms.draw_test_pattern(fb);
|
D | scale.py | 3 import pykms 7 card = pykms.Card() 8 res = pykms.ResourceManager(card) 17 fb0 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "AR24"); 24 fb = pykms.DumbFramebuffer(card, fbX, fbY, "RG16"); 25 pykms.draw_test_pattern(fb);
|
D | ctm_test.py | 4 import pykms 22 return pykms.Blob(card, arr); 30 card = pykms.Card() 31 res = pykms.ResourceManager(card) 36 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 37 pykms.draw_test_pattern(fb);
|
D | sync.py | 6 import pykms 96 self.fb1 = pykms.DumbFramebuffer(crtc.card, width, height, "XR24"); 97 self.fb2 = pykms.DumbFramebuffer(crtc.card, width, height, "XR24"); 142 pykms.draw_color_bar(fb, old_xpos, new_xpos, bar_width) 149 req = pykms.AtomicReq(self.crtc.card) 168 card = pykms.Card() 172 res = pykms.ResourceManager(card) 180 pykms.draw_color_bar(fb, fb.width - bar_width - bar_speed, bar_speed, bar_width) 183 req = pykms.AtomicReq(card) 209 if ev.type == pykms.DrmEventType.FLIP_COMPLETE:
|
D | hpd.py | 4 import pykms 6 card = pykms.Card() 7 res = pykms.ResourceManager(card)
|
D | kmsmodeview.py | 4 import pykms 210 mode = pykms.Videomode() 239 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); 240 pykms.draw_test_pattern(fb); 295 card = pykms.Card()
|
/external/libkmsxx/py/pykms/ |
D | CMakeLists.txt | 13 set(SRCS pykms.cpp pykmsbase.cpp pykmsutil.cpp pyvid.cpp) 19 add_library(pykms SHARED ${SRCS}) target 20 target_link_libraries(pykms kms++ kms++util ${LIBDRM_LIBRARIES}) 23 set_target_properties(pykms PROPERTIES PREFIX "") 24 set_target_properties(pykms PROPERTIES LIBRARY_OUTPUT_DIRECTORY "") 28 set(PY_DESTDIR lib/python${PYTHON_VERSION}/site-packages/pykms) 30 install(TARGETS pykms DESTINATION ${PY_DESTDIR})
|
D | pykms.cpp | 18 PYBIND11_MODULE(pykms, m) { in PYBIND11_MODULE() argument
|
D | __init__.py | 1 from .pykms import *
|
/external/libkmsxx/py/ |
D | CMakeLists.txt | 1 add_subdirectory(pykms)
|