9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: steve.simon@snellwilcox.com
To: 9fans@cse.psu.edu
Subject: Re[2]:[9fans] image resampling
Date: Mon, 15 Apr 2002 16:53:26 +0100	[thread overview]
Message-ID: <3392046666@snellwilcox.com> (raw)


Re OS-X, The simple answer is, no idea.

They maybe using hardware acceleration of the graphics device?

Maybe OS-X is not resampling a full 24 bit RGB image as the plan9 one is?

There is a  trick you can do throwing memory at the problem,  if your image is 8
bits
deep and you have 8 coefficients then you have 64K  entry
lookup table instead of a multiplier. I haven't tried this for
years - it was a win in the days of slow multiply instructions, probably
irrelevant now.

The vertical pass can cause rather nasty RAM access patterns and may
upset the CPU's data cache, Rotating the array by 90 degrees and reapplying the
same horizontal filter code (though not the coefficients -
non-square aspect ratios) might help.

All a bit speculative though, Russ's code looks a very sane implementation to
me.

-Steve



----------------------------------------------------------------------
The contents of this communication are confidential to the normal user of
the email address to which it was sent.  If you have received this email
in error, any use, dissemination, forwarding, printing or copying of this
email is strictly prohibited.  If this is the case, please notify the
sender and delete this message.
----------------------------------------------------------------------



             reply	other threads:[~2002-04-15 15:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-15 15:53 steve.simon [this message]
2002-04-15 15:54 ` [9fans] " Boyd Roberts

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3392046666@snellwilcox.com \
    --to=steve.simon@snellwilcox.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).