pack_pixels.c revision 66c14dd42d5cc3f7cc1a06db62c37e87602bcac0
/* Copyright (c) 2001, Stanford University
* All rights reserved
*
* See the file LICENSE.txt for information on redistributing this software.
*/
#include "packer.h"
#include "cr_pixeldata.h"
#include "cr_error.h"
#include "cr_mem.h"
#include "cr_version.h"
const CRPixelPackState *unpackstate )
{
unsigned char *data_ptr;
int packet_length, imagesize;
sizeof( width ) +
sizeof( height ) +
sizeof( format ) +
if (!noimagedata)
{
if (imagesize<=0)
{
crDebug("crPackDrawPixels: 0 image size, ignoring");
return;
}
}
if (!noimagedata)
{
}
crPackFree( data_ptr );
}
const CRPixelPackState *packstate,
int *writeback)
{
unsigned char *data_ptr;
int bytes_per_pixel;
*writeback = 0;
if (bytes_per_pixel <= 0) {
char string[80];
return;
}
/* default bytes_per_row so crserver can allocate memory */
if (remainder)
}
WRITE_DATA( 0, GLint, x );
}
/* Round N up to the next multiple of 8 */
{
unsigned char *data_ptr;
int data_length = 0;
int packet_length =
sizeof( width ) +
sizeof( height ) +
sizeof( xorig ) +
sizeof( yorig ) +
sizeof( xmove ) +
sizeof( ymove ) +
if (!noimagedata)
{
}
if (!noimagedata)
crPackFree( data_ptr );
}
/*
ZPix - compressed DrawPixels
*/
const CRPixelPackState *unpackstate )
{
unsigned char *data_ptr;
int packet_length;
(void)unpackstate;
{
return;
}
sizeof( int ) + /* packet size */
sizeof( GLenum ) + /* extended opcode */
sizeof( width ) +
sizeof( height ) +
sizeof( format ) +
sizeof( type ) +
sizeof( ztype ) +
sizeof( zparm ) +
sizeof( length );
packet_length += length;
/* XXX JAG
crDebug("PackZPixCR: fb %d x %d, state %d, zlen = %d, plen = %d",
width, height, ztype, length, packet_length);
*/
crPackFree( data_ptr );
}
void PACK_APIENTRY
int * writeback )
{
unsigned char *data_ptr;
(void) pc;
}