Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (21 sloc) 0.601 kb
fd26636 @Wiladams new file: test_enumdispman.lua
authored
1 local ffi = require "ffi"
2
3 local DMX = require "DisplayManX"
4
5
6 function test_image_formats()
7 local result, err = DMX.query_image_formats();
8
9 print("Result: ", result, err);
10
11 if result then
12 print("Formats: ", result, ffi.sizeof(result));
13
14
15 for i=0,16 do
16 print(string.format("0x%x",result[i]));
17 end
18 end
19 end
20
21 function test_display_info()
22 local display = DMX.display_open();
23
24 local info = DMX.get_info(display);
25
26 print("Info: ", info);
27 print("Size: ", info.width, info.height);
28 print("Transform: ", info.transform);
29 print("Input Format: ", info.input_format);
30 end
31
32
33 test_display_info();
Something went wrong with that request. Please try again.