logo       

cvs: firmware id3.c,1.49,1.50: msg#00090

Subject: cvs: firmware id3.c,1.49,1.50
Update of /cvsroot/rockbox/firmware
In directory usw-pr-cvs1:/tmp/cvs-serv7946/firmware

Modified Files:
        id3.c 
Log Message:
Rudimentary VBRI parsing

Index: id3.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/id3.c,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -b -r1.49 -r1.50
--- id3.c       25 Sep 2002 12:34:21 -0000      1.49
+++ id3.c       27 Sep 2002 08:21:23 -0000      1.50
@@ -592,6 +592,35 @@
         header_found = true;
     }
 
+    if (xing[0] == 'V' &&
+        xing[1] == 'B' &&
+        xing[2] == 'R' &&
+        xing[3] == 'I')
+    {
+        int framecount;
+        int bytecount;
+        
+        /* Yes, it is a FhG VBR file */
+        entry->vbr = true;
+        entry->vbrflags = 0;
+
+        bytecount = (xing[10] << 24) | (xing[11] << 16) |
+            (xing[12] << 8) | xing[13];
+ 
+        framecount = (xing[14] << 24) | (xing[15] << 16) |
+            (xing[16] << 8) | xing[17];
+ 
+        filetime = framecount * tpf;
+        bitrate = bytecount * 8 / filetime;
+
+        /* We don't parse the TOC, since we don't yet know how to (FIXME) */
+
+        /* Make sure we skip this frame in playback */
+        bytecount += bpf;
+
+        header_found = true;
+    }
+
     /* Is it a LAME Info frame? */
     if (xing[0] == 'I' &&
         xing[1] == 'n' &&




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qnx.openqnx.dev...    politics.lenini...    audio.emagic.ex...    tex.texinfo.gen...    handhelds.linux...    ietf.sipping/20...    lang.erlang.gen...    cygwin.talk/200...    yellowdog.gener...    mozilla.devel.l...    xfree86.newbie/...    openbsd.ports/2...    db.oracle.devel...    kde.kalyxo.deve...    user-groups.lin...    bbc.cvs/2003-04...    gnu.libtool.bug...    redhat.k12osn/2...    emulators.wine....    freebsd.devel.d...    search.xapian.g...    java.izpack.use...    network.mrtg.us...    windows.total-c...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe