Monopoly — Portage moderne 0.1.0
Portage moderne C/C++23 du Monopoly de 1999
Loading...
Searching...
No Matches
ModernImageDecoder.cpp File Reference
#include "ModernImageDecoder.hpp"
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <memory>
#include <new>
#include <stdexcept>
#include <stb_image.h>
Include dependency graph for ModernImageDecoder.cpp:

Go to the source code of this file.

Namespaces

namespace  monopoly
 
namespace  monopoly::data
 

Macros

#define STB_IMAGE_IMPLEMENTATION
 
#define STBI_ONLY_PNG
 
#define STBI_ONLY_JPEG
 
#define STBI_NO_STDIO
 
#define STBI_MAX_DIMENSIONS   8192
 
#define STBI_MALLOC(bytes)   imageAllocate(bytes)
 
#define STBI_REALLOC(pointer, bytes)   imageReallocate(pointer, bytes)
 
#define STBI_FREE(pointer)   imageFree(pointer)
 

Functions

std::expected< std::shared_ptr< const ModernTextureImage >, MeshRuntimeError > monopoly::data::decodeModernImage (std::span< const std::byte > bytes, ModernImageEncoding encoding, ModernImageDecodeLimits limits)
 

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

Definition at line 48 of file ModernImageDecoder.cpp.

◆ STBI_FREE

#define STBI_FREE (   pointer)    imageFree(pointer)

Definition at line 55 of file ModernImageDecoder.cpp.

◆ STBI_MALLOC

#define STBI_MALLOC (   bytes)    imageAllocate(bytes)

Definition at line 53 of file ModernImageDecoder.cpp.

◆ STBI_MAX_DIMENSIONS

#define STBI_MAX_DIMENSIONS   8192

Definition at line 52 of file ModernImageDecoder.cpp.

◆ STBI_NO_STDIO

#define STBI_NO_STDIO

Definition at line 51 of file ModernImageDecoder.cpp.

◆ STBI_ONLY_JPEG

#define STBI_ONLY_JPEG

Definition at line 50 of file ModernImageDecoder.cpp.

◆ STBI_ONLY_PNG

#define STBI_ONLY_PNG

Definition at line 49 of file ModernImageDecoder.cpp.

◆ STBI_REALLOC

#define STBI_REALLOC (   pointer,
  bytes 
)    imageReallocate(pointer, bytes)

Definition at line 54 of file ModernImageDecoder.cpp.