X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=otherlibs%2Fhighgui%2Floadsave.cpp;fp=otherlibs%2Fhighgui%2Floadsave.cpp;h=97c0db981e84cb0525d0ca57a2e9eb3a1d936413;hp=2c740c89c66390f26f009e549946e9eb4190c1a8;hb=80cd7b93506cc1926882d5fd08a2c74ee9359e29;hpb=467a270adf12425827305759c0c4ea8f5b2b3854 diff --git a/otherlibs/highgui/loadsave.cpp b/otherlibs/highgui/loadsave.cpp index 2c740c8..97c0db9 100644 --- a/otherlibs/highgui/loadsave.cpp +++ b/otherlibs/highgui/loadsave.cpp @@ -363,6 +363,27 @@ cvAddSearchPath( const char* path ) } #endif +CV_IMPL int +cvHaveImageReader( const char* filename ) +{ + GrFmtReader* reader = g_Filters.FindReader( filename ); + if( reader ) { + delete reader; + return 1; + } + return 0; +} + +CV_IMPL int cvHaveImageWriter( const char* filename ) +{ + GrFmtWriter* writer = g_Filters.FindWriter( filename ); + if( writer ) { + delete writer; + return 1; + } + return 0; +} + static void* icvLoadImage( const char* filename, int flags, bool load_as_matrix ) {