~ubuntu-branches/ubuntu/quantal/gst-plugins-bad0.10/quantal-proposed

« back to all changes in this revision

Viewing changes to gst/colorspace/colorspace.h

  • Committer: Bazaar Package Importer
  • Author(s): Ken VanDine
  • Date: 2011-07-19 14:32:43 UTC
  • mfrom: (18.4.21 sid)
  • Revision ID: james.westby@ubuntu.com-20110719143243-p7pnkh45akfp0ihk
Tags: 0.10.22-2ubuntu1
* Rebased on debian unstable, remaining changes:
  - debian/gstreamer-plugins-bad.install
    * don't include dtmf, liveadder, rtpmux, autoconvert and shm, we include 
      them in -good

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
  COLOR_SPEC_YUV_BT709
36
36
} ColorSpaceColorSpec;
37
37
 
 
38
typedef enum {
 
39
  DITHER_NONE,
 
40
  DITHER_VERTERR,
 
41
  DITHER_HALFTONE
 
42
} ColorSpaceDitherMethod;
 
43
 
38
44
struct _ColorspaceComponent {
39
45
  int offset;
40
46
  int stride;
43
49
struct _ColorspaceConvert {
44
50
  gint width, height;
45
51
  gboolean interlaced;
 
52
  gboolean use_16bit;
 
53
  gboolean dither;
46
54
 
47
55
  GstVideoFormat from_format;
48
56
  ColorSpaceColorSpec from_spec;
51
59
  guint32 *palette;
52
60
 
53
61
  guint8 *tmpline;
 
62
  guint16 *tmpline16;
 
63
  guint16 *errline;
54
64
 
55
65
  int dest_offset[4];
56
66
  int dest_stride[4];
61
71
  void (*getline) (ColorspaceConvert *convert, guint8 *dest, const guint8 *src, int j);
62
72
  void (*putline) (ColorspaceConvert *convert, guint8 *dest, const guint8 *src, int j);
63
73
  void (*matrix) (ColorspaceConvert *convert);
 
74
 
 
75
  void (*getline16) (ColorspaceConvert *convert, guint16 *dest, const guint8 *src, int j);
 
76
  void (*putline16) (ColorspaceConvert *convert, guint8 *dest, const guint16 *src, int j);
 
77
  void (*matrix16) (ColorspaceConvert *convert);
 
78
  void (*dither16) (ColorspaceConvert *convert, int j);
64
79
};
65
80
 
66
81
ColorspaceConvert * colorspace_convert_new (GstVideoFormat to_format,
67
82
    ColorSpaceColorSpec from_spec, GstVideoFormat from_format,
68
83
    ColorSpaceColorSpec to_spec, int width, int height);
 
84
void colorspace_convert_set_dither (ColorspaceConvert * convert, int type);
69
85
void colorspace_convert_set_interlaced (ColorspaceConvert *convert,
70
86
    gboolean interlaced);
71
87
void colorspace_convert_set_palette (ColorspaceConvert *convert,