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

Method planeFormat

src/nvcv/src/priv/ImageFormat.cpp:913–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

911}
912
913ImageFormat ImageFormat::planeFormat(int plane) const
914{
915 if (plane < this->numPlanes())
916 {
917 NVCVExtraChannelInfo exChannelInfo;
918 this->extraChannelInfo(&exChannelInfo);
919 return ImageFormat{this->colorFormat(),
920 plane == 0 ? NVCV_CSS_NONE : this->css(),
921 this->memLayout(),
922 this->dataKind(),
923 this->planeSwizzle(plane),
924 this->planePacking(plane),
925 NVCV_PACKING_0,
926 NVCV_PACKING_0,
927 NVCV_PACKING_0,
928 this->alphaType(),
929 &exChannelInfo};
930 }
931 else
932 {
933 return ImageFormat{NVCV_IMAGE_FORMAT_NONE};
934 }
935}
936
937DataType ImageFormat::planeDataType(int plane) const noexcept
938{

Callers 1

ImageFormat.cppFile · 0.45

Calls 9

numPlanesMethod · 0.95
extraChannelInfoMethod · 0.95
colorFormatMethod · 0.95
cssMethod · 0.95
memLayoutMethod · 0.95
dataKindMethod · 0.95
planeSwizzleMethod · 0.95
planePackingMethod · 0.95
alphaTypeMethod · 0.95

Tested by

no test coverage detected