Mercurial > hg > dmlib
comparison tools/libgfx.h @ 1309:5ad7d780a09b
Move bitstream reading functions to libgfx, as they were only used there.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 19 Aug 2017 15:27:43 +0300 |
parents | 43b13dbbdcd1 |
children | ae2ba8cb510f |
comparison
equal
deleted
inserted
replaced
1308:8f71ca1900ea | 1309:5ad7d780a09b |
---|---|
122 int dmWritePCXImage(const char *filename, DMImage *img, const DMImageConvSpec *spec); | 122 int dmWritePCXImage(const char *filename, DMImage *img, const DMImageConvSpec *spec); |
123 int dmReadPCXImageFILE(FILE *fp, DMImage **pimg); | 123 int dmReadPCXImageFILE(FILE *fp, DMImage **pimg); |
124 int dmReadPCXImage(const char *filename, DMImage **pimg); | 124 int dmReadPCXImage(const char *filename, DMImage **pimg); |
125 | 125 |
126 | 126 |
127 typedef struct _DMBitStreamContext | |
128 { | |
129 void *handle; | |
130 | |
131 BOOL (*putByte)(struct _DMBitStreamContext *ctx, Uint8 val); | |
132 | |
133 int outBuf, outBitCount, outByteCount; | |
134 } DMBitStreamContext; | |
135 | |
136 | |
137 void dmInitBitStreamContext(DMBitStreamContext *ctx); | |
138 int dmFlushBitStream(DMBitStreamContext *ctx); | |
139 BOOL dmPutBits(DMBitStreamContext *ctx, const int val, const int n); | |
140 int dmInitBitStreamFILE(DMBitStreamContext *ctx, FILE *fp); | |
141 | |
142 | |
143 | |
127 #ifdef __cplusplus | 144 #ifdef __cplusplus |
128 } | 145 } |
129 #endif | 146 #endif |
130 | 147 |
131 #endif // LIBMGFX_H | 148 #endif // LIBMGFX_H |