Displaying 20 results from an estimated 22 matches for "ctran".
Did you mean:
cran
2007 Jun 28
0
Branch 'as' - 4 commits - libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/image
...ec_movie.c
index e157437..d7403c5 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -943,10 +943,11 @@ swfdec_movie_new (SwfdecPlayer *player,
*/
void
swfdec_movie_set_static_properties (SwfdecMovie *movie, const cairo_matrix_t *transform,
- const SwfdecColorTransform *ctrans, guint ratio, int clip_depth, SwfdecEventList *events)
+ const SwfdecColorTransform *ctrans, int ratio, int clip_depth, SwfdecEventList *events)
{
g_return_if_fail (SWFDEC_IS_MOVIE (movie));
g_return_if_fail (clip_depth >= -16384 || clip_depth <= 0);
+ g_return_if_fail (ratio >...
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
...phic), NULL);
/* create the right movie */
diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index e6430a3..89b076f 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -247,7 +247,7 @@ swfdec_sprite_movie_perform_place (Swfde
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
} else {
SwfdecGraphic *graphic;
- if (cur != NULL) {
+ if (cur != NULL && version > 5) {
SWFDEC_INFO ("depth %d is already occupied by movie %s, not placing", depth, cur->name);
return TRUE;...
2009 Apr 01
1
[Bug 21004] New: segfault loading www.serjtankian. com in swfdec_buffer_ref at swfdec_buffer.c:269
...lor_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=0xffc31b64) at swfdec_movie.c:1311
child = (SwfdecMovie *) 0xbb5a000
g = (GList *) 0xa37e280
walk = <value optimized out>
clips = (GSList *) 0x0
clip = (ClipEntry *) 0x0
ident = {xx = 1, yx = 0, xy = 0, yy = 1, x0 = 0, y0 = 0}
__PRETTY_...
2007 Dec 11
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_movie.c test/trace
....c
index cf6786a..92a0edb 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -1604,8 +1604,8 @@ swfdec_movie_set_static_properties (SwfdecMovie *movie, const cairo_matrix_t *tr
movie->rotation = swfdec_matrix_get_rotation (&movie->original_transform);
}
if (ctrans) {
- movie->original_ctrans = *ctrans;
swfdec_movie_invalidate_last (movie);
+ movie->original_ctrans = *ctrans;
}
if (ratio >= 0 && (guint) ratio != movie->original_ratio) {
SwfdecMovieClass *klass;
diff --git a/test/trace/Makefile.am b/test/trace/Makefil...
2007 Nov 07
0
14 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_interpret.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field_movie.c
...place (SwfdecSpriteMovie *movie,
+ SwfdecBits *bits, guint tag)
+{
+ SwfdecPlayer *player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (movie)->context);
+ SwfdecMovie *mov = SWFDEC_MOVIE (movie);
+ SwfdecMovie *cur;
+ SwfdecSwfDecoder *dec;
+ int depth;
+ cairo_matrix_t transform;
+ gboolean has_ctrans;
+ SwfdecColorTransform ctrans;
+ guint id;
+ SwfdecGraphic *graphic;
+
+ dec = SWFDEC_SWF_DECODER (mov->resource->decoder);
+
+ SWFDEC_LOG ("performing PlaceObject on movie %s", mov->name);
+
+ id = swfdec_bits_get_u16 (bits);
+ SWFDEC_LOG (" id = %d", id);
+...
2009 Jan 24
1
[LLVMdev] -O4 limitations in llvm/llvm-gcc-4.2 2.5?
...LEX /Users/howarth/xplor-nih-2.21/fortlib/libfft/c_fftf.F -o zfftf.o
llvm-gfortran -c -O4 -fPIC -ffast-math -msse4 -ffixed-line-length-120 -fno-second-underscore -DZOMPLEX /Users/howarth/xplor-nih-2.21/fortlib/libfft/c_fftb.F -o zfftb.o
llvm-gcc-4 -c /Users/howarth/xplor-nih-2.21/fortlib/libfft/ctrans.c -O4 -fPIC -ffast-math -msse4 -DX_MMAP_FLAGS=0 -DFORTRAN_INIT -fno-common -DDARWIN -D_REENTRANT -DNDEBUG -I/Users/howarth/xplor-nih-2.21/fortlib/libfft/ -I/Users/howarth/xplor-nih-2.21/arch/Darwin_9_x86/include -DZOMPLEX -I/usr/include/sys
llvm-gcc-4 -c -O4 -fPIC -ffast-math -msse4 -DX_MMAP_...
2007 Jun 13
1
Branch 'as' - libswfdec/swfdec_movie.c
...scale (&movie->original_transform);
+ movie->yscale = swfdec_matrix_get_yscale (&movie->original_transform);
+ movie->rotation = swfdec_matrix_get_rotation (&movie->original_transform);
swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_MATRIX);
}
if (ctrans) {
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
...ec_movie.c
index 02904d0..f6b8f55 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -1098,7 +1098,8 @@ swfdec_movie_new (SwfdecPlayer *player,
*/
void
swfdec_movie_set_static_properties (SwfdecMovie *movie, const cairo_matrix_t *transform,
- const SwfdecColorTransform *ctrans, int ratio, int clip_depth, SwfdecEventList *events)
+ const SwfdecColorTransform *ctrans, int ratio, int clip_depth, guint blend_mode,
+ SwfdecEventList *events)
{
g_return_if_fail (SWFDEC_IS_MOVIE (movie));
g_return_if_fail (clip_depth >= -16384 || clip_depth <= 0);
@@ -1130,6...
2008 Jun 17
2
[Bug 16395] New: glib abort for "double free or corruption" in jpeg code
...62, y0 = -13213.866485822067, x1 =
3000.0005030370871, y1 = 13269.421947187724}
group = 0
__PRETTY_FUNCTION__ = "swfdec_movie_render"
---Type <return> to continue, or q <return> to quit---
#20 0xb1a9f89d in swfdec_movie_do_render (movie=0x9c0e708, cr=0xa9da9c0,
ctrans=0xbfd7f254, inval=0xbfd7f278) at swfdec_movie.c:1271
child = (SwfdecMovie *) 0xac72d60
g = (GList *) 0xac07540
walk = <value optimized out>
clips = (GSList *) 0x0
clip = (ClipEntry *) 0x0
ident = {xx = 1, yx = 0, xy = 0, yy = 1, x0 = 0, y0 = 0}...
2007 Jun 20
1
Branch 'as' - libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...e command", depth);
return TRUE;
}
+ if (graphic) {
+ SwfdecMovieClass *klass = SWFDEC_MOVIE_GET_CLASS (cur);
+ if (klass->replace)
+ klass->replace (cur, graphic);
+ }
swfdec_movie_set_static_properties (cur, has_transform ? &transform : NULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
} else {
- SwfdecGraphic *graphic;
if (cur != NULL && version > 5) {
SWFDEC_INFO ("depth %d is already occupied by movie %s, not placing", depth, cur->name);
return TRUE;
}
- graphic = swfdec...
2012 Feb 20
0
Cannot start rails server: Please install the adapter: `gem install activerecord--adapter`
...3570) [i686-linux]. FWIW,
here''s my Gemfile too:
source ''https://rubygems.org''
gem ''rails'', ''3.2.1''
group :development, :test do
gem ''sqlite3''
gem ''annotate'', :git => ''git://github.com/ctran/annotate_models.git''
gem ''rspec-rails''
end
group :assets do
gem ''sass-rails'', ''~> 3.2.3''
gem ''coffee-rails'', ''~> 3.2.1''
gem ''uglifier'', ''>= 1.0.3''
gem ...
2007 Jul 03
0
Branch 'as' - 7 commits - libswfdec/swfdec_as_math.c libswfdec/swfdec_as_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_sprite_movie.c test/trace
...644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -266,12 +266,12 @@ swfdec_sprite_movie_perform_place (Swfde
cur = swfdec_movie_new (player, depth, mov, graphic, name);
swfdec_movie_set_static_properties (cur, has_transform ? &transform : NULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
+ swfdec_movie_initialize (cur);
if (SWFDEC_IS_SPRITE_MOVIE (cur)) {
g_queue_push_tail (player->init_queue, cur);
g_queue_push_tail (player->construct_queue, cur);
swfdec_movie_queue_script (cur, SWFDEC_EVENT_LOAD...
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
...gpointer
-swfedit_matrix_read (SwfdecBits *bits, gconstpointer hint)
+swfedit_matrix_read (SwfeditToken *token, SwfdecBits *bits, gconstpointer hint)
{
cairo_matrix_t *matrix = g_new (cairo_matrix_t, 1);
@@ -186,13 +187,13 @@ swfedit_matrix_read (SwfdecBits *bits, g
}
static void
-swfedit_ctrans_write (gpointer data, SwfdecOut *out, gconstpointer hint)
+swfedit_ctrans_write (SwfeditToken *token, gpointer data, SwfdecOut *out, gconstpointer hint)
{
swfdec_out_put_color_transform (out, data);
}
static gpointer
-swfedit_ctrans_read (SwfdecBits *bits, gconstpointer hint)
+swfedit_ctra...
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
...vie_handle_mouse;
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.c
index 567da71..cf6786a 100644
--- a/libswfdec/swfdec_movie.c
+++ b/libswfdec/swfdec_movie.c
@@ -70,34 +70,87 @@ swfdec_movie_init (SwfdecMovie * movie)
swfdec_color_transform_init_identity (&movie->original_ctrans);
movie->visible = TRUE;
- movie->cache_state = SWFDEC_MOVIE_INVALID_CONTENTS;
+ movie->cache_state = SWFDEC_MOVIE_INVALID_EXTENTS;
+ movie->invalidate_last = TRUE;
+ movie->invalidate_next = TRUE;
swfdec_rect_init_empty (&movie->extents);
}
/**
* swfdec_m...
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
...ity (&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->content->transform.xx;
- movie->matrix.xy = movie->content->transform.xy;
- movie->matrix.yx = movie-&...
2007 Nov 28
0
59 commits - libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_button.c libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_button_movie.h libswfdec/swfdec_event.c
...event_list_copy (button->events);
@@ -141,7 +143,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag)
while (swfdec_bits_peek_u8 (&bits)) {
SwfdecBits tmp;
SwfdecBuffer *buffer;
- cairo_matrix_t trans, inverse;
+ cairo_matrix_t trans;
SwfdecColorTransform ctrans;
guint states, gid;
gboolean has_blend_mode, has_filters;
@@ -172,7 +174,7 @@ tag_func_define_button_2 (SwfdecSwfDecoder * s, guint tag)
states & (1 << SWFDEC_BUTTON_OVER) ? "OVER " : "",
states & (1 << SWFDEC_BUTTON_UP) ? "UP "...
2008 Jan 07
0
12 commits - configure.ac doc/swfdec.types Makefile.am test/crashfinder.c test/dump.c test/Makefile.am test/swfdec-extract.c test/swfdec_out.c test/swfdec_out.h test/swfedit.c test/swfedit_file.c test/swfedit_file.h test/swfedit_list.c test/swfedit_list.h
...out, data);
-}
-
-static gpointer
-swfedit_matrix_read (SwfeditToken *token, SwfdecBits *bits, gconstpointer hint)
-{
- cairo_matrix_t *matrix = g_new (cairo_matrix_t, 1);
-
- swfdec_bits_get_matrix (bits, matrix, NULL);
- swfdec_bits_syncbits (bits);
- return matrix;
-}
-
-static void
-swfedit_ctrans_write (SwfeditToken *token, gpointer data, SwfdecOut *out, gconstpointer hint)
-{
- swfdec_out_put_color_transform (out, data);
-}
-
-static gpointer
-swfedit_ctrans_read (SwfeditToken *token, SwfdecBits *bits, gconstpointer hint)
-{
- SwfdecColorTransform *ctrans = g_new (SwfdecColorTransform,...
2007 Nov 20
0
19 commits - libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_image.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h
...clip->depth = child->clip_depth;
SWFDEC_INFO ("clipping up to depth %d by using %s with depth %d", child->clip_depth,
child->name, child->depth);
@@ -1228,11 +1230,13 @@ swfdec_movie_do_render (SwfdecMovie *movie, cairo_t *cr,
swfdec_movie_render (child, cr, ctrans, inval);
}
while (clip) {
+ cairo_pattern_t *mask;
SWFDEC_INFO ("unsetting clip depth %d", clip->depth);
- cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
+ mask = swfdec_movie_mask (cr, clip->movie, inval);
cairo_pop_group_to_source (cr);
- cairo_mask (cr...
2007 Oct 25
0
6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c
...+ swfdec_player_add_action (player, movie, condition, importance);
+ return ret;
}
/**
@@ -1391,6 +1391,12 @@ swfdec_movie_duplicate (SwfdecMovie *movie, const char *name, int depth)
swfdec_movie_set_static_properties (copy, &movie->original_transform,
&movie->original_ctrans, movie->original_ratio, movie->clip_depth,
movie->blend_mode, movie->events);
+ if (SWFDEC_IS_SPRITE_MOVIE (copy)) {
+ swfdec_movie_queue_script (copy, SWFDEC_EVENT_INITIALIZE);
+ swfdec_movie_queue_script (copy, SWFDEC_EVENT_LOAD);
+ swfdec_movie_execute (copy, SWFDE...
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
...644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -266,12 +266,12 @@ swfdec_sprite_movie_perform_place (Swfde
cur = swfdec_movie_new (player, depth, mov, graphic, name);
swfdec_movie_set_static_properties (cur, has_transform ? &transform : NULL,
has_ctrans ? &ctrans : NULL, ratio, clip_depth, events);
- swfdec_movie_initialize (cur);
if (SWFDEC_IS_SPRITE_MOVIE (cur)) {
g_queue_push_tail (player->init_queue, cur);
g_queue_push_tail (player->construct_queue, cur);
swfdec_movie_queue_script (cur, SWFDEC_EVENT_LOAD...