bitstream.h
上传用户:aoeyumen
上传日期:2007-01-06
资源大小:3329k
文件大小:0k
源码类别:

DVD

开发平台:

Unix_Linux

  1. /* 
  2.  *  bitstream.h
  3.  *
  4.  * Aaron Holtzman - May 1999
  5.  *
  6.  */
  7. typedef struct bitstream_s
  8. {
  9. FILE *file;
  10. uint_32 current_word;
  11. uint_32 bits_left;
  12. uint_32 total_bits_read;
  13. uint_32 done;
  14. } bitstream_t;
  15. uint_32 bitstream_get(bitstream_t *bs,uint_32 num_bits);
  16. bitstream_t* bitstream_open(FILE *file);
  17. void bitstream_close(bitstream_t *bs);
  18. int bitstream_done(bitstream_t *bs);