6 # define DECLARE_ALIGNED( type, var, n ) type var __attribute__((aligned(n)))
8 #include "../common/common.h"
11 #include "x264_gtk_private.h"
12 #include "x264_gtk_i18n.h"
16 main (int argc, char *argv[])
21 x264_param_t param_default;
25 BIND_X264_TEXTDOMAIN();
27 gtk_init (&argc, &argv);
29 window = x264_gtk_window_create (NULL);
30 x264_gtk_shutdown (window);
32 x264_gtk = x264_gtk_load ();
33 param = x264_gtk_param_get (x264_gtk);
35 /* do what you want with these data */
36 /* for example, displaying them and compare with default*/
37 res = x264_param2string (param, 0);
40 x264_param_default (¶m_default);
41 res_default = x264_param2string (¶m_default, 0);
42 printf ("\n%s\n", res_default);
44 if (strcmp (res, res_default) == 0)
45 printf (_("\nSame result !\n"));
47 printf (_("\nDifferent from default values\n"));
50 x264_free (res_default);
52 x264_gtk_free (x264_gtk);