Mercurial > libavcodec.hg
comparison mjpeg.c @ 234:5fc0c3af3fe4 libavcodec
alternative bitstream writer (disabled by default, uncomment #define ALT_BISTREAM_WRITER in common.h if u want to try it)
author | michaelni |
---|---|
date | Tue, 12 Feb 2002 15:43:16 +0000 |
parents | f418b5c5ff67 |
children | 9f6071a87e17 |
comparison
equal
deleted
inserted
replaced
233:3f5b72726118 | 234:5fc0c3af3fe4 |
---|---|
241 #endif | 241 #endif |
242 | 242 |
243 /* huffman table */ | 243 /* huffman table */ |
244 put_marker(p, DHT); | 244 put_marker(p, DHT); |
245 flush_put_bits(p); | 245 flush_put_bits(p); |
246 ptr = p->buf_ptr; | 246 ptr = pbBufPtr(p); |
247 put_bits(p, 16, 0); /* patched later */ | 247 put_bits(p, 16, 0); /* patched later */ |
248 size = 2; | 248 size = 2; |
249 size += put_huffman_table(s, 0, 0, bits_dc_luminance, val_dc_luminance); | 249 size += put_huffman_table(s, 0, 0, bits_dc_luminance, val_dc_luminance); |
250 size += put_huffman_table(s, 0, 1, bits_dc_chrominance, val_dc_chrominance); | 250 size += put_huffman_table(s, 0, 1, bits_dc_chrominance, val_dc_chrominance); |
251 | 251 |