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., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, 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 void init_vslog();
36 
37 #endif /* VIDSTAB_COMMON_H_ */
38