[Ffmpeg-devel] tiff encoder (qualification task for GSoC)
Xiaohui Sun
sunxiaohui
Tue Apr 3 14:17:01 CEST 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bartlomiej Wolowiec wrote:
> On Sunday 01 April 2007 20:52, Michael Niedermayer wrote:
>>> -/** sizes of various TIFF field types */
>>> +/** sizes of various TIFF field types (string size = 100)*/
>>> static const int type_sizes[6] = {
>>> 0, 1, 100, 2, 4, 8
>>> };
[...]
> ===================================================================
> --- libavcodec/rle.c (wersja 8597)
> +++ libavcodec/rle.c (kopia robocza)
> @@ -1,5 +1,5 @@
> /*
> - * Targa (.tga) image encoder
> + * RLE encoder
> * Copyright (c) 2007 Bobby Bingham
> *
> * This file is part of FFmpeg.
> @@ -20,6 +20,7 @@
> *
> */
> #include "avcodec.h"
> +#include "rle.h"
>
> /**
> * Count up to 127 consecutive pixels which are either all the same or
> @@ -30,9 +31,9 @@
> * @param same 1 if searching for identical pixel values. 0 for differing
> * @return Number of matching consecutive pixels found
> */
> -static int count_pixels(uint8_t *start, int len, int bpp, int same)
> +static int count_pixels(const uint8_t *start, int len, int bpp, int same)
> {
> - uint8_t *pos;
> + const uint8_t *pos;
> int count = 1;
>
> for(pos = start + bpp; count < FFMIN(128, len); pos += bpp, count ++) {
I think this count_pixels will return up to 128 consecutive pixels.
[...]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGEkW8+BwsLu3sVWwRApupAJ9Q4jrUcwBdNamn9mfRF55wTtoKzgCdGf90
rzZ4AHnlHM9TPLzBsunTUSI=
=SuH3
-----END PGP SIGNATURE-----
More information about the ffmpeg-devel
mailing list