]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/blobdiff - kmscube/cube.cpp
draw_text: support YUV modes
[android/external-libkmsxx.git] / kmscube / cube.cpp
index 14c340aa566c0156295c15c00e796ce706825dbd..4129554db6da023223b7c3745a0d1a04e4bea25e 100644 (file)
 /* Based on a egl cube test app originally written by Arvin Schnell */
 
 #include "cube.h"
 /* Based on a egl cube test app originally written by Arvin Schnell */
 
 #include "cube.h"
-#include "opts.h"
-#include "test.h"
+#include <kms++util/kms++util.h>
 
 using namespace std;
 
 bool s_verbose;
 
 using namespace std;
 
 bool s_verbose;
+bool s_fullscreen;
+unsigned s_num_frames;
 
 int main(int argc, char *argv[])
 {
 
 int main(int argc, char *argv[])
 {
@@ -41,6 +42,16 @@ int main(int argc, char *argv[])
                {
                        s_verbose = true;
                }),
                {
                        s_verbose = true;
                }),
+               Option("f|fullscreen",
+               [&]()
+               {
+                       s_fullscreen = true;
+               }),
+               Option("n|numframes=",
+               [&](string s)
+               {
+                       s_num_frames = stoi(s);
+               }),
        };
 
        optionset.parse(argc, argv);
        };
 
        optionset.parse(argc, argv);