Namespaces | |
| namespace | anonymous_namespace{graphics_scratch_storage.cc} |
Classes | |
| struct | BinExportResult |
| struct | LibrarySnapshot |
Functions | |
| absl::StatusOr< LibrarySnapshot > | LoadLibrary (const std::string &path) |
| absl::StatusOr< std::string > | SaveLibrary (const std::string &path, const GraphicsScratchLibrary &library, const std::optional< std::string > &expected_bytes) |
| absl::StatusOr< GraphicsScratchAsset > | ImportBin (const std::string &path, int bpp, size_t offset, const std::string &name) |
| absl::StatusOr< BinExportResult > | ExportBin (const GraphicsScratchAsset &asset, const std::string &path, const std::string &library_path, const std::function< absl::Status(const std::string &)> &validator) |
| absl::StatusOr< LibrarySnapshot > yaze::editor::graphics_scratch_storage::LoadLibrary | ( | const std::string & | path | ) |
Definition at line 92 of file graphics_scratch_storage.cc.
References ASSIGN_OR_RETURN, yaze::editor::graphics_scratch_storage::LibrarySnapshot::bytes, yaze::editor::graphics_scratch_storage::LibrarySnapshot::library, and yaze::editor::GraphicsScratchLibrary::Parse().
Referenced by yaze::editor::GraphicsScratchView::Load().

| absl::StatusOr< std::string > yaze::editor::graphics_scratch_storage::SaveLibrary | ( | const std::string & | path, |
| const GraphicsScratchLibrary & | library, | ||
| const std::optional< std::string > & | expected_bytes ) |
Definition at line 107 of file graphics_scratch_storage.cc.
References yaze::core::AcquireSourceArtifactPublicationLock(), ASSIGN_OR_RETURN, RETURN_IF_ERROR, yaze::editor::GraphicsScratchLibrary::Serialize(), and yaze::project::WriteProjectFileAtomically().
Referenced by yaze::editor::GraphicsScratchView::Flush().

| absl::StatusOr< GraphicsScratchAsset > yaze::editor::graphics_scratch_storage::ImportBin | ( | const std::string & | path, |
| int | bpp, | ||
| size_t | offset, | ||
| const std::string & | name ) |
Definition at line 137 of file graphics_scratch_storage.cc.
References ASSIGN_OR_RETURN, and yaze::editor::DecodeScratchBin().
Referenced by yaze::editor::GraphicsScratchView::ImportBin().

| absl::StatusOr< BinExportResult > yaze::editor::graphics_scratch_storage::ExportBin | ( | const GraphicsScratchAsset & | asset, |
| const std::string & | path, | ||
| const std::string & | library_path, | ||
| const std::function< absl::Status(const std::string &)> & | validator ) |
Definition at line 166 of file graphics_scratch_storage.cc.
References yaze::core::AcquireSourceArtifactPublicationLock(), ASSIGN_OR_RETURN, yaze::core::ComputeSourceArtifactSha256(), yaze::editor::EncodeScratchBin(), yaze::editor::GraphicsScratchAsset::original_chunk, yaze::core::PublishSourceArtifacts(), RETURN_IF_ERROR, yaze::editor::GraphicsScratchAsset::source_offset, yaze::editor::GraphicsScratchAsset::source_path, and yaze::project::WriteProjectFileAtomically().
Referenced by yaze::editor::GraphicsScratchView::ExportBin().