---
title: useHardwareAcceleration
framework: coreimage
role: symbol
role_heading: Type Property
path: coreimage/ciimageoption/usehardwareacceleration
---

# useHardwareAcceleration

A Boolean value specifying that using hardware is preferred when decoding.

## Declaration

```swift
static let useHardwareAcceleration: CIImageOption
```

## Discussion

Discussion If the value for this option is: True: The image will be decoded using dedicated hardware if possible. False: The image will be decoded using the CPU is possible. Not specified: The default behavior is True. This option is only supported by JPEG and HEIF images formats. This option is only supported by these APIs: /CIImage/imageWithContentsOfURL:options: /CIImage/initWithContentsOfURL:options: /CIImage/imageWithData:options: /CIImage/initWithData:options: /CIImage/imageWithCGImageSource:index:options: /CIImage/initWithCGImageSource:index:options: note: The kCGImageSourceUseHardwareAcceleration key can also be used for this purpose.
