| 911 | } |
| 912 | |
| 913 | ImageFormat 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 | |
| 937 | DataType ImageFormat::planeDataType(int plane) const noexcept |
| 938 | { |
no test coverage detected