[xiph-commits] r12855 - in trunk/theora: . tests

j at svn.xiph.org j at svn.xiph.org
Thu Apr 12 10:48:54 PDT 2007


Author: j
Date: 2007-04-12 10:48:40 -0700 (Thu, 12 Apr 2007)
New Revision: 12855

Removed:
   trunk/theora/tests/commentexp-test.c
Modified:
   trunk/theora/CHANGES
   trunk/theora/tests/Makefile.am
Log:
- remove leftover test from theora-mashup
- note changes in CHANGES



Modified: trunk/theora/CHANGES
===================================================================
--- trunk/theora/CHANGES	2007-04-12 17:26:20 UTC (rev 12854)
+++ trunk/theora/CHANGES	2007-04-12 17:48:40 UTC (rev 12855)
@@ -1,6 +1,8 @@
 libtheora 1.0alpha8 (unreleased)
 
- - no changes yet -
+ - Switch to new spec compliant decoder from theora-exp branch
+ - Add support to the encoder for using 6 different (static) matricies
+ - more assembly optimizations
 
 libtheora 1.0alpha7 (2006 June 20)
 

Modified: trunk/theora/tests/Makefile.am
===================================================================
--- trunk/theora/tests/Makefile.am	2007-04-12 17:26:20 UTC (rev 12854)
+++ trunk/theora/tests/Makefile.am	2007-04-12 17:48:40 UTC (rev 12855)
@@ -19,10 +19,6 @@
 noop_LDADD = $(THEORA_LIBS)
 noop_CFLAGS = $(OGG_CFLAGS)
 
-#commentexp_test_SOURCES = commentexp-test.c
-#commentexp_test_LDADD = $(THEORA_LIBS)
-#commentexp_test_CFLAGS = $(OGG_CFLAGS)
-
 comment_test_SOURCES = comment-test.c
 comment_test_LDADD = $(THEORA_LIBS)
 comment_test_CFLAGS = $(OGG_CFLAGS)

Deleted: trunk/theora/tests/commentexp-test.c
===================================================================
--- trunk/theora/tests/commentexp-test.c	2007-04-12 17:26:20 UTC (rev 12854)
+++ trunk/theora/tests/commentexp-test.c	2007-04-12 17:48:40 UTC (rev 12855)
@@ -1,74 +0,0 @@
-#include <theora/theoradec.h>
-
-#include <string.h>
-#include "tests.h"
-
-#define ARTIST1 "Bug-eyed Fish"
-#define ARTIST2 "VJ Fugu"
-#define COPYRIGHT "Copyright (C) 2005. Some Rights Reserved."
-#define LICENSE "Creative Commons Attribution-ShareAlike 2.5"
-
-static int
-test_comments ()
-{
-  th_comment tc;
-  int i, n;
-  char * value;
-
-  INFO ("+ Initializing theora_comment");
-  th_comment_init (&tc);
-
-  INFO ("+ Adding ARTIST1");
-  th_comment_add (&tc, "ARTIST=" ARTIST1);
-
-  INFO ("+ Adding LICENSE by tag");
-  th_comment_add_tag (&tc, "LICENSE", LICENSE);
-
-  INFO ("+ Adding ARTIST2 by tag");
-  th_comment_add_tag (&tc, "ARTIST", ARTIST2);
-
-  INFO ("+ Querying value of LICENSE");
-  value = th_comment_query (&tc, "LICENSE", 0);
-  printf("foo %s\n", value);
-
-  if (strcmp (value, LICENSE))
-    FAIL ("Incorrect value for LICENSE");
-
-  INFO ("+ Querying count of ARTIST comments");
-  n = th_comment_query_count (&tc, "ARTIST");
-
-  if (n != 2)
-    FAIL ("Incorrect count of ARTIST comments");
-
-  INFO ("+ Querying value of ARTIST index 0");
-  value = th_comment_query (&tc, "ARTIST", 0);
-  if (strcmp (value, ARTIST1))
-    FAIL ("Incorrect value for ARTIST index 0");
-
-  INFO ("+ Querying value of ARTIST index 1");
-  value = th_comment_query (&tc, "ARTIST", 1);
-  if (strcmp (value, ARTIST2))
-    FAIL ("Incorrect value for ARTIST index 1");
-
-  INFO ("+ Querying value of ARTIST index 2 (out of bounds)");
-  value = th_comment_query (&tc, "ARTIST", 2);
-  if (value != NULL)
-    FAIL ("Non-NULL value for ARTIST index 2 (out of bounds)");
-
-  INFO ("+ Querying value of UNDEF index 7 (tag not defined)");
-  value = th_comment_query (&tc, "UNDEF", 7);
-  if (value != NULL)
-    FAIL ("Non-NULL value for UNDEF index 7 (tag not defined)");
-
-  INFO ("+ Clearing theora_comment");
-  th_comment_clear (&tc);
-
-  return 0;
-}
-
-int main(int argc, char *argv[])
-{
-  test_comments ();
-
-  exit (0);
-}



More information about the commits mailing list