getPixelFormat method

PixelFormat getPixelFormat()

Gets the pixel format.

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

Implementation

PixelFormat getPixelFormat() {
  Pointer<Int32> pPixelFormat = calloc();
  try {
    var err = faceSDK.id3FaceImage_GetPixelFormat(_pHandle.value, pPixelFormat);
    if (err != FaceError.success.value) {
      throw FaceException(err);
    }
    final vPixelFormat = PixelFormatX.fromValue(pPixelFormat.value);
    return vPixelFormat;
  } finally {
    calloc.free(pPixelFormat);
  }
}