
Image Processing
Resize, normalize, crop, and apply other image transformations for machine learning on the GPU.

A complete image and video runtime for machine learning. Load, decode, transform, and normalise through one media runtime designed for the GPU. Every frame arrives as a tensor, ready for inference or training.

Resize, normalize, crop, and apply other image transformations for machine learning on the GPU.

Vulkan Video decoding for H.264, H.265, AV1, and VP9 when the device exposes the required profiles and formats.

Seamless integration with machine learning pipelines. Video frames become model ready tensors in a single operation.

One vendor neutral API admits only the codec, format, queue, and kernel routes exposed by the selected device.
OA Viewer makes image and video state inspectable while the same device resident values continue to serve a pipeline. These captures come from the C++ Viewer; matching Rust and Python Viewer previews now exist in the private development tree.
Semantic images and video frames remain device resident through ingest, transformation, model preparation, and preview. Stateful decode sessions exist only where media lifecycle requires them.
Each operation is a direct call. No pipeline objects to configure before you can resize an image. No session lifecycle for a normalisation pass. Decoders and encoders keep state across calls.
This condensed SDK path decodes a JPEG, resizes it on the device, applies brightness and contrast, and reads the semantic image as a matrix. Rust and Python keep the same operation sequence.
1use oa::{ImageFormat, Path, image};23let path = Path::asset_rel("image/visionTestPattern320x180.jpg");4let source = image::decode_file(&path, ImageFormat::Rgb)?;5let small = image::resize(&source, 160, 90,6 image::InterpolationMode::Bilinear)?;7let adjusted = image::brightness_contrast(&small, 0.05, 1.1)?;8let values = adjusted.as_matrix().read_f32()?;9assert_eq!(values.len(), 3 * 90 * 160);
Vision queries the selected device before opening a session, then admits only the codec, format, queue, conversion, and resolution routes it can support. Hardware specific decisions stay private while availability remains explicit.
Follow the same runtime and semantic values into another module.