#pragma once

#include "foundation/result.h"

#include <cstddef>
#include <span>

namespace pp::assets {

enum class ImageFormat {
    png,
    jpeg,
};

[[nodiscard]] pp::foundation::Result<ImageFormat> detect_image_format(
    std::span<const std::byte> bytes) noexcept;

[[nodiscard]] const char* image_format_name(ImageFormat format) noexcept;

}
