| 997 | } |
| 998 | |
| 999 | bool ImageFormat::hasUniformBitDepth() const |
| 1000 | { |
| 1001 | std::array<int32_t, 4> bpc = this->bpc(); |
| 1002 | |
| 1003 | int nchannels = this->numChannels(); |
| 1004 | |
| 1005 | for (int i = 1; i < nchannels; ++i) |
| 1006 | { |
| 1007 | if (bpc[i - 1] != bpc[i]) |
| 1008 | { |
| 1009 | return false; |
| 1010 | } |
| 1011 | } |
| 1012 | |
| 1013 | return true; |
| 1014 | } |
| 1015 | |
| 1016 | ImageFormat ImageFormat::dataKind(NVCVDataKind newDataKind) const |
| 1017 | { |
no test coverage detected