yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
indexed_png.h File Reference
#include <array>
#include <cstdint>
#include <string>
#include <vector>
#include "absl/status/statusor.h"

Go to the source code of this file.

Classes

struct  yaze::util::PngImage
 A decoded PNG: palette indices for indexed files, RGBA otherwise. More...
 

Namespaces

namespace  yaze
 
namespace  yaze::util
 

Functions

absl::StatusOr< std::vector< uint8_t > > yaze::util::EncodeIndexedPng (int width, int height, const std::vector< uint8_t > &indices, const std::vector< std::array< uint8_t, 4 > > &palette)
 
absl::StatusOr< PngImage > yaze::util::DecodePng (const std::vector< uint8_t > &bytes)
 
absl::StatusOr< std::vector< uint8_t > > yaze::util::ReadBinaryFile (const std::string &path)
 
absl::Status yaze::util::WriteBinaryFile (const std::string &path, const std::vector< uint8_t > &bytes)