Displaying 9 results from an estimated 9 matches for "swfdec_bits_get_string_with_version".
2007 Nov 22
0
5 commits - libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_debugger.c libswfdec/swfdec_movie.c libswfdec/swfdec_script.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_text_field.c
...++
test/trace/atan2.as | 6 ++++++
18 files changed, 55 insertions(+), 32 deletions(-)
New commits:
commit 1e5f7cd44c31b1c67b912dd1bc67d41592de3c2d
Author: Benjamin Otte <otte at gnome.org>
Date: Thu Nov 22 21:33:02 2007 +0100
remove swfdec_bits_get_string() and rename swfdec_bits_get_String_with_version() to it
diff --git a/libswfdec/swfdec_as_interpret.c b/libswfdec/swfdec_as_interpret.c
index b703847..130d920 100644
--- a/libswfdec/swfdec_as_interpret.c
+++ b/libswfdec/swfdec_as_interpret.c
@@ -326,7 +326,7 @@ swfdec_action_push (SwfdecAsContext *cx, guint action, const guint8 *data, guint...
2007 Jun 20
1
Branch 'as' - 2 commits - libswfdec/swfdec_as_interpret.c
libswfdec/swfdec_as_interpret.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
New commits:
diff-tree 9c5cb7cb9f6278896bc8a1e7cd7fb541b079c8de (from 1e19719b58b5cfcb800c81a5f5432c3ad662dbbc)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jun 20 20:58:52 2007 +0200
the modulo arguments were mixed
diff --git a/libswfdec/swfdec_as_interpret.c
2007 Jun 06
0
Branch 'as' - 13 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h 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
...c10dbed77adfbb8e94a42a08c98)
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Jun 6 16:30:02 2007 +0200
handle reading strings better
Strings are LATIN1 in Flash <= 5 and only became UTF8 in Flash 6.
swfdec_bits_skip_string () has been removed because of this and
swfdec_bits_get_string_with_version() that automatically does the right
conversion.
swfdec_bits_get_string() should be considered deprecated. Someone should add
some tests to ensure all strings behave like this and switch the rest of the
functions.
diff --git a/libswfdec/swfdec_as_frame.c b/libswfdec/swfdec_as_f...
2007 Oct 26
0
3 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_interpret.c
...its);
+ try_data->finally_size = swfdec_bits_get_u16 (&bits);
+ try_data->start = data + len + try_size;
- if (use_register) {
- swfdec_bits_get_u8 (&bits);
+ if (try_data->use_register) {
+ try_data->register_number = swfdec_bits_get_u8 (&bits);
} else {
- swfdec_bits_get_string_with_version (&bits, cx->version);
+ try_data->variable_name =
+ swfdec_bits_get_string_with_version (&bits, cx->version);
}
if (swfdec_bits_left (&bits)) {
SWFDEC_WARNING ("leftover bytes in Try action");
}
- SWFDEC_FIXME ("Try action not implement...
2007 Jul 14
0
libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_string.c libswfdec/swfdec_bits.c
...encoded as LATIN1. Since Flash 6,
- * strings are encoded as UTF8. This version does the check automatically
+ * strings are encoded as UTF-8. This version does the check automatically
* and converts strings to UTF-8.
*
* Returns: a UTF-8 encoded string or %NULL on error
@@ -502,9 +502,9 @@ swfdec_bits_get_string_with_version (Swf
return NULL;
if (version < 6) {
- char *ret = g_convert (s, -1, "UTF8", "LATIN1", NULL , NULL, NULL);
+ char *ret = g_convert (s, -1, "UTF-8", "LATIN1", NULL , NULL, NULL);
if (ret == NULL)
- g_warning ("Could not conver...
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
...diff --git a/libswfdec/swfdec_sprite_movie.c b/libswfdec/swfdec_sprite_movie.c
index 10fc011..e38a3e1 100644
--- a/libswfdec/swfdec_sprite_movie.c
+++ b/libswfdec/swfdec_sprite_movie.c
@@ -358,14 +358,13 @@ swfdec_sprite_movie_perform_one_action (SwfdecSpriteMovie *movie, guint tag, Swf
name = swfdec_bits_get_string_with_version (&bits, SWFDEC_AS_CONTEXT (player)->version);
if (object == NULL) {
SWFDEC_ERROR ("cannot export id %u as %s, id wasn't found", id, name);
- g_free (name);
} else if (name == NULL) {
SWFDEC_ERROR ("cannot export id %u, no name was given", id);...
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
...ts", count);
+ for (i = 0; i < count && swfdec_bits_left (&bits); i++) {
+ guint id;
+ SwfdecCharacter *object;
+ char *name;
+ id = swfdec_bits_get_u16 (&bits);
+ object = swfdec_swf_decoder_get_character (SWFDEC_SWF_DECODER (resource->decoder), id);
+ name = swfdec_bits_get_string_with_version (&bits, SWFDEC_AS_CONTEXT (player)->version);
+ if (object == NULL) {
+ SWFDEC_ERROR ("cannot export id %u as %s, id wasn't found", id, name);
+ g_free (name);
+ } else if (name == NULL) {
+ SWFDEC_ERROR ("cannot export id %u, no name was given", id);...
2007 Dec 18
2
Changes to 'refs/tags/0.5.5'
...the differences better
also unset clip depth of mask, not just of the masked movie
test that clip depths get terminated correctly
test changing clip depth works as expected
fix typo
update to include more values
make print functions always assume utf-8
use swfdec_bits_get_string_with_version () everywhere
remove swfdec_bits_get_string() and rename swfdec_bits_get_String_with_version() to it
fix for API changes
test for mad with pkg-config before trying it with AC_CHECK_LIB
get rid of will_be_removed member and replace it with checking state
make swfdec_mov...
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
...%d %d",
+ ctrans.ra, ctrans.rb,
+ ctrans.ga, ctrans.gb,
+ ctrans.ba, ctrans.bb,
+ ctrans.aa, ctrans.ab);
+ }
+
+ if (has_ratio) {
+ ratio = swfdec_bits_get_u16 (bits);
+ SWFDEC_LOG (" ratio = %d", ratio);
+ } else {
+ ratio = 0;
+ }
+
+ if (has_name) {
+ char *s = swfdec_bits_get_string_with_version (bits, version);
+ name = swfdec_as_context_give_string (SWFDEC_AS_CONTEXT (player), s);
+ SWFDEC_LOG (" name = %s", name);
+ } else {
+ name = NULL;
+ }
+
+ if (has_clip_depth) {
+ clip_depth = swfdec_bits_get_u16 (bits) - 16384;
+ SWFDEC_LOG (" clip_depth = %d (...