Find the first scene-referred color space with isdata: true.
| 229 | // Find the first scene-referred color space with isdata: true. |
| 230 | // |
| 231 | const char * getDataSpaceName(const ConstConfigRcPtr & cfg) |
| 232 | { |
| 233 | int nbCs = cfg->getNumColorSpaces(SEARCH_REFERENCE_SPACE_SCENE, COLORSPACE_ALL); |
| 234 | |
| 235 | for (int i = 0; i < nbCs; i++) |
| 236 | { |
| 237 | const char * csname = cfg->getColorSpaceNameByIndex(SEARCH_REFERENCE_SPACE_SCENE, |
| 238 | COLORSPACE_ALL, |
| 239 | i); |
| 240 | ConstColorSpaceRcPtr cs = cfg->getColorSpace(csname); |
| 241 | |
| 242 | if (cs->isData()) |
| 243 | { |
| 244 | return csname; |
| 245 | } |
| 246 | } |
| 247 | return ""; |
| 248 | } |
| 249 | |
| 250 | // Return false if the supplied Processor modifies any of the supplied float values |
| 251 | // by more than the supplied absolute tolerance amount. |
no test coverage detected