| 1 |
/* GStreamer |
| 2 |
* Copyright (C) <2008> Edward Hervey <[email protected]> |
| 3 |
* |
| 4 |
* This library is free software; you can redistribute it and/or |
| 5 |
* modify it under the terms of the GNU Library General Public |
| 6 |
* License as published by the Free Software Foundation; either |
| 7 |
* version 2 of the License, or (at your option) any later version. |
| 8 |
* |
| 9 |
* This library is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
* Library General Public License for more details. |
| 13 |
* |
| 14 |
* You should have received a copy of the GNU Library General Public |
| 15 |
* License along with this library; if not, write to the |
| 16 |
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 17 |
* Boston, MA 02110-1301, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
|
| 21 |
#ifndef __GST_GSTHDV1394_H__ |
| 22 |
#define __GST_GSTHDV1394_H__ |
| 23 |
|
| 24 |
|
| 25 |
#include <gst/gst.h> |
| 26 |
#include <gst/base/gstpushsrc.h> |
| 27 |
|
| 28 |
#include <libraw1394/raw1394.h> |
| 29 |
#ifdef HAVE_LIBIEC61883 |
| 30 |
#include <libiec61883/iec61883.h> |
| 31 |
#endif |
| 32 |
|
| 33 |
G_BEGIN_DECLS |
| 34 |
|
| 35 |
#define GST_TYPE_HDV1394SRC (gst_hdv1394src_get_type()) |
| 36 |
G_DECLARE_FINAL_TYPE (GstHDV1394Src, gst_hdv1394src, GST, HDV1394SRC, |
| 37 |
GstPushSrc) |
| 38 |
|
| 39 |
struct _GstHDV1394Src { |
| 40 |
GstPushSrc element; |
| 41 |
|
| 42 |
gint num_ports; |
| 43 |
gint port; |
| 44 |
gint channel; |
| 45 |
octlet_t guid; |
| 46 |
gint avc_node; |
| 47 |
gboolean use_avc; |
| 48 |
|
| 49 |
struct raw1394_portinfo pinfo[16]; |
| 50 |
raw1394handle_t handle; |
| 51 |
|
| 52 |
gpointer outdata; |
| 53 |
gsize outoffset; |
| 54 |
guint frame_size; |
| 55 |
guint frame_sequence; |
| 56 |
|
| 57 |
int control_sock[2]; |
| 58 |
|
| 59 |
gchar *uri; |
| 60 |
|
| 61 |
gchar *device_name; |
| 62 |
|
| 63 |
gboolean connected; |
| 64 |
iec61883_mpeg2_t iec61883mpeg2; |
| 65 |
}; |
| 66 |
|
| 67 |
GST_ELEMENT_REGISTER_DECLARE (hdv1394src); |
| 68 |
|
| 69 |
G_END_DECLS |
| 70 |
|
| 71 |
#endif /* __GST_GST1394_H__ */ |