[haiku-commits] Re: r37017 - in haiku/trunk: build/jam src/apps/screenshot

  • From: Michael Pfeiffer <michael.w.pfeiffer@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 7 Jun 2010 12:10:05 +0200

Am 07.06.2010 um 11:39 schrieb Stephan Assmus:

> 
> On 2010-06-07 at 10:01:38 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
> wrote:
>> Stephan Assmus <superstippi@xxxxxx> wrote:
>>> On 2010-06-06 at 18:01:52 [+0200], Humdinger <humdingerb@xxxxxxxxxxxxxx>
>>> The filtering comes for free when passing B_FILTER_BITMAP_BILINEAR as
>>> additional options argument to DrawBitmap().

Is this fast enough?

>>> For downscaling, there
>>> are
>>> better algorithms, bilinear scaling only looks good at a factor above
>>> 0.5.
>>> But it's a start.
>> 
>> That also means that we can remove the bilinear code from ShowImage,
>> right?

In ShowImage the filter runs in a background thread. On slow hardware it
could take several seconds (IIRC).

> Yes, absolutely. 

I am also in favor of removing duplicated code, as long as ShowImage stays 
responsive.

Bye,
Michael


Other related posts: