7 #include "../common/common.h"
10 #include "x264_gtk_private.h"
11 #include "x264_gtk_i18n.h"
15 main (int argc, char *argv[])
20 x264_param_t param_default;
24 BIND_X264_TEXTDOMAIN();
26 gtk_init (&argc, &argv);
28 window = x264_gtk_window_create (NULL);
29 x264_gtk_shutdown (window);
31 x264_gtk = x264_gtk_load ();
32 param = x264_gtk_param_get (x264_gtk);
34 /* do what you want with these data */
35 /* for example, displaying them and compare with default*/
36 res = x264_param2string (param, 0);
39 x264_param_default (¶m_default);
40 res_default = x264_param2string (¶m_default, 0);
41 printf ("\n%s\n", res_default);
43 if (strcmp (res, res_default) == 0)
44 printf (_("\nSame result !\n"));
46 printf (_("\nDifferent from default values\n"));
49 x264_free (res_default);
51 x264_gtk_free (x264_gtk);