search for: color_transform

Displaying 20 results from an estimated 27 matches for "color_transform".

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
...olor *color) +{ +} + +/*** AS CODE ***/ + +static void +swfdec_movie_color_getRGB (SwfdecAsObject *obj, guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) +{ + int result; + SwfdecMovie *movie = SWFDEC_MOVIE_COLOR (obj)->movie; + + if (movie == NULL) + return; + + result = (movie->color_transform.rb << 16) | + ((movie->color_transform.gb % 256) << 8) | + (movie->color_transform.bb % 256); + SWFDEC_AS_VALUE_SET_INT (rval, result); +} + +static inline void +add_variable (SwfdecAsObject *obj, const char *name, double value) +{ + SwfdecAsValue val; + + SWFDEC_AS_VALU...
2007 Jun 14
0
Branch 'as' - 4 commits - libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c player/swfdec_debug_movies.c
..._transform); e = movie->yscale / swfdec_matrix_get_yscale (&movie->original_transform); diff-tree e19bb05ecfe5bd2c134f1f1a21fb846179721d65 (from 76e741342c4dab3f7f40715b8018c1f5f8394ef9) Author: Benjamin Otte <otte at gnome.org> Date: Thu Jun 14 09:55:42 2007 +0200 add has_color_transform and has_transform field to SwfdecContent SwfdecContent needs to die, but that's another big reorg patch I'm scared of atm. As far as I see it, a SwfdecSprite should just save all displaylist tags (the stuff that's called actions right now) verbatim in a long list of buf...
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
...utils.c \ swfdec_video.c \ diff --git a/libswfdec/swfdec_color_as.c b/libswfdec/swfdec_color_as.c index aece489..35a8304 100644 --- a/libswfdec/swfdec_color_as.c +++ b/libswfdec/swfdec_color_as.c @@ -131,7 +131,7 @@ swfdec_movie_color_setRGB (SwfdecAsContext *cx, SwfdecAsObject *obj, movie->color_transform.gb = (color & 0xFF00) >> 8; movie->color_transform.ba = 0; movie->color_transform.bb = color & 0xFF; - swfdec_movie_invalidate (movie); + swfdec_movie_invalidate_last (movie); } static inline void @@ -177,5 +177,5 @@ swfdec_movie_color_setTransform (SwfdecAsContext *...
2009 Apr 01
1
[Bug 21004] New: segfault loading www.serjtankian. com in swfdec_buffer_ref at swfdec_buffer.c:269
..._video_movie_render (mov=0xbb5a000, cr=0xc3e2c60, trans=0xffc319c4) at swfdec_video_movie.c:59 surface = <value optimized out> width = <value optimized out> height = <value optimized out> #6 0xf35b67f2 in swfdec_movie_render (movie=0xbb5a000, cr=0xc3e2c60, color_transform=0xffc31b64) at swfdec_movie.c:804 trans = {mask = 0, ra = 256, rb = 0, ga = 256, gb = 0, ba = 256, bb = 0, aa = 256, ab = 0} group = 0 __PRETTY_FUNCTION__ = "swfdec_movie_render" #7 0xf35b8e3a in swfdec_movie_do_render (movie=0xa2a8ea8, cr=0xc3e2c60, ctrans=0xffc3...
2007 Nov 18
2
[Bug 13293] New: _cairo_pen_find_active_cw_vertex_index failed assertion
...r=0xa46ab78, trans=0xbfe97888, inval=0xbfe97868) at swfdec_graphic.c:59 #17 0xb0d99135 in swfdec_graphic_movie_render (movie=0xa442e08, cr=0xa46ab78, trans=0xbfe97888, inval=0xbfe97868) at swfdec_graphic_movie.c:49 #18 0xb0da067f in swfdec_movie_render (movie=0xa442e08, cr=0xa46ab78, color_transform=0xbfe979c8, inval=0xbfe979a8) at swfdec_movie.c:895 #19 0xb0da0767 in swfdec_movie_render (movie=0xa4419e8, cr=0xa46ab78, ---Type <return> to continue, or q <return> to quit--- color_transform=0xbfe97b08, inval=0xbfe97ae8) at swfdec_movie.c:885 #20 0xb0da0767 in swfdec_movie_render...
2007 Jun 18
0
Branch 'as' - 8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_sprite_movie.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h
...return !swfdec_movie_queue_script (movie, SWFDEC_EVENT_UNLOAD); + else + return TRUE; } /** @@ -1000,9 +1003,11 @@ swfdec_movie_new_for_content (SwfdecMovi swfdec_movie_set_static_properties (movie, content->has_transform ? &content->transform : NULL, content->has_color_transform ? &content->color_transform : NULL, content->ratio, content->clip_depth, content->events); - g_queue_push_tail (player->init_queue, movie); - g_queue_push_tail (player->construct_queue, movie); - swfdec_movie_queue_script (movie, SWFDEC_EVENT_LOAD); + if (SWFDEC_IS...
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
...b, a); +} + unsigned int swfdec_color_apply_transform (unsigned int in, const SwfdecColorTransform * trans) { diff --git a/libswfdec/swfdec_color.h b/libswfdec/swfdec_color.h index 46fdea4..54ce268 100644 --- a/libswfdec/swfdec_color.h +++ b/libswfdec/swfdec_color.h @@ -77,6 +77,8 @@ void swfdec_color_transform_chain (Swfde const SwfdecColorTransform *last, const SwfdecColorTransform *first); unsigned int swfdec_color_apply_transform (unsigned int in, const SwfdecColorTransform * trans); +SwfdecColor swfdec_color_apply_transform_premultiplied (SwfdecColor in, + const SwfdecColorTransform *...
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
...00 add debugging message when parsing color transforms diff --git a/libswfdec/swfdec_sprite.c b/libswfdec/swfdec_sprite.c index 074bb37..246776a 100644 --- a/libswfdec/swfdec_sprite.c +++ b/libswfdec/swfdec_sprite.c @@ -364,6 +364,11 @@ swfdec_spriteseg_place_object_2 (SwfdecS } if (has_color_transform) { swfdec_bits_get_color_transform (bits, &content->color_transform); + SWFDEC_LOG (" color transform = %d %d %d %d %d %d %d %d", + content->color_transform.ra, content->color_transform.rb, + content->color_transform.ga, content->color_transform.gb, + conten...
2007 Jun 14
0
Branch 'as' - 7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c player/Makefile.am
...lity to change characters - This needs lots of refactoring */ - swfdec_movie_set_static_properties (movie, content->has_transform ? &content->transform : NULL, + swfdec_movie_set_static_properties (child, content->has_transform ? &content->transform : NULL, content->has_color_transform ? &content->color_transform : NULL, content->ratio, content->clip_depth, content->events); if (content->name && !g_str_equal (content->name, child->name)) { diff-tree 21a41f6fd163e5630112765f90af019cf2b55535 (from 0ac0d3e2d6f09ece63ea5a736e80aec413b45ab8) A...
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...ransform, NULL); content->has_transform = TRUE; SWFDEC_LOG ("matrix: %g %g %g %g %g %g", content->transform.xx, content->transform.yy, content->transform.xy, content->transform.yx, content->transform.x0, content->transform.y0); - swfdec_bits_get_color_transform (bits, &content->color_transform); + swfdec_bits_get_color_transform (&bits, &content->color_transform); content->has_color_transform = TRUE; content->graphic = swfdec_swf_decoder_get_character (s, character); + if (blend_mode) { + guint mode = swfdec_...
2008 Jun 17
2
[Bug 16395] New: glib abort for "double free or corruption" in jpeg code
...a9c0, trans=0xbfd7f084, inval=0xbfd7f0a8) at swfdec_graphic.c:59 No locals. #18 0xb1a94fe5 in swfdec_graphic_movie_render (movie=0xac72d60, cr=0xa9da9c0, trans=0xbfd7f084, inval=0xbfd7f0a8) at swfdec_graphic_movie.c:50 No locals. #19 0xb1a9ce43 in swfdec_movie_render (movie=0xac72d60, cr=0xa9da9c0, color_transform=0xbfd7f254, inval=0xbfd7f278) at swfdec_movie.c:834 trans = {mask = 0, ra = 256, rb = 0, ga = 256, gb = 0, ba = 256, bb = 0, aa = 256, ab = 0} rect = {x0 = -3000.0005030370862, y0 = -13213.866485822067, x1 = 3000.0005030370871, y1 = 13269.421947187724} group = 0 __PR...
2007 Jun 13
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_array.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_sprite.c
...{ - movie->content = &default_content; - movie->xscale = 100; movie->yscale = 100; + cairo_matrix_init_identity (&movie->original_transform); cairo_matrix_init_identity (&movie->matrix); cairo_matrix_init_identity (&movie->inverse_matrix); + swfdec_color_transform_init_identity (&movie->color_transform); + swfdec_color_transform_init_identity (&movie->original_ctrans); movie->visible = TRUE; movie->n_frames = 1; @@ -139,15 +138,15 @@ swfdec_movie_update_matrix (SwfdecMovie { double d, e; - movie->matrix.xx = movie->...
2007 Jun 23
1
Patches to make blocky.swf playable
So here is the patch series to make blocky.swf work with branch 'as'. Summary: Nguy?n Th?i Ng?c Duy (7): Add a missing else statement Create swfdec_movie_duplicate Implement action CloneSprite with swfdec_movie_duplicate Add action RemoveSprite Add new variables to the target Remove movies with the same name when adding new movie We don't
2007 Jan 31
0
Branch 'interpreter' - 20 commits - autogen.sh configure.ac libswfdec/js libswfdec/swfdec_debug.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_script.c
...ex ade8d6a..095abd7 100644 --- a/libswfdec/swfdec_js_color.c +++ b/libswfdec/swfdec_js_color.c @@ -32,7 +32,8 @@ swfdec_js_color_get_rgb (JSContext *cx, int result; SwfdecMovie *movie = JS_GetPrivate (cx, obj); - g_assert (movie); + if (!movie) + return JS_TRUE; result = (movie->color_transform.rb << 16) | ((movie->color_transform.gb % 256) << 8) | (movie->color_transform.bb % 256); @@ -55,7 +56,8 @@ swfdec_js_color_get_transform (JSContext JSObject *ret; SwfdecMovie *movie = JS_GetPrivate (cx, obj); - g_assert (movie); + if (!movie) + return JS_T...
2007 Apr 13
0
5 commits - libswfdec/Makefile.am libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_font.c libswfdec/swfdec_loadertarget.c libswfdec/swfdec_movie.h libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_player.c
....h @@ -45,11 +45,12 @@ struct _SwfdecContent { SwfdecGraphic * graphic; /* object to display or NULL */ int depth; /* at which depth to display */ int clip_depth; /* clip depth of object */ - guint ratio; + guint ratio; cairo_matrix_t transform; SwfdecColorTransform color_transform; char * name; SwfdecEventList * events; + cairo_operator_t operator; /* operator to use when painting (aka blend mode) */ SwfdecContent * sequence; /* first element in sequence this content belongs to */ /* NB: the next two elements are only filled for the sequence leader */ @@ -...
2007 Aug 29
0
15 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_system_as.c
...implemented in cairo", blend_mode); + return CAIRO_OPERATOR_OVER; + default: + SWFDEC_WARNING ("invalid blend mode %u", blend_mode); + return CAIRO_OPERATOR_OVER; + } +} + void swfdec_movie_render (SwfdecMovie *movie, cairo_t *cr, const SwfdecColorTransform *color_transform, const SwfdecRect *inval, gboolean fill) @@ -694,6 +731,7 @@ swfdec_movie_render (SwfdecMovie *movie, int clip_depth = 0; SwfdecColorTransform trans; SwfdecRect rect; + gboolean group; g_return_if_fail (SWFDEC_IS_MOVIE (movie)); g_return_if_fail (cr != NULL); @@ -717,6 +755,11 @@...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...ransform, NULL); content->has_transform = TRUE; SWFDEC_LOG ("matrix: %g %g %g %g %g %g", content->transform.xx, content->transform.yy, content->transform.xy, content->transform.yx, content->transform.x0, content->transform.y0); - swfdec_bits_get_color_transform (bits, &content->color_transform); + swfdec_bits_get_color_transform (&bits, &content->color_transform); content->has_color_transform = TRUE; content->graphic = swfdec_swf_decoder_get_character (s, character); + if (blend_mode) { + guint mode = swfdec_...
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
...SwfdecMovie *movie = SWFDEC_MOVIE_COLOR (obj)->movie; @@ -113,7 +116,7 @@ swfdec_movie_color_setRGB (SwfdecAsObjec if (movie == NULL) return; - color = swfdec_as_value_to_integer (obj->context, &argv[0]); + color = swfdec_as_value_to_integer (cx, &argv[0]); movie->color_transform.ra = 0; movie->color_transform.rb = (color & 0xFF0000) >> 16; @@ -141,7 +144,8 @@ parse_property (SwfdecAsObject *obj, con } static void -swfdec_movie_color_setTransform (SwfdecAsObject *obj, guint argc, SwfdecAsValue *argv, SwfdecAsValue *rval) +swfdec_movie_color_setTransform...
2007 Mar 22
0
7 commits - configure.ac doc/swfdec-docs.sgml libswfdec/js libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_js_movie.c test/trace
...*cx, JSObject *o SwfdecMovie *movie; double d; - movie = JS_GetPrivate (cx, obj); - g_assert (movie); + movie = swfdec_scriptable_from_object (cx, obj, SWFDEC_TYPE_MOVIE); + if (movie == NULL) { + SWFDEC_WARNING ("not a movie"); + return JS_TRUE; + } d = movie->color_transform.aa * 100.0 / 256.0; return JS_NewNumberValue (cx, d, vp); @@ -906,8 +1002,11 @@ mc_alpha_set (JSContext *cx, JSObject *o double d; int alpha; - movie = JS_GetPrivate (cx, obj); - g_assert (movie); + movie = swfdec_scriptable_from_object (cx, obj, SWFDEC_TYPE_MOVIE); + if (movie == NU...
2007 Jul 04
0
Branch 'as' - 25 commits - libswfdec/Makefile.am libswfdec/swfdec_as_boolean.c libswfdec/swfdec_as_boolean.h libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...ec_movie.c index 98d0619..0ae840f 100644 --- a/libswfdec/swfdec_movie.c +++ b/libswfdec/swfdec_movie.c @@ -1007,12 +1007,12 @@ swfdec_movie_new_for_content (SwfdecMovi swfdec_movie_set_static_properties (movie, content->has_transform ? &content->transform : NULL, content->has_color_transform ? &content->color_transform : NULL, content->ratio, content->clip_depth, content->events); - swfdec_movie_initialize (movie); if (SWFDEC_IS_SPRITE_MOVIE (movie)) { g_queue_push_tail (player->init_queue, movie); g_queue_push_tail (player->construct_queue,...