search for: guint32_from_be

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

2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...t); goto out; } - ptr = data = buffer->data; + data = buffer->data; + p = (void *) data; /* image is stored in 0RGB format. We use ARGB/BGRA. */ for (j = 0; j < image->height; j++) { for (i = 0; i < image->width; i++) { - *((guint32 *) ptr) = GUINT32_FROM_BE (*((guint32 *) ptr)); - ptr += 4; + *p = GUINT32_FROM_BE (*p); + p++; } } /* FIXME: this can fail if the returned buffer does not contain malloc'd @@ -633,8 +636,8 @@ cairo_surface_t * swfdec_image_create_surface_transformed (SwfdecImage *image, const SwfdecColorTransform *tr...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...++ ptr = image->data = lossless (bits.ptr, bits.end - bits.ptr, 4 * image->width * image->height); + /* image is stored in 0RGB format. We use ARGB/BGRA. */ + for (j = 0; j < image->height; j++) { + for (i = 0; i < image->width; i++) { + *((guint32 *) ptr) = GUINT32_FROM_BE (*((guint32 *) ptr)); + ptr += 4; } } - #endif } - - swfdec_image_create_surface (image, image_data); } int diff --cc test/dump.c index 9ee0524,9ee0524..efddeee @@@ -1,7 -1,7 +1,7 @@@ /* Swfdec * Copyright (C) 2003-2006 David Schleef <ds@schleef.org> * 2...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...ptr[1] = ptr[2]; - ptr[2] = ptr[1]; - ptr[3] = 255; -#endif - ptr += 4; - } + /* image is stored in 0RGB format. We use ARGB/BGRA. */ + for (j = 0; j < image->height; j++) { + for (i = 0; i < image->width; i++) { + *((guint32 *) ptr) = GUINT32_FROM_BE (*((guint32 *) ptr)); + ptr += 4; } } } - - swfdec_image_create_surface (image, image_data, have_alpha); } int @@ -592,68 +553,131 @@ swfdec_image_colormap_decode (SwfdecImag } } +static gboolean +swfdec_image_ensure_loaded (SwfdecImage *image) +{ + if (image->data ==...
2007 Feb 06
0
109 commits - configure.ac libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_codec_screen.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h
...++ ptr = image->data = lossless (bits.ptr, bits.end - bits.ptr, 4 * image->width * image->height); + /* image is stored in 0RGB format. We use ARGB/BGRA. */ + for (j = 0; j < image->height; j++) { + for (i = 0; i < image->width; i++) { + *((guint32 *) ptr) = GUINT32_FROM_BE (*((guint32 *) ptr)); + ptr += 4; } } - #endif } - - swfdec_image_create_surface (image, image_data); } int diff --cc test/dump.c index 9ee0524,9ee0524..efddeee @@@ -1,7 -1,7 +1,7 @@@ /* Swfdec * Copyright (C) 2003-2006 David Schleef <ds@schleef.org> * 2...