svnno****@sourc*****
svnno****@sourc*****
2011年 4月 7日 (木) 22:47:33 JST
Revision: 546 http://sourceforge.jp/projects/swfed/svn/view?view=rev&revision=546 Author: yoya Date: 2011-04-07 22:47:33 +0900 (Thu, 07 Apr 2011) Log Message: ----------- getbitpos の追加 Modified Paths: -------------- trunk/src/bitstream.c trunk/src/bitstream.h -------------- next part -------------- Modified: trunk/src/bitstream.c =================================================================== --- trunk/src/bitstream.c 2011-04-07 12:57:08 UTC (rev 545) +++ trunk/src/bitstream.c 2011-04-07 13:47:33 UTC (rev 546) @@ -372,6 +372,11 @@ return bs->byte_offset; } +unsigned long +bitstream_getbitpos(bitstream_t *bs) { + return bs->bit_offset; +} + /* * stream info */ Modified: trunk/src/bitstream.h =================================================================== --- trunk/src/bitstream.h 2011-04-07 12:57:08 UTC (rev 545) +++ trunk/src/bitstream.h 2011-04-07 13:47:33 UTC (rev 546) @@ -62,6 +62,7 @@ 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);