1#ifndef YAZE_APP_GFX_BPP_FORMAT_MANAGER_H
2#define YAZE_APP_GFX_BPP_FORMAT_MANAGER_H
8#include <unordered_map>
44 int bytes_tile,
int bytes_sheet,
bool compressed,
45 const std::string& desc)
140 std::vector<uint8_t>
ConvertFormat(
const std::vector<uint8_t>& data,
142 int width,
int height);
152 const std::vector<uint8_t>& sheet_data,
int sheet_id,
174 const std::vector<int>& used_colors);
217 int width,
int height);
221 int width,
int height);
223 int width,
int height);
225 int width,
int height);
227 int width,
int height);
229 int width,
int height);
231 int width,
int height);
236 const std::vector<uint8_t>& compressed);
238 int width,
int height,
251 std::vector<uint8_t>
Convert(
const std::vector<uint8_t>& data);
RAII wrapper for BPP format conversion operations.
BppConversionScope(BppFormat from_format, BppFormat to_format, int width, int height)
std::vector< uint8_t > Convert(const std::vector< uint8_t > &data)
std::string operation_name_
RAII timer for automatic timing management.
Represents a palette of colors for the Super Nintendo Entertainment System (SNES).
BppFormat
BPP format enumeration for SNES graphics.
@ kBpp4
4 bits per pixel (16 colors)
@ kBpp3
3 bits per pixel (8 colors)
@ kBpp2
2 bits per pixel (4 colors)
@ kBpp8
8 bits per pixel (256 colors)
SDL2/SDL3 compatibility layer.
Graphics sheet analysis result.
std::string conversion_history
std::vector< int > tile_usage_pattern
BppFormat original_format