Blender V5.3
otio_metadata.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#pragma once
10
11#include "opentimelineio/serializableObjectWithMetadata.h"
12
13namespace blender {
14struct Editing;
15struct IDProperty;
16struct Main;
17struct PointerRNA;
18} // namespace blender
19
20namespace blender::io::otio {
21using namespace opentimelineio::OPENTIMELINEIO_VERSION_NS;
22
23std::optional<double> to_number(const std::any &value);
24const std::any *find(const AnyDictionary &dictionary, const std::string &key);
25template<typename T> const T *find(const AnyDictionary &dictionary, const std::string &key)
26{
27 const std::any *value = find(dictionary, key);
28 return value ? std::any_cast<T>(value) : nullptr;
29}
30AnyVector hex_to_color(const std::string &hex);
31
32AnyDictionary rna_to_dictionary(PointerRNA &ptr);
33void rna_from_dictionary(Main *bmain,
34 Editing *editing,
35 const AnyDictionary &dictionary,
36 PointerRNA &ptr);
37
38void add_foreign_metadata(IDProperty *properties, SerializableObjectWithMetadata &object);
39void store_foreign_metadata(const SerializableObjectWithMetadata &object, IDProperty *&properties);
40
41} // namespace blender::io::otio
#define T
AnyDictionary rna_to_dictionary(PointerRNA &ptr)
AnyVector hex_to_color(const std::string &hex)
std::optional< double > to_number(const std::any &value)
void store_foreign_metadata(const SerializableObjectWithMetadata &object, IDProperty *&properties)
void rna_from_dictionary(Main *bmain, Editing *editing, const AnyDictionary &dictionary, PointerRNA &ptr)
const std::any * find(const AnyDictionary &dictionary, const std::string &key)
void add_foreign_metadata(IDProperty *properties, SerializableObjectWithMetadata &object)
BMesh Iterators.