Module image::codecs::bmp::decoder

source Β·

Structs§

Enums§

Constants§

Statics§

Functions§

  • Convenience function to check if the combination of width, length and number of channels would result in a buffer that would overflow.
  • num_bytes πŸ”’
    Calculate how many many bytes a buffer holding a decoded image with these properties would require. Returns None if the buffer size would overflow or if one of the sizes are negative.
  • with_rows πŸ”’
    Call the provided function on each row of the provided buffer, returning Err if the provided function returns an error, extends the buffer if it’s not large enough.