Displaying 20 results from an estimated 138 matches for "swfdec_log".
2007 Aug 13
0
2 commits - libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h
...its;
+ int id, reserved;
+ guint length;
SwfdecButton *button;
char *script_name;
- id = swfdec_bits_get_u16 (bits);
+ id = swfdec_bits_get_u16 (&s->b);
button = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_BUTTON);
if (!button)
return SWFDEC_STATUS_OK;
SWFDEC_LOG (" ID: %d", id);
- flags = swfdec_bits_get_u8 (bits);
- if (flags & 0x01)
- button->menubutton = TRUE;
- offset = swfdec_bits_get_u16 (bits);
-
- SWFDEC_LOG (" flags = %d", flags);
- SWFDEC_LOG (" offset = %d", offset);
-
- while (swfdec_bits_peek_...
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
...epth = swfdec_bits_getbit (bits);
- has_name = swfdec_bits_getbit (bits);
- has_ratio = swfdec_bits_getbit (bits);
- has_color_transform = swfdec_bits_getbit (bits);
- has_matrix = swfdec_bits_getbit (bits);
- has_character = swfdec_bits_getbit (bits);
- move = swfdec_bits_getbit (bits);
-
- SWFDEC_LOG (" has_clip_actions = %d", has_clip_actions);
- SWFDEC_LOG (" has_clip_depth = %d", has_clip_depth);
- SWFDEC_LOG (" has_name = %d", has_name);
- SWFDEC_LOG (" has_ratio = %d", has_ratio);
- SWFDEC_LOG (" has_color_transform = %d", has_colo...
2007 Apr 16
0
7 commits - libswfdec/swfdec_codec_gst.c libswfdec/swfdec_font.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_pattern.c libswfdec/swfdec_pattern.h libswfdec/swfdec_shape.c libswfdec/swfdec_shape.h libswfdec/swfdec_sprite.c
....0 / 256.0, 0);
+ }
cairo_matrix_scale (&mat, 1 / 256.0, 1 / 256.0);
mat.x0 /= 256.0;
mat.y0 /= 256.0;
@@ -289,16 +292,22 @@ swfdec_pattern_do_parse (SwfdecSwfDecode
}
SWFDEC_COLOR_PATTERN (pattern)->end_color = SWFDEC_COLOR_PATTERN (pattern)->start_color;
SWFDEC_LOG (" color %08x", SWFDEC_COLOR_PATTERN (pattern)->start_color);
- } else if (paint_style_type == 0x10 || paint_style_type == 0x12) {
+ } else if (paint_style_type == 0x10 || paint_style_type == 0x12 || paint_style_type == 0x13) {
+ SwfdecGradientPattern *gradient;
pattern =...
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...SwfdecLanguage language;
+ guint i, id, len, n_glyphs, offset, next_offset;
+ gboolean layout, shift_jis, ansi, wide_offsets, wide_codes;
+
+ id = swfdec_bits_get_u16 (bits);
+ font = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_FONT);
+ if (!font)
+ return SWFDEC_STATUS_OK;
+ SWFDEC_LOG (" id = %u", id);
+ font->scale_factor = 20 * SWFDEC_TEXT_SCALE_FACTOR;
+
+ layout = swfdec_bits_getbit (bits);
+ SWFDEC_LOG (" layout = %d", layout);
+ shift_jis = swfdec_bits_getbit (bits);
+ SWFDEC_LOG (" JIS = %d", shift_jis);
+ font->small = swfdec_bi...
2007 Jan 26
0
libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c
...7 +220,7 @@ swfdec_image_jpeg_load (SwfdecImage *ima
jpeg_rgb_decoder_get_image (dec, &image_data,
&image->rowstride, NULL, NULL);
jpeg_rgb_decoder_free (dec);
- swfdec_image_create_surface (image, image_data);
+ swfdec_image_create_surface (image, image_data, FALSE);
SWFDEC_LOG (" width = %d", image->width);
SWFDEC_LOG (" height = %d", image->height);
@@ -268,7 +268,7 @@ swfdec_image_jpeg2_load (SwfdecImage *im
jpeg_rgb_decoder_get_image (dec, &image_data,
&image->rowstride, &image->width, &image->height);...
2007 Oct 11
1
[PATCH] Fix compiler warnings that prevent compilation
...b/libswfdec/swfdec_as_context.c
index 61de9b5..8e47260 100644
--- a/libswfdec/swfdec_as_context.c
+++ b/libswfdec/swfdec_as_context.c
@@ -197,7 +197,7 @@ swfdec_as_context_use_mem (SwfdecAsContext *context, gsize bytes)
context->memory += bytes;
context->memory_since_gc += bytes;
- SWFDEC_LOG ("+%4u bytes, total %7u (%7u since GC)", bytes,
+ SWFDEC_LOG ("+%4zu bytes, total %7zu (%7zu since GC)", bytes,
context->memory, context->memory_since_gc);
/* FIXME: Don't foget to abort on OOM */
return TRUE;
@@ -219,7 +219,7 @@ swfdec_as_context_unuse_m...
2007 Apr 16
0
4 commits - libswfdec/swfdec_shape.c libswfdec/swfdec_stroke.c test/dump.c
...ec454b 100644
--- a/libswfdec/swfdec_stroke.c
+++ b/libswfdec/swfdec_stroke.c
@@ -152,7 +152,7 @@ swfdec_stroke_parse (SwfdecSwfDecoder *d
stroke->end_width = stroke->start_width;
stroke->start_color = swfdec_bits_get_color (bits);
stroke->end_color = stroke->start_color;
- SWFDEC_LOG ("new stroke stroke: width %u color %08x", stroke->start_width, stroke->start_color);
+ SWFDEC_LOG ("new stroke: width %u color %08x", stroke->start_width, stroke->start_color);
return stroke;
}
@@ -167,7 +167,7 @@ swfdec_stroke_parse_rgba (SwfdecSwfDecod
s...
2007 Apr 17
0
15 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_edittext.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sprite.c
...re available
diff --git a/libswfdec/swfdec_root_sprite.c b/libswfdec/swfdec_root_sprite.c
index 7159927..41e8b31 100644
--- a/libswfdec/swfdec_root_sprite.c
+++ b/libswfdec/swfdec_root_sprite.c
@@ -117,7 +117,7 @@ tag_func_export_assets (SwfdecSwfDecoder
count = swfdec_bits_get_u16 (bits);
SWFDEC_LOG ("exporting %u assets", count);
- for (i = 0; i < count; i++) {
+ for (i = 0; i < count && swfdec_bits_left (bits); i++) {
guint id;
SwfdecCharacter *object;
char *name;
diff-tree 4ecf6f08ab585cbf8089373cb6535d5e3e3493fc (from 09b659302736f9b00db64a1586703de...
2008 Jan 09
0
libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c libswfdec/swfdec_swf_decoder.c
...c b/libswfdec/swfdec_sound.c
index ef0641e..cb1e97c 100644
--- a/libswfdec/swfdec_sound.c
+++ b/libswfdec/swfdec_sound.c
@@ -105,7 +105,7 @@ tag_func_sound_stream_block (SwfdecSwfDecoder * s, guint tag)
SWFDEC_ERROR ("empty sound chunk");
return SWFDEC_STATUS_OK;
}
- SWFDEC_LOG ("got a buffer with %u samples, %d skip and %u bytes mp3 data", n_samples, skip,
+ SWFDEC_LOG ("got a buffer with %u samples, %d skip and %"G_GSIZE_FORMAT" bytes mp3 data", n_samples, skip,
chunk->length);
/* use this to write out the stream data to stdout...
2007 Apr 17
0
Branch 'as' - 17 commits - libswfdec/jpeg libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_image.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_script.c libswfdec/swfdec_shape.c libswfdec/swfdec_sound.c libswfdec/swfdec_sprite.c
...re available
diff --git a/libswfdec/swfdec_root_sprite.c b/libswfdec/swfdec_root_sprite.c
index 7159927..41e8b31 100644
--- a/libswfdec/swfdec_root_sprite.c
+++ b/libswfdec/swfdec_root_sprite.c
@@ -117,7 +117,7 @@ tag_func_export_assets (SwfdecSwfDecoder
count = swfdec_bits_get_u16 (bits);
SWFDEC_LOG ("exporting %u assets", count);
- for (i = 0; i < count; i++) {
+ for (i = 0; i < count && swfdec_bits_left (bits); i++) {
guint id;
SwfdecCharacter *object;
char *name;
diff-tree 4ecf6f08ab585cbf8089373cb6535d5e3e3493fc (from 09b659302736f9b00db64a1586703de...
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
..._player.c
@@ -1913,7 +1913,6 @@ swfdec_player_get_export_class (SwfdecPlayer *player, const char *name)
SwfdecAsObject *ret;
ret = g_hash_table_lookup (player->registered_classes, name);
- g_print ("found registered class %p for %p %s\n", ret, name, name);
if (ret) {
SWFDEC_LOG ("found registered class %p for %s", ret, name);
return ret;
@@ -1937,7 +1936,6 @@ swfdec_player_set_export_class (SwfdecPlayer *player, const char *name, SwfdecAs
g_return_if_fail (name != NULL);
g_return_if_fail (object == NULL || SWFDEC_IS_AS_OBJECT (object));
- g_print (...
2007 Aug 13
0
Branch 'vivi' - 24 commits - configure.ac libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c libswfdec/swfdec_tag.h vivified/core vivified/dock vivified/ui
...its;
+ int id, reserved;
+ guint length;
SwfdecButton *button;
char *script_name;
- id = swfdec_bits_get_u16 (bits);
+ id = swfdec_bits_get_u16 (&s->b);
button = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_BUTTON);
if (!button)
return SWFDEC_STATUS_OK;
SWFDEC_LOG (" ID: %d", id);
- flags = swfdec_bits_get_u8 (bits);
- if (flags & 0x01)
- button->menubutton = TRUE;
- offset = swfdec_bits_get_u16 (bits);
-
- SWFDEC_LOG (" flags = %d", flags);
- SWFDEC_LOG (" offset = %d", offset);
-
- while (swfdec_bits_peek_...
2007 Jun 06
0
Branch 'as' - libswfdec/Makefile.am libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h libswfdec/swfdec_swf_decoder.c libswfdec/swfdec_swf_decoder.h libswfdec/swfdec_tag.c
...decSwfDecoder *s;
GArray *array;
guint i;
@@ -226,12 +226,12 @@ swfdec_root_movie_perform_root_actions (
if (frame < root->root_actions_performed)
return;
- sprite = SWFDEC_ROOT_SPRITE (SWFDEC_SPRITE_MOVIE (root)->sprite);
+ s = SWFDEC_SWF_DECODER (root->decoder);
SWFDEC_LOG ("performing root actions for frame %u", root->root_actions_performed);
root->root_actions_performed++;
- if (!sprite->root_actions)
+ if (!s->root_actions)
return;
- array = sprite->root_actions[frame];
+ array = s->root_actions[frame];
if (array == NULL)...
2007 Apr 22
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_font.c libswfdec/swfdec_movie.c
...no more data
diff --git a/libswfdec/swfdec_font.c b/libswfdec/swfdec_font.c
index c0562b1..8b6d5f3 100644
--- a/libswfdec/swfdec_font.c
+++ b/libswfdec/swfdec_font.c
@@ -193,17 +193,14 @@ swfdec_font_parse_shape (SwfdecSwfDecode
shape->n_line_bits = swfdec_bits_getbits (&s->b, 4);
SWFDEC_LOG ("n_line_bits = %d", shape->n_line_bits);
+ swfdec_bits_init_bits (&s->b, &save_bits, size);
swfdec_shape_get_recs (s, shape, swfdec_pattern_parse, swfdec_stroke_parse);
swfdec_bits_syncbits (&s->b);
- if (swfdec_bits_skip_bytes (&save_bits, size) != siz...
2007 Jun 14
0
Branch 'as' - 7 commits - libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_tag.c player/Makefile.am
...l_transform;
+ }
d = movie->xscale / swfdec_matrix_get_xscale (&movie->original_transform);
e = movie->yscale / swfdec_matrix_get_yscale (&movie->original_transform);
@@ -714,7 +722,7 @@ swfdec_movie_dispose (GObject *object)
g_assert (movie->list == NULL);
- SWFDEC_LOG ("disposing movie %s", movie->name);
+ SWFDEC_LOG ("disposing movie %s (depth %d)", movie->name, movie->depth);
if (movie->swf) {
g_object_unref (movie->swf);
movie->swf = NULL;
diff-tree c80a83a1441bb9b02208a385813bd5ca2daee0e7 (from c9f2ca49fc68...
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
...image->width * 4;
+ image->surface = cairo_image_surface_create_for_data (data, CAIRO_FORMAT_RGB24,
+ image->width, image->height, image->width * 4);
+ cairo_surface_set_user_data (image->surface, &key, data, g_free);
+ cairo_surface_reference (image->surface);
SWFDEC_LOG (" width = %d", image->width);
SWFDEC_LOG (" height = %d", image->height);
@@ -219,16 +220,19 @@ static void
swfdec_image_jpeg2_load (SwfdecImage *image)
{
gboolean ret;
+ guint8 *data;
ret = swfdec_jpeg_decode_argb (image->raw_data->data, image->r...
2007 Jan 16
0
9 commits - libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_audio_stream.c libswfdec/swfdec_audio_stream.h libswfdec/swfdec_cache.c libswfdec/swfdec_cached.c libswfdec/swfdec_cached.h libswfdec/swfdec_edittext_movie.c libswfdec/swfdec_image.c
...decSwfDecoder
tmp = swfdec_buffer_queue_pull (queue, swfdec_buffer_queue_get_depth (queue));
swfdec_buffer_queue_free (queue);
}
- swfdec_buffer_unref (orig_buffer);
- if (tmp) {
- guint sample_bytes = 2 * SWFDEC_AUDIO_OUT_N_CHANNELS (sound->decoded_format);
- SWFDEC_LOG ("after decoding, got %u samples, should get %u and skip %u",
- tmp->length / sample_bytes,
- sound->n_samples, skip);
- if (skip) {
- SwfdecBuffer *tmp2 = swfdec_buffer_new_subbuffer (tmp, skip * sample_bytes,
- tmp->length - skip * sample_bytes);
- swfdec_buffer...
2007 Jan 29
0
Branch 'interpreter' - 18 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_js.c libswfdec/swfdec_js_color.c libswfdec/swfdec_js_sound.c libswfdec/swfdec_pattern.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_script.c
...7 +212,7 @@ swfdec_image_jpeg_load (SwfdecImage *ima
jpeg_rgb_decoder_get_image (dec, &image_data,
&image->rowstride, NULL, NULL);
jpeg_rgb_decoder_free (dec);
- swfdec_image_create_surface (image, image_data, FALSE);
+ swfdec_image_create_surface (image, image_data);
SWFDEC_LOG (" width = %d", image->width);
SWFDEC_LOG (" height = %d", image->height);
@@ -252,7 +260,7 @@ swfdec_image_jpeg2_load (SwfdecImage *im
jpeg_rgb_decoder_get_image (dec, &image_data,
&image->rowstride, &image->width, &image->height);...
2007 Jun 09
0
Branch 'as' - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie_as.c
...default_content && content != &default_content) {
g_return_if_fail (movie->depth == content->depth);
g_return_if_fail (movie->content->graphic == content->graphic);
if (content->name) {
@@ -239,6 +240,8 @@ swfdec_movie_set_content (SwfdecMovie *m
}
SWFDEC_LOG ("setting content of movie %s from %p to %p",
movie->name, movie->content, content);
+ if (movie->content->free)
+ swfdec_content_free ((SwfdecContent *) movie->content);
movie->content = content;
if (!movie->modified) {
movie->matrix = conte...
2007 Oct 31
0
5 commits - libswfdec/swfdec_as_object.c libswfdec/swfdec_audio.c libswfdec/swfdec_sound.c libswfdec/swfdec_xml.c
...swfdec_bits_get_u8 (b);
- if (n_envelopes > 0) {
- envelopes = g_array_sized_new (FALSE, FALSE,
- sizeof (SwfdecSoundEnvelope), n_envelopes);
- }
+ chunk->n_envelopes = swfdec_bits_get_u8 (b);
+ chunk->envelope = g_new0 (SwfdecSoundEnvelope, chunk->n_envelopes);
SWFDEC_LOG (" n_envelopes = %u", chunk->n_envelopes);
- } else {
- n_envelopes = 0;
}
- for (i = 0; i < n_envelopes; i++) {
- SwfdecSoundEnvelope envelope;
+ for (i = 0; i < chunk->n_envelopes; i++) {
+ chunk->envelope[i].offset = swfdec_bits_get_u32 (b);
+ if (i...