Minor MingW32 build fixes.
[xiph/unicode.git] / theora-old / tests / noop.c
blobdc1226b809059785550a9e03f365fbb8725f62b7
1 #include <theora/theora.h>
3 #include "tests.h"
5 static int
6 noop_test_encode ()
8 theora_info ti;
9 theora_state th;
11 INFO ("+ Initializing theora_info struct");
12 theora_info_init (&ti);
14 INFO ("+ Initializing theora_state for encoding");
15 if (theora_encode_init (&th, &ti) != OC_DISABLED) {
16 INFO ("+ Clearing theora_state");
17 theora_clear (&th);
20 INFO ("+ Clearing theora_info struct");
21 theora_info_clear (&ti);
23 return 0;
26 static int
27 noop_test_decode ()
29 theora_info ti;
30 theora_state th;
32 INFO ("+ Initializing theora_info struct");
33 theora_info_init (&ti);
35 INFO ("+ Initializing theora_state for decoding");
36 theora_decode_init (&th, &ti);
38 INFO ("+ Clearing theora_state");
39 theora_clear (&th);
41 INFO ("+ Clearing theora_info struct");
42 theora_info_clear (&ti);
44 return 0;
47 static int
48 noop_test_comments ()
50 theora_comment tc;
52 theora_comment_init (&tc);
53 theora_comment_clear (&tc);
55 return 0;
58 int main(int argc, char *argv[])
60 /*noop_test_decode ();*/
62 noop_test_encode ();
64 noop_test_comments ();
66 exit (0);