X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_filter.h;h=423dd62bcc7971dd2454d7325d7f898cf35871a7;hb=d5338ba9fdcb7647c7484829f5424a70dbfbb53e;hp=6d87933372efdeda57552db0128908a27ea9a552;hpb=fa0d65478efe5d80e0affa58095109800a5cba71;p=melted diff --git a/src/framework/mlt_filter.h b/src/framework/mlt_filter.h index 6d87933..423dd62 100644 --- a/src/framework/mlt_filter.h +++ b/src/framework/mlt_filter.h @@ -3,19 +3,19 @@ * Copyright (C) 2003-2004 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_FILTER_H_ @@ -28,25 +28,25 @@ struct mlt_filter_s { - // We're implementing service here + /* We're implementing service here */ struct mlt_service_s parent; - // public virtual + /* public virtual */ void ( *close )( mlt_filter ); - // protected filter method + /* protected filter method */ mlt_frame ( *process )( mlt_filter, mlt_frame ); - // track and in/out points - mlt_service producer; - - // Protected + /* Protected */ void *child; }; /** Public final methods */ +#define MLT_FILTER_SERVICE( filter ) ( &( filter )->parent ) +#define MLT_FILTER_PROPERTIES( filter ) MLT_SERVICE_PROPERTIES( MLT_FILTER_SERVICE( filter ) ) + extern int mlt_filter_init( mlt_filter self, void *child ); extern mlt_filter mlt_filter_new( ); extern mlt_service mlt_filter_service( mlt_filter self );