569
edits
Line 6: | Line 6: | ||
interface imgIEncoder : nsISupports | interface imgIEncoder : nsISupports | ||
{ | { | ||
void encode(in imgIContainer input, in nsIOutputStream output | /* input image data | ||
* output stream | |||
* result width | |||
* result height | |||
*/ | |||
void encode(in imgIContainer input, in nsIOutputStream output, | |||
in unsigned long width, in unsigned long height); | |||
/* type of scaling */ | /* type of scaling */ | ||
Line 25: | Line 27: | ||
=== 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'm thinking we may not and may just want a solid good scaling algorithm that all encoders can use. | ||
== Brendan's comments == | == Brendan's comments == |
edits