Displaying 10 results from an estimated 10 matches for "swfdec_color_index_alpha".
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
...657,7 +657,7 @@ swfdec_image_create_surface_transformed
for (i = 0; i < n; i++) {
((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans);
/* optimization: check for alpha channel to speed up compositing */
- has_alpha != tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
+ has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
}
surface = cairo_image_surface_create_for_data (tdata,
has_alpha ? CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24,
diff-tree f8ad5602edb3223fcc0396a60d6077ad562be7e1 (from 7ee699c59898c37528d0051fd0c25f6756338dbe)...
2007 Feb 06
0
Branch 'interpreter' - 15 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_image.c libswfdec/swfdec_sprite_movie.c
...657,7 +657,7 @@ swfdec_image_create_surface_transformed
for (i = 0; i < n; i++) {
((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans);
/* optimization: check for alpha channel to speed up compositing */
- has_alpha != tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
+ has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
}
surface = cairo_image_surface_create_for_data (tdata,
has_alpha ? CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24,
diff-tree f8ad5602edb3223fcc0396a60d6077ad562be7e1 (from 7ee699c59898c37528d0051fd0c25f6756338dbe)...
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
...idata[SWFDEC_COLOR_INDEX_BLUE] = (c << 3) | ((c >> 2) & 0x7);
+ idata[SWFDEC_COLOR_INDEX_GREEN] = ((c >> 2) & 0xf8) | ((c >> 7) & 0x7);
+ idata[SWFDEC_COLOR_INDEX_RED] = ((c >> 7) & 0xf8) | ((c >> 12) & 0x7);
+ idata[SWFDEC_COLOR_INDEX_ALPHA] = 0xff;
- p += 2;
+ ptr += 2;
idata += 4;
}
}
g_free (ptr);
}
if (format == 5) {
-
- image_data = lossless (bits.ptr, bits.end - bits.ptr, 4 * image->width * image->height);
- image->rowstride = image->width * 4;
-
- #if G...
2007 Dec 11
1
libswfdec/swfdec_image.c
...7 @@ swfdec_image_create_surface_transformed (SwfdecImage *image, const SwfdecColorTr
for (i = 0; i < n; i++) {
tdata[i] = swfdec_color_apply_transform_premultiplied (sdata[i], trans);
/* optimization: check for alpha channel to speed up compositing */
- has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
+ has_alpha |= SWFDEC_COLOR_A (tdata[i]) != 0xFF;
}
cairo_surface_destroy (source);
surface = cairo_image_surface_create_for_data ((unsigned char *) tdata,
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
...-301,7 +309,7 @@ merge_alpha (SwfdecImage * image, unsigned char *image_data,
unsigned char *p;
for (y = 0; y < image->height; y++) {
- p = image_data + y * image->rowstride;
+ p = image_data + y * image->width * 4;
for (x = 0; x < image->width; x++) {
p[SWFDEC_COLOR_INDEX_ALPHA] = *alpha;
p += 4;
@@ -317,6 +325,7 @@ swfdec_image_lossless_load (SwfdecImage *image)
guint color_table_size;
unsigned char *ptr;
SwfdecBits bits;
+ guint8 *data;
int have_alpha = (image->type == SWFDEC_IMAGE_TYPE_LOSSLESS2);
swfdec_bits_init (&bits, image->raw_d...
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
...; n; i++) {
- ((guint32 *) tdata)[i] = swfdec_color_apply_transform_premultiplied (((guint32 *) sdata)[i], trans);
+ tdata[i] = swfdec_color_apply_transform_premultiplied (sdata[i], trans);
/* optimization: check for alpha channel to speed up compositing */
has_alpha = tdata[4 * i + SWFDEC_COLOR_INDEX_ALPHA] != 0xFF;
}
cairo_surface_destroy (source);
- surface = cairo_image_surface_create_for_data (tdata,
+ surface = cairo_image_surface_create_for_data ((unsigned char *) tdata,
has_alpha ? CAIRO_FORMAT_ARGB32 : CAIRO_FORMAT_RGB24,
image->width, image->height, image->wid...
2007 Aug 20
0
15 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_super.c libswfdec/swfdec_as_with.c
...grind reported memleaks
diff --git a/libswfdec/swfdec_codec_screen.c b/libswfdec/swfdec_codec_screen.c
index b0d757e..2cb6312 100644
--- a/libswfdec/swfdec_codec_screen.c
+++ b/libswfdec/swfdec_codec_screen.c
@@ -106,6 +106,7 @@ swfdec_video_decoder_screen_decode (Swfd
out[x * 4 - y * stride + SWFDEC_COLOR_INDEX_ALPHA] = 0xFF;
}
}
+ swfdec_buffer_unref (buf);
}
}
*width = screen->width;
diff-tree fc811de19b9f90a01513466483a782c28fa8bbe1 (from 614cf854109af1972529510d686fa67945f06ff0)
Author: Benjamin Otte <otte at gnome.org>
Date: Mon Aug 20 13:06:46 2007 +0200
fix valgri...
2007 Feb 13
0
9 commits - libswfdec/js libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_image.c libswfdec/swfdec_script.c test/Makefile.am test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c
...out[x * 4 - y * stride + 1] = *in++;
- out[x * 4 - y * stride] = 0xFF;
-#endif
+ out[x * 4 - y * stride + SWFDEC_COLOR_INDEX_BLUE] = *in++;
+ out[x * 4 - y * stride + SWFDEC_COLOR_INDEX_GREEN] = *in++;
+ out[x * 4 - y * stride + SWFDEC_COLOR_INDEX_RED] = *in++;
+ out[x * 4 - y * stride + SWFDEC_COLOR_INDEX_ALPHA] = 0xFF;
}
}
}
diff-tree 34f26f78afcd7e08945729f409872fce624d9cef (from bca06937c45d0d89271681e0dbd3a2fbeeaa9dd0)
Author: Benjamin Otte <otte@gnome.org>
Date: Fri Feb 9 14:02:27 2007 +0100
Add swfdec_bits_decompress for zlib decompression of data
diff --git a/libswfdec/s...
2007 Aug 20
0
Branch 'vivi' - 60 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_interpret.c
...grind reported memleaks
diff --git a/libswfdec/swfdec_codec_screen.c b/libswfdec/swfdec_codec_screen.c
index b0d757e..2cb6312 100644
--- a/libswfdec/swfdec_codec_screen.c
+++ b/libswfdec/swfdec_codec_screen.c
@@ -106,6 +106,7 @@ swfdec_video_decoder_screen_decode (Swfd
out[x * 4 - y * stride + SWFDEC_COLOR_INDEX_ALPHA] = 0xFF;
}
}
+ swfdec_buffer_unref (buf);
}
}
*width = screen->width;
diff-tree 8871593035346615d3b0394184271674d5fd725d (from fdee654c4bc721aa1c18167bcaa7b52183565c96)
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Mon Aug 20 14:39:30 2007 +0300
Impr...
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
...idata[SWFDEC_COLOR_INDEX_BLUE] = (c << 3) | ((c >> 2) & 0x7);
+ idata[SWFDEC_COLOR_INDEX_GREEN] = ((c >> 2) & 0xf8) | ((c >> 7) & 0x7);
+ idata[SWFDEC_COLOR_INDEX_RED] = ((c >> 7) & 0xf8) | ((c >> 12) & 0x7);
+ idata[SWFDEC_COLOR_INDEX_ALPHA] = 0xff;
- p += 2;
+ ptr += 2;
idata += 4;
}
}
g_free (ptr);
}
if (format == 5) {
-
- image_data = lossless (bits.ptr, bits.end - bits.ptr, 4 * image->width * image->height);
- image->rowstride = image->width * 4;
-
- #if G...