Crate strand_dynamic_frame

Source
Expand description

Images from machine vision cameras used in Strand Camera.

Building on the machine_vision_formats crate which provides compile-time pixel formats, this crate provides types for images whose pixel format is determined at runtime. This allows for flexibility in handling images data whose pixel format is known only dynamically, such as when reading an image from disk.

There are two types here:

  • DynamicFrame: A borrowed view of an image with a dynamic pixel format.
  • DynamicFrameOwned: An owned version of DynamicFrame that contains its own buffer.

When compiled with the convert-image feature, this crate also provides conversion methods to convert the dynamic frame into a static pixel format using the convert_image crate.

Macros§

match_all_dynamic_fmts
Macro to match all dynamic pixel formats and execute a block of code with a typed image reference.

Structs§

DynamicFrame
An image whose pixel format is determined at runtime.
DynamicFrameOwned
An owned version of DynamicFrame that contains its own buffer.