a3d7d5be58f3297b95f5f18c6f9c1ce4d799da4c
[platform/upstream/gstreamer-vaapi.git] / gst-libs / gst / vaapi / video-format.h
1 /*
2  *  video-format.h - Video format helpers for VA-API
3  *
4  *  Copyright (C) 2010-2011 Splitted-Desktop Systems
5  *  Copyright (C) 2011-2013 Intel Corporation
6  *
7  *  This library is free software; you can redistribute it and/or
8  *  modify it under the terms of the GNU Lesser General Public License
9  *  as published by the Free Software Foundation; either version 2.1
10  *  of the License, or (at your option) any later version.
11  *
12  *  This library is distributed in the hope that it will be useful,
13  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  *  Lesser General Public License for more details.
16  *
17  *  You should have received a copy of the GNU Lesser General Public
18  *  License along with this library; if not, write to the Free
19  *  Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20  *  Boston, MA 02110-1301 USA
21  */
22
23 #ifndef GST_VAAPI_VIDEO_FORMAT_H
24 #define GST_VAAPI_VIDEO_FORMAT_H
25
26 #include <gst/gstvalue.h>
27 #include <gst/video/video.h>
28
29 G_BEGIN_DECLS
30
31 const char *
32 gst_vaapi_video_format_to_string(GstVideoFormat format);
33
34 gboolean
35 gst_vaapi_video_format_is_rgb(GstVideoFormat format);
36
37 gboolean
38 gst_vaapi_video_format_is_yuv(GstVideoFormat format);
39
40 GstVideoFormat
41 gst_vaapi_video_format_from_structure(GstStructure *structure);
42
43 GstVideoFormat
44 gst_vaapi_video_format_from_caps(GstCaps *caps);
45
46 GstCaps *
47 gst_vaapi_video_format_to_caps(GstVideoFormat format);
48
49 GstVideoFormat
50 gst_vaapi_video_format_from_va_format(const VAImageFormat *va_format);
51
52 const VAImageFormat *
53 gst_vaapi_video_format_to_va_format(GstVideoFormat format);
54
55 guint
56 gst_vaapi_video_format_get_chroma_type(GstVideoFormat format);
57
58 guint
59 gst_vaapi_video_format_get_score(GstVideoFormat format);
60
61 G_END_DECLS
62
63 #endif /* GST_VAAPI_VIDEO_FORMAT_H */