]> git.sesse.net Git - mlt/blob - src/modules/vid.stab/common.h
Updates to vid.stab module.
[mlt] / src / modules / vid.stab / common.h
1 /*
2  * common.h
3  * Copyright (C) 2013 Jakub Ksiezniak <j.ksiezniak@gmail.com>
4  * Copyright (C) 2014 Brian Matherly <pez4brian@yahoo.com>
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef VIDSTAB_COMMON_H_
22 #define VIDSTAB_COMMON_H_
23
24 #include <vid.stab/libvidstab.h>
25 #include <framework/mlt.h>
26
27 mlt_image_format validate_format( mlt_image_format format );
28 VSPixelFormat mltimage_to_vsimage( mlt_image_format mlt_format, int width, int height, uint8_t* mlt_img, uint8_t** vs_img );
29 void vsimage_to_mltimage( uint8_t* vs_img, uint8_t* mlt_img, mlt_image_format mlt_format, int width, int height );
30 void free_vsimage( uint8_t* vs_img, VSPixelFormat format );
31
32 int compare_motion_config( VSMotionDetectConfig* a, VSMotionDetectConfig* b );
33 int compare_transform_config( VSTransformConfig* a, VSTransformConfig* b );
34
35 #endif /* VIDSTAB_COMMON_H_ */