yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
color_id_permutation.cc File Reference
#include "app/editor/graphics/color_id_permutation.h"
#include <algorithm>
#include <map>
#include <set>
#include <string>
#include <utility>
#include "absl/strings/str_format.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{color_id_permutation.cc}
 

Functions

bool yaze::editor::anonymous_namespace{color_id_permutation.cc}::SupportedDepth (int bpp)
 
size_t yaze::editor::anonymous_namespace{color_id_permutation.cc}::TileOffset (uint16_t tile)
 
ColorIdPermutation yaze::editor::IdentityColorIdPermutation (int bpp)
 
absl::Status yaze::editor::ValidateColorIdPermutation (const ColorIdPermutation &permutation)
 
absl::Status yaze::editor::ValidateColorIdPermutationForBacking (const ColorIdPermutation &permutation, int backing_bpp)
 
absl::StatusOr< ColorIdPermutation > yaze::editor::MakeColorIdSwap (int bpp, int from, int to)
 
uint64_t yaze::editor::PhysicalPixelMask (uint64_t displayed_mask, bool hflip, bool vflip)
 
absl::StatusOr< ColorIdEditPlan > yaze::editor::PlanColorIdEdit (const std::vector< ColorIdBacking > &backings, const std::vector< ColorIdTarget > &targets, const ColorIdPermutation &permutation)
 
absl::Status yaze::editor::ApplyColorIdRangeEdit (const ColorIdRangeEdit &edit, int bpp, bool forward, std::vector< uint8_t > &pixels)
 

Variables

constexpr int yaze::editor::anonymous_namespace{color_id_permutation.cc}::kPageWidth = 128
 
constexpr int yaze::editor::anonymous_namespace{color_id_permutation.cc}::kPageHeight = 32
 
constexpr size_t yaze::editor::anonymous_namespace{color_id_permutation.cc}::kPagePixels = kPageWidth * kPageHeight
 
constexpr int yaze::editor::anonymous_namespace{color_id_permutation.cc}::kTilesPerRow = kPageWidth / 8
 
constexpr int yaze::editor::anonymous_namespace{color_id_permutation.cc}::kTilesPerPage = static_cast<int>(kPagePixels / 64)