Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
LegacyBitmap.hpp File Reference
#include <cstddef>
#include <cstdint>
#include <expected>
#include <filesystem>
#include <span>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for LegacyBitmap.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  monopoly::data::BitmapError
 
struct  monopoly::data::LegacyBitmapMetadata
 
struct  monopoly::data::LegacyBitmapRGBA8
 
struct  monopoly::data::LegacyUapMetadata
 

Namespaces

namespace  monopoly
 
namespace  monopoly::data
 

Enumerations

enum class  monopoly::data::BitmapErrorCode {
  monopoly::data::None , monopoly::data::FileOpenFailed , monopoly::data::ReadFailed , monopoly::data::HeaderTruncated ,
  monopoly::data::InvalidSignature , monopoly::data::UnsupportedDibHeader , monopoly::data::InvalidDimensions , monopoly::data::InvalidPlanes ,
  monopoly::data::InvalidBitDepth , monopoly::data::UnsupportedCompression , monopoly::data::PixelDataOutOfRange , monopoly::data::DeclaredSizeOutOfRange ,
  monopoly::data::InvalidPalette , monopoly::data::DecodeBudgetExceeded , monopoly::data::UnsupportedDataType
}
 

Functions

std::string_view monopoly::data::bitmapErrorCodeName (BitmapErrorCode code) noexcept
 
std::expected< LegacyUapMetadata, BitmapError > monopoly::data::inspectLegacyUap (std::span< const std::byte > bytes)
 
std::expected< LegacyBitmapRGBA8, BitmapError > monopoly::data::decodeLegacyUapRGBA8 (std::span< const std::byte > bytes, std::size_t maxPixels)
 
std::expected< LegacyBitmapRGBA8, BitmapError > monopoly::data::decodeLegacyBitmapRGBA8 (std::span< const std::byte > bytes, std::size_t maxPixels)
 
std::expected< LegacyBitmapMetadata, BitmapError > monopoly::data::inspectLegacyBitmap (std::span< const std::byte > bytes)
 
std::expected< LegacyBitmapMetadata, BitmapError > monopoly::data::inspectLegacyBitmapFile (const std::filesystem::path &path)