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

Function GetNumComponents

src/nvcv/src/priv/DataLayout.cpp:678–688  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676}
677
678int GetNumComponents(NVCVPacking packing) noexcept
679{
680 if (packing == NVCV_PACKING_0)
681 {
682 return 0;
683 }
684 else
685 {
686 return ExtractBitfield(packing, 4, 2) + 1;
687 }
688}
689
690int GetNumChannels(NVCVPacking packing) noexcept
691{

Callers 3

GetNumChannelsFunction · 0.70
GetBitsPerComponentFunction · 0.70
DataLayout.cppFile · 0.50

Calls 1

ExtractBitfieldFunction · 0.85

Tested by

no test coverage detected