v0.10.0
What's Changed
Changed (BREAKING)
- edgefirst-hal upgraded from 0.22.0 to 0.23.0. The standalone
load_imagefunction has been removed from the image crate;
callers now use theImageLoadtrait from the newedgefirst_codec
crate (re-exported asedgefirst_hal::codec). The new pattern
pre-allocates a tensor, then decodes in-place via
tensor.load_image(&mut decoder, &bytes, &opts). imagecrate dependency removed. TheError::Imagevariant
(wrappingimage::ImageError) is replaced byError::Codec
(wrappingedgefirst_hal::codec::CodecError). Downstreammatch
arms onara2::Error::Image(_)must be updated.- The
yolov8example now decodes directly into a GPU-accessible
tensor viaImageDecoder, eliminating the previous CPU→GPU copy
step.
Migration
| 0.9.x | 0.10.0 |
|---|---|
ara2 = "0.9" |
ara2 = "0.10" |
edgefirst-hal = "0.22" (downstream pin) |
edgefirst-hal = "0.23" |
ara2::Error::Image(e) |
ara2::Error::Codec(e) |
load_image(&bytes, Some(fmt), mem) |
peek_info → Tensor::image → tensor.load_image(&mut decoder, &bytes, &opts) |
crates.io: ara2 | ara2-sys
PyPI: edgefirst-ara2