getPixelDepth method

int getPixelDepth()

Gets the pixel depth.

return Pixel depth. throws FaceException An error has occurred during Face Library execution.

Implementation

int getPixelDepth() {
  Pointer<Int> pPixelDepth = calloc();
  try {
    var err = faceSDK.id3FaceImage_GetPixelDepth(_pHandle.value, pPixelDepth);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vPixelDepth = pPixelDepth.value;
    return vPixelDepth;
  } finally {
    calloc.free(pPixelDepth);
  }
}