| 1 |
/* gstreamermm - a C++ wrapper for gstreamer |
| 2 |
* |
| 3 |
* Copyright 2008-2015 The gstreamermm Development Team |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library 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 GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <gst/video/video-format.h> |
| 21 |
|
| 22 |
_DEFS(gstreamermm,gst) |
| 23 |
|
| 24 |
namespace Gst |
| 25 |
{ |
| 26 |
_WRAP_ENUM(VideoFormat, GstVideoFormat) |
| 27 |
_WRAP_ENUM(VideoFormatFlags, GstVideoFormatFlags) |
| 28 |
_WRAP_ENUM(VideoPackFlags, GstVideoPackFlags) |
| 29 |
|
| 30 |
/** |
| 31 |
* Information for a video format. |
| 32 |
*/ |
| 33 |
class VideoFormatInfo |
| 34 |
{ |
| 35 |
_CLASS_GENERIC(VideoFormatInfo, GstVideoFormatInfo) |
| 36 |
|
| 37 |
public: |
| 38 |
explicit VideoFormatInfo(const GstVideoFormatInfo* castitem); |
| 39 |
virtual ~VideoFormatInfo(); |
| 40 |
|
| 41 |
const GstVideoFormatInfo* gobj() const { return gobj_; }; |
| 42 |
|
| 43 |
_MEMBER_GET(format, format, VideoFormat, GstVideoFormat) |
| 44 |
|
| 45 |
_MEMBER_GET(name, name, Glib::ustring, const gchar*) |
| 46 |
|
| 47 |
_MEMBER_GET(description, description, Glib::ustring, const gchar*) |
| 48 |
|
| 49 |
_MEMBER_GET(flags, flags, VideoFormatFlags, GstVideoFormatFlags) |
| 50 |
|
| 51 |
_MEMBER_GET(bits, bits, guint, guint) |
| 52 |
|
| 53 |
_MEMBER_GET(n_components, n_components, guint, guint) |
| 54 |
|
| 55 |
_MEMBER_GET(n_planes, n_planes, guint, guint) |
| 56 |
|
| 57 |
_MEMBER_GET(unpack_format, unpack_format, VideoFormat, GstVideoFormat) |
| 58 |
|
| 59 |
_MEMBER_GET(pack_lines, pack_lines, gint, gint) |
| 60 |
|
| 61 |
protected: |
| 62 |
#ifndef DOXYGEN_SHOULD_SKIP_THIS |
| 63 |
const GstVideoFormatInfo* gobj_; |
| 64 |
#endif |
| 65 |
}; |
| 66 |
} |