The project adheres to semantic versioning, as do most Rust projects. Changelog items are created for major and minor releases, but not bugfix ones for now.
Currently, the focus is on implementing the high-level V4L2 single-planar API. Multi-planar capture will not be targeted in the near future unless someone else starts working on it.
- Expose raw file descriptor of streams through
Stream::handle()
- Updated
bindgen
dependency to 0.65.1
- Use proper C FFI struct field for
Integer64
controls - Fix example in README.md to account for the negotiated pixelformat
- Do not block when the device is disconnected
- This is achieved by using the non-blocking file descriptor API internally
- The outside-facing API is the same for now
- Can be used as a foundation for language-level async support in the future
- Handling of boolean and button controls
- MJPG (consumer class hardware) support in
glium
example
- Simplified examples, removing clap argument parsing
- Unified Value/Value64 control types into a single Integer enum variant
- MUSL libc compatibility
- Android cross compilation
- Avoid dropping frames by queuing all buffers on stream start
- Update the buffer index for output streams
- Honor the bytesused field for compressed frames in output streams
- Depend on
0.2.0
sys packages to ship bindgen 0.56.0
- Global context struct
- Used to enumerate devices
- Single, unified device struct
- Implement Capture / Output capabilities as traits
- MMAP support for output streams (see
stream_forward_mmap
example)
- Fine grained buffer access and handling for streams
- Output device support!
- Just the single-planar API for now.
- Only write() I/O, no mmap or other buffer types.
- New Handle type for passing around device handles
- You can now stream buffers while changing device controls at the same time! Handles are thread safe (Arc) by default.
- New StreamItem type introduced to better model stream semantics
- An item only lives up to the point in time where you query the next item from the stream.
- Removed buffer arenas from public API
- New prelude module
- I/O module reorganization
- Renamed BufferManagers to Arenas
- Use a single Buffer struct for all I/O streams
- Removed the 'get_' prefix on getters
- Device control get/set support
- New QueryDevice trait
- Implemented for all types which implement Device
- Allows for querying properties such as supported frame times and controls
- Device control query support
- Use v4l2 bindings by default
- Device API refactoring
- We only support the V4L2 capture API for now
- Overlay, Output and friends will be added in future releases
- Streaming I/O (userptr)
- Optional libv4l vs v4l2 FFI dependencies
- Device buffer abstraction
- Streaming I/O (mmap)
- Device list with capability querying
- Device abstraction
- Format enumeration
- Format getter/setter
- Parameter getter/setter
- v4l-sys bindings
- I/O codes (VIDIOC_*)