Riff, EBML, fourcc etc. work. Not fully finished, but better than what we used to...
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 7 Dec 2003 20:00:41 +0000 (20:00 +0000)
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>
Sun, 7 Dec 2003 20:00:41 +0000 (20:00 +0000)
commit12e856c26d690c02cc05a2e945b49e2df538307a
treecbb1cf43fa0dcbb477775b3ade47e4b16e057b5e
parent396a5c812901cfb1e16a8b4f55f122e229293b98
Riff, EBML, fourcc etc. work. Not fully finished, but better than what we used to have and definately worth a first b...

Original commit message from CVS:
Riff, EBML, fourcc etc. work. Not fully finished, but better than
what we used to have and definately worth a first broad testing.

I've revived rifflib. Rifflib used to be a bytestream-for-riff, which
just dup'ed bytestream. I've rewritten rifflib to be a modern riff-
chunk parser that uses bytestream fully, plus adds some extra functions
so that riff file parsing becomes extremely easy. It also contains some
small usability functions for strh/strf and metadata parsing. Note that
it doesn't use the new tagging yet, that's a TODO.

Avidemux has been rewritten to use this. I think we all agreed that
avidemux was pretty much a big mess, which is because it used all
sort of bytestream magic all around the place. It was just ugly.
This is a lot nicer, very complete and safe. I think this is far more
robust than what the old avidemux could ever have been. Of course, it
might contain bugs, please let me know.

EBML writing has also been implemented. This is useful for matroska.
I'm intending to modify avidemux (with a riffwriter) similarly. Maybe
I'll change wavparse/-enc too to use rifflib.

Lastly, several plugins have been modified to use rifflib's fourcc
parsing instead of their own. this puts fourcc parsing in one central
place, which should make it a lot simpler to add new fourccs. We might
want to move this to its own lib instead of rifflib.

Enjoy!
15 files changed:
gst/avi/Makefile.am
gst/avi/avi-ids.h [new file with mode: 0644]
gst/avi/gstavi.c [new file with mode: 0644]
gst/avi/gstavidemux.c
gst/avi/gstavidemux.h
gst/avi/gstavimux.h
gst/matroska/Makefile.am
gst/matroska/ebml-read.c
gst/matroska/ebml-read.h
gst/matroska/ebml-write.c [new file with mode: 0644]
gst/matroska/ebml-write.h [new file with mode: 0644]
gst/matroska/matroska-ids.h
gst/matroska/matroska-mux.c [new file with mode: 0644]
gst/matroska/matroska-mux.h [new file with mode: 0644]
gst/matroska/matroska.c