setProcessingUnit method

void setProcessingUnit(
  1. ProcessingUnit processingUnit
)

Sets the processing unit where to run the encoding process. Hint: Default value is CPU.

param processingUnit Processing unit where to run the encoding process. throws FaceException An error has occurred during Face Library execution.

Implementation

void setProcessingUnit(ProcessingUnit processingUnit) {
  var err = faceSDK.id3FaceEncoder_SetProcessingUnit(_pHandle.value, processingUnit.value);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}