Skip to main content

validate_encode_dimensions

Function validate_encode_dimensions 

Source
pub fn validate_encode_dimensions(
    width: u32,
    height: u32,
) -> Result<(), StegoError>
Expand description

Validate image dimensions for encoding.

Returns Ok(()) if the dimensions are within acceptable bounds. Called at the start of both ghost_encode and armor_encode.

§Errors