5 * Created by Morgan Conbere on 5/17/07.
9 #ifndef _GRFMT_IMAGEIO_H_
10 #define _GRFMT_IMAGEIO_H_
14 #include "grfmt_base.h"
15 #include <ApplicationServices/ApplicationServices.h>
20 class ImageIODecoder : public BaseImageDecoder
27 bool readData( Mat& img );
31 size_t signatureLength() const;
32 bool checkSignature( const string& signature ) const;
34 ImageDecoder newDecoder() const;
41 class ImageIOEncoder : public BaseImageEncoder
47 bool write( const Mat& img, const vector<int>& params );
49 ImageEncoder newEncoder() const;
54 #endif/*HAVE_IMAGEIO*/
56 #endif/*_GRFMT_IMAGEIO_H_*/