2002-04-03 10:05:35 +00:00
|
|
|
/*
|
2009-03-15 12:45:16 +00:00
|
|
|
* encode a pixmap with RLE
|
2002-04-03 10:05:35 +00:00
|
|
|
*
|
|
|
|
* Copyright (C) 2000 Alejandro J. Cura <alecu@protocultura.net>
|
|
|
|
*
|
2008-05-14 17:22:53 +00:00
|
|
|
* This file is part of MPlayer.
|
|
|
|
*
|
|
|
|
* MPlayer is free software; you can redistribute it and/or modify
|
2002-04-03 10:05:35 +00:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
2008-05-14 17:22:53 +00:00
|
|
|
* MPlayer is distributed in the hope that it will be useful,
|
2002-04-03 10:05:35 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
2008-05-14 17:22:53 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with MPlayer; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2002-04-03 10:05:35 +00:00
|
|
|
*/
|
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#ifndef MPLAYER_SPUENC_H
|
|
|
|
#define MPLAYER_SPUENC_H
|
2008-02-21 00:12:02 +00:00
|
|
|
|
2002-04-03 10:05:35 +00:00
|
|
|
#include <stdlib.h>
|
|
|
|
#define DATASIZE 53220
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int x, y;
|
2002-07-31 05:23:09 +00:00
|
|
|
unsigned int rgb[4];
|
|
|
|
unsigned char* pixels;
|
2002-04-03 10:05:35 +00:00
|
|
|
} pixbuf;
|
|
|
|
|
|
|
|
typedef struct {
|
2002-07-31 05:23:09 +00:00
|
|
|
unsigned char data[DATASIZE];
|
2002-04-03 10:05:35 +00:00
|
|
|
int count; /* the count of bytes written */
|
|
|
|
int oddstart;
|
|
|
|
int nibblewaiting;
|
|
|
|
} encodedata;
|
|
|
|
|
|
|
|
void pixbuf_encode_rle(int x, int y, int w, int h, char *inbuf, int stride, encodedata *ed);
|
2008-02-21 00:12:02 +00:00
|
|
|
|
2008-02-22 09:09:46 +00:00
|
|
|
#endif /* MPLAYER_SPUENC_H */
|