search for: srccaps

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

Did you mean: rcaps
2007 Oct 26
0
6 commits - configure.ac libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_codec_video.c player/swfplay.c
...ount; /* refcount (d'oh) */ + g_return_val_if_fail (GST_IS_BUFFER (buffer), NULL); - GstElement * pipeline; /* pipeline that is playing or NULL when done */ - SwfdecBuffer * in; /* next input buffer or NULL */ - SwfdecBufferQueue * out; /* all the stored output buffers */ - GstCaps * srccaps; /* caps to set on buffers */ - gboolean eof; /* we've pushed EOF */ - gboolean done; /* TRUE after decoding stopped (error or EOF) */ -}; + ret = swfdec_buffer_new (); + ret->data = GST_BUFFER_DATA (buffer); + ret->length = GST_BUFFER_SIZE (buffer); + ret->free = swfdec...
2007 Oct 28
0
9 commits - configure.ac libswfdec/swfdec_as_context.c libswfdec/swfdec_audio_internal.h libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c libswfdec/swfdec_sound.c
...udio_format_new (rate, channels, depth == 16 ? TRUE : FALSE); + return TRUE; +} + SwfdecAudioDecoder * swfdec_audio_decoder_gst_new (SwfdecAudioCodec type, SwfdecAudioFormat format) { @@ -389,7 +423,7 @@ swfdec_audio_decoder_gst_new (SwfdecAudioCodec type, SwfdecAudioFormat format) g_assert (srccaps); player = g_slice_new0 (SwfdecGstAudio); - player->decoder.format = swfdec_audio_format_new (44100, 2, TRUE); + player->decoder.format = SWFDEC_AUDIO_FORMAT_INVALID; player->decoder.pull = swfdec_audio_decoder_gst_pull; player->decoder.push = swfdec_audio_decoder_gst_push;...
2007 Oct 28
1
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_frame.c libswfdec/swfdec_as_frame_internal.h libswfdec/swfdec_as_object.c libswfdec/swfdec_codec_gst.c test/trace
...GstElement * pipeline; /* pipeline that is playing or NULL when done */ - SwfdecBuffer * in; /* next input buffer or NULL */ - GstBuffer * out; /* available output or NULL */ - int width; /* width of last output buffer */ - int height; /* height of last output buffer */ - GstCaps * srccaps; /* caps to set on buffers */ - gboolean out_next; /* wether the pipeline expects input or output */ - gboolean error; /* we're in an error state */ + gboolean error; + SwfdecGstDecoder dec; /* the decoder element */ + GstBuffer * last; /* last decoded buffer */ }; static void -...
2007 Apr 05
0
configure.ac libswfdec/Makefile.am libswfdec/swfdec_codec.c libswfdec/swfdec_codec_gst.c
...stElement * pipeline; /* pipeline that is playing or NULL when done */ + SwfdecBuffer * in; /* next input buffer or NULL */ + SwfdecBuffer * out; /* available output or NULL */ + int width; /* width of last output buffer */ + int height; /* height of last output buffer */ + GstCaps * srccaps; /* caps to set on buffers */ +}; + +static void +swfdec_gst_video_unref (gpointer data, GObject *unused) +{ + SwfdecGstVideo *player = data; + + if (!g_atomic_int_dec_and_test (&player->refcount)) + return; + g_cond_free (player->cond); + g_mutex_free (player->mutex); + gst_ca...
2007 Apr 08
0
libswfdec/swfdec_codec_audio.c libswfdec/swfdec_codec_gst.c
...signal when stuff below changes */ + volatile int refcount; /* refcount (d'oh) */ + + GstElement * pipeline; /* pipeline that is playing or NULL when done */ + SwfdecBuffer * in; /* next input buffer or NULL */ + SwfdecBufferQueue * out; /* all the stored output buffers */ + GstCaps * srccaps; /* caps to set on buffers */ + gboolean eof; /* we've pushed EOF */ + gboolean done; /* TRUE after decoding stopped (error or EOF) */ +}; + +static void +swfdec_gst_audio_unref (gpointer data, GObject *unused) +{ + SwfdecGstAudio *player = data; + + if (!g_atomic_int_dec_and_test...
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_codec_gst_fakesrc_handoff (GstEle g_mutex_unlock (player->mutex); return; } + g_print ("got one\n"); buf->data = g_memdup (player->in->data, player->in->length); buf->size = player->in->length; gst_buffer_set_caps (buf, player->srccaps); @@ -124,6 +125,7 @@ swfdec_codec_gst_fakesink_handoff (GstEl swfdec_cond_wait (player->cond, player->mutex); if (player->pipeline == NULL) return; + g_print ("put one\n"); player->out = swfdec_buffer_new (); player->out->data = g_memdup (buf->dat...
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
...ything below */ GCond * cond; /* cond used to signal when stuff below changes */ volatile int refcount; /* refcount (d'oh) */ @@ -48,6 +50,8 @@ struct _SwfdecGstVideo { int width; /* width of last output buffer */ int height; /* height of last output buffer */ GstCaps * srccaps; /* caps to set on buffers */ + gboolean out_next; /* wether the pipeline expects input or output */ + gboolean error; /* we're in an error state */ }; static void @@ -68,9 +72,9 @@ swfdec_gst_video_unref (gpointer data, G } static void -swfdec_codec_gst_video_finish (gpointer code...
2007 Oct 29
0
libswfdec/swfdec_codec_gst.c
...initialize video decoder as NULL diff --git a/libswfdec/swfdec_codec_gst.c b/libswfdec/swfdec_codec_gst.c index 35f00e5..2873e84 100644 --- a/libswfdec/swfdec_codec_gst.c +++ b/libswfdec/swfdec_codec_gst.c @@ -593,7 +593,7 @@ swfdec_video_decoder_gst_new (SwfdecVideoCodec codec) g_assert (srccaps); sinkcaps = swfdec_video_decoder_get_sink_caps (codec); - player = g_slice_new (SwfdecGstVideo); + player = g_slice_new0 (SwfdecGstVideo); player->decoder.decode = swfdec_video_decoder_gst_decode; player->decoder.free = swfdec_video_decoder_gst_free;
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 @@ -406,7 +406,7 @@ swfdec_audio_decoder_set_caps (GstPad *pad, GstCaps *caps) } SwfdecAudioDecoder * -swfdec_audio_decoder_gst_new (SwfdecAudioCodec type, SwfdecAudioFormat format) +swfdec_audio_decoder_gst_new (guint type, SwfdecAudioFormat format) { SwfdecGstAudio *player; GstCaps *srccaps, *sinkcaps; @@ -549,12 +549,14 @@ swfdec_video_decoder_gst_decode (SwfdecVideoDecoder *dec, SwfdecBuffer *buffer, image->rowstride[2] = image->rowstride[1]; g_assert (image->plane[2] + image->rowstride[2] * ALIGN (image->height, 2) / 2 == image->plane[0] + buf->si...