00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 #ifndef __PNGCONVERT_H__
00020 #define __PNGCONVERT_H__
00021 
00022 #include <icl/imageplugin.h>
00023 
00024 #include "PNGCodec.h"
00025 
00026 
00027 
00028 
00029 class CPngDecoder : public CImageDecoderPlugin
00030         {
00031 public:
00032         
00033         static CPngDecoder* NewL();
00034         ~CPngDecoder();
00035 
00036 private:
00037         
00038         
00039         
00040         
00041         virtual void ImageType(TInt aFrameNumber, TUid& aImageType, TUid& aImageSubType) const; 
00042         
00043         CFrameInfoStrings* FrameInfoStringsL(RFs& aFs, TInt aFrameNumber);
00044         
00045         void ScanDataL();
00046 
00047 private:
00048         CPngDecoder();
00049         void ReadFormatL();
00050         };
00051 
00052 
00053 
00054 
00055 class CPngEncoder : public CImageEncoderPlugin
00056         {
00057 public:
00058         
00059         static CPngEncoder* NewL();
00060          ~CPngEncoder();
00061 
00062 private:
00063         
00064 
00065         
00066         void PrepareEncoderL(const CFrameImageData* aFrameImageData);
00067         
00068         void UpdateHeaderL() {};
00069 
00070 private:
00071         CPngEncoder();
00072         };
00073 
00074 #endif // __PNGCONVERT_H__