Home
last modified time | relevance | path

Searched refs:pykms (Results 1 – 22 of 22) sorted by relevance

/external/libkmsxx/py/tests/
Dtrans-test.py3 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 …]
Drottest.py3 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 …]
Dplane_csc.py3 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 …]
Dalpha-test.py3 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))
Dtest.py4 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)
Dbig_fb.py3 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 …]
Dgamma.py3 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);
Dplane_hog.py3 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)
Dmodeset_event.py3 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)
Dcam.py5 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)
Diact.py5 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:
Ddb.py4 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:
Dfunctest.py3 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);
Dscale.py3 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);
Dctm_test.py4 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);
Dsync.py6 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:
Dhpd.py4 import pykms
6 card = pykms.Card()
7 res = pykms.ResourceManager(card)
Dkmsmodeview.py4 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/
DCMakeLists.txt13 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})
Dpykms.cpp18 PYBIND11_MODULE(pykms, m) { in PYBIND11_MODULE() argument
D__init__.py1 from .pykms import *
/external/libkmsxx/py/
DCMakeLists.txt1 add_subdirectory(pykms)