| 582 | OSPRAY_CATCH_END(nullptr) |
| 583 | |
| 584 | extern "C" OSPImageOperation ospNewImageOperation( |
| 585 | const char *_type) OSPRAY_CATCH_BEGIN |
| 586 | { |
| 587 | THROW_IF_NULL_STRING(_type); |
| 588 | |
| 589 | ASSERT_DEVICE(); |
| 590 | int L = strlen(_type); |
| 591 | char *type = STACK_BUFFER(char, L + 1); |
| 592 | for (int i = 0; i <= L; i++) { |
| 593 | char c = _type[i]; |
| 594 | if (c == '-' || c == ':') |
| 595 | c = '_'; |
| 596 | type[i] = c; |
| 597 | } |
| 598 | OSPImageOperation op = currentDevice().newImageOp(type); |
| 599 | return op; |
| 600 | } |
| 601 | OSPRAY_CATCH_END(nullptr) |
| 602 | |
| 603 | extern "C" const void *ospMapFrameBuffer( |
no test coverage detected