mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 16:51:10 +00:00
gst/librfb/rfbdecoder.c: Use glib macro for swapping
Original commit message from CVS: * gst/librfb/rfbdecoder.c: Use glib macro for swapping
This commit is contained in:
parent
f17a78668e
commit
aedf92f474
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2007-11-30 Thijs Vermeir <thijsvermeir@gmail.com>
|
||||||
|
|
||||||
|
* gst/librfb/rfbdecoder.c:
|
||||||
|
Use glib macro for swapping
|
||||||
|
|
||||||
2007-11-29 Thijs Vermeir <thijsvermeir@gmail.com>
|
2007-11-29 Thijs Vermeir <thijsvermeir@gmail.com>
|
||||||
|
|
||||||
* gst/librfb/gstrfbsrc.c:
|
* gst/librfb/gstrfbsrc.c:
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <byteswap.h>
|
|
||||||
|
|
||||||
#include "vncauth.h"
|
#include "vncauth.h"
|
||||||
|
|
||||||
|
@ -723,7 +722,7 @@ rfb_decoder_rre_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
|
||||||
|
|
||||||
buffer = rfb_decoder_read (decoder, 4 + decoder->bytespp);
|
buffer = rfb_decoder_read (decoder, 4 + decoder->bytespp);
|
||||||
number_of_rectangles = RFB_GET_UINT32 (buffer);
|
number_of_rectangles = RFB_GET_UINT32 (buffer);
|
||||||
color = bswap_32 (RFB_GET_UINT32 (buffer + 4));
|
color = GUINT32_SWAP_LE_BE ((RFB_GET_UINT32 (buffer + 4)));
|
||||||
g_free (buffer);
|
g_free (buffer);
|
||||||
|
|
||||||
GST_DEBUG ("number of rectangles :%d", number_of_rectangles);
|
GST_DEBUG ("number of rectangles :%d", number_of_rectangles);
|
||||||
|
@ -734,7 +733,7 @@ rfb_decoder_rre_encoding (RfbDecoder * decoder, gint start_x, gint start_y,
|
||||||
while (number_of_rectangles--) {
|
while (number_of_rectangles--) {
|
||||||
|
|
||||||
buffer = rfb_decoder_read (decoder, decoder->bytespp + 8);
|
buffer = rfb_decoder_read (decoder, decoder->bytespp + 8);
|
||||||
color = bswap_32 (RFB_GET_UINT32 (buffer));
|
color = GUINT32_SWAP_LE_BE ((RFB_GET_UINT32 (buffer)));
|
||||||
x = RFB_GET_UINT16 (buffer + decoder->bytespp);
|
x = RFB_GET_UINT16 (buffer + decoder->bytespp);
|
||||||
y = RFB_GET_UINT16 (buffer + decoder->bytespp + 2);
|
y = RFB_GET_UINT16 (buffer + decoder->bytespp + 2);
|
||||||
w = RFB_GET_UINT16 (buffer + decoder->bytespp + 4);
|
w = RFB_GET_UINT16 (buffer + decoder->bytespp + 4);
|
||||||
|
|
Loading…
Reference in a new issue