Function decode_image_bytes
pub fn decode_image_bytes(
bytes: &[u8],
limits: MediaLimits,
) -> Result<DecodedImage, MediaError>Expand description
Re-exports the media runtime helpers when the media feature is enabled.
§Examples
ⓘ
use pharos_native::media::*;§Related
crate::runtimefor runtime flows that consume media helpers. Decodes bounded image bytes on native targets.
§Parameters
bytes: Input consumed bycrate::decode_image_bytes.limits: Input consumed bycrate::decode_image_bytes.
§Returns
Returns the successful value produced by crate::decode_image_bytes or an error when the operation fails.
§Errors
Returns an error value when crate::decode_image_bytes cannot complete successfully.
§Examples
ⓘ
let _result = pharos_runtime_media::decode_image_bytes(b"", todo!());§Related
- [
crate] for adjacent helpers that share the same runtime surface.