[MPlayer-dev-eng] [PATCH] LZO decompression in AVI files

Tilmann Bitterberg transcode at tibit.org
Mon Oct 14 00:31:43 CEST 2002


On 13.10.02, Arpi wrote:

>> The FOURCC is "LZO1", the compressed video can either be in
>> YV12/I420 or BGR24 format. The decoder will automatically detect
>> this and tell mplayer about it.
>thanks, commited

That was fast, thanks

>> The decoder is direct rendering
>> only.
>what do you mean? it uses get_image() so it supports both methods.

Uhm, so I probably read the docs wrong. What I wanted to say is
the codec does no internal colour space conversion, it
decompresses directly into mpi->planes[0], so forget what I
said.

>btw, there is something called minilzo.c (although it isn't so mini)
>which says itself as a derivate of liblzo. it's used by the nuppelvideo
>codec as subcodec (it combines many realtime lossless video codecs).

I am aware of this but I haven't looked any close what minilzo
actually is.

>could you upload some LZO samples to the ftp?

I have uploaded a 50 frames sample without audio of a YV12 and
an BGR24 LZO AVI file to MPlayer/incoming/lzo-yuv.avi and
lzo-rgb.avi

>what about LZO encoding? (ve_lzo.c)

Trivial (if you know how to write a encoder plugin)

init:
  lzo_init();

encode:
  lzo1x_1_compress(frame, len, out, &out_len, workmem);
  write avi chunk

Tilmann
-- 
Sometimes transcode changes or   |            Searchable
adds new features while your     |      mailing-list archives
are encoding.                    |  http://itdp.de/transcode-users/
            -- ThOe              |  http://itdp.de/transcode-devel/




More information about the MPlayer-dev-eng mailing list