3 * Copyright (C) 2013 Jakub Ksiezniak <j.ksiezniak@gmail.com>
4 * Copyright (C) 2014 Brian Matherly <pez4brian@yahoo.com>
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.
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.
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.
21 #ifndef VIDSTAB_COMMON_H_
22 #define VIDSTAB_COMMON_H_
24 #include <vid.stab/libvidstab.h>
25 #include <framework/mlt.h>
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 );
32 #endif /* VIDSTAB_COMMON_H_ */