Displaying 20 results from an estimated 69 matches for "swfdec_decod".
Did you mean:
swfdec_decoder
2007 Nov 12
0
13 commits - libswfdec/Makefile.am libswfdec/swfdec_decoder.c libswfdec/swfdec_decoder.h libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_image.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_image_decoder.h
libswfdec/Makefile.am | 2
libswfdec/swfdec_decoder.c | 16 ++++-
libswfdec/swfdec_decoder.h | 3
libswfdec/swfdec_flv_decoder.c | 19 +++---
libswfdec/swfdec_flv_decoder.h | 1
libswfdec/swfdec_image.c | 29 ++++++---
libswfdec/swfdec_image.h | 1
libswfdec/swfdec_image_decoder.c | 123 ++++++++++...
2007 Nov 07
0
7 commits - doc/swfdec-sections.txt libswfdec-gtk/swfdec_gtk_widget.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_decoder.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_movie_asprops.c libswfdec/swfdec_net_stream.c libswfdec/swfdec_player.c
doc/swfdec-sections.txt | 2
libswfdec-gtk/swfdec_gtk_widget.c | 7 +-
libswfdec/swfdec_as_strings.c | 3 +
libswfdec/swfdec_decoder.c | 2
libswfdec/swfdec_flv_decoder.c | 57 ----------------------
libswfdec/swfdec_movie_asprops.c | 31 ++++++------
libswfdec/swfdec_net_stream.c | 7 --
libswfdec/swfdec_player.c | 30 ++++++++++-
libswfdec/swfdec_player.h | 6 +-
libswfdec/swfde...
2007 Jun 19
0
Branch 'as' - test/dump.c
...FDEC_IMAGE (c));
}
if (SWFDEC_IS_SPRITE (c)) {
- dump_sprite (SWFDEC_SPRITE (c));
+ dump_sprite (dec, SWFDEC_SPRITE (c));
}
if (SWFDEC_IS_SHAPE(c)) {
dump_shape(SWFDEC_SHAPE(c));
@@ -408,12 +423,13 @@ main (int argc, char *argv[])
g_print (" rate : %g fps\n", SWFDEC_DECODER (s)->rate / 256.0);
g_print (" size : %ux%u pixels\n", SWFDEC_DECODER (s)->width, SWFDEC_DECODER (s)->height);
g_print ("objects:\n");
- g_hash_table_foreach (s->characters, dump_object, NULL);
+ g_hash_table_foreach (s->characters, dump_object, s);...
2007 Mar 14
0
10 commits - libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_flv_decoder.h libswfdec/swfdec_js_global.c libswfdec/swfdec_js_movie.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loadertarget.c
...E (parent)->player->jscx);
stream = swfdec_net_stream_new (SWFDEC_ROOT_MOVIE (parent)->player, conn);
+ stream->flvdecoder = flv;
swfdec_net_stream_set_loader (stream, SWFDEC_ROOT_MOVIE (parent)->loader);
- if (!swfdec_loader_target_set_decoder (SWFDEC_LOADER_TARGET (stream), SWFDEC_DECODER (flv))) {
- g_assert_not_reached ();
- }
swfdec_video_movie_set_input (SWFDEC_VIDEO_MOVIE (movie), &stream->input);
swfdec_net_stream_set_playing (stream, TRUE);
g_object_unref (conn);
diff --git a/libswfdec/swfdec_flv_decoder.h b/libswfdec/swfdec_flv_decoder.h
index d3c5e0b.....
2007 Jun 21
0
Branch 'as' - 5 commits - libswfdec/Makefile.am libswfdec/swfdec_as_strings.c libswfdec/swfdec_js_net_stream.c libswfdec/swfdec_movie.c libswfdec/swfdec_net_connection.c libswfdec/swfdec_net_stream_as.c libswfdec/swfdec_net_stream.c
...;
+ return SWFDEC_PLAYER (SWFDEC_AS_OBJECT (target)->context);
}
static void
@@ -207,7 +208,7 @@ swfdec_net_stream_loader_target_parse (S
if (stream->flvdecoder == NULL) {
/* FIXME: add mp3 support */
stream->flvdecoder = g_object_new (SWFDEC_TYPE_FLV_DECODER, NULL);
- SWFDEC_DECODER (stream->flvdecoder)->player = stream->player;
+ SWFDEC_DECODER (stream->flvdecoder)->player = SWFDEC_PLAYER (SWFDEC_AS_OBJECT (stream)->context);
SWFDEC_DECODER (stream->flvdecoder)->queue = loader->queue;
swfdec_net_stream_onstatus (stream, SWFDEC_AS_STR_...
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
...swfdec_as_strings.c | 5
libswfdec/swfdec_buffer.c | 25
libswfdec/swfdec_buffer.h | 1
libswfdec/swfdec_cached.c | 1
libswfdec/swfdec_codec_gst.c | 1
libswfdec/swfdec_decoder.c | 24
libswfdec/swfdec_decoder.h | 30
libswfdec/swfdec_flv_decoder.c | 66 -
libswfdec/swfdec_flv_decoder.h | 1
libswfdec/swfdec_image.c | 2
libswfdec/swfdec_init...
2007 Mar 05
0
11 commits - configure.ac libswfdec/swfdec_js_movie.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_root_movie.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_decoder.c
...3b4..c21d32d 100644
--- a/libswfdec/swfdec_root_movie.c
+++ b/libswfdec/swfdec_root_movie.c
@@ -25,6 +25,7 @@
#include <stdlib.h>
#include <string.h>
#include "swfdec_root_movie.h"
+#include "swfdec_character.h"
#include "swfdec_debug.h"
#include "swfdec_decoder.h"
#include "swfdec_flv_decoder.h"
@@ -126,6 +127,10 @@ swfdec_root_movie_dispose (GObject *obje
g_object_unref (root->decoder);
root->decoder = NULL;
}
+ if (root->character_data != NULL) {
+ g_hash_table_destroy (root->character_data);
+ root->...
2009 May 08
2
Porting SWFDec to Android
Hi,
I am planning to port latest SWFDec to android platform. The plans of mine
are after porting it should support playing of youtube videos, I have
downloaded the SWFDec package and plugin and installed the things but I am
not able to open youtube video on my Mozilla browser. I have gone through
the code in one of the files, while creating the decoders only "SWF",
"IMAGE"
2007 Jan 14
0
Changes to 'refs/tags/0.4.1'
...libswfdec/swfdec_codec_adpcm.c | 2
libswfdec/swfdec_codec_ffmpeg.c | 134 +++++++++-
libswfdec/swfdec_codec_mad.c | 2
libswfdec/swfdec_codec_screen.c | 198 +++++++++++++++
libswfdec/swfdec_compiler.c | 9
libswfdec/swfdec_debug.c | 4
libswfdec/swfdec_decoder.c | 6
libswfdec/swfdec_decoder.h | 4
libswfdec/swfdec_flv_decoder.c | 483 +++++++++++++++++++++++++++++++++++++
libswfdec/swfdec_flv_decoder.h | 73 +++++
libswfdec/swfdec_image.c | 171 ++++++++++---
libswfdec/swfdec_image.h | 37 ++
l...
2007 Feb 15
0
3 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_shape.c libswfdec/swfdec_tag.c
..._bits_get_u16 (bits);
+ id = swfdec_bits_get_u16 (&parse);
sprite = swfdec_swf_decoder_create_character (s, id, SWFDEC_TYPE_SPRITE);
if (!sprite)
return SWFDEC_STATUS_OK;
SWFDEC_LOG (" ID: %d", id);
- swfdec_sprite_set_n_frames (sprite, swfdec_bits_get_u16 (bits), SWFDEC_DECODER (s)->rate);
-
- parse = *bits;
+ swfdec_sprite_set_n_frames (sprite, swfdec_bits_get_u16 (&parse), SWFDEC_DECODER (s)->rate);
s->parse_sprite = sprite;
- while (1) {
+ do {
int x;
- int tag;
guint tag_len;
SwfdecBuffer *buffer;
SwfdecTagFunc *func;
-...
2007 Mar 16
0
libswfdec/swfdec_loader.c libswfdec/swfdec_loader.h libswfdec/swfdec_loader_internal.h libswfdec/swfdec_net_stream.c libswfdec/swfdec_root_movie.c libswfdec/swfdec_xml.c
...SwfdecLoader * loader,
const char * error);
diff --git a/libswfdec/swfdec_net_stream.c b/libswfdec/swfdec_net_stream.c
index 8840d78..1e69ac3 100644
--- a/libswfdec/swfdec_net_stream.c
+++ b/libswfdec/swfdec_net_stream.c
@@ -200,6 +200,7 @@ swfdec_net_stream_loader_target_parse (S
SWFDEC_DECODER (stream->flvdecoder)->player = stream->player;
SWFDEC_DECODER (stream->flvdecoder)->queue = loader->queue;
swfdec_net_stream_onstatus (stream, "NetStream.Play.Start", "status");
+ swfdec_loader_set_data_type (loader, SWFDEC_LOADER_DATA_FLV);
}...
2007 Nov 15
0
6 commits - libswfdec/compiler.c libswfdec/swfdec_as_date.h libswfdec/swfdec_text_format.c libswfdec/swfdec_xml.c test/dump.c test/render.c test/render-fast.c
...fast.c
+++ /dev/null
@@ -1,102 +0,0 @@
-#include <stdio.h>
-#include <fcntl.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <sys/stat.h>
-#include <glib.h>
-#include <swfdec.h>
-#include <swfdec_render.h>
-#include <swfdec_decoder.h>
-#include <swfdec_sprite.h>
-#include <swfdec_buffer.h>
-
-
-SwfdecDecoder *s;
-
-void read_swf_file(char *fn);
-
-int main (int argc, char *argv[])
-{
- char *fn = "it.swf";
-
- if(argc>=2){
- fn = argv[1];
- }
-
- read_swf_file(fn);
-
- return 0;
-}
-
-
-
-un...
2007 Mar 07
0
11 commits - libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_js_movie.c libswfdec/swfdec_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h libswfdec/swfdec_script.c libswfdec/swfdec_sprite.c libswfdec/swfdec_sprite.h
...IS_FONT (c)) {
+ dump_font (SWFDEC_FONT (c));
+ }
+ if (SWFDEC_IS_BUTTON (c)) {
+ dump_button (SWFDEC_BUTTON (c));
+ }
+ if (SWFDEC_IS_SOUND (c)) {
+ dump_sound (SWFDEC_SOUND (c));
}
}
@@ -406,7 +402,7 @@ main (int argc, char *argv[])
g_print (" rate : %g fps\n", SWFDEC_DECODER (s)->rate / 256.0);
g_print (" size : %ux%u pixels\n", SWFDEC_DECODER (s)->width, SWFDEC_DECODER (s)->height);
g_print ("objects:\n");
- dump_objects(s);
+ g_hash_table_foreach (s->characters, dump_object, NULL);
g_print ("main sprite:\n")...
2007 Jul 13
0
3 commits - configure.ac .gitignore libswfdec/swfdec_event.c libswfdec/swfdec_sprite_movie.c libswfdec/swfdec_swf_instance.c
...nce.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
#include <string.h>
#include "swfdec_swf_instance.h"
-#include "swfdec_as_object.h"
+#include "swfdec_as_internal.h"
#include "swfdec_character.h"
#include "swfdec_debug.h"
#include "swfdec_decoder.h"
diff-tree 4418099088be334fdd6f1a49500fd55f29ad20c2 (from 7cc9628502fc44902e0fbe812569c533b87a02b2)
Author: Benjamin Otte <otte at gnome.org>
Date: Fri Jul 13 23:02:18 2007 +0200
back to development
diff --git a/configure.ac b/configure.ac
index 1775f6e..881a73b 100644
--- a/...
2007 Apr 22
0
libswfdec/swfdec_swf_decoder.c
...swf_decoder.c
index ac39d6c..6c13e70 100644
--- a/libswfdec/swfdec_swf_decoder.c
+++ b/libswfdec/swfdec_swf_decoder.c
@@ -114,23 +114,28 @@ swfdec_swf_decoder_deflate_all (SwfdecSw
return TRUE;
}
-static void
+static gboolean
swf_inflate_init (SwfdecSwfDecoder * s)
{
SwfdecDecoder *dec = SWFDEC_DECODER (s);
z_stream *z;
int ret;
+ guint8 *data;
+ data = g_try_malloc (dec->bytes_total - 8);
+ if (data == NULL)
+ return FALSE;
+ s->uncompressed_buffer = swfdec_buffer_new_for_data (data, dec->bytes_total - 8);
z = &s->z;
z->zalloc = zalloc;
z->zfree =...
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
...TUS_OK;
- }
- if (sprite->init_action != NULL) {
- SWFDEC_ERROR ("sprite %u already has an init action", id);
- return SWFDEC_STATUS_OK;
- }
- name = g_strdup_printf ("InitAction %u", id);
- sprite->init_action = swfdec_script_new_for_context (SWFDEC_AS_CONTEXT (SWFDEC_DECODER (s)->player),
- bits, name, s->version);
- g_free (name);
- if (sprite->init_action) {
- swfdec_script_ref (sprite->init_action);
- swfdec_root_sprite_add_root_action (SWFDEC_ROOT_SPRITE (s->main_sprite),
- SWFDEC_ROOT_ACTION_INIT_SCRIPT, sprite->init_action);
- }...
2007 Feb 02
0
Branch 'interpreter' - 6 commits - libswfdec/swfdec_bits.c libswfdec/swfdec_compiler.c libswfdec/swfdec_sprite.c test/swfdec-extract.c
...bits_init (&action_bits, buffer);
if (event_flags & SWFDEC_EVENT_KEY_PRESS)
key_code = swfdec_bits_get_u8 (bits);
else
@@ -413,14 +416,13 @@ swfdec_spriteseg_place_object_2 (SwfdecS
}
if (content->events == NULL)
content->events = swfdec_event_list_new (SWFDEC_DECODER (s)->player);
- swfdec_event_list_parse (content->events, &s->b, s->version,
+ swfdec_event_list_parse (content->events, &action_bits, s->version,
event_flags, key_code, script_name);
- if (bits->ptr != save.ptr) {
- SWFDEC_ERROR ("record siz...
2007 Mar 02
0
12 commits - libswfdec/Makefile.am libswfdec/swfdec_audio_flv.c libswfdec/swfdec_flv_decoder.c libswfdec/swfdec_js.c libswfdec/swfdec_js.h libswfdec/swfdec_js_video.c libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h
...validate (SWFDEC_MOVIE (movie));
+}
+
SwfdecMovie *
swfdec_flv_decoder_add_movie (SwfdecFlvDecoder *flv, SwfdecMovie *parent)
{
@@ -463,18 +474,19 @@ swfdec_flv_decoder_add_movie (SwfdecFlvD
/* set up the video movie */
video = g_object_new (SWFDEC_TYPE_VIDEO, NULL);
- video->width = SWFDEC_DECODER (flv)->width;
- video->height = SWFDEC_DECODER (flv)->height;
+ video->width = G_MAXUINT;
+ video->height = G_MAXUINT;
content->graphic = SWFDEC_GRAPHIC (video);
movie = swfdec_movie_new (parent, content);
g_object_weak_ref (G_OBJECT (movie), (GWeakNotify) swfdec_con...
2007 Mar 16
0
5 commits - doc/Makefile.am doc/swfdec-docs.sgml doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c
...swfdec_audio_flv.h \
swfdec_audio_stream.h \
swfdec_bits.h \
swfdec_button.h \
swfdec_button_movie.h \
swfdec_cache.h \
+ swfdec_cached.h \
swfdec_character.h \
swfdec_codec.h \
swfdec_color.h \
- swfdec_compiler.h \
+ swfdec_connection.h \
swfdec_debug.h \
swfdec_debugger.h \
swfdec_decoder.h \
swfdec_edittext.h \
swfdec_edittext_movie.h \
swfdec_event.h \
+ swfdec_flv_decoder.h \
swfdec_font.h \
swfdec_graphic.h \
swfdec_graphic_movie.h \
swfdec_image.h \
swfdec_js.h \
+ swfdec_listener.h \
swfdec_loader_internal.h \
+ swfdec_loadertarget.h \
swfdec_marshal.h \...
2007 Mar 09
0
libswfdec/swfdec_root_sprite.c libswfdec/swfdec_root_sprite.h
...EC_ERROR ("character %u is not a sprite", id);
+ return SWFDEC_STATUS_OK;
+ }
+ if (sprite->init_action != NULL) {
+ SWFDEC_ERROR ("sprite %u already has an init action", id);
+ return SWFDEC_STATUS_OK;
+ }
+ sprite->init_action = swfdec_script_new_for_player (SWFDEC_DECODER (s)->player,
+ bits, "InitAction", s->version);
+ if (sprite->init_action) {
+ swfdec_script_ref (sprite->init_action);
+ swfdec_root_sprite_add_root_action (SWFDEC_ROOT_SPRITE (s->main_sprite),
+ SWFDEC_ROOT_ACTION_INIT_SCRIPT, sprite->init_action);
+ }
+...