/usr/include/mlt/framework/mlt_filter.h is in libmlt-dev 6.4.1-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | /**
* \file mlt_filter.h
* \brief abstraction for all filter services
* \see mlt_filter_s
*
* Copyright (C) 2003-2014 Meltytech, LLC
*
* 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 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
* Lesser General Public License for more details.
*
* 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef MLT_FILTER_H
#define MLT_FILTER_H
#include "mlt_service.h"
/** \brief Filter abstract service class
*
* A filter is a service that may modify the output of a single producer.
*
* \extends mlt_service_s
* \properties \em track the index of the track of a multitrack on which the filter is applied
* \properties \em service a reference to the service to which this filter is attached.
* \properties \em disable Set this to disable the filter while keeping it in the object model.
* Currently this is not cleared when the filter is detached.
*/
struct mlt_filter_s
{
/** We're implementing service here */
struct mlt_service_s parent;
/** public virtual */
void ( *close )( mlt_filter );
/** protected filter method */
mlt_frame ( *process )( mlt_filter, mlt_frame );
/** Protected */
void *child;
};
#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 );
extern mlt_properties mlt_filter_properties( mlt_filter self );
extern mlt_frame mlt_filter_process( mlt_filter self, mlt_frame that );
extern int mlt_filter_connect( mlt_filter self, mlt_service producer, int index );
extern void mlt_filter_set_in_and_out( mlt_filter self, mlt_position in, mlt_position out );
extern int mlt_filter_get_track( mlt_filter self );
extern mlt_position mlt_filter_get_in( mlt_filter self );
extern mlt_position mlt_filter_get_out( mlt_filter self );
extern mlt_position mlt_filter_get_length( mlt_filter self );
extern mlt_position mlt_filter_get_length2( mlt_filter self, mlt_frame frame );
extern mlt_position mlt_filter_get_position( mlt_filter self, mlt_frame frame );
extern double mlt_filter_get_progress( mlt_filter self, mlt_frame frame );
extern void mlt_filter_close( mlt_filter );
#endif
|