FW: First Attempt at Crypto Library
Andrew J Bromage
ajb@spamcop.net
Thu, 24 Apr 2003 10:33:43 +1000
G'day all.
On Wed, Apr 23, 2003 at 11:12:44AM +0200, Ketil Z. Malde wrote:
> Agreed, this is sensible. But if you introduce orthogonal categories,
> (e.g. Codec.Binary), you need to ask whether you should have
>
> Codec.Binary.Image.Jpeg
> or Codec.Image.Binary.Jpeg
This case is fairly simple. The Jpeg codec does not encode/decode
"binaries", it handles abstract "images". (In fact, it's a strict
subset of "images", namely, images with three 8-bit channels, where
the channels represent RGB space or something else easily converted to
RGB.)
I'm still not convinced that Codec.Image makes sense in isolation from
a representation of "images". It's hard to see what you'd do with such
a library without some other image handling stuff.
Cheers,
Andrew Bromage