| 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-chroma.h> |
| 21 |
|
| 22 |
_DEFS(gstreamermm,gst) |
| 23 |
|
| 24 |
namespace Gst |
| 25 |
{ |
| 26 |
_WRAP_ENUM(VideoChromaSite, GstVideoChromaSite) |
| 27 |
_WRAP_ENUM(VideoChromaMethod, GstVideoChromaMethod) |
| 28 |
_WRAP_ENUM(VideoChromaFlags, GstVideoChromaFlags) |
| 29 |
} |
| 30 |
|
| 31 |
#include <gstreamermm/videoformat.h> |
| 32 |
|
| 33 |
namespace Gst |
| 34 |
{ |
| 35 |
|
| 36 |
namespace Enums |
| 37 |
{ |
| 38 |
/** Converts @a site to its string representation. |
| 39 |
* @param site A Gst::VideoChromaSite. |
| 40 |
* @return a string describing @a site. |
| 41 |
*/ |
| 42 |
Glib::ustring get_name(VideoChromaSite site); |
| 43 |
|
| 44 |
/** Convert @a s to a Gst::VideoChromaSite. |
| 45 |
* @param s A chromasite string. |
| 46 |
* @return A Gst::VideoChromaSite or Gst::VIDEO_CHROMA_SITE_UNKNOWN when @a s does |
| 47 |
* not contain a valid chroma description. |
| 48 |
*/ |
| 49 |
VideoChromaSite video_chroma_site_from_string(const Glib::ustring& s); |
| 50 |
} |
| 51 |
|
| 52 |
class VideoChromaResample |
| 53 |
{ |
| 54 |
_CLASS_GENERIC(VideoChromaResample, GstVideoChromaResample) |
| 55 |
public: |
| 56 |
VideoChromaResample(Gst::VideoChromaMethod method, Gst::VideoChromaSite site, Gst::VideoChromaFlags flags, |
| 57 |
Gst::VideoFormat format, gint h_factor, gint v_factor); |
| 58 |
|
| 59 |
// it takes ownership of castitem |
| 60 |
explicit VideoChromaResample(GstVideoChromaResample* castitem); |
| 61 |
|
| 62 |
~VideoChromaResample(); |
| 63 |
|
| 64 |
GstVideoChromaResample* gobj() { return gobject_; } |
| 65 |
const GstVideoChromaResample* gobj() const { return gobject_; } |
| 66 |
|
| 67 |
_WRAP_METHOD(void get_info(guint& n_lines, gint& offset) const, gst_video_chroma_resample_get_info) |
| 68 |
|
| 69 |
protected: |
| 70 |
GstVideoChromaResample* gobject_; |
| 71 |
}; |
| 72 |
|
| 73 |
} |