search for: mc_height_set

Displaying 7 results from an estimated 7 matches for "mc_height_set".

2007 Dec 05
4
[Bug 13536] New: The video in free FLV player is always 120 pixels high
...he toolbar height): http://red-bean.com/proski/swf/drama.html The issue can be reproduced locally without plugin: wget http://red-bean.com/proski/swf/player_flv.swf wget http://red-bean.com/proski/swf/drama.flv swfplay -v flv=./drama.flv player_flv.swf SWFDEC: WARN : swfdec_movie_asprops.c(281): mc_height_set: trying to set height to a non-finite value, ignoring SWFDEC: WARN : swfdec_movie_asprops.c(83): mc_y_set: trying to move video._y to a non-finite value, ignoring [skipping messages like "Add decoder xxx please"] SWFDEC: WARN : swfdec_movie_asprops.c(281): mc_height_set: trying to set hei...
2007 Mar 21
0
4 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c player/swfdec_slow_loader.c
...+ cur = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->original_extents.x1 - movie->original_extents.x0))); if (cur != 0) { - movie->xscale *= d / cur; + movie->xscale = 100 * d / cur; } else { movie->xscale = 0; movie->yscale = 0; @@ -1016,9 +1030,9 @@ mc_height_set (JSContext *cx, JSObject * } swfdec_movie_update (movie); movie->modified = TRUE; - cur = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->extents.y1 - movie->extents.y0))); + cur = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->original_extents.y1 - movie->origina...
2007 Jun 27
0
Branch 'as' - 6 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie_as.c
...}, - { SWFDEC_AS_STR__totalframes, mc_totalframes, NULL }, - { SWFDEC_AS_STR__alpha, mc_alpha_get, mc_alpha_set }, - { SWFDEC_AS_STR__visible, mc_visible_get, mc_visible_set }, - { SWFDEC_AS_STR__width, mc_width_get, mc_width_set }, - { SWFDEC_AS_STR__height, mc_height_get, mc_height_set }, - { SWFDEC_AS_STR__rotation, mc_rotation_get, mc_rotation_set }, - { SWFDEC_AS_STR__target, NULL, NULL }, //"_target" - { SWFDEC_AS_STR__framesloaded,mc_framesloaded, NULL}, - { SWFDEC_AS_STR__name, mc_name_get, mc_name_set }, - { SWFDEC_AS_STR__droptarget, NULL, NULL...
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
...ble_from_object (cx, obj, SWFDEC_TYPE_MOVIE); + if (movie == NULL) { + SWFDEC_WARNING ("not a movie"); + return JS_TRUE; + } swfdec_movie_update (movie); d = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->extents.y1 - movie->extents.y0))); @@ -1016,8 +1130,11 @@ mc_height_set (JSContext *cx, JSObject * SwfdecMovie *movie; double d, cur; - 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; + }...
2007 Feb 16
0
11 commits - libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_script.h test/.gitignore test/trace
...ovie); swfdec_movie_update (movie); - d = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (movie->extents.y1 - movie->extents.y0)); + d = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->extents.y1 - movie->extents.y0))); return JS_NewNumberValue (cx, d, vp); } @@ -888,7 +888,7 @@ mc_height_set (JSContext *cx, JSObject * } swfdec_movie_update (movie); movie->modified = TRUE; - cur = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (movie->extents.y1 - movie->extents.y0)); + cur = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->extents.y1 - movie->extents.y0))); if (c...
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
...EC_MOVIE_INVALID_MATRIX); movie->xscale = d; } else { + swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_MATRIX); movie->xscale = 0; movie->yscale = 0; } - swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_MATRIX); } static void @@ -289,12 +290,13 @@ mc_height_set (SwfdecMovie *movie, const SwfdecAsValue *val) d = 100 * d / cur; if (d == movie->yscale) return; + swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_MATRIX); movie->yscale = d; } else { + swfdec_movie_queue_update (movie, SWFDEC_MOVIE_INVALID_MATRIX);...
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
...dec_movie_update (movie); - d = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->extents.y1 - movie->extents.y0))); + d = rint (movie->extents.y1 - movie->extents.y0); + d = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) d); SWFDEC_AS_VALUE_SET_NUMBER (rval, d); } @@ -271,7 +274,8 @@ mc_height_set (SwfdecMovie *movie, const } swfdec_movie_update (movie); movie->modified = TRUE; - cur = SWFDEC_TWIPS_TO_DOUBLE ((SwfdecTwips) (rint (movie->original_extents.y1 - movie->original_extents.y0))); + cur = rint (movie->original_extents.y1 - movie->original_extents.y0); + cur...