2 * video-format.h - Video format helpers for VA-API
4 * Copyright (C) 2010-2011 Splitted-Desktop Systems
5 * Copyright (C) 2011-2013 Intel Corporation
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.
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.
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
23 #ifndef GST_VAAPI_VIDEO_FORMAT_H
24 #define GST_VAAPI_VIDEO_FORMAT_H
26 #include <gst/gstvalue.h>
27 #include <gst/video/video.h>
32 gst_vaapi_video_format_to_string(GstVideoFormat format);
35 gst_vaapi_video_format_is_rgb(GstVideoFormat format);
38 gst_vaapi_video_format_is_yuv(GstVideoFormat format);
41 gst_vaapi_video_format_from_structure(GstStructure *structure);
44 gst_vaapi_video_format_from_caps(GstCaps *caps);
47 gst_vaapi_video_format_to_caps(GstVideoFormat format);
50 gst_vaapi_video_format_from_va_format(const VAImageFormat *va_format);
53 gst_vaapi_video_format_to_va_format(GstVideoFormat format);
56 gst_vaapi_video_format_get_chroma_type(GstVideoFormat format);
59 gst_vaapi_video_format_get_score(GstVideoFormat format);
63 #endif /* GST_VAAPI_VIDEO_FORMAT_H */