static void jpeg_prepare_row24(VncState *vs, uint8_t *dst, int x, int y,

                                     int count)

{

    VncDisplay *vd = vs->vd;

    uint32_t *fbptr;

    uint32_t pix;



    fbptr = (uint32_t *)(vd->server->data + y * ds_get_linesize(vs->ds) +

                         x * ds_get_bytes_per_pixel(vs->ds));



    while (count--) {

        pix = *fbptr++;

        *dst++ = (uint8_t)(pix >> vs->ds->surface->pf.rshift);

        *dst++ = (uint8_t)(pix >> vs->ds->surface->pf.gshift);

        *dst++ = (uint8_t)(pix >> vs->ds->surface->pf.bshift);

    }

}

static void jpeg_prepare_row24(VncState *vs, uint8_t *dst, int x, int y,

                                     int count)

{

    VncDisplay *vd = vs->vd;

    uint32_t *fbptr;

    uint32_t pix;



    fbptr = (uint32_t *)(vd->server->data + y * ds_get_linesize(vs->ds) +

                         x * ds_get_bytes_per_pixel(vs->ds));



    while (count--) {

        pix = *fbptr++;

        *dst++ = (uint8_t)(pix >> vs->ds->surface->pf.rshift);

        *dst++ = (uint8_t)(pix >> vs->ds->surface->pf.gshift);

        *dst++ = (uint8_t)(pix >> vs->ds->surface->pf.bshift);

    }

}

static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3,

                                     int VAR_4)

{

    VncDisplay *vd = VAR_0->vd;

    uint32_t *fbptr;

    uint32_t pix;



    fbptr = (uint32_t *)(vd->server->data + VAR_3 * ds_get_linesize(VAR_0->ds) +

                         VAR_2 * ds_get_bytes_per_pixel(VAR_0->ds));



    while (VAR_4--) {

        pix = *fbptr++;

        *VAR_1++ = (uint8_t)(pix >> VAR_0->ds->surface->pf.rshift);

        *VAR_1++ = (uint8_t)(pix >> VAR_0->ds->surface->pf.gshift);

        *VAR_1++ = (uint8_t)(pix >> VAR_0->ds->surface->pf.bshift);

    }

}

static void FUNC_0(VncState *VAR_0, uint8_t *VAR_1, int VAR_2, int VAR_3,
int VAR_4)
{ VncDisplay *vd = VAR_0->vd; uint32_t *fbptr; uint32_t pix; fbptr = (uint32_t *)(vd->server->data + VAR_3 * ds_get_linesize(VAR_0->ds) +
VAR_2 * ds_get_bytes_per_pixel(VAR_0->ds)); while (VAR_4--) { pix = *fbptr++; *VAR_1++ = (uint8_t)(pix >> VAR_0->ds->surface->pf.rshift); *VAR_1++ = (uint8_t)(pix >> VAR_0->ds->surface->pf.gshift); *VAR_1++ = (uint8_t)(pix >> VAR_0->ds->surface->pf.bshift); } }