summaryrefslogtreecommitdiff
path: root/lib/time0.c
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2000-11-03 10:06:08 +0000
committerMonty <xiphmont@xiph.org>2000-11-03 10:06:08 +0000
commitb58f0d442954f98a58b384a7c8bdfc723b421b27 (patch)
tree694039082bb7b1cd9cc42300de38cbf36c539297 /lib/time0.c
parentf9572aa5c9a74e1394e08b1282eb27d499f42257 (diff)
downloadlibvorbis-git-b58f0d442954f98a58b384a7c8bdfc723b421b27.tar.gz
Hid all the formerly exposed modes and codebooks behind the
libvorbisenc API. Libvorbisenc now exists. Caveats: It listens to bitrate_nominal, but only maps to one of the five modes we had before for now. bitrate_max and min are ignored. Bitrate is handled properly with differing channels, but not with differing sample rate. Monty svn path=/branches/branch_beta3/vorbis/; revision=956
Diffstat (limited to 'lib/time0.c')
-rw-r--r--lib/time0.c55
1 files changed, 55 insertions, 0 deletions
diff --git a/lib/time0.c b/lib/time0.c
new file mode 100644
index 00000000..b7164c2c
--- /dev/null
+++ b/lib/time0.c
@@ -0,0 +1,55 @@
+/********************************************************************
+ * *
+ * THIS FILE IS PART OF THE Ogg Vorbis SOFTWARE CODEC SOURCE CODE. *
+ * USE, DISTRIBUTION AND REPRODUCTION OF THIS SOURCE IS GOVERNED BY *
+ * THE GNU PUBLIC LICENSE 2, WHICH IS INCLUDED WITH THIS SOURCE. *
+ * PLEASE READ THESE TERMS DISTRIBUTING. *
+ * *
+ * THE OggSQUISH SOURCE CODE IS (C) COPYRIGHT 1994-2000 *
+ * by Monty <monty@xiph.org> and The XIPHOPHORUS Company *
+ * http://www.xiph.org/ *
+ * *
+ ********************************************************************
+
+ function: time backend 0 (dummy)
+ last mod: $Id: time0.c,v 1.6.2.1 2000/11/03 10:05:48 xiphmont Exp $
+
+ ********************************************************************/
+
+#include <stdlib.h>
+#include <string.h>
+#include "vorbis/codec.h"
+#include "registry.h"
+#include "misc.h"
+
+static void time0_pack (vorbis_info_time *i,oggpack_buffer *opb){
+}
+static vorbis_info_time *time0_unpack (vorbis_info *vi,oggpack_buffer *opb){
+ return "";
+
+}
+static vorbis_info_time *time0_copy_info (vorbis_info_time *vi){
+ return "";
+}
+static vorbis_look_time *time0_look (vorbis_dsp_state *vd,vorbis_info_mode *mi,
+ vorbis_info_time *i){
+ return "";
+}
+static void time0_free_info(vorbis_info_time *i){
+}
+static void time0_free_look(vorbis_look_time *i){
+}
+static int time0_forward(vorbis_block *vb,vorbis_look_time *i,
+ float *in,float *out){
+ return(0);
+}
+static int time0_inverse(vorbis_block *vb,vorbis_look_time *i,
+ float *in,float *out){
+ return(0);
+}
+
+/* export hooks */
+vorbis_func_time time0_exportbundle={
+ &time0_pack,&time0_unpack,&time0_look,&time0_copy_info,&time0_free_info,
+ &time0_free_look,&time0_forward,&time0_inverse
+};