search for: swfdeccach

Displaying 20 results from an estimated 25 matches for "swfdeccach".

Did you mean: swfdeccache
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
...nd->original_format; -} - /** * swfdec_sound_buffer_get_n_samples: * @buffer: data to examine diff --git a/libswfdec/swfdec_sound.h b/libswfdec/swfdec_sound.h index 7101675..7bf26ec 100644 --- a/libswfdec/swfdec_sound.h +++ b/libswfdec/swfdec_sound.h @@ -64,7 +64,6 @@ struct _SwfdecSound SwfdecCached cached; SwfdecAudioFormat format; /* format in use */ - const SwfdecAudioCodec *codec; /* codec for this sound */ gboolean width; /* TRUE for 16bit, FALSE for 8bit */ SwfdecAudioOut original_format; /* channel/rate information */ unsigned int n_samples; /* total numb...
2007 Mar 29
0
libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_audio_event.h libswfdec/swfdec_audio_flv.h libswfdec/swfdec_audio_stream.h libswfdec/swfdec_bits.c libswfdec/swfdec_bits.h libswfdec/swfdec_buffer.c libswfdec/swfdec_buffer.h libswfdec/swfdec_cache.c
...Queue * queue); void swfdec_buffer_queue_unref (SwfdecBufferQueue * queue); #endif diff --git a/libswfdec/swfdec_cache.c b/libswfdec/swfdec_cache.c index 0620b51..09d58a0 100644 --- a/libswfdec/swfdec_cache.c +++ b/libswfdec/swfdec_cache.c @@ -26,7 +26,7 @@ #include "swfdec_debug.h" SwfdecCache * -swfdec_cache_new (unsigned int max_size) +swfdec_cache_new (guint max_size) { SwfdecCache *cache; @@ -62,7 +62,7 @@ swfdec_cache_unref (SwfdecCache *cache) g_free (cache); } -unsigned int +guint swfdec_cache_get_usage (SwfdecCache *cache) { g_return_val_if_fail (cache != NULL...
2007 Dec 10
0
5 commits - libswfdec/jpeg libswfdec/swfdec_as_interpret.c libswfdec/swfdec_bits.c libswfdec/swfdec_cached.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec_audio.c libswfdec/swfdec_flash_security.c libswfdec/swfdec_image.c
...t gnome.org> Date: Mon Dec 10 22:37:29 2007 +0100 silence invalid alignment warnings diff --git a/libswfdec/swfdec_cached.c b/libswfdec/swfdec_cached.c index e49d42a..4279d1e 100644 --- a/libswfdec/swfdec_cached.c +++ b/libswfdec/swfdec_cached.c @@ -72,7 +72,7 @@ swfdec_cached_set_cache (SwfdecCached *cached, SwfdecCache *cache) static void swfdec_cached_unload_func (gpointer data) { - SwfdecCached *cached = SWFDEC_CACHED ((guint8 *) data - G_STRUCT_OFFSET (SwfdecCached, handle)); + SwfdecCached *cached = SWFDEC_CACHED ((void *) ((guint8 *) data - G_STRUCT_OFFSET (SwfdecCached, handle)))...
2007 Mar 29
0
Branch 'as' - 9 commits - libswfdec-gtk/swfdec_playback_alsa.c libswfdec/js libswfdec/Makefile.am libswfdec/swfdec_as_context.c libswfdec/swfdec_as_context.h libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame.h libswfdec/swfdec_as_function.c
...Queue * queue); void swfdec_buffer_queue_unref (SwfdecBufferQueue * queue); #endif diff --git a/libswfdec/swfdec_cache.c b/libswfdec/swfdec_cache.c index 0620b51..09d58a0 100644 --- a/libswfdec/swfdec_cache.c +++ b/libswfdec/swfdec_cache.c @@ -26,7 +26,7 @@ #include "swfdec_debug.h" SwfdecCache * -swfdec_cache_new (unsigned int max_size) +swfdec_cache_new (guint max_size) { SwfdecCache *cache; @@ -62,7 +62,7 @@ swfdec_cache_unref (SwfdecCache *cache) g_free (cache); } -unsigned int +guint swfdec_cache_get_usage (SwfdecCache *cache) { g_return_val_if_fail (cache != NULL...
2007 Apr 03
0
11 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec-gtk/swfdec_source.c libswfdec/swfdec_cached.c libswfdec/swfdec_font.c libswfdec/swfdec_morphshape.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_script.c
...ec_font_parent_class)->dispose (object); } static void diff-tree 23af06e2fcd39f80bd13b10ee02d57eb7b0e9aee (from 9068d5785dee8a9575cbf88e8b8813a0a69d9d89) Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Apr 3 09:44:35 2007 +0200 Unref the cached value when disposing the SwfdecCached. diff --git a/libswfdec/swfdec_cached.c b/libswfdec/swfdec_cached.c index aa6a694..b7216e6 100644 --- a/libswfdec/swfdec_cached.c +++ b/libswfdec/swfdec_cached.c @@ -32,7 +32,7 @@ swfdec_cached_dispose (GObject *object) { SwfdecCached * cached = SWFDEC_CACHED (object); - swfdec_cached_unl...
2007 Nov 10
1
3 commits - libswfdec/swfdec_image.c libswfdec/swfdec_image.h
...swfdec_image.c @@ -33,6 +33,7 @@ #include "swfdec_debug.h" #include "swfdec_swf_decoder.h" +static const cairo_user_data_key_t key; static void merge_alpha (SwfdecImage * image, unsigned char *image_data, unsigned char *alpha); @@ -50,10 +51,7 @@ swfdec_image_unload (SwfdecCached *cached) if (image->surface) { cairo_surface_destroy (image->surface); image->surface = NULL; - } else if (image->data) { - g_free (image->data); } - image->data = NULL; } static void @@ -171,25 +169,28 @@ static void swfdec_image_jpeg_load (SwfdecImage...
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
...: check if these events are based on conditions or if they're independant of button type */ diff --git a/libswfdec/swfdec_cached.c b/libswfdec/swfdec_cached.c index b7216e6..37b5737 100644 --- a/libswfdec/swfdec_cached.c +++ b/libswfdec/swfdec_cached.c @@ -71,7 +71,7 @@ swfdec_cached_set_cache (SwfdecCached *c static void swfdec_cached_unload_func (gpointer data) { - SwfdecCached *cached = SWFDEC_CACHED (data - G_STRUCT_OFFSET (SwfdecCached, handle)); + SwfdecCached *cached = SWFDEC_CACHED ((guint8 *) data - G_STRUCT_OFFSET (SwfdecCached, handle)); cached->handle.unload = NULL; swfde...
2007 Feb 17
0
2 commits - doc/swfdec-sections.txt libswfdec/swfdec_color.h libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c
...Otte <otte@gnome.org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -46,6 +46,8 @@ struct _SwfdecPlayer unsigned int height; /* height of movie */ GList * roots; /* all the root movies */ SwfdecCache * cache; /* player cache */ + gboolean bgcolor_set; /* TRUE if the background color has been set */ + SwfdecColor bgcolor; /* background color */ /* javascript */ JSContext * jscx; /* global Javascript context */ diff --git a/libswfdec/swfdec_sprite.c b/libswfdec/swfdec_sprite....
2007 Jun 08
0
Changes to 'refs/tags/0.4.2'
...s as far as we need them apparently we need even more const Add a SwfdecScriptable class that functions as the frontend for objects accessible from AS make SwfdecNetStream a SwfdecScriptable (nothing else changed) call unload function after adjusting size add new class SwfdecCached rename swfdec_cached_reload to swfdec_cached_use use the cache get the codec out of SwfdecSound and into the audio objects Add skeleton for interpreter remove leftover code from when the root movie contained the root script add the SwfdecSCript to the stack fra...
2007 Nov 08
0
libswfdec/swfdec_load_object.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_resource.c libswfdec/swfdec_resource.h
...t; /* height of movie */ GList * roots; /* all the root movies */ - GList * load_objects; /* all the load objects */ + GList * rooted_objects; /* all the objects we keep track of */ GSList * resource_requests; /* all external requested URIs - see swfdec_resource_request.[ch] */ SwfdecCache * cache; /* player cache */ gboolean bgcolor_set; /* TRUE if the background color has been set */ @@ -161,6 +161,10 @@ void swfdec_player_unlock (SwfdecPlayer * player); void swfdec_player_unlock_soft (SwfdecPlayer * player); void swfdec_player_perform_actions (SwfdecPlayer * play...
2007 Apr 27
0
Changes to 'refs/tags/0.4.4'
...s as far as we need them apparently we need even more const Add a SwfdecScriptable class that functions as the frontend for objects accessible from AS make SwfdecNetStream a SwfdecScriptable (nothing else changed) call unload function after adjusting size add new class SwfdecCached rename swfdec_cached_reload to swfdec_cached_use use the cache get the codec out of SwfdecSound and into the audio objects Add skeleton for interpreter remove leftover code from when the root movie contained the root script add the SwfdecSCript to the stack fra...
2007 Feb 06
0
21 commits - configure.ac libswfdec/swfdec_audio_event.c libswfdec/swfdec_bits.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_compiler.c libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c
...lor transforms - implement swfdec_image_get_surface_transformed - use it in the image pattern diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c index 0cf6502..e276508 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -50,7 +50,10 @@ swfdec_image_unload (SwfdecCached *cache if (image->surface) { cairo_surface_destroy (image->surface); image->surface = NULL; + } else if (image->data) { + g_free (image->data); } + image->data = NULL; } static void @@ -185,24 +188,9 @@ tag_func_define_bits_jpeg (SwfdecSwfDeco } stat...
2007 Feb 06
0
Branch 'interpreter' - 8 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_color.c libswfdec/swfdec_color.h libswfdec/swfdec_edittext.c libswfdec/swfdec_image.c libswfdec/swfdec_image.h libswfdec/swfdec_pattern.c libswfdec/swfdec_sprite.c test/dump.c
...lor transforms - implement swfdec_image_get_surface_transformed - use it in the image pattern diff --git a/libswfdec/swfdec_image.c b/libswfdec/swfdec_image.c index 0cf6502..e276508 100644 --- a/libswfdec/swfdec_image.c +++ b/libswfdec/swfdec_image.c @@ -50,7 +50,10 @@ swfdec_image_unload (SwfdecCached *cache if (image->surface) { cairo_surface_destroy (image->surface); image->surface = NULL; + } else if (image->data) { + g_free (image->data); } + image->data = NULL; } static void @@ -185,24 +188,9 @@ tag_func_define_bits_jpeg (SwfdecSwfDeco } stat...
2007 Nov 08
0
configure.ac libswfdec-gtk/swfdec_gtk_widget.c libswfdec-gtk/swfdec_playback_alsa.c libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_types.c libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_flv.h
...;codec); + sound->codec = SWFDEC_AUDIO_CODEC_UNDEFINED; } return SWFDEC_STATUS_OK; diff --git a/libswfdec/swfdec_sound.h b/libswfdec/swfdec_sound.h index abcf5ad..75e917e 100644 --- a/libswfdec/swfdec_sound.h +++ b/libswfdec/swfdec_sound.h @@ -63,7 +63,7 @@ struct _SwfdecSound { SwfdecCached cached; - SwfdecAudioCodec codec; /* codec in use */ + guint codec; /* codec in use */ SwfdecAudioFormat format; /* channel/rate/width information for codec */ guint n_samples; /* total number of samples when decoded to 44100kHz */ guint skip; /* samples to ski...
2007 Apr 04
0
Branch 'as' - 17 commits - configure.ac doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt doc/swfdec.types libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_loader.h
...ec_font_parent_class)->dispose (object); } static void diff-tree 23af06e2fcd39f80bd13b10ee02d57eb7b0e9aee (from 9068d5785dee8a9575cbf88e8b8813a0a69d9d89) Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Tue Apr 3 09:44:35 2007 +0200 Unref the cached value when disposing the SwfdecCached. diff --git a/libswfdec/swfdec_cached.c b/libswfdec/swfdec_cached.c index aa6a694..b7216e6 100644 --- a/libswfdec/swfdec_cached.c +++ b/libswfdec/swfdec_cached.c @@ -32,7 +32,7 @@ swfdec_cached_dispose (GObject *object) { SwfdecCached * cached = SWFDEC_CACHED (object); - swfdec_cached_unl...
2007 Nov 01
0
3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
...r_internal.h @@ -62,6 +62,7 @@ struct _SwfdecPlayer guint height; /* height of movie */ GList * roots; /* all the root movies */ GList * load_objects; /* all the load objects */ + GSList * resource_requests; /* all external requested URIs - see swfdec_resource_request.[ch] */ SwfdecCache * cache; /* player cache */ gboolean bgcolor_set; /* TRUE if the background color has been set */ SwfdecColor bgcolor; /* background color */ @@ -201,19 +202,21 @@ void swfdec_player_stop_sounds (SwfdecPlayer * player, SwfdecAudioRemoveFunc func, gpointer data); vo...
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
...t; /* height of movie */ + gboolean initialized; /* if width and height are set already */ + guint rate; /* divide by 256 to get iterations per second */ + guint width; /* width of movie */ + guint height; /* height of movie */ GList * roots; /* all the root movies */ SwfdecCache * cache; /* player cache */ gboolean bgcolor_set; /* TRUE if the background color has been set */ diff --git a/libswfdec/swfdec_swf_decoder.c b/libswfdec/swfdec_swf_decoder.c index 97f6965..f8a34b1 100644 --- a/libswfdec/swfdec_swf_decoder.c +++ b/libswfdec/swfdec_swf_decoder.c @@ -194,9 +...
2007 Aug 18
0
8 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_load_object_as.c libswfdec/swfdec_load_object_as.h libswfdec/swfdec_load_object.c libswfdec/swfdec_load_object.h libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h
...swfdec/swfdec_player_internal.h +++ b/libswfdec/swfdec_player_internal.h @@ -56,6 +56,7 @@ struct _SwfdecPlayer guint width; /* width of movie */ guint height; /* height of movie */ GList * roots; /* all the root movies */ + GList * load_objects; /* all the load objects */ SwfdecCache * cache; /* player cache */ gboolean bgcolor_set; /* TRUE if the background color has been set */ SwfdecColor bgcolor; /* background color */ diff --git a/libswfdec/swfdec_xml.c b/libswfdec/swfdec_xml.c deleted file mode 100644 index c418ca4..0000000 --- a/libswfdec/swfdec_xml.c +++ /...
2007 Apr 27
0
Changes to 'refs/tags/0.4.3'
...s as far as we need them apparently we need even more const Add a SwfdecScriptable class that functions as the frontend for objects accessible from AS make SwfdecNetStream a SwfdecScriptable (nothing else changed) call unload function after adjusting size add new class SwfdecCached rename swfdec_cached_reload to swfdec_cached_use use the cache get the codec out of SwfdecSound and into the audio objects Add skeleton for interpreter remove leftover code from when the root movie contained the root script add the SwfdecSCript to the stack fra...
2007 Mar 01
0
11 commits - libswfdec/Makefile.am libswfdec/swfdec_connection.c libswfdec/swfdec_connection.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js_connection.c libswfdec/swfdec_js.h libswfdec/swfdec_js_net_stream.c
..., 0, loader, variables); swfdec_loader_parse (loader); } diff --git a/libswfdec/swfdec_player_internal.h b/libswfdec/swfdec_player_internal.h index 2e63b78..6d40273 100644 --- a/libswfdec/swfdec_player_internal.h +++ b/libswfdec/swfdec_player_internal.h @@ -49,6 +49,7 @@ struct _SwfdecPlayer SwfdecCache * cache; /* player cache */ gboolean bgcolor_set; /* TRUE if the background color has been set */ SwfdecColor bgcolor; /* background color */ + SwfdecLoader * loader; /* initial loader */ /* javascript */ JSContext * jscx; /* global Javascript context */ @@ -139,6 +140,8...