[FFmpeg-devel] [Question] Optimal Huffman Table for MJPEG
Michael Niedermayer
michaelni
Sat Apr 11 13:22:54 CEST 2009
On Sat, Apr 11, 2009 at 09:16:39AM +0200, Kostya Shishkov wrote:
> On Sat, Apr 11, 2009 at 4:03 AM, Indrani Kundu Saha
> <indranikundusaha at gmail.com> wrote:
[...]
> > 29:00 14:01 6:100 24:011 150:010 62:001
[...]
> Have you ever heard of prefix property of codes? Each Huffman code
> should not be a prefix of another code (like 01 and 011 in your case),
> otherwise it cannot be decoded properly. Maybe just inversion of codes
> would be enough for you (i.e. 001 -> 100)
01 and 001 ...
or even
0 1|0 1|0 0
0 1 0|1 0 0
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Thouse who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090411/5cff5804/attachment.pgp>
More information about the ffmpeg-devel
mailing list