Expand description
Type definitions for HTTP video streaming functionality in the Strand Camera ecosystem.
This crate provides serializable data structures for streaming video frames over HTTP with annotations, shapes, and drawing capabilities. It’s designed to work with Strand Camera and Braid.
§Features
- Video frame data structures with annotations
- Geometric shapes (circles, polygons) for region marking
- Drawing styles and colors for canvas rendering
- Serialization support via serde
Structs§
- Canvas
Drawable Shape - Canvas-optimized representation of a drawable shape.
- Circle
Params - Parameters defining a circle shape.
- Drawable
Shape - A shape with associated drawing properties for canvas rendering.
- Point
- Represents a 2D point with optional orientation and area information.
- Polygon
Params - Parameters defining a polygon shape.
- Rgba
Color - RGBA color representation for drawing operations.
- ToClient
- Message structure sent from server to client containing video frame data and annotations.
Enums§
- Shape
- Geometric shapes that can be used for regions, annotations, or masks.
- Stroke
Style - Stroke style options for drawing shapes and annotations.
Constants§
- VIDEO_
STREAM_ EVENT_ NAME - Event name used for Server-Sent Events (SSE) video streaming.