taglists.c: update to match current libavformat riff.c
[mplayer/glamo.git] / libvo / spuenc.h
blob7f4590b4acc6e51bf47a17dad22252e4e9ca6ae0
1 /*
2 * encode a pixmap with RLE
4 * Copyright (C) 2000 Alejandro J. Cura <alecu@protocultura.net>
6 * This file is part of MPlayer.
8 * MPlayer is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * MPlayer is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 #ifndef MPLAYER_SPUENC_H
24 #define MPLAYER_SPUENC_H
26 #include <stdlib.h>
27 #define DATASIZE 53220
30 typedef struct {
31 int x, y;
32 unsigned int rgb[4];
33 unsigned char* pixels;
34 } pixbuf;
36 typedef struct {
37 unsigned char data[DATASIZE];
38 int count; /* the count of bytes written */
39 int oddstart;
40 int nibblewaiting;
41 } encodedata;
43 void pixbuf_encode_rle(int x, int y, int w, int h, char *inbuf, int stride, encodedata *ed);
45 #endif /* MPLAYER_SPUENC_H */