[Ffmpeg-devel] tiff encoder (qualification task for GSoC)

Bobby Bingham uhmmmm
Fri Mar 23 16:37:36 CET 2007


Kostya wrote:
> On Thu, Mar 22, 2007 at 09:28:32PM +0100, Michael Niedermayer wrote:
> [...] 
>> i think this encodes 1 0 0 1 to
>> 0  1 -1  0  0  1
>> while the following would be shorter
>> 3  1  0  0  1
>>
>> also this should rather use targa_encode_rle() (if needed with extending
>> targa_encode_rle() to support any differences tiff requires)
> 
> It will be nice to have general RLE engine for all encoders, for example
> there could be just one function ff_rle(uint8_t *src, int size, int *type)
> which will return length of recognized serie and type (0=raw, 1=run)
> 
> Also run length should be >= 3 to be effective.

This is true for 8 bpp images, but not necessarily true for higher bit 
depths.  The targa code should handle this correctly.

If no one beats me to it, I'll try to figure out how to use the timer 
code to check which rle code out of the targa code and the two tiff 
patches is fastest, and submit a patch to let it be shared nicely.

[...]
>  
> [...] 
>> [...]
>>
>> -- 
>> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

-- 
Bobby Bingham
??????????????????????




More information about the ffmpeg-devel mailing list