Mercurial > mplayer.hg
comparison sub/spuenc.h @ 32470:139876e79725
Move spuenc.[ch] from libvo to sub.
author | cigaes |
---|---|
date | Wed, 27 Oct 2010 17:55:45 +0000 |
parents | libvo/spuenc.h@84d86f175613 |
children |
comparison
equal
deleted
inserted
replaced
32469:3fef2e17a03f | 32470:139876e79725 |
---|---|
1 /* | |
2 * encode a pixmap with RLE | |
3 * | |
4 * Copyright (C) 2000 Alejandro J. Cura <alecu@protocultura.net> | |
5 * | |
6 * This file is part of MPlayer. | |
7 * | |
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. | |
12 * | |
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. | |
17 * | |
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. | |
21 */ | |
22 | |
23 #ifndef MPLAYER_SPUENC_H | |
24 #define MPLAYER_SPUENC_H | |
25 | |
26 #include <stdlib.h> | |
27 #define DATASIZE 53220 | |
28 | |
29 typedef struct { | |
30 unsigned char data[DATASIZE]; | |
31 int count; /* the count of bytes written */ | |
32 int oddstart; | |
33 int nibblewaiting; | |
34 } encodedata; | |
35 | |
36 void pixbuf_encode_rle(int x, int y, int w, int h, char *inbuf, int stride, encodedata *ed); | |
37 | |
38 #endif /* MPLAYER_SPUENC_H */ |