# decode

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-media-qr/function-decode/

**function** · [`ferroui-media-qr`](/docs/0.5.0/api/ferroui-media-qr/) · v0.5.0

```rust
fn decode(analysis: &QrAnalysis, plane: AnalysisPlane<'_>) -> Result<Vec<QrCandidate>, QrError>
```

Runs on the host's bounded analysis worker. The analysis token owns the
camera lease throughout the synchronous decoder; it never owns the camera.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Media.Qr/decoder.rs#L95)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
