OSDN Git Service

getbitpos の追加
authoryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Thu, 7 Apr 2011 13:47:33 +0000 (13:47 +0000)
committeryoya <yoya@7c90b180-03d5-4157-b861-58a559ae9d1e>
Thu, 7 Apr 2011 13:47:33 +0000 (13:47 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/swfed/trunk@546 7c90b180-03d5-4157-b861-58a559ae9d1e

src/bitstream.c
src/bitstream.h

index 94f3df3..9eb72a2 100644 (file)
@@ -372,6 +372,11 @@ bitstream_getbytepos(bitstream_t *bs) {
     return bs->byte_offset;
 }
 
+unsigned long
+bitstream_getbitpos(bitstream_t *bs) {
+    return bs->bit_offset;
+}
+
 /*
  * stream info
  */
index 6d94173..a4a89b4 100644 (file)
@@ -62,6 +62,7 @@ extern int bitstream_incrpos(bitstream_t *bs, signed long byte_incr,
 extern int bitstream_setpos(bitstream_t *bs, unsigned long byte_offset,
                            unsigned long bit_offset);
 extern unsigned long bitstream_getbytepos(bitstream_t *bs);
+extern unsigned long bitstream_getbitpos(bitstream_t *bs);
 
 extern int bitstream_realloc(bitstream_t *bs);