pub unsafe extern "C" fn cudaArrayGetPlane(
pPlaneArray: *mut cudaArray_t,
hArray: cudaArray_t,
planeIdx: c_uint,
) -> cudaError_tExpand description
Gets a CUDA array plane from a CUDA array.
Returns in pPlaneArray a CUDA array that represents a single format plane of the CUDA array hArray.
If planeIdx is greater than the maximum number of planes in this array or if the array does not have a multi-planar format e.g: cudaChannelFormatKind::cudaChannelFormatKindNV12, then cudaErrorInvalidValue is returned.
Note that if the hArray has format cudaChannelFormatKind::cudaChannelFormatKindNV12, then passing in 0 for planeIdx returns a CUDA array of the same size as hArray but with one 8-bit channel and cudaChannelFormatKind::cudaChannelFormatKindUnsigned as its format kind. If 1 is passed for planeIdx, then the returned CUDA array has half the height and width of hArray with two 8-bit channels and cudaChannelFormatKind::cudaChannelFormatKindUnsigned as its format kind.
ยงParameters
pPlaneArray: Returned CUDA array referenced by theplaneIdx.hArray: CUDA array.planeIdx: Plane index.