Displaying 20 results from an estimated 27 matches for "swfdec_color_a".
Did you mean:
swfdec_color_as
2007 Nov 14
0
2 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c libswfdec/swfdec_initialize.as
libswfdec/swfdec_as_array.c | 36 ++++++++++++++++++++++++++++++++++++
libswfdec/swfdec_as_object.c | 12 +++++++++++-
libswfdec/swfdec_as_string.c | 8 +++++++-
libswfdec/swfdec_asbroadcaster.c | 3 +++
libswfdec/swfdec_color_as.c | 14 ++++++++++++--
libswfdec/swfdec_initialize.as | 1 -
6 files changed, 69 insertions(+), 5 deletions(-)
New commits:
commit e83bc46f533bc7c1c3155f46dc39634818a92f18
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date: Wed Nov 14 12:44:52 2007 +0200
Fix some crashe...
2007 Aug 21
0
4 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c test/trace
...c/swfdec_as_array.c | 3 ++-
libswfdec/swfdec_as_boolean.c | 3 ++-
libswfdec/swfdec_as_function.c | 13 ++++++++-----
libswfdec/swfdec_as_number.c | 14 ++++++++++----
libswfdec/swfdec_as_object.c | 19 ++++++++++++++-----
libswfdec/swfdec_as_string.c | 6 ++++--
libswfdec/swfdec_color_as.c | 11 ++++++++---
test/trace/propflags-5.swf |binary
test/trace/propflags-6.swf |binary
test/trace/propflags-7.swf |binary
test/trace/propflags.as | 6 +-----
test/trace/trace.c | 2 +-
test/trace/trace_properties.as | 5 +++--
13 files changed, 53...
2007 May 23
0
Branch 'as' - 7 commits - libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c
.../swfdec_as_frame.c | 4
libswfdec/swfdec_as_frame.h | 2
libswfdec/swfdec_as_interpret.c | 38 +++----
libswfdec/swfdec_as_object.c | 13 +-
libswfdec/swfdec_as_object.h | 2
libswfdec/swfdec_as_strings.c | 13 ++
libswfdec/swfdec_as_super.c | 6 -
libswfdec/swfdec_color_as.c | 211 ++++++++++++++++++++++++++++++++++++++++
libswfdec/swfdec_color_as.h | 56 ++++++++++
libswfdec/swfdec_js_color.c | 192 ------------------------------------
libswfdec/swfdec_player.c | 2
13 files changed, 318 insertions(+), 228 deletions(-)
New commits:
diff-t...
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
...N!
sheesh
diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index 4463228..fc0b1f1 100644
--- a/libswfdec/swfdec_image.c
+++ b/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_su...
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
..._G (color));
- swfdec_out_put_u8 (out, SWF_COLOR_B (color));
- swfdec_out_put_u8 (out, SWF_COLOR_A (color));
++ swfdec_out_put_u8 (out, SWFDEC_COLOR_R (color));
++ swfdec_out_put_u8 (out, SWFDEC_COLOR_G (color));
++ swfdec_out_put_u8 (out, SWFDEC_COLOR_B (color));
++ swfdec_out_put_u8 (out, SWFDEC_COLOR_A (color));
+}
+
diff --cc test/swfedit_token.c
index 8c8b075,0000000..f3f2bcc
mode 100644,000000..100644
@@@ -1,573 -1,0 +1,573 @@@
+/* Swfedit
+ * Copyright (C) 2007 Benjamin Otte <otte@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
libswfdec/Makefile.am | 14 +-
libswfdec/swfdec_as_interpret.c | 4
libswfdec/swfdec_color_as.c | 4
libswfdec/swfdec_graphic_movie.c | 16 ++
libswfdec/swfdec_image_decoder.c | 8 +
libswfdec/swfdec_morph_movie.c | 14 ++
libswfdec/swfdec_movie.c | 130 ++++++++++++++++-----...
2007 Nov 14
0
9 commits - libswfdec/swfdec_as_string.c libswfdec/swfdec_color_as.c libswfdec/swfdec_interval.c test/image test/trace
libswfdec/swfdec_as_string.c | 31 +++---
libswfdec/swfdec_color_as.c | 9 -
libswfdec/swfdec_interval.c | 2
test/image/.gitignore | 2
test/trace/Makefile.am | 27 +++++
test/trace/array2-8.swf |binary
test/trace/array2-8.swf.trace |...
2007 Jun 12
0
Branch 'as' - 3 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_math.c libswfdec/swfdec_as_native_function.c libswfdec/swfdec_as_number.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_string.c
...bswfdec/swfdec_as_native_function.c | 15 +++++
libswfdec/swfdec_as_number.c | 27 +++++++--
libswfdec/swfdec_as_object.c | 21 +++++--
libswfdec/swfdec_as_string.c | 95 ++++++++++++++++++----------------
libswfdec/swfdec_as_types.h | 6 +-
libswfdec/swfdec_color_as.c | 19 ++++--
libswfdec/swfdec_mouse_as.c | 20 ++++---
libswfdec/swfdec_net_connection.c | 3 -
libswfdec/swfdec_player_as.c | 30 +++++-----
libswfdec/swfdec_sprite_movie_as.c | 86 ++++++++++++++++++------------
13 files changed, 250 insertions(+)...
2007 Dec 11
1
libswfdec/swfdec_image.c
...-git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index be63312..f3d27fc 100644
--- a/libswfdec/swfdec_image.c
+++ b/libswfdec/swfdec_image.c
@@ -662,7 +662,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_i...
2007 Aug 09
0
Branch 'vivi' - 12 commits - libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec/Makefile.am libswfdec/swfdec_as_array.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_debugger.c
...c/swfdec_as_debugger.h | 58 ++++++++++++++++++++
libswfdec/swfdec_as_frame_internal.h | 2
libswfdec/swfdec_as_internal.h | 2
libswfdec/swfdec_as_interpret.c | 3 -
libswfdec/swfdec_as_object.h | 2
libswfdec/swfdec_as_types.h | 3 +
libswfdec/swfdec_color_as.h | 2
libswfdec/swfdec_debugger.c | 5 -
libswfdec/swfdec_event.c | 4 -
libswfdec/swfdec_player.c | 11 ++-
libswfdec/swfdec_player.h | 3 -
libswfdec/swfdec_script.c | 41 ++++++--------
libswfdec/swfdec_script.h...
2007 Jul 18
0
12 commits - configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_playback_alsa.c libswfdec/jpeg libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c
...audio.c | 17 ------
libswfdec/swfdec_codec_ffmpeg.c | 3 -
libswfdec/swfdec_codec_gst.c | 1
libswfdec/swfdec_codec_mad.c | 1
libswfdec/swfdec_codec_screen.c | 9 +--
libswfdec/swfdec_codec_video.c | 9 ---
libswfdec/swfdec_color_as.c | 1
libswfdec/swfdec_debugger.c | 2
libswfdec/swfdec_flv_decoder.c | 9 +--
libswfdec/swfdec_internal.h | 83 +++++++++++++++++++++++++++++++
libswfdec/swfdec_interval.c | 2
libswfdec/swfdec_listener.c...
2007 Jul 02
0
Branch 'as' - 24 commits - configure.ac doc/Makefile.am doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_array.c libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c
...ack.h | 2
libswfdec/swfdec_as_string.c | 1
libswfdec/swfdec_as_super.c | 3
libswfdec/swfdec_as_types.c | 1
libswfdec/swfdec_as_types.h | 2
libswfdec/swfdec_button_movie.c | 1
libswfdec/swfdec_color_as.c | 1
libswfdec/swfdec_edittext_movie.c | 1
libswfdec/swfdec_event.c | 1
libswfdec/swfdec_mouse_as.c | 1
libswfdec/swfdec_movie.c | 1
libswfdec/swfdec_movie_asprops.c | 1
libswfdec/sw...
2007 Dec 03
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h libswfdec/swfdec_gradient_pattern.c libswfdec/swfdec_gradient_pattern.h libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_pattern.c
..._set_extend (pattern, gradient->extend);
+ /* we check here that ratios increase linearly, because both gradients parsed
+ * from the SWF and gradients created with beginGradientFill have this
+ * behavior */
+ ratio = 0;
for (i = 0; i < gradient->n_gradients; i++){
color = swfdec_color_apply_transform (gradient->gradient[i].color,
trans);
- offset = gradient->gradient[i].ratio / 255.0;
+ ratio = MAX (ratio, gradient->gradient[i].ratio);
+ offset = ratio / 255.0;
cairo_pattern_add_color_stop_rgba (pattern, offset,
SWFDEC_COLOR_R(color) / 255.0, SWFDEC_COLO...
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
...N!
sheesh
diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c
index 4463228..fc0b1f1 100644
--- a/libswfdec/swfdec_image.c
+++ b/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_su...
2007 Jun 28
0
Branch 'as' - 4 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_as_types.h
...h \
+ swfdec_as_string.h \
+ swfdec_as_strings.h \
+ swfdec_as_super.h \
+ swfdec_as_with.h \
swfdec_audio_internal.h \
swfdec_audio_event.h \
swfdec_audio_flv.h \
@@ -68,7 +74,7 @@ IGNORE_HFILES= \
swfdec_codec_audio.h \
swfdec_codec_video.h \
swfdec_color.h \
- swfdec_connection.h \
+ swfdec_color_as.h \
swfdec_debug.h \
swfdec_debugger.h \
swfdec_decoder.h \
@@ -80,6 +86,7 @@ IGNORE_HFILES= \
swfdec_graphic.h \
swfdec_graphic_movie.h \
swfdec_image.h \
+ swfdec_interval.h \
swfdec_js.h \
swfdec_listener.h \
swfdec_loader_internal.h \
@@ -88,6 +95,7 @@ IGNORE_HFILES= \
swfd...
2007 Aug 26
0
Changes to 'refs/tags/0.5.2'
...fdec/swfdec_as_with.c | 13
libswfdec/swfdec_audio_flv.c | 2
libswfdec/swfdec_button_movie.c | 9
libswfdec/swfdec_codec_ffmpeg.c | 4
libswfdec/swfdec_codec_screen.c | 1
libswfdec/swfdec_color_as.c | 11
libswfdec/swfdec_color_as.h | 2
libswfdec/swfdec_debugger.c | 5
libswfdec/swfdec_event.c | 4
libswfdec/swfdec_flv_decoder.c | 1
libswfdec/swfdec_initialize.a...
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
...eturn_if_fail (ratio < 65536);
+
+ cairo_set_line_cap (cr, stroke->start_cap);
+ cairo_set_line_join (cr, stroke->join);
+ if (stroke->join == CAIRO_LINE_JOIN_MITER)
+ cairo_set_miter_limit (cr, stroke->miter_limit);
+
swfdec_stroke_append_path_snapped (cr, path);
color = swfdec_color_apply_morph (stroke->start_color, stroke->end_color, ratio);
color = swfdec_color_apply_transform (color, trans);
@@ -124,6 +135,9 @@ swfdec_stroke_class_init (SwfdecStrokeCl
static void
swfdec_stroke_init (SwfdecStroke *stroke)
{
+ stroke->start_cap = CAIRO_LINE_CAP_ROUND;
+ stroke-...
2007 Aug 03
0
Changes to 'refs/tags/0.5.1'
...| 3
libswfdec/swfdec_codec_gst.c | 1
libswfdec/swfdec_codec_mad.c | 1
libswfdec/swfdec_codec_screen.c | 9
libswfdec/swfdec_codec_video.c | 9
libswfdec/swfdec_color_as.c | 1
libswfdec/swfdec_debugger.c | 4
libswfdec/swfdec_event.c | 2
libswfdec/swfdec_file_loader.c | 135
libswfdec/swfdec_file_loader.h...
2007 Aug 21
0
Branch 'vivi' - 15 commits - configure.ac libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_debugger.h libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_types.h vivified/core vivified/ui
...et, they might be useful for reference
while implementing Vivified
diff --git a/libswfdec/Makefile.am b/libswfdec/Makefile.am
index 198b805..1e5e8a5 100644
--- a/libswfdec/Makefile.am
+++ b/libswfdec/Makefile.am
@@ -60,7 +60,6 @@ libswfdec_ at SWFDEC_MAJORMINOR@_la_SOURCES
swfdec_color.c \
swfdec_color_as.c \
swfdec_debug.c \
- swfdec_debugger.c \
swfdec_decoder.c \
swfdec_edittext.c \
swfdec_edittext_movie.c \
@@ -179,7 +178,6 @@ noinst_HEADERS = \
swfdec_color.h \
swfdec_color_as.h \
swfdec_debug.h \
- swfdec_debugger.h \
swfdec_decoder.h \
swfdec_edittext.h \
swfdec_edittext_...
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...odec_video.c | 212
libswfdec/swfdec_codec_video.h | 46
libswfdec/swfdec_codec_vp6_alpha.c | 111
libswfdec/swfdec_color.h | 15
libswfdec/swfdec_color_as.c | 127
libswfdec/swfdec_color_as.h | 53
libswfdec/swfdec_draw.c | 190
libswfdec/swfdec_draw.h | 85
libswfdec/swfdec...