21 lines
351 B
C++
21 lines
351 B
C++
#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;
|
|
|
|
}
|