| 1 |
#ifndef TESTS_PLUGINS_DERIVEDFROMBASETRANSFORM_H_ |
| 2 |
#define TESTS_PLUGINS_DERIVEDFROMBASETRANSFORM_H_ |
| 3 |
|
| 4 |
#include <gstreamermm.h> |
| 5 |
#include <gstreamermm/private/basetransform_p.h> |
| 6 |
#include <assert.h> |
| 7 |
|
| 8 |
class DerivedFromBaseTransform : public Gst::BaseTransform |
| 9 |
{ |
| 10 |
public: |
| 11 |
static void class_init(Gst::ElementClass<DerivedFromBaseTransform> *klass) |
| 12 |
{ |
| 13 |
klass->set_metadata("derivedfrombasetransform_longname", |
| 14 |
"derivedfrombasetransform_classification", "derivedfrombasetransform_detail_description", "derivedfrombasetransform_detail_author"); |
| 15 |
|
| 16 |
klass->add_pad_template(Gst::PadTemplate::create("sink", Gst::PAD_SINK, Gst::PAD_ALWAYS, Gst::Caps::create_any())); |
| 17 |
klass->add_pad_template(Gst::PadTemplate::create("src", Gst::PAD_SRC, Gst::PAD_ALWAYS, Gst::Caps::create_any())); |
| 18 |
} |
| 19 |
|
| 20 |
explicit DerivedFromBaseTransform(GstBaseTransform *gobj) |
| 21 |
: Glib::ObjectBase(typeid (DerivedFromBaseTransform)), |
| 22 |
Gst::BaseTransform(gobj) |
| 23 |
{ |
| 24 |
set_passthrough(true); |
| 25 |
} |
| 26 |
|
| 27 |
static bool register_element(Glib::RefPtr<Gst::Plugin> plugin) |
| 28 |
{ |
| 29 |
return Gst::ElementFactory::register_element(plugin, "derivedfrombasetransform", 10, Gst::register_mm_type<DerivedFromBaseTransform>("derivedfrombasetransform")); |
| 30 |
} |
| 31 |
}; |
| 32 |
|
| 33 |
#endif |