-GstCaps* gst_v4l2_object_get_all_caps (void);
-
-GstCaps* gst_v4l2_object_get_raw_caps (void);
-
-GstCaps* gst_v4l2_object_get_codec_caps (void);
-
-GstStructure* gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc);
-
-gboolean gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps);
-
-gboolean gst_v4l2_object_caps_equal (GstV4l2Object * v4l2object, GstCaps * caps);
-
-gboolean gst_v4l2_object_unlock (GstV4l2Object * v4l2object);
-gboolean gst_v4l2_object_unlock_stop (GstV4l2Object * v4l2object);
-
-gboolean gst_v4l2_object_stop (GstV4l2Object * v4l2object);
-
-
-gboolean gst_v4l2_object_copy (GstV4l2Object * v4l2object,
- GstBuffer * dest, GstBuffer * src);
-
-GstCaps * gst_v4l2_object_get_caps (GstV4l2Object * v4l2object,
- GstCaps * filter);
-
-
-#define GST_IMPLEMENT_V4L2_PROBE_METHODS(Type_Class, interface_as_function) \
- \
-static void \
-interface_as_function ## _probe_probe_property (GstPropertyProbe * probe, \
- guint prop_id, \
- const GParamSpec * pspec) \
-{ \
- Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
- gst_v4l2_probe_probe_property (probe, prop_id, pspec, \
- &this_class->v4l2_class_devices); \
-} \
- \
-static gboolean \
-interface_as_function ## _probe_needs_probe (GstPropertyProbe * probe, \
- guint prop_id, \
- const GParamSpec * pspec) \
-{ \
- Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
- return gst_v4l2_probe_needs_probe (probe, prop_id, pspec, \
- &this_class->v4l2_class_devices); \
-} \
- \
-static GValueArray * \
-interface_as_function ## _probe_get_values (GstPropertyProbe * probe, \
- guint prop_id, \
- const GParamSpec * pspec) \
-{ \
- Type_Class *this_class = (Type_Class*) G_OBJECT_GET_CLASS (probe); \
- return gst_v4l2_probe_get_values (probe, prop_id, pspec, \
- &this_class->v4l2_class_devices); \
-} \
- \
-static void \
-interface_as_function ## _property_probe_interface_init (GstPropertyProbeInterface * iface) \
-{ \
- iface->get_properties = gst_v4l2_probe_get_properties; \
- iface->probe_property = interface_as_function ## _probe_probe_property; \
- iface->needs_probe = interface_as_function ## _probe_needs_probe; \
- iface->get_values = interface_as_function ## _probe_get_values; \
-}
+GstCaps* gst_v4l2_object_get_all_caps (void);
+
+GstCaps* gst_v4l2_object_get_raw_caps (void);
+
+GstCaps* gst_v4l2_object_get_codec_caps (void);
+
+gint gst_v4l2_object_extrapolate_stride (const GstVideoFormatInfo * finfo,
+ gint plane, gint stride);
+
+gboolean gst_v4l2_object_set_format (GstV4l2Object * v4l2object, GstCaps * caps, GstV4l2Error * error);
+gboolean gst_v4l2_object_try_format (GstV4l2Object * v4l2object, GstCaps * caps, GstV4l2Error * error);
+gboolean gst_v4l2_object_try_import (GstV4l2Object * v4l2object, GstBuffer * buffer);
+
+gboolean gst_v4l2_object_caps_equal (GstV4l2Object * v4l2object, GstCaps * caps);
+gboolean gst_v4l2_object_caps_is_subset (GstV4l2Object * v4l2object, GstCaps * caps);
+GstCaps * gst_v4l2_object_get_current_caps (GstV4l2Object * v4l2object);
+
+gboolean gst_v4l2_object_unlock (GstV4l2Object * v4l2object);
+gboolean gst_v4l2_object_unlock_stop (GstV4l2Object * v4l2object);
+
+gboolean gst_v4l2_object_stop (GstV4l2Object * v4l2object);
+
+GstCaps * gst_v4l2_object_probe_caps (GstV4l2Object * v4l2object, GstCaps * filter);
+GstCaps * gst_v4l2_object_get_caps (GstV4l2Object * v4l2object, GstCaps * filter);
+
+gboolean gst_v4l2_object_acquire_format (GstV4l2Object * v4l2object, GstVideoInfo * info);
+
+gboolean gst_v4l2_object_set_crop (GstV4l2Object * obj);
+
+gboolean gst_v4l2_object_decide_allocation (GstV4l2Object * v4l2object, GstQuery * query);
+
+gboolean gst_v4l2_object_propose_allocation (GstV4l2Object * obj, GstQuery * query);
+
+GstStructure * gst_v4l2_object_v4l2fourcc_to_structure (guint32 fourcc);
+
+/* TODO Move to proper namespace */
+/* open/close the device */
+gboolean gst_v4l2_open (GstV4l2Object * v4l2object);
+gboolean gst_v4l2_dup (GstV4l2Object * v4l2object, GstV4l2Object * other);
+gboolean gst_v4l2_close (GstV4l2Object * v4l2object);
+
+/* norm/input/output */
+gboolean gst_v4l2_get_norm (GstV4l2Object * v4l2object, v4l2_std_id * norm);
+gboolean gst_v4l2_set_norm (GstV4l2Object * v4l2object, v4l2_std_id norm);
+gboolean gst_v4l2_get_input (GstV4l2Object * v4l2object, gint * input);
+gboolean gst_v4l2_set_input (GstV4l2Object * v4l2object, gint input);
+gboolean gst_v4l2_get_output (GstV4l2Object * v4l2object, gint * output);
+gboolean gst_v4l2_set_output (GstV4l2Object * v4l2object, gint output);
+
+/* frequency control */
+gboolean gst_v4l2_get_frequency (GstV4l2Object * v4l2object, gint tunernum, gulong * frequency);
+gboolean gst_v4l2_set_frequency (GstV4l2Object * v4l2object, gint tunernum, gulong frequency);
+gboolean gst_v4l2_signal_strength (GstV4l2Object * v4l2object, gint tunernum, gulong * signal);
+
+/* attribute control */
+gboolean gst_v4l2_get_attribute (GstV4l2Object * v4l2object, int attribute, int * value);
+gboolean gst_v4l2_set_attribute (GstV4l2Object * v4l2object, int attribute, const int value);
+gboolean gst_v4l2_set_controls (GstV4l2Object * v4l2object, GstStructure * controls);