Displaying 17 results from an estimated 17 matches for "getdepth".
2007 Nov 28
0
7 commits - configure.ac libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c test/trace
...-child-onUnload.swf remove-child-onUnload.as
+
+createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("a", 0);
+a.createEmptyMovieClip ("b", 1);
+a.b.onUnload = function () { trace (this); trace (this._parent); };
+a.removeMovieClip ();
+trace (a + ": " + a.getDepth ());
+trace (a.a + ": " + a.a.getDepth ());
+trace (a.b + ": " + a.b.getDepth ());
+trace ("===");
+
+loadMovie ("fscommand:quit", "");
commit 9bf200f0eb22d8febcac51b0fe40c032389ba7ab
Author: Benjamin Otte <otte at gnome.org>
Date: Tue Nov 2...
2009 Dec 06
1
[LLVMdev] PR5382
Hello,
This patch fixes PR5382. The problem is that
"bu_ls_rr_sort::operator()" and "td_ls_rr_sort::operator()" call
getHeight() and getDepth() methods on SUnit, which can recompute
values, what invalidates heap (SPQ). This patch guarantees that height
and depth values won't be recomputed. The other solution would be to
reheapify SPQ everytime when new SUnit is pop()ed, however I think it
would be too expensive.
Can anyone l...
2007 Mar 21
0
4 commits - libswfdec/swfdec_js_movie.c libswfdec/swfdec_script.c player/swfdec_slow_loader.c
...diff-tree 07efea41adaeeceac6f4ab3ecd9a71c5a9c8791f (from 609e4f1c6bb7aa371146a535ef83cf57e4c30ec3)
Author: Benjamin Otte <otte@gnome.org>
Date: Wed Mar 21 23:33:42 2007 +0100
compute new width/height relative to original width/height, not current one
also implements MovieClip.getDepth (untested)
diff --git a/libswfdec/swfdec_js_movie.c b/libswfdec/swfdec_js_movie.c
index 5137746..2d9b1a1 100644
--- a/libswfdec/swfdec_js_movie.c
+++ b/libswfdec/swfdec_js_movie.c
@@ -610,12 +610,26 @@ swfdec_js_getURL (JSContext *cx, JSObjec
return JS_TRUE;
}
+static JSBool
+swfdec_js_getDe...
2015 Feb 04
2
[LLVMdev] Question on Machine Combiner Pass
...gthens the
critical path or not.
In order to do this we compute the depth and latency for the current
instruction (MUL+ADD) and the alternate instruction (MADD).
But we call two different set of APIs for the current and new instructions:
For new instruction we use:
unsigned NewRootDepth = getDepth(InsInstrs, InstrIdxForVirtReg, BlockTrace);
unsigned NewRootLatency = getLatency(Root, NewRoot, BlockTrace);
While for the current instruction we use:
unsigned RootDepth = BlockTrace.getInstrCycles(Root).Depth;
unsigned RootLatency = TSchedModel.computeInstrLatency(Root);
This is related...
2007 Aug 22
0
Branch 'vivi' - 2 commits - libswfdec/swfdec_movie.c test/trace
...- /dev/null
+++ b/test/trace/remove-depths.as
@@ -0,0 +1,15 @@
+// makeswf -v 7 -s 200x150 -r 1 -o remove-depths.swf remove-depths.as
+
+depths = [ 0, -16384, -16385, 1000 ];
+for (i = 0; i < depths.length; i++) {
+ bla = createEmptyMovieClip ("foo" + i, depths[i]);
+ bla.depth = bla.getDepth ();
+ bla.onUnload = function () {
+ trace (this.depth + " => " + this.getDepth ());
+ };
+ bla.removeMovieClip ();
+}
+// We print that here so we know the onUnload gets triggered later
+trace ("Check how removing movieclips affects depth");
+
+loadMovie ("FSComma...
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
...ace/duplicate-names.as b/test/trace/duplicate-names.as
new file mode 100644
index 0000000..b268b5e
--- /dev/null
+++ b/test/trace/duplicate-names.as
@@ -0,0 +1,14 @@
+// makeswf -v 7 -s 200x150 -r 1 -o duplicate-names.swf duplicate-names.as
+
+createEmptyMovieClip ("foo", 10);
+trace (foo.getDepth ());
+createEmptyMovieClip ("foo", 0);
+trace (foo.getDepth ());
+createEmptyMovieClip ("foo", 20);
+trace (foo.getDepth ());
+foo.removeMovieClip ();
+trace (foo.getDepth ());
+foo.removeMovieClip ();
+trace (foo.getDepth ());
+
+loadMovie ("FSCommand:quit", "&qu...
2007 Jun 28
0
Branch 'as' - 5 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c test/trace
...eck RemoveSprite action with various depths");
+
+depths = [-2000000, -20000, -10000, -1, 0, 1000000, 2000000 ];
+for (i = 0; i < depths.length; i++) {
+ x = createEmptyMovieClip ("movie" + depths[i], depths[i]);
+ trace (this["movie" + depths[i]] + " @ " + x.getDepth ());
+ asm {
+ push "x"
+ getvariable
+ removemovieclip
+ };
+ trace (this["movie" + depths[i]] + " @ " + x.getDepth ());
+}
+
+loadMovie ("FSCommand:quit", "");
diff-tree 2c6cc23e77d61fbdccaa80b43dc1eaf5970297ab (from fd7044406415e0cea6...
2007 Oct 25
0
4 commits - libswfdec/swfdec_button.h libswfdec/swfdec_button_movie.c libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h libswfdec/swfdec_sprite_movie.c test/trace
...44
index 0000000..0413718
--- /dev/null
+++ b/test/trace/settarget-tostring.as
@@ -0,0 +1,8 @@
+// makeswf -v 7 -s 200x150 -r 1 -o settarget-tostring.swf settarget-tostring.as
+
+a = createEmptyMovieClip ("name", 0);
+b = createEmptyMovieClip ("name", 1);
+setTarget (b);
+trace (getDepth ());
+
+loadMovie ("fscommand:QUIT", "");
2007 Nov 27
0
12 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h
...olean", "prototype", false],
+ ["_global.Boolean.prototype", "toString", false],
+ ["_global.Boolean.prototype", "valueOf", false],
+ ["_global.Button", "prototype", false],
+ ["_global.Button.prototype", "getDepth", false],
+ ["_global.Camera", "get", false],
+ ["_global.Camera", "prototype", false],
+ ["_global.Camera.get", "prototype", false],
+ ["_global.Camera.prototype", "setCursor", true],
+ ["_global.Camera....
2007 Nov 12
0
20 commits - libswfdec/swfdec_as_function.c libswfdec/swfdec_as_string.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_movie_as_drawing.c libswfdec/swfdec_player_as.c
...est/trace/movieclip-swap-depths.as b/test/trace/movieclip-swap-depths.as
new file mode 100644
index 0000000..b5e598f
--- /dev/null
+++ b/test/trace/movieclip-swap-depths.as
@@ -0,0 +1,36 @@
+// makeswf -v 7 -r 1 -o test-7.swf test.as
+
+function trace_depths () {
+ trace ("this: " + this.getDepth ());
+ trace ("a: " + a.getDepth ());
+ trace ("b: " + b.getDepth ());
+ trace ("c: " + c.getDepth ());
+}
+
+this.createEmptyMovieClip ("a", 1);
+this.createEmptyMovieClip ("b", 2);
+this.createEmptyMovieClip ("c", 3);
+
+trace_depths...
2017 Mar 17
0
Wine release 2.4
...(49):
xmllite/reader: Improve input stream encoding detection.
xmllite/reader: Always return node type from Read().
xmllite/reader: Reset node type to XmlNodeType_None on EOF.
xmllite/reader: Implement IsEOF().
xmllite/reader: Improve the way nesting level returned by GetDepth() is updated.
d3d9: Remove reference to IWineD3DDevice.
ddraw: Remove referenced to IWineD3D* interfaces.
xmllite/reader: Return proper name for xml declaration PI.
xmllite/reader: Return empty value for elements.
xmllite/reader: Fix prefix returned after moving back t...
2007 Mar 22
0
11 commits - libswfdec/swfdec_color.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_net_stream.h libswfdec/swfdec_pattern.c libswfdec/swfdec_script.c NEWS test/trace
...foo (string) = NaN
diff --git a/test/trace/divide.as b/test/trace/divide.as
new file mode 100644
index 0000000..b42cbc6
--- /dev/null
+++ b/test/trace/divide.as
@@ -0,0 +1,9 @@
+// makeswf -v 7 -s 200x150 -r 1 -o movie2.swf movie2.as
+
+array = [ 0, undefined, null, 1, -1, -0, new Object (), this, getDepth, "1", "0", "", "foo" ];
+
+for (i = 0; i < array.length; i++) {
+ for (j = 0; j < array.length; j++) {
+ trace (array[i] + " (" + typeof (array[i]) + ") / " + array[j] + " (" + typeof (array[j]) + ") = " + (ar...
2007 Oct 18
0
14 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_initialize.as libswfdec/swfdec_initialize.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c libswfdec/swfdec_text_field_movie.h libswfdec/swfdec_text_format.c
...644
--- a/libswfdec/swfdec_initialize.as
+++ b/libswfdec/swfdec_initialize.as
@@ -290,6 +290,8 @@ TextField.prototype.removeTextField = ASnative (104, 103);
TextField.prototype.getNewTextFormat = ASnative (104, 104);
TextField.prototype.setNewTextFormat = ASnative (104, 105);
TextField.prototype.getDepth = ASnative (104, 106);
+TextField.prototype.replaceText = ASnative (104, 107);
+ASSetPropFlags (TextField.prototype, "replaceText", 1024);
AsBroadcaster.initialize (TextField.prototype);
diff --git a/libswfdec/swfdec_initialize.h b/libswfdec/swfdec_initialize.h
index 1372347..f2c37c8...
2007 Nov 15
2
Changes to 'refs/tags/0.5.4'
Tag '0.5.4' created by Benjamin Otte <otte at gnome.org> at 2007-11-15 10:12 -0800
release 0.5.4 ("Turkish Cycling Federation")
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQBHPBurvMv5VCdLq8QRAj1KAJ40NHRRS3gKyJjSjyyoH7gDaGi/tQCeOha/
R5PF4bZQqmSdJ64t8EbD4cA=
=8qBy
-----END PGP SIGNATURE-----
Changes since the dawn of time:
Benjamin Otte (40):
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
...1071..3e49b61 100644
--- a/libswfdec/swfdec_initialize.as
+++ b/libswfdec/swfdec_initialize.as
@@ -334,6 +334,7 @@ MovieClip.prototype.getBounds = ASnative (900, 5);
MovieClip.prototype.getBytesTotal = ASnative (900, 6);
MovieClip.prototype.getBytesLoaded = ASnative (900, 7);
MovieClip.prototype.getDepth = ASnative (900, 10);
+MovieClip.prototype.setMask = ASnative (900, 11);
MovieClip.prototype.play = ASnative (900, 12);
MovieClip.prototype.stop = ASnative (900, 13);
MovieClip.prototype.nextFrame = ASnative (900, 14);
@@ -346,7 +347,7 @@ MovieClip.prototype["removeMovieClip"] = ASnati...
2007 Nov 07
0
36 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_amf.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_object.c libswfdec/swfdec_as_object.h libswfdec/swfdec_as_strings.c libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h
...6 11:57:59 2007 +0100
add MovieClipLoader object
diff --git a/libswfdec/swfdec_initialize.as b/libswfdec/swfdec_initialize.as
index bfb2e78..51a8152 100644
--- a/libswfdec/swfdec_initialize.as
+++ b/libswfdec/swfdec_initialize.as
@@ -292,6 +292,13 @@ ASSetPropFlags (MovieClip.prototype, "getDepth", 128);
ASSetNative (MovieClip.prototype, 901, "6createEmptyMovieClip,6beginFill,6beginGradientFill,6moveTo,6lineTo,6curveTo,6lineStyle,6endFill,6clear");
ASSetPropFlags (MovieClip.prototype, null, 3);
+/* MovieClipLoader */
+
+MovieClipLoader = ASconstructor (112, 0);
+ASSetNati...
2007 Aug 22
0
163 commits - autogen.sh configure.ac doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_player.h libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_source.c libswfdec/Makefile.am libswfdec/swfdec_as_array.c
...- /dev/null
+++ b/test/trace/remove-depths.as
@@ -0,0 +1,15 @@
+// makeswf -v 7 -s 200x150 -r 1 -o remove-depths.swf remove-depths.as
+
+depths = [ 0, -16384, -16385, 1000 ];
+for (i = 0; i < depths.length; i++) {
+ bla = createEmptyMovieClip ("foo" + i, depths[i]);
+ bla.depth = bla.getDepth ();
+ bla.onUnload = function () {
+ trace (this.depth + " => " + this.getDepth ());
+ };
+ bla.removeMovieClip ();
+}
+// We print that here so we know the onUnload gets triggered later
+trace ("Check how removing movieclips affects depth");
+
+loadMovie ("FSComma...