Esempio n. 1
0
static mlt_geometry composite_calculate( mlt_transition transition, struct mlt_geometry_item_s *result, int nw, int nh, double position )
{
	// Structures for geometry
	mlt_geometry start = transition_parse_keys( transition, "geometry", "geometries", nw, nh );

	// Do the calculation
	geometry_calculate( transition, "geometries", result, position );

	return start;
}
Esempio n. 2
0
static inline float composite_calculate_key( mlt_transition transition, const char *name, const char *store, int norm, float position )
{
	// Struct for the result
	struct mlt_geometry_item_s result;

	// Structures for geometry
	transition_parse_keys( transition, name, store, norm, 0 );

	// Do the calculation
	geometry_calculate( transition, store, &result, position );

	return result.x;
}