Displaying 9 results from an estimated 9 matches for "swfdecvideomovieinput".
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
...IE (movie));
}
diff --git a/libswfdec/swfdec_video_movie.h b/libswfdec/swfdec_video_movie.h
index 9db5d45..87ee9c9 100644
--- a/libswfdec/swfdec_video_movie.h
+++ b/libswfdec/swfdec_video_movie.h
@@ -54,7 +54,9 @@ struct _SwfdecVideoMovie {
SwfdecVideo * video; /* video we play back */
SwfdecVideoMovieInput *input; /* where we take the input from */
- cairo_surface_t * image; /* TRUE if cleared */
+ cairo_surface_t * image; /* current image or NULL */
+ guint image_width; /* width of current image */
+ guint image_height; /* height of current image */
};
struct _SwfdecVideoMovieClass {...
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
...oid *) ((guchar *) timeout - G_STRUCT_OFFSET (SwfdecNetStream, timeout)));
SWFDEC_LOG ("timeout fired");
stream->timeout.callback = NULL;
@@ -322,7 +322,7 @@ swfdec_net_stream_loader_target_init (SwfdecLoaderTargetInterface *iface)
static void
swfdec_net_stream_input_connect (SwfdecVideoMovieInput *input, SwfdecVideoMovie *movie)
{
- SwfdecNetStream *stream = SWFDEC_NET_STREAM ((guchar *) input - G_STRUCT_OFFSET (SwfdecNetStream, input));
+ SwfdecNetStream *stream = SWFDEC_NET_STREAM ((void *)((guchar *) input - G_STRUCT_OFFSET (SwfdecNetStream, input)));
stream->movies = g_list_p...
2007 Oct 18
0
18 commits - doc/swfdec-sections.txt libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_as_strings.c libswfdec/swfdec_button_movie.c libswfdec/swfdec_event.c libswfdec/swfdec_event.h libswfdec/swfdec_flash_security.c
...am->surface) {
GList *walk;
for (walk = stream->movies; walk; walk = walk->next) {
- swfdec_video_movie_new_image (walk->data, stream->surface);
+ swfdec_video_movie_new_image (walk->data);
}
}
}
@@ -350,6 +350,14 @@ swfdec_net_stream_input_disconnect (SwfdecVideoMovieInput *input, SwfdecVideoMov
g_object_unref (stream);
}
+static cairo_surface_t *
+swfdec_net_stream_input_get_image (SwfdecVideoMovieInput *input)
+{
+ SwfdecNetStream *stream = SWFDEC_NET_STREAM ((guchar *) input - G_STRUCT_OFFSET (SwfdecNetStream, input));
+
+ return stream->surface;
+}
+...
2007 Jun 27
0
Branch 'as' - 3 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_js_video.c libswfdec/swfdec_player.c libswfdec/swfdec_player_internal.h libswfdec/swfdec_video_movie_as.c libswfdec/swfdec_video_movie.c
..._video_movie_update_extents;
movie_class->render = swfdec_video_movie_render;
+ movie_class->init_movie = swfdec_video_movie_init_movie;
movie_class->iterate_end = swfdec_video_movie_iterate_end;
}
@@ -116,10 +126,11 @@ void
swfdec_video_movie_set_input (SwfdecVideoMovie *movie, SwfdecVideoMovieInput *input)
{
g_return_if_fail (SWFDEC_IS_VIDEO_MOVIE (movie));
- g_return_if_fail (input != NULL);
swfdec_video_movie_unset_input (movie);
movie->input = input;
+ if (input == NULL)
+ return;
if (input->connect)
input->connect (input, movie);
}
diff --git a/libswfdec...
2007 Apr 06
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_screen.c libswfdec/swfdec_codec_video.c
.../
- const SwfdecVideoCodec *codec; /* codec used to decode the video */
- gpointer decoder; /* decoder used for decoding */
+ SwfdecVideoDecoder * decoder; /* decoder used for decoding */
cairo_surface_t * surface; /* current image */
SwfdecTimeout timeout; /* timeout to advance to */
SwfdecVideoMovieInput input; /* used when attaching to a video movie */
diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c
index 70afa13..eb682b1 100644
--- a/libswfdec/swfdec_video.c
+++ b/libswfdec/swfdec_video.c
@@ -70,8 +70,6 @@ swfdec_video_input_iterate (SwfdecVideoM
{
SwfdecVideoInput *input =...
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
...gnome.org>
Date: Tue Apr 3 09:03:14 2007 +0200
fix a memleak
diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c
index f163ffd..a044606 100644
--- a/libswfdec/swfdec_video.c
+++ b/libswfdec/swfdec_video.c
@@ -119,16 +119,19 @@ swfdec_video_input_disconnect (SwfdecVid
static SwfdecVideoMovieInput *
swfdec_video_input_new (SwfdecVideo *video)
{
- SwfdecVideoInput *input = g_new0 (SwfdecVideoInput, 1);
-
+ SwfdecVideoInput *input;
+
if (video->n_frames == 0)
return NULL;
if (video->codec == NULL)
return NULL;
+ input = g_new0 (SwfdecVideoInput, 1);
if (video-&g...
2007 Dec 10
0
6 commits - libswfdec/Makefile.am libswfdec/swfdec_as_interpret.c libswfdec/swfdec_color_as.c libswfdec/swfdec_graphic_movie.c libswfdec/swfdec_image_decoder.c libswfdec/swfdec_morph_movie.c libswfdec/swfdec_movie_as_drawing.c
...,7 @@ swfdec_video_movie_set_ratio (SwfdecMovie *movie)
if (video->input->set_ratio) {
video->needs_update = TRUE;
- swfdec_movie_invalidate (movie);
+ swfdec_movie_invalidate_last (movie);
}
}
@@ -151,7 +151,7 @@ swfdec_video_movie_set_input (SwfdecVideoMovie *movie, SwfdecVideoMovieInput *in
if (input == NULL)
return;
if (movie->input->set_ratio) {
- swfdec_movie_invalidate (SWFDEC_MOVIE (movie));
+ swfdec_movie_invalidate_last (SWFDEC_MOVIE (movie));
}
movie->needs_update = TRUE;
if (input->connect)
@@ -167,7 +167,7 @@ swfdec_video_movie_clear...
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
...gnome.org>
Date: Tue Apr 3 09:03:14 2007 +0200
fix a memleak
diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c
index f163ffd..a044606 100644
--- a/libswfdec/swfdec_video.c
+++ b/libswfdec/swfdec_video.c
@@ -119,16 +119,19 @@ swfdec_video_input_disconnect (SwfdecVid
static SwfdecVideoMovieInput *
swfdec_video_input_new (SwfdecVideo *video)
{
- SwfdecVideoInput *input = g_new0 (SwfdecVideoInput, 1);
-
+ SwfdecVideoInput *input;
+
if (video->n_frames == 0)
return NULL;
if (video->codec == NULL)
return NULL;
+ input = g_new0 (SwfdecVideoInput, 1);
if (video-&g...
2008 Jan 21
0
70 commits - configure.ac libswfdec-gtk/Makefile.am libswfdec-gtk/swfdec-gtk.h libswfdec-gtk/swfdec_gtk_loader.c libswfdec-gtk/swfdec_gtk_player.c libswfdec-gtk/swfdec_gtk_socket.c libswfdec-gtk/swfdec_gtk_socket.h libswfdec-gtk/swfdec_playback_alsa.c
...ream_target_get_player;
+ iface->parse = swfdec_net_stream_stream_target_parse;
+ iface->close = swfdec_net_stream_stream_target_close;
+ iface->error = swfdec_net_stream_stream_target_error;
}
/*** SWFDEC VIDEO MOVIE INPUT ***/
@@ -348,7 +346,7 @@ swfdec_net_stream_input_get_image (SwfdecVideoMovieInput *input)
/*** SWFDEC_NET_STREAM ***/
G_DEFINE_TYPE_WITH_CODE (SwfdecNetStream, swfdec_net_stream, SWFDEC_TYPE_AS_OBJECT,
- G_IMPLEMENT_INTERFACE (SWFDEC_TYPE_LOADER_TARGET, swfdec_net_stream_loader_target_init))
+ G_IMPLEMENT_INTERFACE (SWFDEC_TYPE_STREAM_TARGET, swfdec_net_stream_stream_t...