]> git.sesse.net Git - mlt/blob - src/modules/vid.stab/common.h
File header consistency
[mlt] / src / modules / vid.stab / common.h
1 /*
2  * common.h
3  * Copyright (C) 2013 Jakub Ksiezniak <j.ksiezniak@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software Foundation,
17  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef VIDSTAB_COMMON_H_
21 #define VIDSTAB_COMMON_H_
22
23 extern "C" {
24 #include <vid.stab/libvidstab.h>
25 #include <framework/mlt.h>
26 }
27
28 inline VSPixelFormat convertImageFormat(mlt_image_format &format) {
29         switch (format) {
30         case mlt_image_rgb24:
31                 return PF_RGB24;
32         case mlt_image_rgb24a:
33                 return PF_RGBA;
34         case mlt_image_yuv420p:
35                 return PF_YUV420P;
36         default:
37                 return PF_NONE;
38         }
39 }
40
41 #endif /* VIDSTAB_COMMON_H_ */