Module pixel

Module pixel 

Source
Expand description

Pixel data type abstractions.

This module defines the Pixel trait, which abstracts over the pixel data types used throughout the library. This allows the same code to work with both 8-bit (u8) and high bit-depth (u16) pixel data.

§Supported Pixel Types

  • u8: For 8-bit pixel data
  • u16: For 9-16 bit pixel data (high bit-depth)

The type used must match the bit depth specified when creating frames:

  • 8-bit frames must use u8
  • 9-16 bit frames must use u16

Traits§

Pixel
A trait for types that can be used as pixel data.