Mercurial > hg > dmlib
comparison src/dmbstr.h @ 1090:e0fb6fa1c689
Cosmetic.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 02 Mar 2015 20:28:25 +0200 |
parents | 27d041472c8f |
children |
comparison
equal
deleted
inserted
replaced
1089:27d041472c8f | 1090:e0fb6fa1c689 |
---|---|
16 | 16 |
17 | 17 |
18 typedef struct _DMBitStreamContext | 18 typedef struct _DMBitStreamContext |
19 { | 19 { |
20 void *fp; | 20 void *fp; |
21 | |
21 BOOL (*putByte)(struct _DMBitStreamContext *ctx, Uint8 val); | 22 BOOL (*putByte)(struct _DMBitStreamContext *ctx, Uint8 val); |
22 | 23 |
23 int outBuf, outBitCount, outByteCount; | 24 int outBuf, outBitCount, outByteCount; |
24 } DMBitStreamContext; | 25 } DMBitStreamContext; |
25 | 26 |
26 | 27 |
27 void dmInitBitStreamContext(DMBitStreamContext *ctx); | 28 void dmInitBitStreamContext(DMBitStreamContext *ctx); |
29 int dmFlushBitStream(DMBitStreamContext *ctx); | |
30 | |
28 BOOL dmPutBits(DMBitStreamContext *ctx, const int val, const int n); | 31 BOOL dmPutBits(DMBitStreamContext *ctx, const int val, const int n); |
29 int dmFlushBitStream(DMBitStreamContext *ctx); | 32 |
30 | 33 |
31 int dmInitBitStreamFILE(DMBitStreamContext *ctx, FILE *fp); | 34 int dmInitBitStreamFILE(DMBitStreamContext *ctx, FILE *fp); |
32 | 35 |
33 | 36 |
34 #ifdef __cplusplus | 37 #ifdef __cplusplus |