X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_geometry.h;h=81201846d23e10fbae3c775c19ff51e4bc0af815;hb=4112170ce8053261b9c67f58df87c2a3573b6602;hp=357543a0543c5c6b7c00deabe8a4432da9aec44c;hpb=8ccc2d1a7455217e06eca83901e705fb589715c6;p=melted diff --git a/src/framework/mlt_geometry.h b/src/framework/mlt_geometry.h index 357543a..8120184 100644 --- a/src/framework/mlt_geometry.h +++ b/src/framework/mlt_geometry.h @@ -3,19 +3,19 @@ * Copyright (C) 2004-2005 Ushodaya Enterprises Limited * Author: Charles Yates * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. * - * This program is distributed in the hope that it will be useful, + * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software Foundation, - * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _MLT_GEOMETRY_H @@ -25,15 +25,15 @@ struct mlt_geometry_item_s { - // Will be 1 when this is a key frame + /* Will be 1 when this is a key frame */ int key; - // The actual frame this corresponds to + /* The actual frame this corresponds to */ int frame; - // Distort + /* Distort */ int distort; - // x,y are upper left + /* x,y are upper left */ float x, y, w, h, mix; - // Indicates which values are fixed + /* Indicates which values are fixed */ int f[ 5 ]; }; @@ -42,30 +42,31 @@ struct mlt_geometry_s void *local; }; -// Create a new geometry structure +/* Create a new geometry structure */ extern mlt_geometry mlt_geometry_init( ); -// Parse the geometry specification for a given length and normalised width/height (-1 for default) +/* Parse the geometry specification for a given length and normalised width/height (-1 for default) */ extern int mlt_geometry_parse( mlt_geometry self, char *data, int length, int nw, int nh ); -// Conditionally refresh the geometry if it's modified +/* Conditionally refresh the geometry if it's modified */ extern int mlt_geometry_refresh( mlt_geometry self, char *data, int length, int nw, int nh ); -// Get and set the length +/* Get and set the length */ extern int mlt_geometry_get_length( mlt_geometry self ); extern void mlt_geometry_set_length( mlt_geometry self, int length ); -// Parse an item - doesn't affect the geometry itself but uses current information for evaluation -// (item->frame should be specified if not included in the data itself) +/* Parse an item - doesn't affect the geometry itself but uses current information for evaluation */ +/* (item->frame should be specified if not included in the data itself) */ extern int mlt_geometry_parse_item( mlt_geometry self, mlt_geometry_item item, char *data ); -// Fetch a geometry item for an absolute position +/* Fetch a geometry item for an absolute position */ extern int mlt_geometry_fetch( mlt_geometry self, mlt_geometry_item item, float position ); -// Specify a geometry item at an absolute position +/* Specify a geometry item at an absolute position */ extern int mlt_geometry_insert( mlt_geometry self, mlt_geometry_item item ); -// Remove the key at the specified position +/* Remove the key at the specified position */ extern int mlt_geometry_remove( mlt_geometry self, int position ); -// Get the key at the position or the next following -extern int mlt_geometry_key( mlt_geometry self, mlt_geometry_item item, int position ); -// Serialise the current geometry +/* Get the key at the position or the next following */ +extern int mlt_geometry_next_key( mlt_geometry self, mlt_geometry_item item, int position ); +extern int mlt_geometry_prev_key( mlt_geometry self, mlt_geometry_item item, int position ); +/* Serialise the current geometry */ extern char *mlt_geometry_serialise_cut( mlt_geometry self, int in, int out ); extern char *mlt_geometry_serialise( mlt_geometry self ); -// Close the geometry +/* Close the geometry */ extern void mlt_geometry_close( mlt_geometry self ); #endif