• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2012, Collabora Ltd.
3  * Copyright (C) 2012, Cisco Systems, Inc.
4  *   Author: Youness Alaoui <youness.alaoui@collabora.co.uk>
5  *
6  * Copyright (C) 2015, Collabora Ltd.
7  *   Author: Justin Kim <justin.kim@collabora.com>
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation
12  * version 2.1 of the License.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
22  *
23  */
24 
25 #ifndef __GST_ANDROID_GRAPHICS_IMAGEFORMAT_H__
26 #define __GST_ANDROID_GRAPHICS_IMAGEFORMAT_H__
27 
28 #include <gst/gst.h>
29 
30 G_BEGIN_DECLS
31 
32 /* android.graphics.ImageFormat */
33 extern gint ImageFormat_JPEG;
34 extern gint ImageFormat_NV16;
35 extern gint ImageFormat_NV21;
36 extern gint ImageFormat_RGB_565;
37 extern gint ImageFormat_UNKNOWN;
38 extern gint ImageFormat_YUY2;
39 extern gint ImageFormat_YV12;
40 
41 gboolean gst_android_graphics_imageformat_init (void);
42 void gst_android_graphics_imageformat_deinit (void);
43 
44 gint gst_ag_imageformat_get_bits_per_pixel (gint format);
45 
46 G_END_DECLS
47 
48 #endif /* __GST_ANDROID_GRAPHICS_IMAGEFORMAT_H__ */
49 
50