Lines Matching refs:CoderInfo
5 // Test Magick::CoderInfo class and Magick::coderInfoList
17 int test( CoderInfo::MatchType isReadable_,
18 CoderInfo::MatchType isWritable_,
19 CoderInfo::MatchType isMultiFrame_ )
22 list<CoderInfo> coderList;
24 list<CoderInfo>::iterator entry = coderList.begin();
28 if ( isReadable_ != CoderInfo::AnyMatch &&
29 (( entry->isReadable() && isReadable_ != CoderInfo::TrueMatch ) ||
30 ( !entry->isReadable() && isReadable_ != CoderInfo::FalseMatch )) )
42 if ( isWritable_ != CoderInfo::AnyMatch &&
43 (( entry->isWritable() && isWritable_ != CoderInfo::TrueMatch ) ||
44 ( !entry->isWritable() && isWritable_ != CoderInfo::FalseMatch )) )
56 if ( isMultiFrame_ != CoderInfo::AnyMatch &&
57 (( entry->isMultiFrame() && isMultiFrame_ != CoderInfo::TrueMatch ) ||
58 ( !entry->isMultiFrame() && isMultiFrame_ != CoderInfo::FalseMatch )) )
85 CoderInfo coderInfo("GIF");
86 if ( coderInfo.name() != string("GIF") )
89 << coderInfo.name()
95 if( coderInfo.description() != string("CompuServe graphics interchange format") )
98 << coderInfo.description()
104 failures += test(CoderInfo::AnyMatch,CoderInfo::AnyMatch,CoderInfo::AnyMatch);
105 failures += test(CoderInfo::FalseMatch,CoderInfo::FalseMatch,CoderInfo::FalseMatch);
107 failures += test(CoderInfo::TrueMatch,CoderInfo::AnyMatch,CoderInfo::AnyMatch);
108 failures += test(CoderInfo::FalseMatch,CoderInfo::AnyMatch,CoderInfo::AnyMatch);
110 failures += test(CoderInfo::AnyMatch,CoderInfo::TrueMatch,CoderInfo::AnyMatch);
111 failures += test(CoderInfo::AnyMatch,CoderInfo::FalseMatch,CoderInfo::AnyMatch);
113 failures += test(CoderInfo::AnyMatch,CoderInfo::AnyMatch,CoderInfo::TrueMatch);
114 failures += test(CoderInfo::AnyMatch,CoderInfo::AnyMatch,CoderInfo::FalseMatch);