search for: jpeg_bits_get_u8

Displaying 4 results from an estimated 4 matches for "jpeg_bits_get_u8".

2007 Apr 18
2
libswfdec/jpeg
libswfdec/jpeg/jpeg_rgb_decoder.c | 1 - 1 files changed, 1 deletion(-) New commits: diff-tree 15ed4a69b4ffc265fe103ba79a0b60af7e42a9fa (from 2073f39bc0b0aa90f1f67def9bb3f0c6b68018ae) Author: Benjamin Otte <otte@gnome.org> Date: Wed Apr 18 10:47:06 2007 +0200 remove leftover debugging statement diff --git a/libswfdec/jpeg/jpeg_rgb_decoder.c b/libswfdec/jpeg/jpeg_rgb_decoder.c
2007 Apr 17
0
8 commits - configure.ac doc/Makefile.am libswfdec/jpeg libswfdec/swfdec_debug.h libswfdec/swfdec_image.c
...fman_table_new (); + huffman_table_init (table); /* huffsize[i] is the number of symbols that have length * (i+1) bits. Maximum bit length is 16 bits, so there are * 16 entries. */ n_symbols = 0; for (i = 0; i < 16; i++) { - huffsize[i] = get_u8 (bits); + huffsize[i] = jpeg_bits_get_u8 (bits); + n++; n_symbols += huffsize[i]; } @@ -345,7 +233,8 @@ huffman_table_new_jpeg (bits_t * bits) k = 0; for (i = 0; i < 16; i++) { for (j = 0; j < huffsize[i]; j++) { - huffman_table_add (table, symbol, i + 1, get_u8 (bits)); + huffman_table_add (table,...
2007 Apr 18
0
6 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/jpeg libswfdec/swfdec_image.c
...jpeg/jpeg.c +++ b/libswfdec/jpeg/jpeg.c @@ -543,6 +543,7 @@ jpeg_decoder_get_marker (JpegDecoder *de int a,b; JpegBits *bits = &dec->bits; +again: if (jpeg_bits_available(bits) < 2) { return FALSE; } @@ -557,6 +558,12 @@ jpeg_decoder_get_marker (JpegDecoder *de b = jpeg_bits_get_u8 (bits); } while (b == 0xff && jpeg_bits_error(bits)); + /* Flash seems to ignore SOI and EOI markers, so we do, too */ + if (b == JPEG_MARKER_SOI || + (b == JPEG_MARKER_EOI && jpeg_bits_available (bits) > 0)) { + goto again; + } + *marker = b; return TRUE;...
2007 Jul 21
0
12 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/jpeg libswfdec/swfdec_as_array.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h
...; return; } @@ -911,7 +911,7 @@ jpeg_decoder_start_of_scan (JpegDecoder int ac_table; int x; int y; - int index; + int idx; int h_subsample; int v_subsample; int quant_index; @@ -920,22 +920,22 @@ jpeg_decoder_start_of_scan (JpegDecoder tmp = jpeg_bits_get_u8 (bits); dc_table = tmp >> 4; ac_table = tmp & 0xf; - index = jpeg_decoder_find_component_by_id (dec, component_id); + idx = jpeg_decoder_find_component_by_id (dec, component_id); - h_subsample = dec->components[index].h_sample; - v_subsample = dec->components...