35 return Span(numbers, std::size(numbers));
41 if (strip.
data && strip.
data->stripdata && strip.
data->stripdata->orig_width > 0) {
42 media_size = float2(strip.data->stripdata->orig_width, strip.data->stripdata->orig_height);
78 std::any &value = parent[key];
79 if (!std::any_cast<AnyDictionary>(&value)) {
80 value = AnyDictionary();
82 return *std::any_cast<AnyDictionary>(&value);
86 "ALPHA_OVER",
"ADD",
"SUBTRACT",
"DIFFERENCE",
"MULTIPLY",
"SCREEN",
87 "OVERLAY",
"HARD_LIGHT",
"SOFT_LIGHT",
"DARKEN",
"LIGHTEN",
"DODGE",
88 "BURN",
"EXCLUSION",
"HUE",
"SATURATION",
"COLOR",
"VALUE",
89 nullptr,
"ADD",
"LINEAR_BURN",
"LINEAR_LIGHT",
"VIVID_LIGHT",
"PIN_LIGHT",
constexpr IndexRange()=default
const T & data(const Action &owning_action) const
const char * resolve_blend_type(const int64_t composite_mode)
AnyDictionary & ensure_dictionary(AnyDictionary &parent, const std::string &key)
Span< ResolveNumber > resolve_numbers()
std::optional< int64_t > resolve_composite_mode(const StringRef blend_type)
static const char * composite_mode_blend_types[]
VecBase< float, 2 > float2
ResolveUnits(const Scene &scene, const Strip &strip)
double to_blender(ResolveUnit unit) const
float2 anchor_to_origin() const