
Go to the source code of this file.
Functions | |
| int | refill_buffer (Bit_stream_struc *) |
| void | empty_buffer (Bit_stream_struc *, int) |
| void | open_bit_stream_w (Bit_stream_struc *, char *, int) |
| void | close_bit_stream_w (Bit_stream_struc *) |
| void | alloc_buffer (Bit_stream_struc *, int) |
| void | desalloc_buffer (Bit_stream_struc *) |
| void | back_track_buffer (Bit_stream_struc *, int) |
| unsigned int | get1bit (Bit_stream_struc *) |
| void | put1bit (Bit_stream_struc *, int) |
| unsigned long | look_ahead (Bit_stream_struc *, int) |
| unsigned long | getbits (Bit_stream_struc *, int) |
| INLINE void | putbits (Bit_stream_struc *, unsigned int, int) |
| void | byte_ali_putbits (Bit_stream_struc *, unsigned int, int) |
| unsigned long | byte_ali_getbits (Bit_stream_struc *, int) |
| unsigned long | sstell (Bit_stream_struc *) |
| int | end_bs (Bit_stream_struc *) |
| int | seek_sync (Bit_stream_struc *, long, int) |
| unsigned int | hget1bit (void) |
| unsigned long | hgetbits (int) |
| unsigned long | hsstell (void) |
| void | hputbuf (unsigned int, int) |
| void alloc_buffer | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
Definition at line 147 of file bitstream.c.
References bit_stream_struc::buf, bit_stream_struc::buf_size, and mem_alloc().
Referenced by open_bit_stream_w().

| void back_track_buffer | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
Definition at line 163 of file bitstream.c.
References bit_stream_struc::buf, bit_stream_struc::buf_bit_idx, bit_stream_struc::buf_byte_idx, clearmask, and bit_stream_struc::totbit.
| unsigned long byte_ali_getbits | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
| void byte_ali_putbits | ( | Bit_stream_struc * | , | |
| unsigned | int, | |||
| int | ||||
| ) |
Definition at line 227 of file bitstream.c.
References fprintf, MAX_LENGTH, putbits(), and sstell().

| void close_bit_stream_w | ( | Bit_stream_struc * | ) |
Definition at line 138 of file bitstream.c.
References bit_stream_struc::buf_byte_idx, desalloc_buffer(), empty_buffer(), fclose(), bit_stream_struc::pt, and putbits().
Referenced by toolame().

| void desalloc_buffer | ( | Bit_stream_struc * | ) |
Definition at line 155 of file bitstream.c.
References bit_stream_struc::buf.
Referenced by close_bit_stream_w().
| void empty_buffer | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
Definition at line 103 of file bitstream.c.
References bit_stream_struc::buf, bit_stream_struc::buf_bit_idx, bit_stream_struc::buf_byte_idx, bit_stream_struc::buf_size, fwrite(), and bit_stream_struc::pt.
Referenced by close_bit_stream_w(), put1bit(), and putbits().

| int end_bs | ( | Bit_stream_struc * | ) |
| unsigned int get1bit | ( | Bit_stream_struc * | ) |
| unsigned long getbits | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
| unsigned int hget1bit | ( | void | ) |
| unsigned long hgetbits | ( | int | ) |
| void hputbuf | ( | unsigned | int, | |
| int | ||||
| ) |
| unsigned long hsstell | ( | void | ) |
| unsigned long look_ahead | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
| void open_bit_stream_w | ( | Bit_stream_struc * | , | |
| char * | , | |||
| int | ||||
| ) |
Definition at line 120 of file bitstream.c.
References alloc_buffer(), bit_stream_struc::buf_bit_idx, bit_stream_struc::buf_byte_idx, bit_stream_struc::eob, bit_stream_struc::eobs, FALSE, fopen(), fprintf, bit_stream_struc::mode, NULL, bit_stream_struc::pt, bit_stream_struc::totbit, and WRITE_MODE.
Referenced by parse_args().

| void put1bit | ( | Bit_stream_struc * | , | |
| int | ||||
| ) |
Definition at line 185 of file bitstream.c.
References bit_stream_struc::buf, bit_stream_struc::buf_bit_idx, bit_stream_struc::buf_byte_idx, empty_buffer(), minimum, and bit_stream_struc::totbit.
Referenced by encode_info(), toolame(), and write_header().

| INLINE void putbits | ( | Bit_stream_struc * | , | |
| unsigned | int, | |||
| int | ||||
| ) |
Definition at line 201 of file bitstream.c.
References bit_stream_struc::buf, bit_stream_struc::buf_bit_idx, bit_stream_struc::buf_byte_idx, empty_buffer(), MIN, minimum, putmask, and bit_stream_struc::totbit.

| int refill_buffer | ( | Bit_stream_struc * | ) |
Definition at line 44 of file bitstream.c.
References BINARY, bit_stream_struc::buf, bit_stream_struc::buf_byte_idx, bit_stream_struc::buf_size, bit_stream_struc::eob, bit_stream_struc::format, fread(), and bit_stream_struc::pt.

| int seek_sync | ( | Bit_stream_struc * | , | |
| long | , | |||
| int | ||||
| ) |
| unsigned long sstell | ( | Bit_stream_struc * | ) |
Definition at line 242 of file bitstream.c.
References bit_stream_struc::totbit.
Referenced by byte_ali_putbits(), and toolame().
1.5.5