[FFmpeg-soc] BFI

Kostya kostya.shishkov at gmail.com
Sun Mar 30 15:48:59 CEST 2008


On Sun, Mar 30, 2008 at 06:49:46PM +0530, Sisir Koppaka wrote:
> 3 : fill chain
>       if length is zero, read two more bytes of the length
>       color = next two bytes of the input
>       fill (length) words of the output with (color)
> 
> What does color mean here? We already have  a palette and all....and why is
> color two bytes long?

It's just a convenient variable name for a pair of pixels.
writing
  a = get_byte();
  b = get_byte();
  for(i = 0; i < length; i++){
    output_pixel(a);
    output_pixel(b);
  }

may be clearer for coder but not for the documentation.



More information about the FFmpeg-soc mailing list