Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

new file: test_enumdispman.lua

  • Loading branch information...
commit fd26636db01f36698837a1fd5f325de4c2494198 1 parent 5be7125
@Wiladams authored
Showing with 33 additions and 0 deletions.
  1. +33 −0 test_enumdispman.lua
View
33 test_enumdispman.lua
@@ -0,0 +1,33 @@
+local ffi = require "ffi"
+
+local DMX = require "DisplayManX"
+
+
+function test_image_formats()
+ local result, err = DMX.query_image_formats();
+
+ print("Result: ", result, err);
+
+ if result then
+ print("Formats: ", result, ffi.sizeof(result));
+
+
+ for i=0,16 do
+ print(string.format("0x%x",result[i]));
+ end
+ end
+end
+
+function test_display_info()
+ local display = DMX.display_open();
+
+ local info = DMX.get_info(display);
+
+ print("Info: ", info);
+ print("Size: ", info.width, info.height);
+ print("Transform: ", info.transform);
+ print("Input Format: ", info.input_format);
+end
+
+
+test_display_info();
Please sign in to comment.
Something went wrong with that request. Please try again.