PangoAttrList *list;
};
-#define FILENAME "/home/cascardo/fotos/debconf.jpg"
#define WIDTH 800
#define HEIGHT 600
#define FPF 40
+void
+usage ()
+{
+ fprintf (stderr, "movie picture dotsfile\n");
+ exit (0);
+}
+
int
main (int argc, char **argv)
{
char *filename;
+ char *dotsfile;
GdkColorspace colorspace;
gboolean has_alpha;
int bits_per_sample;
GdkColor Black;
PangoAttribute *attr;
gtk_init (&argc, &argv);
- if (argc < 2)
- filename = FILENAME;
+ if (argc < 3)
+ {
+ usage ();
+ }
else
- filename = argv[1];
- ctx.points = ReadPoints ("pro-gnu");
+ {
+ filename = argv[1];
+ dotsfile = argv[2];
+ }
+ ctx.points = ReadPoints (dotsfile);
ctx.points = drop_dup_frames (ctx.points, FPF);
rescale_points (ctx.points, get_scales (FPF));
ctx.picture = gdk_pixbuf_new_from_file (filename, NULL);