// std::pair<T, bool> is used to indicate presence of a field, // like an std::optional (which cannot be used because it's C++17). // If the boolean is true, then the value is present.
struct ColorProperties { bool color_range; // true for full range values
uint8_t color_primaries;
uint8_t transfer_characteristics;
uint8_t matrix_coefficients;
};
// Relevant for MULTILAYER_LAYER_TYPE_ALPHA with scope >= SCOPE_GLOBAL.
AlphaInformation alpha; // Relevant for MULTILAYER_LAYER_TYPE_DEPTH with scope >= SCOPE_GLOBAL.
DepthInformation depth;
// Relevant when scope != SCOPE_GLOBAL.
std::vector<FrameLocalMetadata> local_metadata;
};
// Parses a multilayer metadata file. // The metadata is expected to be in a subset of the YAML format supporting // simple lists and maps with integer values, and comments. // Checks that the metadata is valid and terminates the process in case of // error. bool parse_multilayer_file(constchar *metadata_path,
MultilayerMetadata *multilayer);
// Prints the multilayer metadata to stdout for debugging. void print_multilayer_metadata(const MultilayerMetadata &multilayer);
// Converts a double value to a DepthRepresentationElement struct. bool double_to_depth_representation_element( double v, DepthRepresentationElement *element); // Converts a DepthRepresentationElement struct to a double value. double depth_representation_element_to_double( const DepthRepresentationElement &e);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.