mirror of
https://github.com/leejet/stable-diffusion.cpp.git
synced 2026-04-01 06:09:49 +00:00
22 lines
566 B
C++
22 lines
566 B
C++
#pragma once
|
|
|
|
#include <iosfwd>
|
|
#include <string>
|
|
|
|
enum class MetadataOutputFormat {
|
|
TEXT,
|
|
JSON,
|
|
};
|
|
|
|
struct MetadataReadOptions {
|
|
MetadataOutputFormat output_format = MetadataOutputFormat::TEXT;
|
|
bool include_raw = false;
|
|
bool brief = false;
|
|
bool include_structural = false;
|
|
};
|
|
|
|
bool print_image_metadata(const std::string& image_path,
|
|
const MetadataReadOptions& options,
|
|
std::ostream& out,
|
|
std::string& error);
|