Displaying 7 results from an estimated 7 matches for "swfdecvideoinput".
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
...ec/swfdec_video.c
@@ -59,26 +59,20 @@ swfdec_video_find_frame (SwfdecVideo *vi
typedef struct {
SwfdecVideoMovieInput input;
+ SwfdecVideoMovie * movie;
SwfdecVideo * video;
gpointer decoder;
guint current_frame;
- SwfdecBuffer * current_buffer;
- cairo_surface_t * surface;
} SwfdecVideoInput;
-static cairo_surface_t *
-swfdec_video_input_get_image (SwfdecVideoMovieInput *input_)
-{
- SwfdecVideoInput *input = (SwfdecVideoInput *) input_;
-
- return input->surface;
-}
-
static void
swfdec_video_input_iterate (SwfdecVideoMovieInput *input_)
{
SwfdecVideoInput *input = (Swfde...
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
...f --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->codec)
input->decoder = swfdec_video_codec_init (video->c...
2007 Feb 08
0
3 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_script.c libswfdec/swfdec_video.c
...etected. Also don't play if the video uses an
unsupported codec.
diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c
index 7d89860..867259c 100644
--- a/libswfdec/swfdec_video.c
+++ b/libswfdec/swfdec_video.c
@@ -130,14 +130,20 @@ swfdec_video_input_new (SwfdecVideo *vid
{
SwfdecVideoInput *input = g_new0 (SwfdecVideoInput, 1);
+ if (video->n_frames == 0)
+ return NULL;
+ if (video->codec == NULL)
+ return NULL;
+ if (video->codec)
+ input->decoder = swfdec_video_codec_init (video->codec);
+ if (input->decoder == NULL)
+ return NULL;
input->i...
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
...diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c
index 768babd..520960c 100644
--- a/libswfdec/swfdec_video.c
+++ b/libswfdec/swfdec_video.c
@@ -63,27 +63,52 @@ typedef struct {
SwfdecVideo * video;
gpointer decoder;
guint current_frame;
+ cairo_surface_t * surface;
} SwfdecVideoInput;
static void
-swfdec_video_input_iterate (SwfdecVideoMovieInput *input_)
+swfdec_video_input_set_ratio (SwfdecVideoMovieInput *input_, SwfdecVideoMovie *movie)
{
SwfdecVideoInput *input = (SwfdecVideoInput *) input_;
+ guint ratio = SWFDEC_MOVIE (movie)->original_ratio;
SwfdecBuffer *...
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
.../
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 = (SwfdecVideoInput *) input_;
SwfdecBuffer *buffer;
- static const cairo_user_data_key_t key;
- guint w, h;
cairo_surface_t *surface;
input->current_frame = (input->current_frame + 1) % input->video->n_frames;
@@ -81,17 +79,8 @@ swfdec_video_input_iterate (SwfdecVid...
2007 Apr 05
0
4 commits - libswfdec/swfdec_audio_flv.c libswfdec/swfdec_audio_stream.c libswfdec/swfdec_codec_adpcm.c libswfdec/swfdec_codec.c libswfdec/swfdec_codec_ffmpeg.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec.h libswfdec/swfdec_codec_mad.c
...dec_audio_codec_get_format (codec, decoder);
diff --git a/libswfdec/swfdec_video.c b/libswfdec/swfdec_video.c
index a044606..70afa13 100644
--- a/libswfdec/swfdec_video.c
+++ b/libswfdec/swfdec_video.c
@@ -127,7 +127,7 @@ swfdec_video_input_new (SwfdecVideo *vid
return NULL;
input = g_new0 (SwfdecVideoInput, 1);
if (video->codec)
- input->decoder = swfdec_video_codec_init (video->codec);
+ input->decoder = swfdec_video_codec_init (video->codec, video->format);
if (input->decoder == NULL) {
g_free (input);
return NULL;
diff-tree cfa44f89551fd40d78259a902c81875...
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
...f --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->codec)
input->decoder = swfdec_video_codec_init (video->c...