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

« back to all changes in this revision

Viewing changes to gst/vmnc/vmncdec.c

Tags: upstream-0.10.17.2
Import upstream version 0.10.17.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
#define GST_VMNC_DEC(obj) \
44
44
  (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_VMNC_DEC,GstVMncDec))
45
45
 
46
 
#define RFB_GET_UINT32(ptr) GUINT32_FROM_BE (*(guint32 *)(ptr))
47
 
#define RFB_GET_UINT16(ptr) GUINT16_FROM_BE (*(guint16 *)(ptr))
48
 
#define RFB_GET_UINT8(ptr) (*(guint8 *)(ptr))
 
46
#define RFB_GET_UINT32(ptr) GST_READ_UINT32_BE(ptr)
 
47
#define RFB_GET_UINT16(ptr) GST_READ_UINT16_BE(ptr)
 
48
#define RFB_GET_UINT8(ptr) GST_READ_UINT8(ptr)
49
49
 
50
50
enum
51
51
{
729
729
  return 4;
730
730
}
731
731
 
 
732
/* FIXME: data+off might not be properly aligned */
732
733
#define READ_PIXEL(pixel, data, off, len)         \
733
734
  if (dec->format.bytes_per_pixel == 1) {         \
734
735
     if (off >= len)                              \