1#ifndef TOPAZ_IO_IMAGE_HPP
2#define TOPAZ_IO_IMAGE_HPP
3#include "tz/core/error.hpp"
39 std::expected<image_header, tz::error_code>
image_info(std::span<const std::byte> img_file_data);
error_code
Error codes for Topaz.
Definition error.hpp:14
std::expected< image_header, tz::error_code > image_info(std::span< const std::byte > img_file_data)
Retrieve info about an image loaded in memory.
tz::error_code parse_image(std::span< const std::byte > img_file_data, std::span< std::byte > buffer)
Load an image from file data resident in memory.