search for: swfdecvideoformat

Displaying 9 results from an estimated 9 matches for "swfdecvideoformat".

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 swfdec_codec_ffmpeg_video; #endif -extern const SwfdecVideoCodec swfdec_codec_gst_video; - /*** UNCOMPRESSED SOUND ***/ #define U8_FLAG (0x10000) @@ -144,38 +140,3 @@ swfdec_codec_get_audio (SwfdecAudioForma } } -const SwfdecVideoCodec * -swfdec_codec_get_video (SwfdecVideoFormat format) -{ - switch (format) { - case SWFDEC_VIDEO_FORMAT_SCREEN: - return &swfdec_codec_screen; -#ifdef HAVE_FFMPEG - return &swfdec_codec_ffmpeg_video; -#endif - SWFDEC_ERROR ("Screen video requires ffmpeg"); - return NULL; - case SWFDEC_VIDEO_FORMAT_H...
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
...SWFDEC_ERROR ("video codec %u not implemented yet", (guint) format); return NULL; diff --git a/libswfdec/swfdec_codec.h b/libswfdec/swfdec_codec.h index 58acaaf..a248170 100644 --- a/libswfdec/swfdec_codec.h +++ b/libswfdec/swfdec_codec.h @@ -46,34 +46,35 @@ typedef enum { } SwfdecVideoFormat; struct _SwfdecAudioCodec { - gpointer (* init) (gboolean width, - SwfdecAudioOut format); - SwfdecAudioOut (* get_format) (gpointer codec_data); + gpointer (* init) (SwfdecAudioFormat type, + gboolean width, + SwfdecAudioOut format); + SwfdecAudioOut (* get_format)...
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
...c_video_decoder_new (SwfdecVideoCodec codec) +swfdec_video_decoder_new (guint codec) { SwfdecVideoDecoder *ret; const char *list; @@ -302,15 +302,19 @@ swfdec_video_decoder_decode (SwfdecVideoDecoder *decoder, SwfdecBuffer *buffer) * Returns: the output format to use for this format **/ SwfdecVideoFormat -swfdec_video_codec_get_format (SwfdecVideoCodec codec) +swfdec_video_codec_get_format (guint codec) { switch (codec) { case SWFDEC_VIDEO_CODEC_H263: case SWFDEC_VIDEO_CODEC_VP6: case SWFDEC_VIDEO_CODEC_VP6_ALPHA: return SWFDEC_VIDEO_FORMAT_I420; - default: + case SW...
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
...libswfdec/swfdec_flv_decoder.c b/libswfdec/swfdec_flv_decoder.c index 31834a2..831641f 100644 --- a/libswfdec/swfdec_flv_decoder.c +++ b/libswfdec/swfdec_flv_decoder.c @@ -392,22 +392,33 @@ SwfdecBuffer * swfdec_flv_decoder_get_video (SwfdecFlvDecoder *flv, guint timestamp, gboolean keyframe, SwfdecVideoFormat *format, guint *real_timestamp, guint *next_timestamp) { - guint id; + guint id, offset; SwfdecFlvVideoTag *tag; g_return_val_if_fail (SWFDEC_IS_FLV_DECODER (flv), NULL); g_return_val_if_fail (flv->video != NULL, NULL); + if (flv->video->len == 0) { + if (next_timestamp...
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
...flv, - SwfdecMovie * parent); +gboolean swfdec_flv_decoder_is_eof (SwfdecFlvDecoder * flv); +void swfdec_flv_decoder_eof (SwfdecFlvDecoder * flv); + SwfdecBuffer * swfdec_flv_decoder_get_video (SwfdecFlvDecoder * flv, guint timestamp, gboolean keyframe, SwfdecVideoFormat * format, guint * real_timestamp, guint * next_timestamp); +gboolean swfdec_flv_decoder_get_video_info (SwfdecFlvDecoder * flv, + guint * first_timestamp, + guint * last_timestamp); SwfdecBuffer * swfdec_flv_decoder_get_audio (SwfdecFlvDecoder * flv,...
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
...ean width, + SwfdecAudioOut format); +#endif +#ifdef HAVE_GST +SwfdecAudioDecoder * swfdec_audio_decoder_gst_new (SwfdecAudioFormat type, + gboolean width, + SwfdecAudioOut format); +#endif + +/* video codecs */ + +SwfdecVideoDecoder * swfdec_video_decoder_screen_new (SwfdecVideoFormat format); +#ifdef HAVE_FFMPEG +SwfdecVideoDecoder * swfdec_video_decoder_ffmpeg_new (SwfdecVideoFormat format); +#endif +#ifdef HAVE_GST +SwfdecVideoDecoder * swfdec_video_decoder_gst_new (SwfdecVideoFormat format); +#endif + +/* AS engine setup code */ + +void swfdec_player_init_global (Swfdec...
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
...pixels */ - unsigned int height; /* height in pixels */ - unsigned int n_frames; /* length of movie */ + guint width; /* width in pixels */ + guint height; /* height in pixels */ + guint n_frames; /* length of movie */ GArray * images; /* actual images of the movie */ SwfdecVideoFormat format; /* format in use */
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
...pixels */ - unsigned int height; /* height in pixels */ - unsigned int n_frames; /* length of movie */ + guint width; /* width in pixels */ + guint height; /* height in pixels */ + guint n_frames; /* length of movie */ GArray * images; /* actual images of the movie */ SwfdecVideoFormat format; /* format in use */
2007 Oct 12
0
Changes to 'refs/tags/0.5.3'
...t actions work properly using the new lookup magic disable WARNING messages by default add tests for setTarget action changes fix swfdec_as_context_startup() to work on non-SwfdecPlayer objects giving VP6 a one-byte clamp size is NetStream specific, treat it like that. SwfdecVideoFormat => SwfdecVideoCodec SwfdecAudioFormat => SwfdecAudioCodec SwfdcAudioOut => SwfdecAudioFormat memleak rework video handling make GStreamer backend actually work, not just compile implement colorspace conversion without ffmpeg get rid of ffmpeg color...