MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / hasUniformBitDepth

Method hasUniformBitDepth

src/nvcv/src/priv/ImageFormat.cpp:999–1014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999bool 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
1016ImageFormat ImageFormat::dataKind(NVCVDataKind newDataKind) const
1017{

Callers 1

bitDepthMethod · 0.95

Calls 2

bpcMethod · 0.95
numChannelsMethod · 0.95

Tested by

no test coverage detected