MCPcopy Create free account
hub / github.com/Tom94/tev / pixelType

Function pixelType

src/Common.cpp:633–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

631}
632
633EPixelType pixelType(EPixelFormat format) {
634 switch (format) {
635 case EPixelFormat::U8:
636 case EPixelFormat::U16:
637 case EPixelFormat::U32: return EPixelType::Uint;
638 case EPixelFormat::I8:
639 case EPixelFormat::I16:
640 case EPixelFormat::I32: return EPixelType::Int;
641 case EPixelFormat::F16:
642 case EPixelFormat::F32: return EPixelType::Float;
643 default: throw runtime_error{"Unknown pixel format."};
644 }
645}
646
647std::string CompoundException::buildMessage(std::span<const std::exception_ptr> exceptions) {
648 ostringstream oss;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected