Home
last modified time | relevance | path

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

12

/external/libkmsxx/py/tests/
Dtrans-test.py3 import pykms
32 card = pykms.Card()
33 res = pykms.ResourceManager(card)
53 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24"))
54 fbs.append(pykms.DumbFramebuffer(card, w, h, "XR24"))
60 pykms.draw_rect(fb, 0, 0, fb.width, fb.height, pykms.purple)
61 pykms.draw_rect(fb, stepX, stepY,
63 pykms.green)
64 pykms.draw_rect(fb, stepX * 3, stepY,
66 pykms.red)
[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)
15 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "UYVY");
16 pykms.draw_test_pattern(fb);
18 req = pykms.AtomicReq(card)
28 req = pykms.AtomicReq(card)
33 yuv_types = [pykms.YUVType.BT601_Lim,
34 pykms.YUVType.BT601_Full,
[all …]
Dalpha-test.py3 import pykms
18 card = pykms.Card()
19 res = pykms.ResourceManager(card)
45 fbs.append(pykms.DumbFramebuffer(card, w, h, "AR24"))
47 pykms.draw_rect(fbs[0], 50, 50, 200, 200, pykms.RGB(128, 255, 0, 0))
48 pykms.draw_rect(fbs[1], 150, 50, 200, 200, pykms.RGB(128, 0, 255, 0))
49 pykms.draw_rect(fbs[2], 50, 150, 200, 200, pykms.RGB(128, 0, 0, 255))
50 pykms.draw_rect(fbs[3], 150, 150, 200, 200, pykms.RGB(128, 128, 128, 128))
Dwb-m2m-crop.py5 import pykms
11 ifmt = pykms.PixelFormat.XRGB8888
15 ofmt = pykms.PixelFormat.XRGB8888
17 card = pykms.Card()
18 res = pykms.ResourceManager(card)
31 req = pykms.AtomicReq(card)
43 fb = pykms.DumbFramebuffer(card, iw, ih, ifmt)
44 pykms.draw_test_pattern(fb);
45 pykms.draw_text(fb, iw // 2, 2, str(i), pykms.white);
48 fb = pykms.DumbFramebuffer(card, ow, oh, ofmt)
[all …]
Dplane_move.py3 import pykms
14 card = pykms.Card()
20 res = pykms.ResourceManager(card)
50 fb_tmp = pykms.DumbFramebuffer(card, src_w, src_h, 'XR24');
53 rootplane = res.reserve_primary_plane(crtc, pykms.PixelFormat.XRGB8888)
63 colors.append(pykms.red)
64 colors.append(pykms.green)
67 pykms.draw_rect(fb_list[i], 0, 0, src_w, src_h, colors[i])
70 req = pykms.AtomicReq(card)
90 req = pykms.AtomicReq(card)
[all …]
Dglobal_alpha_test.py3 import pykms
13 card = pykms.Card()
14 res = pykms.ResourceManager(card)
22 format = pykms.PixelFormat.ARGB8888
29 fb1 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, format);
30 pykms.draw_test_pattern(fb1);
32 fb2 = pykms.DumbFramebuffer(card, mode.hdisplay >> 1, mode.vdisplay >> 1, format);
33 pykms.draw_test_pattern(fb2);
39 req = pykms.AtomicReq(card)
53 req = pykms.AtomicReq(card)
Dtest.py4 import pykms
14 card = pykms.OmapCard()
16 card = pykms.Card()
18 res = pykms.ResourceManager(card)
26 origfb = pykms.OmapFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
28 origfb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
31 fb = pykms.DmabufFramebuffer(card, origfb.width, origfb.height, origfb.format,
36 pykms.draw_test_pattern(fb);
40 req = pykms.AtomicReq(card)
Dtestmodes.py4 import pykms
11 card = pykms.Card()
13 res = pykms.ResourceManager(card)
33 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
34 pykms.draw_test_pattern(fb);
35 pykms.draw_text(fb, even((fb.width // 2) - (8 * len(short_str)) // 2), 4, short_str, pykms.white)
37 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 …]
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)
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)
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:
Dcam.py5 import pykms
16 fmt = pykms.PixelFormat.YUYV
20 card = pykms.Card()
21 res = pykms.ResourceManager(card)
29 req = pykms.AtomicReq(card)
39 fb = pykms.DumbFramebuffer(card, w, h, fmt)
42 vidpath = pykms.VideoDevice.get_capture_devices()[0]
44 vid = pykms.VideoDevice(vidpath)
Dctm_test.py4 import pykms
23 return pykms.Blob(card, arr);
35 card = pykms.Card()
36 res = pykms.ResourceManager(card)
39 format = pykms.PixelFormat.ARGB8888
46 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
47 pykms.draw_test_pattern(fb);
65 req = pykms.AtomicReq(card)
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
9 req = pykms.AtomicReq(card)
23 card = pykms.Card()
24 res = pykms.ResourceManager(card)
27 format = pykms.PixelFormat.NV12
36 req = pykms.AtomicReq(card)
46 fb = pykms.DumbFramebuffer(card, fbX, fbY, format);
47 pykms.draw_test_pattern(fb);
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:
Dgamma.py3 import pykms
11 card = pykms.Card()
12 res = pykms.ResourceManager(card)
17 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
18 pykms.draw_test_pattern(fb);
72 gamma = pykms.Blob(card, arr);
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()
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()
297 res = pykms.ResourceManager(card)
/external/libkmsxx/py/pykms/
Dmeson.build1 py3_dep = dependency('python3', required : get_option('pykms'))
18 'pykms.cpp',
46 destdir = get_option('libdir') / 'python' + py3_dep.version() / 'site-packages/pykms'
48 pykms = shared_module('pykms', build
D__init__.py1 from .pykms import *
137 pykms.AtomicReq.add_connector = __atomic_req_add_connector
138 pykms.AtomicReq.add_crtc = __atomic_req_add_crtc
139 pykms.AtomicReq.add_plane = __atomic_req_add_plane
/external/libkmsxx/py/
Dmeson.build1 subdir('pykms') subdir

12