pub fn decode_regions(
input: &[u8],
format: DecodeFormat,
rules: &DecodeRules,
) -> Result<Vec<DecodedRegion>>Expand description
Decode all regions of format using the GPU decoder.
§Errors
Returns Error::DecodeConfig if the provided rules are invalid.
Returns Error::Decode if the GPU decode dispatch fails.
Returns Error::Gpu if the GPU device cannot be initialized or a buffer operation fails.