1 /********************************************************************
3 * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
8 * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
11 ********************************************************************
13 function: routines for validating codec initialization
14 last mod: $Id: noop_theora.c 16503 2009-08-22 18:14:02Z giles $
16 ********************************************************************/
18 #include <theora/theora.h>
28 INFO ("+ Initializing theora_info struct");
29 theora_info_init (&ti);
31 INFO ("+ Setting a 16x16 frame");
35 INFO ("+ Initializing theora_state for encoding");
36 if (theora_encode_init (&th, &ti) != OC_DISABLED) {
37 INFO ("+ Clearing theora_state");
41 INFO ("+ Clearing theora_info struct");
42 theora_info_clear (&ti);
53 INFO ("+ Initializing theora_info struct");
54 theora_info_init (&ti);
56 INFO ("+ Initializing theora_state for decoding");
57 theora_decode_init (&th, &ti);
59 INFO ("+ Clearing theora_state");
62 INFO ("+ Clearing theora_info struct");
63 theora_info_clear (&ti);
73 theora_comment_init (&tc);
74 theora_comment_clear (&tc);
79 int main(int argc, char *argv[])
81 /*noop_test_decode ();*/
85 noop_test_comments ();