Displaying 9 results from an estimated 9 matches for "swfdec_matrix_get_rotation".
2007 Jul 11
0
libswfdec/swfdec_movie.c
...ec_movie_update_matrix (SwfdecMovie
d = movie->xscale / swfdec_matrix_get_xscale (&movie->content->transform);
e = movie->yscale / swfdec_matrix_get_yscale (&movie->content->transform);
cairo_matrix_scale (&movie->matrix, d, e);
- d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
- cairo_matrix_rotate (&movie->matrix, d * G_PI / 180);
+ if (finite (movie->rotation)) {
+ d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
+ cairo_matrix_rotate (&movie->matrix, d * G_PI /...
2007 Jul 11
0
Branch 'as' - 3 commits - libswfdec/swfdec_bits.c
...ec_movie_update_matrix (SwfdecMovie
d = movie->xscale / swfdec_matrix_get_xscale (&movie->content->transform);
e = movie->yscale / swfdec_matrix_get_yscale (&movie->content->transform);
cairo_matrix_scale (&movie->matrix, d, e);
- d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
- cairo_matrix_rotate (&movie->matrix, d * G_PI / 180);
+ if (finite (movie->rotation)) {
+ d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
+ cairo_matrix_rotate (&movie->matrix, d * G_PI /...
2007 Jul 11
0
Branch 'as' - 4 commits - libswfdec/swfdec_color.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c test/trace
...@ swfdec_movie_update_matrix (SwfdecMovie
d = movie->xscale / swfdec_matrix_get_xscale (&movie->original_transform);
e = movie->yscale / swfdec_matrix_get_yscale (&movie->original_transform);
cairo_matrix_scale (&movie->matrix, d, e);
- d = movie->rotation - swfdec_matrix_get_rotation (&movie->original_transform);
- cairo_matrix_rotate (&movie->matrix, d * G_PI / 180);
+ if (isfinite (movie->rotation)) {
+ d = movie->rotation - swfdec_matrix_get_rotation (&movie->original_transform);
+ cairo_matrix_rotate (&movie->matrix, d * G_PI / 180)...
2007 Jun 13
1
Branch 'as' - libswfdec/swfdec_movie.c
..._set_static_properties (Swfd
}
if (transform) {
movie->original_transform = *transform;
+ movie->xscale = swfdec_matrix_get_xscale (&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 Dec 11
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_movie.c test/trace
...e for #13529
diff --git a/libswfdec/swfdec_movie.c b/libswfdec/swfdec_movie.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;
d...
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
...wfdec_sprite_movie.h \
swfdec_swf_decoder.h \
+ swfdec_stroke.h \
swfdec_tag.h \
swfdec_text.h \
swfdec_types.h \
diff --git a/libswfdec/swfdec_color.c b/libswfdec/swfdec_color.c
index 23fda5a..83be167 100644
--- a/libswfdec/swfdec_color.c
+++ b/libswfdec/swfdec_color.c
@@ -250,3 +250,26 @@ swfdec_matrix_get_rotation (const cairo_
return atan2 (matrix->yx, matrix->xx) * 180 / G_PI;
}
+void
+swfdec_matrix_morph (cairo_matrix_t *dest, const cairo_matrix_t *start,
+ const cairo_matrix_t *end, guint ratio)
+{
+ guint inv_ratio = 65535 - ratio;
+ g_assert (ratio < 65536);
+
+ if (ratio == 0) {
+...
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
...le (&movie->content->transform);
+ d = movie->xscale / swfdec_matrix_get_xscale (&movie->original_transform);
+ e = movie->yscale / swfdec_matrix_get_yscale (&movie->original_transform);
cairo_matrix_scale (&movie->matrix, d, e);
- d = movie->rotation - swfdec_matrix_get_rotation (&movie->content->transform);
+ d = movie->rotation - swfdec_matrix_get_rotation (&movie->original_transform);
cairo_matrix_rotate (&movie->matrix, d * G_PI / 180);
swfdec_matrix_ensure_invertible (&movie->matrix, &movie->inverse_matrix);
@@ -207,51...
2007 Aug 22
0
8 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite_movie_as.c vivified/core
...rix.x0 = movie->original_transform.x0;
+ movie->matrix.y0 = movie->original_transform.y0;
movie->xscale = swfdec_matrix_get_xscale (&movie->original_transform);
movie->yscale = swfdec_matrix_get_yscale (&movie->original_transform);
movie->rotation = swfdec_matrix_get_rotation (&movie->original_transform);
diff-tree 357a6593f7125e8518bd65d7f058105ebe7c78a2 (from 66f34d06d0ea7226f8f1e5d39af392a10de556c0)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Aug 22 16:40:27 2007 +0200
set to inited before initing, because initing can cause breakpoints to...
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
...rix.x0 = movie->original_transform.x0;
movie->matrix.y0 = movie->original_transform.y0;
movie->xscale = swfdec_matrix_get_xscale (&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) {
movie->original_ctrans = *ctrans;
- swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
}
if (ratio >= 0 && (guint) rat...