Lines Matching refs:appsink
551 gst_app_sink_init (GstAppSink * appsink) in gst_app_sink_init() argument
555 priv = appsink->priv = gst_app_sink_get_instance_private (appsink); in gst_app_sink_init()
573 GstAppSink *appsink = GST_APP_SINK_CAST (obj); in gst_app_sink_dispose() local
574 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_dispose()
578 GST_OBJECT_LOCK (appsink); in gst_app_sink_dispose()
583 GST_OBJECT_UNLOCK (appsink); in gst_app_sink_dispose()
607 GstAppSink *appsink = GST_APP_SINK_CAST (obj); in gst_app_sink_finalize() local
608 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_finalize()
621 GstAppSink *appsink = GST_APP_SINK_CAST (object); in gst_app_sink_set_property() local
625 gst_app_sink_set_caps (appsink, gst_value_get_caps (value)); in gst_app_sink_set_property()
628 gst_app_sink_set_emit_signals (appsink, g_value_get_boolean (value)); in gst_app_sink_set_property()
631 gst_app_sink_set_max_buffers (appsink, g_value_get_uint (value)); in gst_app_sink_set_property()
634 gst_app_sink_set_drop (appsink, g_value_get_boolean (value)); in gst_app_sink_set_property()
637 gst_app_sink_set_buffer_list_support (appsink, in gst_app_sink_set_property()
641 gst_app_sink_set_wait_on_eos (appsink, g_value_get_boolean (value)); in gst_app_sink_set_property()
653 GstAppSink *appsink = GST_APP_SINK_CAST (object); in gst_app_sink_get_property() local
660 caps = gst_app_sink_get_caps (appsink); in gst_app_sink_get_property()
667 g_value_set_boolean (value, gst_app_sink_is_eos (appsink)); in gst_app_sink_get_property()
670 g_value_set_boolean (value, gst_app_sink_get_emit_signals (appsink)); in gst_app_sink_get_property()
673 g_value_set_uint (value, gst_app_sink_get_max_buffers (appsink)); in gst_app_sink_get_property()
676 g_value_set_boolean (value, gst_app_sink_get_drop (appsink)); in gst_app_sink_get_property()
680 gst_app_sink_get_buffer_list_support (appsink)); in gst_app_sink_get_property()
683 g_value_set_boolean (value, gst_app_sink_get_wait_on_eos (appsink)); in gst_app_sink_get_property()
694 GstAppSink *appsink = GST_APP_SINK_CAST (bsink); in gst_app_sink_unlock_start() local
695 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_unlock_start()
698 GST_DEBUG_OBJECT (appsink, "unlock start"); in gst_app_sink_unlock_start()
709 GstAppSink *appsink = GST_APP_SINK_CAST (bsink); in gst_app_sink_unlock_stop() local
710 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_unlock_stop()
713 GST_DEBUG_OBJECT (appsink, "unlock stop"); in gst_app_sink_unlock_stop()
722 gst_app_sink_flush_unlocked (GstAppSink * appsink) in gst_app_sink_flush_unlocked() argument
725 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_flush_unlocked()
727 GST_DEBUG_OBJECT (appsink, "flush stop appsink"); in gst_app_sink_flush_unlocked()
741 GstAppSink *appsink = GST_APP_SINK_CAST (psink); in gst_app_sink_start() local
742 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_start()
745 GST_DEBUG_OBJECT (appsink, "starting"); in gst_app_sink_start()
764 GstAppSink *appsink = GST_APP_SINK_CAST (psink); in gst_app_sink_stop() local
765 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_stop()
768 GST_DEBUG_OBJECT (appsink, "stopping"); in gst_app_sink_stop()
772 gst_app_sink_flush_unlocked (appsink); in gst_app_sink_stop()
786 GstAppSink *appsink = GST_APP_SINK_CAST (sink); in gst_app_sink_setcaps() local
787 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_setcaps()
790 GST_DEBUG_OBJECT (appsink, "receiving CAPS"); in gst_app_sink_setcaps()
803 GstAppSink *appsink = GST_APP_SINK_CAST (sink); in gst_app_sink_event() local
804 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_event()
806 GST_DEBUG_OBJECT (appsink, "%" GST_PTR_FORMAT, event); in gst_app_sink_event()
811 GST_DEBUG_OBJECT (appsink, "receiving SEGMENT"); in gst_app_sink_event()
821 GST_DEBUG_OBJECT (appsink, "receiving EOS"); in gst_app_sink_event()
860 callbacks->callbacks.eos (appsink, callbacks->user_data); in gst_app_sink_event()
862 g_signal_emit (appsink, gst_app_sink_signals[SIGNAL_EOS], 0); in gst_app_sink_event()
872 GST_DEBUG_OBJECT (appsink, "received FLUSH_START"); in gst_app_sink_event()
876 GST_DEBUG_OBJECT (appsink, "received FLUSH_STOP"); in gst_app_sink_event()
877 gst_app_sink_flush_unlocked (appsink); in gst_app_sink_event()
902 ret = callbacks->callbacks.new_event (appsink, callbacks->user_data); in gst_app_sink_event()
906 g_signal_emit (appsink, in gst_app_sink_event()
924 GstAppSink *appsink = GST_APP_SINK_CAST (psink); in gst_app_sink_preroll() local
925 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_preroll()
933 GST_DEBUG_OBJECT (appsink, "setting preroll buffer %p", buffer); in gst_app_sink_preroll()
945 res = callbacks->callbacks.new_preroll (appsink, callbacks->user_data); in gst_app_sink_preroll()
949 g_signal_emit (appsink, gst_app_sink_signals[SIGNAL_NEW_PREROLL], 0, in gst_app_sink_preroll()
959 GST_DEBUG_OBJECT (appsink, "we are flushing"); in gst_app_sink_preroll()
966 dequeue_object (GstAppSink * appsink) in dequeue_object() argument
968 GstAppSinkPrivate *priv = appsink->priv; in dequeue_object()
974 GST_DEBUG_OBJECT (appsink, "dequeued buffer/list %p", obj); in dequeue_object()
987 GST_DEBUG_OBJECT (appsink, "activating caps %" GST_PTR_FORMAT, caps); in dequeue_object()
997 GST_DEBUG_OBJECT (appsink, "activated segment %" GST_SEGMENT_FORMAT, in dequeue_object()
1009 dequeue_buffer (GstAppSink * appsink) in dequeue_buffer() argument
1014 obj = dequeue_object (appsink); in dequeue_buffer()
1031 GstAppSink *appsink = GST_APP_SINK_CAST (psink); in gst_app_sink_render_common() local
1032 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_render_common()
1047 GST_DEBUG_OBJECT (appsink, "activating pad caps %" GST_PTR_FORMAT, in gst_app_sink_render_common()
1051 GST_DEBUG_OBJECT (appsink, "pushing render buffer/list %p on queue (%d)", in gst_app_sink_render_common()
1059 if ((old = dequeue_buffer (appsink))) { in gst_app_sink_render_common()
1060 GST_DEBUG_OBJECT (appsink, "dropping old buffer/list %p", old); in gst_app_sink_render_common()
1064 GST_DEBUG_OBJECT (appsink, "waiting for free space, length %d >= %d", in gst_app_sink_render_common()
1099 ret = callbacks->callbacks.new_sample (appsink, callbacks->user_data); in gst_app_sink_render_common()
1103 g_signal_emit (appsink, gst_app_sink_signals[SIGNAL_NEW_SAMPLE], 0, &ret); in gst_app_sink_render_common()
1111 GST_DEBUG_OBJECT (appsink, "we are flushing"); in gst_app_sink_render_common()
1117 GST_DEBUG_OBJECT (appsink, "we are stopping"); in gst_app_sink_render_common()
1133 GstAppSink *appsink; in gst_app_sink_render_list() local
1137 appsink = GST_APP_SINK_CAST (sink); in gst_app_sink_render_list()
1139 if (appsink->priv->buffer_lists_supported) in gst_app_sink_render_list()
1163 GstAppSink *appsink = GST_APP_SINK_CAST (psink); in gst_app_sink_getcaps() local
1164 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_getcaps()
1166 GST_OBJECT_LOCK (appsink); in gst_app_sink_getcaps()
1173 GST_DEBUG_OBJECT (appsink, "got caps %" GST_PTR_FORMAT, caps); in gst_app_sink_getcaps()
1174 GST_OBJECT_UNLOCK (appsink); in gst_app_sink_getcaps()
1182 GstAppSink *appsink = GST_APP_SINK_CAST (bsink); in gst_app_sink_query() local
1183 GstAppSinkPrivate *priv = appsink->priv; in gst_app_sink_query()
1190 GST_DEBUG_OBJECT (appsink, "waiting buffers to be consumed"); in gst_app_sink_query()
1247 gst_app_sink_set_caps (GstAppSink * appsink, const GstCaps * caps) in gst_app_sink_set_caps() argument
1252 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_caps()
1254 priv = appsink->priv; in gst_app_sink_set_caps()
1256 GST_OBJECT_LOCK (appsink); in gst_app_sink_set_caps()
1257 GST_DEBUG_OBJECT (appsink, "setting caps to %" GST_PTR_FORMAT, caps); in gst_app_sink_set_caps()
1266 GST_OBJECT_UNLOCK (appsink); in gst_app_sink_set_caps()
1278 gst_app_sink_get_caps (GstAppSink * appsink) in gst_app_sink_get_caps() argument
1283 g_return_val_if_fail (GST_IS_APP_SINK (appsink), NULL); in gst_app_sink_get_caps()
1285 priv = appsink->priv; in gst_app_sink_get_caps()
1287 GST_OBJECT_LOCK (appsink); in gst_app_sink_get_caps()
1290 GST_DEBUG_OBJECT (appsink, "getting caps of %" GST_PTR_FORMAT, caps); in gst_app_sink_get_caps()
1291 GST_OBJECT_UNLOCK (appsink); in gst_app_sink_get_caps()
1309 gst_app_sink_is_eos (GstAppSink * appsink) in gst_app_sink_is_eos() argument
1314 g_return_val_if_fail (GST_IS_APP_SINK (appsink), FALSE); in gst_app_sink_is_eos()
1316 priv = appsink->priv; in gst_app_sink_is_eos()
1323 GST_DEBUG_OBJECT (appsink, "we are EOS and the queue is empty"); in gst_app_sink_is_eos()
1326 GST_DEBUG_OBJECT (appsink, "we are not yet EOS"); in gst_app_sink_is_eos()
1335 GST_DEBUG_OBJECT (appsink, "we are stopped, return TRUE"); in gst_app_sink_is_eos()
1351 gst_app_sink_set_emit_signals (GstAppSink * appsink, gboolean emit) in gst_app_sink_set_emit_signals() argument
1355 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_emit_signals()
1357 priv = appsink->priv; in gst_app_sink_set_emit_signals()
1374 gst_app_sink_get_emit_signals (GstAppSink * appsink) in gst_app_sink_get_emit_signals() argument
1379 g_return_val_if_fail (GST_IS_APP_SINK (appsink), FALSE); in gst_app_sink_get_emit_signals()
1381 priv = appsink->priv; in gst_app_sink_get_emit_signals()
1400 gst_app_sink_set_max_buffers (GstAppSink * appsink, guint max) in gst_app_sink_set_max_buffers() argument
1404 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_max_buffers()
1406 priv = appsink->priv; in gst_app_sink_set_max_buffers()
1426 gst_app_sink_get_max_buffers (GstAppSink * appsink) in gst_app_sink_get_max_buffers() argument
1431 g_return_val_if_fail (GST_IS_APP_SINK (appsink), 0); in gst_app_sink_get_max_buffers()
1433 priv = appsink->priv; in gst_app_sink_get_max_buffers()
1451 gst_app_sink_set_drop (GstAppSink * appsink, gboolean drop) in gst_app_sink_set_drop() argument
1455 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_drop()
1457 priv = appsink->priv; in gst_app_sink_set_drop()
1479 gst_app_sink_get_drop (GstAppSink * appsink) in gst_app_sink_get_drop() argument
1484 g_return_val_if_fail (GST_IS_APP_SINK (appsink), FALSE); in gst_app_sink_get_drop()
1486 priv = appsink->priv; in gst_app_sink_get_drop()
1508 gst_app_sink_set_buffer_list_support (GstAppSink * appsink, in gst_app_sink_set_buffer_list_support() argument
1513 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_buffer_list_support()
1515 priv = appsink->priv; in gst_app_sink_set_buffer_list_support()
1535 gst_app_sink_get_buffer_list_support (GstAppSink * appsink) in gst_app_sink_get_buffer_list_support() argument
1540 g_return_val_if_fail (GST_IS_APP_SINK (appsink), FALSE); in gst_app_sink_get_buffer_list_support()
1542 priv = appsink->priv; in gst_app_sink_get_buffer_list_support()
1560 gst_app_sink_set_wait_on_eos (GstAppSink * appsink, gboolean wait) in gst_app_sink_set_wait_on_eos() argument
1564 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_wait_on_eos()
1566 priv = appsink->priv; in gst_app_sink_set_wait_on_eos()
1588 gst_app_sink_get_wait_on_eos (GstAppSink * appsink) in gst_app_sink_get_wait_on_eos() argument
1593 g_return_val_if_fail (GST_IS_APP_SINK (appsink), FALSE); in gst_app_sink_get_wait_on_eos()
1595 priv = appsink->priv; in gst_app_sink_get_wait_on_eos()
1631 gst_app_sink_pull_preroll (GstAppSink * appsink) in gst_app_sink_pull_preroll() argument
1633 return gst_app_sink_try_pull_preroll (appsink, GST_CLOCK_TIME_NONE); in gst_app_sink_pull_preroll()
1656 gst_app_sink_pull_sample (GstAppSink * appsink) in gst_app_sink_pull_sample() argument
1658 return gst_app_sink_try_pull_sample (appsink, GST_CLOCK_TIME_NONE); in gst_app_sink_pull_sample()
1691 gst_app_sink_pull_object (GstAppSink * appsink) in gst_app_sink_pull_object() argument
1693 return gst_app_sink_try_pull_object (appsink, GST_CLOCK_TIME_NONE); in gst_app_sink_pull_object()
1727 gst_app_sink_try_pull_preroll (GstAppSink * appsink, GstClockTime timeout) in gst_app_sink_try_pull_preroll() argument
1734 g_return_val_if_fail (GST_IS_APP_SINK (appsink), NULL); in gst_app_sink_try_pull_preroll()
1736 priv = appsink->priv; in gst_app_sink_try_pull_preroll()
1747 GST_DEBUG_OBJECT (appsink, "trying to grab a buffer"); in gst_app_sink_try_pull_preroll()
1758 GST_DEBUG_OBJECT (appsink, "waiting for the preroll buffer"); in gst_app_sink_try_pull_preroll()
1772 GST_DEBUG_OBJECT (appsink, "we have the preroll sample %p", sample); in gst_app_sink_try_pull_preroll()
1780 GST_DEBUG_OBJECT (appsink, "timeout expired, return NULL"); in gst_app_sink_try_pull_preroll()
1787 GST_DEBUG_OBJECT (appsink, "we are EOS, return NULL"); in gst_app_sink_try_pull_preroll()
1793 GST_DEBUG_OBJECT (appsink, "we are stopped, return NULL"); in gst_app_sink_try_pull_preroll()
1823 gst_app_sink_try_pull_sample (GstAppSink * appsink, GstClockTime timeout) in gst_app_sink_try_pull_sample() argument
1828 obj = gst_app_sink_try_pull_object (appsink, timeout); in gst_app_sink_try_pull_sample()
1871 gst_app_sink_try_pull_object (GstAppSink * appsink, GstClockTime timeout) in gst_app_sink_try_pull_object() argument
1878 g_return_val_if_fail (GST_IS_APP_SINK (appsink), NULL); in gst_app_sink_try_pull_object()
1886 priv = appsink->priv; in gst_app_sink_try_pull_object()
1892 GST_DEBUG_OBJECT (appsink, "trying to grab an object"); in gst_app_sink_try_pull_object()
1903 GST_DEBUG_OBJECT (appsink, "waiting for an object"); in gst_app_sink_try_pull_object()
1914 obj = dequeue_object (appsink); in gst_app_sink_try_pull_object()
1918 GST_DEBUG_OBJECT (appsink, "we have a buffer %p", obj); in gst_app_sink_try_pull_object()
1925 GST_DEBUG_OBJECT (appsink, "we have a list %p", obj); in gst_app_sink_try_pull_object()
1945 GST_DEBUG_OBJECT (appsink, "timeout expired, return NULL"); in gst_app_sink_try_pull_object()
1952 GST_DEBUG_OBJECT (appsink, "we are EOS, return NULL"); in gst_app_sink_try_pull_object()
1958 GST_DEBUG_OBJECT (appsink, "we are stopped, return NULL"); in gst_app_sink_try_pull_object()
1982 gst_app_sink_set_callbacks (GstAppSink * appsink, in gst_app_sink_set_callbacks() argument
1988 g_return_if_fail (GST_IS_APP_SINK (appsink)); in gst_app_sink_set_callbacks()
1991 priv = appsink->priv; in gst_app_sink_set_callbacks()