[FFmpeg-cvslog] flashsvenc: replace bitstream description by a link to the specification

Diego Biurrun git at videolan.org
Sat Jul 16 19:49:07 CEST 2011


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Jul 15 19:45:17 2011 +0200| [86e8272a235ac233bf7dbad86bab2c45720d65ca] | committer: Diego Biurrun

flashsvenc: replace bitstream description by a link to the specification

An official specification now exists and it is both more detailed and
easier to understand than the incomplete notes available here.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=86e8272a235ac233bf7dbad86bab2c45720d65ca
---

 libavcodec/flashsvenc.c |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/libavcodec/flashsvenc.c b/libavcodec/flashsvenc.c
index 2802c69..6dc33b9 100644
--- a/libavcodec/flashsvenc.c
+++ b/libavcodec/flashsvenc.c
@@ -27,22 +27,13 @@
  * Flash Screen Video encoder
  * @author Alex Beregszaszi
  * @author Benjamin Larsson
+ *
+ * A description of the bitstream format for Flash Screen Video version 1/2
+ * is part of the SWF File Format Specification (version 10), which can be
+ * downloaded from http://www.adobe.com/devnet/swf.html.
  */
 
-/* Bitstream description
- * The picture is divided into blocks that are zlib-compressed.
- *
- * The decoder is fed complete frames, the frameheader contains:
- *  4 bits of block width
- * 12 bits of frame width
- *  4 bits of block height
- * 12 bits of frame height
- *
- * Directly after the header are the compressed blocks. The blocks
- * have their compressed size represented with 16 bits in the beginning.
- * If the size = 0 then the block is unchanged from the previous frame.
- * All blocks are decompressed until the buffer is consumed.
- *
+/*
  * Encoding ideas: A basic encoder would just use a fixed block size.
  * Block sizes can be multiples of 16, from 16 to 256. The blocks don't
  * have to be quadratic. A brute force search with a set of different



More information about the ffmpeg-cvslog mailing list