Lines Matching refs:ogg
136 gst_ogg_avi_parse_init (GstOggAviParse * ogg) in gst_ogg_avi_parse_init() argument
139 ogg->sinkpad = in gst_ogg_avi_parse_init()
142 gst_pad_set_event_function (ogg->sinkpad, gst_ogg_avi_parse_event); in gst_ogg_avi_parse_init()
143 gst_pad_set_chain_function (ogg->sinkpad, gst_ogg_avi_parse_chain); in gst_ogg_avi_parse_init()
144 gst_element_add_pad (GST_ELEMENT (ogg), ogg->sinkpad); in gst_ogg_avi_parse_init()
146 ogg->srcpad = in gst_ogg_avi_parse_init()
149 gst_pad_use_fixed_caps (ogg->srcpad); in gst_ogg_avi_parse_init()
150 gst_element_add_pad (GST_ELEMENT (ogg), ogg->srcpad); in gst_ogg_avi_parse_init()
156 GstOggAviParse *ogg = GST_OGG_AVI_PARSE (object); in gst_ogg_avi_parse_finalize() local
158 GST_LOG_OBJECT (ogg, "Disposing of object %p", ogg); in gst_ogg_avi_parse_finalize()
160 ogg_sync_clear (&ogg->sync); in gst_ogg_avi_parse_finalize()
161 ogg_stream_clear (&ogg->stream); in gst_ogg_avi_parse_finalize()
169 GstOggAviParse *ogg; in gst_ogg_avi_parse_setcaps() local
180 ogg = GST_OGG_AVI_PARSE (GST_OBJECT_PARENT (pad)); in gst_ogg_avi_parse_setcaps()
204 GST_LOG_OBJECT (ogg, "configuring codec_data of size %" G_GSIZE_FORMAT, left); in gst_ogg_avi_parse_setcaps()
219 GST_DEBUG_OBJECT (ogg, "header sizes: %u %u %u", sizes[0], sizes[1], in gst_ogg_avi_parse_setcaps()
230 gst_pad_set_caps (ogg->srcpad, outcaps); in gst_ogg_avi_parse_setcaps()
240 gst_pad_push (ogg->srcpad, out); in gst_ogg_avi_parse_setcaps()
251 GST_DEBUG_OBJECT (ogg, "no codec_data found in caps"); in gst_ogg_avi_parse_setcaps()
256 GST_DEBUG_OBJECT (ogg, "codec_data is not a buffer"); in gst_ogg_avi_parse_setcaps()
261 GST_DEBUG_OBJECT (ogg, "codec_data is too small"); in gst_ogg_avi_parse_setcaps()
270 GstOggAviParse *ogg; in gst_ogg_avi_parse_event() local
273 ogg = GST_OGG_AVI_PARSE (parent); in gst_ogg_avi_parse_event()
286 ret = gst_pad_push_event (ogg->srcpad, event); in gst_ogg_avi_parse_event()
289 ogg_sync_reset (&ogg->sync); in gst_ogg_avi_parse_event()
290 ogg_stream_reset (&ogg->stream); in gst_ogg_avi_parse_event()
291 ogg->discont = TRUE; in gst_ogg_avi_parse_event()
292 ret = gst_pad_push_event (ogg->srcpad, event); in gst_ogg_avi_parse_event()
295 ret = gst_pad_push_event (ogg->srcpad, event); in gst_ogg_avi_parse_event()
302 gst_ogg_avi_parse_push_packet (GstOggAviParse * ogg, ogg_packet * packet) in gst_ogg_avi_parse_push_packet() argument
311 GST_LOG_OBJECT (ogg, "created buffer %p from page", buffer); in gst_ogg_avi_parse_push_packet()
315 if (ogg->discont) { in gst_ogg_avi_parse_push_packet()
317 ogg->discont = FALSE; in gst_ogg_avi_parse_push_packet()
320 result = gst_pad_push (ogg->srcpad, buffer); in gst_ogg_avi_parse_push_packet()
329 GstOggAviParse *ogg; in gst_ogg_avi_parse_chain() local
334 ogg = GST_OGG_AVI_PARSE (parent); in gst_ogg_avi_parse_chain()
338 GST_LOG_OBJECT (ogg, "Chain function received buffer of size %d", size); in gst_ogg_avi_parse_chain()
341 ogg_sync_reset (&ogg->sync); in gst_ogg_avi_parse_chain()
342 ogg->discont = TRUE; in gst_ogg_avi_parse_chain()
346 oggbuf = ogg_sync_buffer (&ogg->sync, size); in gst_ogg_avi_parse_chain()
348 ogg_sync_wrote (&ogg->sync, size); in gst_ogg_avi_parse_chain()
356 ret = ogg_sync_pageout (&ogg->sync, &page); in gst_ogg_avi_parse_chain()
358 GST_DEBUG_OBJECT (ogg, "need more data"); in gst_ogg_avi_parse_chain()
361 GST_DEBUG_OBJECT (ogg, "discont in pages"); in gst_ogg_avi_parse_chain()
362 ogg->discont = TRUE; in gst_ogg_avi_parse_chain()
366 if (ogg->serial == -1) { in gst_ogg_avi_parse_chain()
367 ogg->serial = ogg_page_serialno (&page); in gst_ogg_avi_parse_chain()
368 ogg_stream_init (&ogg->stream, ogg->serial); in gst_ogg_avi_parse_chain()
372 if (ogg_stream_pagein (&ogg->stream, &page) != 0) { in gst_ogg_avi_parse_chain()
373 GST_WARNING_OBJECT (ogg, "ogg stream choked on page resetting stream"); in gst_ogg_avi_parse_chain()
374 ogg_sync_reset (&ogg->sync); in gst_ogg_avi_parse_chain()
375 ogg->discont = TRUE; in gst_ogg_avi_parse_chain()
383 ret = ogg_stream_packetout (&ogg->stream, &packet); in gst_ogg_avi_parse_chain()
384 GST_LOG_OBJECT (ogg, "packetout gave %d", ret); in gst_ogg_avi_parse_chain()
390 ogg->discont = TRUE; in gst_ogg_avi_parse_chain()
393 result = gst_ogg_avi_parse_push_packet (ogg, &packet); in gst_ogg_avi_parse_chain()
398 GST_WARNING_OBJECT (ogg, in gst_ogg_avi_parse_chain()
416 GstOggAviParse *ogg; in gst_ogg_avi_parse_change_state() local
419 ogg = GST_OGG_AVI_PARSE (element); in gst_ogg_avi_parse_change_state()
423 ogg_sync_init (&ogg->sync); in gst_ogg_avi_parse_change_state()
426 ogg_sync_reset (&ogg->sync); in gst_ogg_avi_parse_change_state()
427 ogg_stream_reset (&ogg->stream); in gst_ogg_avi_parse_change_state()
428 ogg->serial = -1; in gst_ogg_avi_parse_change_state()
429 ogg->discont = TRUE; in gst_ogg_avi_parse_change_state()
445 ogg_sync_clear (&ogg->sync); in gst_ogg_avi_parse_change_state()