pack_pixels.c revision e0e0c19eefceaf5d4ec40f9466b58a771f50e799
/* 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;
{
return;
}
#if 0
/* WHAT IS THIS FOR? Disabled by Brian on 3 Dec 2003 */
{
}
#endif
sizeof( width ) +
sizeof( height ) +
sizeof( format ) +
sizeof( type );
crPackFree( data_ptr );
}
const CRPixelPackState *packstate,
int *writeback)
{
unsigned char *data_ptr;
int bytes_per_pixel;
(void)writeback;
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 ) +
sizeof( GLuint );
if ( bitmap )
{
/*
crMemcpy(destBitmap, bitmap, data_length);
*/
}
else {
}
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;
}