| 1395 | } |
| 1396 | |
| 1397 | void Validate(const OCIO::PackedImageDesc & imgDesc, unsigned lineNo) |
| 1398 | { |
| 1399 | const float * outImg = reinterpret_cast<float*>(imgDesc.getData()); |
| 1400 | for(size_t pxl=0; pxl<NB_PIXELS; ++pxl) |
| 1401 | { |
| 1402 | OCIO_CHECK_CLOSE_FROM(outImg[4*pxl+0], resImg[4*pxl+0], 1e-6f, lineNo); |
| 1403 | OCIO_CHECK_CLOSE_FROM(outImg[4*pxl+1], resImg[4*pxl+1], 1e-6f, lineNo); |
| 1404 | OCIO_CHECK_CLOSE_FROM(outImg[4*pxl+2], resImg[4*pxl+2], 1e-6f, lineNo); |
| 1405 | OCIO_CHECK_CLOSE_FROM(outImg[4*pxl+3], resImg[4*pxl+3], 1e-6f, lineNo); |
| 1406 | } |
| 1407 | } |
| 1408 | |
| 1409 | void Process(const OCIO::ConstCPUProcessorRcPtr & cpuProcessor, |
| 1410 | const OCIO::PackedImageDesc & srcImgDesc, |
no test coverage detected