1#ifndef YAZE_APP_GFX_BPP_FORMAT_MANAGER_H
2#define YAZE_APP_GFX_BPP_FORMAT_MANAGER_H
6#include <unordered_map>
43 int bytes_tile,
int bytes_sheet,
bool compressed,
const std::string& desc)
128 std::vector<uint8_t>
ConvertFormat(
const std::vector<uint8_t>& data,
130 int width,
int height);
161 const std::vector<int>& used_colors);
204 int width,
int height);
206 std::vector<uint8_t>
Convert2BppTo8Bpp(
const std::vector<uint8_t>& data,
int width,
int height);
207 std::vector<uint8_t>
Convert3BppTo8Bpp(
const std::vector<uint8_t>& data,
int width,
int height);
208 std::vector<uint8_t>
Convert4BppTo8Bpp(
const std::vector<uint8_t>& data,
int width,
int height);
209 std::vector<uint8_t>
Convert8BppTo2Bpp(
const std::vector<uint8_t>& data,
int width,
int height);
210 std::vector<uint8_t>
Convert8BppTo3Bpp(
const std::vector<uint8_t>& data,
int width,
int height);
211 std::vector<uint8_t>
Convert8BppTo4Bpp(
const std::vector<uint8_t>& data,
int width,
int height);
216 const std::vector<uint8_t>& compressed);
218 int width,
int height,
int tile_size);
229 std::vector<uint8_t>
Convert(
const std::vector<uint8_t>& data);
RAII wrapper for BPP format conversion operations.
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)
Main namespace for the application.
Graphics sheet analysis result.
std::string conversion_history
std::vector< int > tile_usage_pattern
BppFormat original_format