[Ffmpeg-devel] [PATCH] TIFF encoder (Google SoC qualification task)

Michael Niedermayer michaelni
Sat Apr 7 01:16:45 CEST 2007


Hi

On Fri, Apr 06, 2007 at 11:05:59PM +0200, Kamil Nowosad wrote:
> Hi
> 
> On Fri, Apr 06, 2007 at 10:38:12PM +0200, Michael Niedermayer wrote:
> > >      if (s->compr == TIFF_DEFLATE || s->compr == TIFF_ADOBE_DEFLATE)
> > >          //best choose for DEFLATE
> > > -        s->rps = s->height;
> > > -    else
> > > +        s->rps = ((s->height - 1) / s->subsampling[1] + 1) * s->subsampling[1];
> > > +    else {
> > >          s->rps = FFMAX(8192 / (((s->width * s->bpp) >> 3) + 1), 1);     // suggest size of strip
> > > +        s->rps = ((s->rps - 1) / s->subsampling[1] + 1) * s->subsampling[1]; // round rps up
> > > +    }
> > 
> > hmm, doesnt the following work too?
> > 
> >     s->rps = s->height;
> > else
> >     s->rps = FFMAX(8192 / (((s->width * s->bpp) >> 3) + 1), 1);     // suggest size of strip
> > s->rps = ((s->rps - 1) / s->subsampling[1] + 1) * s->subsampling[1]; // round rps up
> > 
> 
> huh, of course...
> i should have read the code once more... ;-)

patch applied

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

When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070407/7d874960/attachment.pgp>



More information about the ffmpeg-devel mailing list