yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
sheet_png_transfer.cc File Reference
#include "app/editor/graphics/sheet_png_transfer.h"
#include <algorithm>
#include <memory>
#include <utility>
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "app/editor/graphics/graphics_editor_state.h"
#include "app/editor/graphics/graphics_sheet_sync.h"
#include "app/editor/graphics/graphics_undo_actions.h"
#include "app/editor/registry/undo_manager.h"
#include "app/gfx/types/snes_tile.h"
#include "rom/rom.h"
#include "util/indexed_png.h"
#include "util/macro.h"
#include "zelda3/gfx_sheet_storage.h"
#include "zelda3/graphics_sheet_store.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{sheet_png_transfer.cc}
 

Functions

absl::Status yaze::editor::anonymous_namespace{sheet_png_transfer.cc}::CheckSheetPixels (uint16_t sheet_id, const std::vector< uint8_t > &indexed_pixels)
 
SheetPngImportPreview yaze::editor::anonymous_namespace{sheet_png_transfer.cc}::MakePreview (uint16_t sheet_id, const zelda3::SheetImportResult &result)
 
absl::StatusOr< std::vector< uint8_t > > yaze::editor::ExportSheetPixelsPng (uint16_t sheet_id, const std::vector< uint8_t > &indexed_pixels, const zelda3::SheetPalette &palette)
 
absl::StatusOr< SheetPngImportPreview > yaze::editor::PreviewSheetPngImport (uint16_t sheet_id, const std::vector< uint8_t > &indexed_pixels, const std::vector< uint8_t > &png_bytes, const zelda3::SheetPalette &palette, int first_block)
 
absl::StatusOr< std::vector< SheetPngImportPreview > > yaze::editor::PreviewRoomPngImport (const Rom &rom, const zelda3::RoomBackgroundSet &set, const std::vector< uint8_t > &png_bytes, const zelda3::SheetPalette &palette)
 
absl::Status yaze::editor::ApplySheetPngImport (const SheetPngImportPreview &preview, GraphicsEditorState &state, UndoManager *undo_manager)
 
std::string yaze::editor::DescribeSheetPngImport (const SheetPngImportPreview &preview)
 "Sheet 0x20: blocks 0, 3 (5 tiles)" for the preview list.
 

Variables

constexpr size_t yaze::editor::anonymous_namespace{sheet_png_transfer.cc}::kSheetPixels = 128 * 32