~ubuntu-branches/ubuntu/lucid/psimedia/lucid-proposed

« back to all changes in this revision

Viewing changes to gstprovider/gstelements/winks/gstksvideodevice.h

  • Committer: Bazaar Package Importer
  • Author(s): Ivan Borzenkov
  • Date: 2009-07-18 16:51:30 UTC
  • Revision ID: james.westby@ubuntu.com-20090718165130-7aetrkp6zivus4lk
Tags: upstream-1.0.3
Import upstream version 1.0.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2008 Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com>
 
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., 59 Temple Place - Suite 330,
 
17
 * Boston, MA 02111-1307, USA.
 
18
 */
 
19
 
 
20
#ifndef __GST_KS_VIDEO_DEVICE_H__
 
21
#define __GST_KS_VIDEO_DEVICE_H__
 
22
 
 
23
#include <gst/gst.h>
 
24
 
 
25
#include <windows.h>
 
26
#include <ks.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define GST_TYPE_KS_VIDEO_DEVICE \
 
31
  (gst_ks_video_device_get_type ())
 
32
#define GST_KS_VIDEO_DEVICE(obj) \
 
33
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_KS_VIDEO_DEVICE, GstKsVideoDevice))
 
34
#define GST_KS_VIDEO_DEVICE_CLASS(klass) \
 
35
  (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_KS_VIDEO_DEVICE, GstKsVideoDeviceClass))
 
36
#define GST_IS_KS_VIDEO_DEVICE(obj) \
 
37
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_KS_VIDEO_DEVICE))
 
38
#define GST_IS_KS_VIDEO_DEVICE_CLASS(klass) \
 
39
  (G_TYPE_CHECK_CLASS_TYPE ((klass), GST_TYPE_KS_VIDEO_DEVICE))
 
40
 
 
41
typedef struct _GstKsVideoDevice      GstKsVideoDevice;
 
42
typedef struct _GstKsVideoDeviceClass GstKsVideoDeviceClass;
 
43
 
 
44
struct _GstKsVideoDevice
 
45
{
 
46
  GObject parent;
 
47
};
 
48
 
 
49
struct _GstKsVideoDeviceClass
 
50
{
 
51
  GObjectClass parent_class;
 
52
};
 
53
 
 
54
GType gst_ks_video_device_get_type (void);
 
55
 
 
56
gboolean gst_ks_video_device_open (GstKsVideoDevice * self);
 
57
void gst_ks_video_device_close (GstKsVideoDevice * self);
 
58
 
 
59
GstCaps * gst_ks_video_device_get_available_caps (GstKsVideoDevice * self);
 
60
gboolean gst_ks_video_device_has_caps (GstKsVideoDevice * self);
 
61
gboolean gst_ks_video_device_set_caps (GstKsVideoDevice * self, GstCaps * caps);
 
62
 
 
63
gboolean gst_ks_video_device_set_state (GstKsVideoDevice * self, KSSTATE state);
 
64
 
 
65
guint gst_ks_video_device_get_frame_size (GstKsVideoDevice * self);
 
66
GstClockTime gst_ks_video_device_get_duration (GstKsVideoDevice * self);
 
67
gboolean gst_ks_video_device_get_latency (GstKsVideoDevice * self, GstClockTime * min_latency, GstClockTime * max_latency);
 
68
 
 
69
GstFlowReturn gst_ks_video_device_read_frame (GstKsVideoDevice * self, guint8 * buf, gulong buf_size, gulong * bytes_read, GstClockTime * presentation_time, gulong * error_code, gchar ** error_str);
 
70
void gst_ks_video_device_postprocess_frame (GstKsVideoDevice * self, guint8 * buf, guint buf_size);
 
71
void gst_ks_video_device_cancel (GstKsVideoDevice * self);
 
72
void gst_ks_video_device_cancel_stop (GstKsVideoDevice * self);
 
73
 
 
74
G_END_DECLS
 
75
 
 
76
#endif /* __GST_KS_VIDEO_DEVICE_H__ */