logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

pbv: apps/plugins vorbis2wav.c,1.4,1.5: msg#00193

Subject: pbv: apps/plugins vorbis2wav.c,1.4,1.5
Update of /cvsroot/rockbox/apps/plugins
In directory labb:/tmp/cvs-serv30964/apps/plugins

Modified Files:
        vorbis2wav.c 
Log Message:
Basic optimizations of the Vorbis decoder for the ihp-1x0.
Capable of real-time decoding with cpu freq at 120mhz.


Index: vorbis2wav.c
===================================================================
RCS file: /cvsroot/rockbox/apps/plugins/vorbis2wav.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- vorbis2wav.c        23 May 2005 09:39:56 -0000      1.4
+++ vorbis2wav.c        27 May 2005 09:14:00 -0000      1.5
@@ -16,7 +16,7 @@
  * KIND, either express or implied.
  *
  ****************************************************************************/
-
+#include "kernel.h"
 #include "plugin.h"
 
 #if (CONFIG_HWCODEC == MASNONE)
@@ -86,6 +86,10 @@
 extern char iramend[];
 #endif
 
+
+/* reserve the PCM buffer in the IRAM area */
+static char pcmbuf[4096] IDATA_ATTR;
+
 /* this is the plugin entry point */
 enum plugin_status plugin_start(struct plugin_api* api, void* file)
 {
@@ -97,7 +101,6 @@
   long n;
   int current_section;
   int eof;
-  static char pcmbuf[4096];
 #if BYTE_ORDER == BIG_ENDIAN
   int i;
   char x;
@@ -121,6 +124,7 @@
     return PLUGIN_ERROR;
   }
 
+
   /* Create a decoder instance */
 
   callbacks.read_func=read_handler;
@@ -171,7 +175,6 @@
 
   close_wav(&file_info);
   rb->splash(HZ*2, true, "FINISHED!");
-
   return PLUGIN_OK;
 }
 #endif /* CONFIG_HWCODEC == MASNONE */

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox-cvs



<Prev in Thread] Current Thread [Next in Thread>