kahntang / as3corelib

Automatically exported from code.google.com/p/as3corelib
0 stars 0 forks source link

Create interface for image encoding #122

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Right now, JPGEncoder and PNGEncoder do essentially the same thing, but provide 
different API 
naming schemes to do it.

For example, JPGEncoder uses a instance encode API, where as PNGEncoder, uses a 
static encode 
APIs.

We should standardize the APIs, perhaps creating a formal interface for them.

Might be worth looking at the Flex based encoding classes to figure out the 
interface that should be 
used (although these classes should not require Flex).

Original issue reported on code.google.com by mikechambers on 21 Sep 2009 at 5:21

GoogleCodeExporter commented 8 years ago

Original comment by mikechambers on 22 Sep 2009 at 7:49

GoogleCodeExporter commented 8 years ago
Note, one thing to consider when thinking about whether we have a static encode 
method, or require the use the 
create an instance of the encoding class, is whether we plan to eventually 
support an asynchronous encode 
method / api.

RIght now, I think this would be useful as encoding can be pretty CPU 
intensive, although some of the 
performance improvements we are considering might not make this as important.

Anyways, we should consider this when designing the interface / api.

Original comment by mikechambers on 22 Sep 2009 at 8:13