]> git.sesse.net Git - mlt/commitdiff
Next/Prev key extraction
authorlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 3 Jan 2005 20:15:00 +0000 (20:15 +0000)
committerlilo_booter <lilo_booter@d19143bc-622f-0410-bfdd-b5b2a6649095>
Mon, 3 Jan 2005 20:15:00 +0000 (20:15 +0000)
git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt++@603 d19143bc-622f-0410-bfdd-b5b2a6649095

mlt++/src/MltGeometry.cpp
mlt++/src/MltGeometry.h

index 1a85c55510ce9250ad91f6d216abf94df7180153..524a3d7313725a8cce09ec6eb9baf40f1093eb99 100644 (file)
@@ -67,14 +67,24 @@ int Geometry::remove( int position )
 }
 
 // Get the key at the position or the next following
-int Geometry::key( GeometryItem &item, int position )
+int Geometry::next_key( GeometryItem &item, int position )
 {
-       return mlt_geometry_key( geometry, item.get_item( ), position );
+       return mlt_geometry_next_key( geometry, item.get_item( ), position );
 }
 
-int Geometry::key( GeometryItem *item, int position )
+int Geometry::next_key( GeometryItem *item, int position )
 {
-       return mlt_geometry_key( geometry, item->get_item( ), position );
+       return mlt_geometry_next_key( geometry, item->get_item( ), position );
+}
+
+int Geometry::prev_key( GeometryItem &item, int position )
+{
+       return mlt_geometry_prev_key( geometry, item.get_item( ), position );
+}
+
+int Geometry::prev_key( GeometryItem *item, int position )
+{
+       return mlt_geometry_prev_key( geometry, item->get_item( ), position );
 }
 
 // Serialise the current geometry
index ad5b9c5833571eaa080d0d720b423102cae346c3..fea20e179fb5c6252e272a09ff368bf03eef8872 100644 (file)
@@ -64,8 +64,10 @@ namespace Mlt
                        // Remove the key at the specified position
                        int remove( int position );
                        // Get the key at the position or the next following
-                       int key( GeometryItem &item, int position );
-                       int key( GeometryItem *item, int position );
+                       int next_key( GeometryItem &item, int position );
+                       int next_key( GeometryItem *item, int position );
+                       int prev_key( GeometryItem &item, int position );
+                       int prev_key( GeometryItem *item, int position );
                        // Serialise the current geometry
                        char *serialise( int in, int out );
                        char *serialise( );