Mozilla2:Image Encoding: Difference between revisions

no edit summary
No edit summary
Line 11: Line 11:
     */
     */
   nsIInputStream encode(in imgIContainer input, in unsigned long width, in unsigned long height);
   nsIInputStream encode(in imgIContainer input, in unsigned long width, in unsigned long height);
  /* type of scaling */
  const unsigned long SCALE_BAD = 0;
  const unsigned long SCALE_NORMAL = 1;
  const unsigned long SCALE_GOOD = 2;
  attribute unsigned long scaling;
  };
  };


Line 24: Line 17:


=== Scaling ===
=== Scaling ===
Do we want to support different types of scaling?  I'm thinking we may not and may just want a solid good scaling algorithm that all encoders can use.
Do we want to support different types of scaling?  I'd prefer to just do nice Bicubic resampling. [http://members.bellatlantic.net/~vze2vrva/design.html] [http://astronomy.swin.edu.au/~pbourke/colour/bicubic/]
 
I'd like to do some nice Bicubic resampling. [http://members.bellatlantic.net/~vze2vrva/design.html] [http://astronomy.swin.edu.au/~pbourke/colour/bicubic/]


=== Brendan's comments ===
=== Brendan's comments ===
569

edits