~ubuntu-branches/ubuntu/quantal/gst-plugins-bad-multiverse0.10/quantal

« back to all changes in this revision

Viewing changes to gst/librfb/rfbbytestream.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-12-21 21:19:58 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20061221211958-579han9ruaro0wag
Tags: 0.10.4-1
* New upstream release
* debian/build-deps.in:
  + Build depend on libmjpegtools-dev (>= 1.8.0) for the mpeg2 encoder
* debian/gstreamer-plugins-bad-multiverse.install:
  + Add mpeg2enc plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _LIBRFB_BYTESTREAM_H_
 
2
#define _LIBRFB_BYTESTREAM_H_
 
3
 
 
4
#include <glib.h>
 
5
 
 
6
#include <librfb/rfbbuffer.h>
 
7
 
 
8
G_BEGIN_DECLS
 
9
 
 
10
typedef struct _RfbBytestream RfbBytestream;
 
11
 
 
12
struct _RfbBytestream
 
13
{
 
14
  RfbBuffer * (* get_buffer) (gint length, gpointer user_data);
 
15
 
 
16
  gpointer user_data;
 
17
  
 
18
  GSList *buffer_list;
 
19
  gint length;
 
20
  gint offset;
 
21
};
 
22
 
 
23
RfbBytestream *rfb_bytestream_new     (void);
 
24
void           rfb_bytestream_free    (RfbBytestream * bs);
 
25
 
 
26
gint           rfb_bytestream_read    (RfbBytestream * bs,
 
27
                                       RfbBuffer ** buffer,
 
28
                                       gint len);
 
29
gint           rfb_bytestream_peek    (RfbBytestream * bs,
 
30
                                       RfbBuffer ** buffer,
 
31
                                       gint len);
 
32
gint           rfb_bytestream_flush   (RfbBytestream * bs,
 
33
                                       gint len);
 
34
 
 
35
G_END_DECLS
 
36
 
 
37
#endif