diff 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
line wrap: on
line diff
--- a/libgfx.c	Wed Oct 30 02:25:40 2013 +0200
+++ b/libgfx.c	Sat Nov 02 07:34:42 2013 +0200
@@ -251,9 +251,9 @@
 int dmWriteRAWImageFILE(FILE *fp, DMImage *img, DMImageSpec *spec)
 {
     int xc, yc, plane, res;
-    DMBitStream bs;
+    DMBitStreamContext bs;
     
-    if ((res = dmInitBitStream(&bs, fp)) != DMERR_OK)
+    if ((res = dmInitBitStreamFILE(&bs, fp)) != DMERR_OK)
         return res;
 
     if (spec->interleave)