Mercurial > hg > dmlib
comparison libgfx.c @ 800:c63e24f9aa9a
Modularize bitstream reader.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 02 Nov 2013 07:34:42 +0200 |
parents | d400e32b62d9 |
children | f8126fa1df9b |
comparison
equal
deleted
inserted
replaced
799:5ec451795ab2 | 800:c63e24f9aa9a |
---|---|
249 | 249 |
250 | 250 |
251 int dmWriteRAWImageFILE(FILE *fp, DMImage *img, DMImageSpec *spec) | 251 int dmWriteRAWImageFILE(FILE *fp, DMImage *img, DMImageSpec *spec) |
252 { | 252 { |
253 int xc, yc, plane, res; | 253 int xc, yc, plane, res; |
254 DMBitStream bs; | 254 DMBitStreamContext bs; |
255 | 255 |
256 if ((res = dmInitBitStream(&bs, fp)) != DMERR_OK) | 256 if ((res = dmInitBitStreamFILE(&bs, fp)) != DMERR_OK) |
257 return res; | 257 return res; |
258 | 258 |
259 if (spec->interleave) | 259 if (spec->interleave) |
260 { | 260 { |
261 // Output bitplanes in interleaved format (each plane of line sequentially) | 261 // Output bitplanes in interleaved format (each plane of line sequentially) |