/third_party/gstreamer/gstreamer/docs/random/ |
D | streamheader | 16 Currently, this is done by putting a 'streamheader' value on the caps. 17 'streamheader' is a GST_TYPE_ARRAY of GstBuffer, ie. an ordered list of 21 IN_CAPS flag set. This allows elements that do not know about streamheader 24 It is of course important that these streamheader buffers are not sent twice 28 So, an element that is aware of streamheader in the caps should probably best 32 - all streamheader buffers should have IN_CAPS set 33 - from this list of streamheader buffers, a "streamheader" caps field should 39 - when all streamheader buffers are collected in the element, pad caps should 40 be set, including this streamheader 41 - streamheader buffers should be sent consecutively, and before any of the [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/kate/ |
D | gstkateparse.c | 170 gst_pad_get_current_caps (parse->sinkpad), parse->streamheader); in gst_kate_parse_push_headers() 186 headers = parse->streamheader; in gst_kate_parse_push_headers() 222 g_list_free (parse->streamheader); in gst_kate_parse_push_headers() 223 parse->streamheader = NULL; in gst_kate_parse_push_headers() 374 parse->streamheader = g_list_append (parse->streamheader, buf); in gst_kate_parse_parse_packet() 587 while (parse->streamheader != NULL) { in gst_kate_parse_free_stream_headers() 588 gst_buffer_unref (GST_BUFFER (parse->streamheader->data)); in gst_kate_parse_free_stream_headers() 589 parse->streamheader = g_list_delete_link (parse->streamheader, in gst_kate_parse_free_stream_headers() 590 parse->streamheader); in gst_kate_parse_free_stream_headers() 606 parse->streamheader = NULL; in gst_kate_parse_change_state()
|
D | gstkateparse.h | 58 GList *streamheader; member
|
D | gstkatetiger.c | 641 const GValue *streamheader; in gst_kate_tiger_kate_chain() local 645 streamheader = gst_structure_get_value (s, "streamheader"); in gst_kate_tiger_kate_chain() 646 if (streamheader && G_VALUE_TYPE (streamheader) == GST_TYPE_ARRAY) { in gst_kate_tiger_kate_chain() 652 array = g_value_peek_pointer (streamheader); in gst_kate_tiger_kate_chain()
|
/third_party/gstreamer/gstplugins_base/ext/vorbis/ |
D | gstvorbisparse.c | 142 g_assert (parse->streamheader); in vorbis_parse_set_header_on_caps() 143 g_assert (parse->streamheader->next); in vorbis_parse_set_header_on_caps() 144 g_assert (parse->streamheader->next->next); in vorbis_parse_set_header_on_caps() 145 buf1 = parse->streamheader->data; in vorbis_parse_set_header_on_caps() 147 buf2 = parse->streamheader->next->data; in vorbis_parse_set_header_on_caps() 149 buf3 = parse->streamheader->next->next->data; in vorbis_parse_set_header_on_caps() 193 for (l = parse->streamheader; l != NULL; l = l->next) { in vorbis_parse_have_header_packet() 224 outbuf = GST_BUFFER_CAST (parse->streamheader->data); in vorbis_parse_push_headers() 238 outbuf = GST_BUFFER_CAST (parse->streamheader->next->data); in vorbis_parse_push_headers() 250 outbuf = GST_BUFFER_CAST (parse->streamheader->next->next->data); in vorbis_parse_push_headers() [all …]
|
D | gstvorbisparse.h | 58 GList * streamheader; member
|
/third_party/gstreamer/gstplugins_bad/ext/srt/ |
D | gstsrtsink.c | 252 const GValue *streamheader; in gst_srt_sink_set_caps() local 259 streamheader = gst_structure_get_value (s, "streamheader"); in gst_srt_sink_set_caps() 261 if (!streamheader) { in gst_srt_sink_set_caps() 263 } else if (GST_VALUE_HOLDS_BUFFER (streamheader)) { in gst_srt_sink_set_caps() 266 gst_buffer_list_add (self->headers, g_value_dup_boxed (streamheader)); in gst_srt_sink_set_caps() 267 } else if (GST_VALUE_HOLDS_ARRAY (streamheader)) { in gst_srt_sink_set_caps() 272 size = gst_value_array_get_size (streamheader); in gst_srt_sink_set_caps() 276 const GValue *v = gst_value_array_get_value (streamheader, i); in gst_srt_sink_set_caps() 287 G_VALUE_TYPE_NAME (streamheader)); in gst_srt_sink_set_caps()
|
/third_party/gstreamer/gstplugins_good/gst/matroska/ |
D | ebml-write.c | 60 ebml->streamheader = NULL; in gst_ebml_write_init() 78 if (ebml->streamheader) { in gst_ebml_write_finalize() 79 gst_byte_writer_free (ebml->streamheader); in gst_ebml_write_finalize() 80 ebml->streamheader = NULL; in gst_ebml_write_finalize() 163 g_return_if_fail (ebml->streamheader == NULL); in gst_ebml_start_streamheader() 166 ebml->streamheader = gst_byte_writer_new_with_size (1000, FALSE); in gst_ebml_start_streamheader() 176 if (!ebml->streamheader) in gst_ebml_stop_streamheader() 179 buffer = gst_byte_writer_free_and_get_buffer (ebml->streamheader); in gst_ebml_stop_streamheader() 180 ebml->streamheader = NULL; in gst_ebml_stop_streamheader() 437 else if (!gst_byte_writer_put_data (ebml->streamheader, buf_data, in gst_ebml_write_element_push() [all …]
|
D | matroska-mux.c | 257 static gboolean theora_streamheader_to_codecdata (const GValue * streamheader, 259 static gboolean vorbis_streamheader_to_codecdata (const GValue * streamheader, 261 static gboolean speex_streamheader_to_codecdata (const GValue * streamheader, 263 static gboolean kate_streamheader_to_codecdata (const GValue * streamheader, 265 static gboolean flac_streamheader_to_codecdata (const GValue * streamheader, 1373 const GValue *streamheader; in gst_matroska_mux_video_pad_setcaps() local 1379 streamheader = gst_structure_get_value (structure, "streamheader"); in gst_matroska_mux_video_pad_setcaps() 1380 if (!theora_streamheader_to_codecdata (streamheader, context)) { in gst_matroska_mux_video_pad_setcaps() 1519 xiphN_streamheader_to_codecdata (const GValue * streamheader, in xiphN_streamheader_to_codecdata() argument 1527 if (streamheader == NULL) in xiphN_streamheader_to_codecdata() [all …]
|
D | matroska-parse.c | 271 if (parse->streamheader != NULL) { in gst_matroska_parse_reset() 272 gst_buffer_unref (parse->streamheader); in gst_matroska_parse_reset() 273 parse->streamheader = NULL; in gst_matroska_parse_reset() 2470 if (parse->streamheader) { in gst_matroska_parse_accumulate_streamheader() 2471 parse->streamheader = gst_buffer_append (parse->streamheader, in gst_matroska_parse_accumulate_streamheader() 2474 parse->streamheader = gst_buffer_ref (buffer); in gst_matroska_parse_accumulate_streamheader() 2477 GST_DEBUG ("%" G_GSIZE_FORMAT, gst_buffer_get_size (parse->streamheader)); in gst_matroska_parse_accumulate_streamheader() 2489 GValue streamheader = { 0 }; in gst_matroska_parse_output() local 2501 g_value_init (&streamheader, GST_TYPE_ARRAY); in gst_matroska_parse_output() 2503 buf = gst_buffer_copy (parse->streamheader); in gst_matroska_parse_output() [all …]
|
D | matroska-parse.h | 59 GstBuffer *streamheader; member
|
D | ebml-write.h | 59 GstByteWriter *streamheader; member
|
/third_party/gstreamer/gstplugins_good/ext/speex/ |
D | gstspeexdec.c | 143 gst_buffer_replace (&dec->streamheader, NULL); in gst_speex_dec_reset() 335 const GValue *streamheader; in gst_speex_dec_set_format() local 338 if ((streamheader = gst_structure_get_value (s, "streamheader")) && in gst_speex_dec_set_format() 339 G_VALUE_HOLDS (streamheader, GST_TYPE_ARRAY) && in gst_speex_dec_set_format() 340 gst_value_array_get_size (streamheader) >= 2) { in gst_speex_dec_set_format() 345 header = gst_value_array_get_value (streamheader, 0); in gst_speex_dec_set_format() 351 gst_buffer_replace (&dec->streamheader, buf); in gst_speex_dec_set_format() 354 vorbiscomment = gst_value_array_get_value (streamheader, 1); in gst_speex_dec_set_format() 503 if (dec->streamheader && dec->vorbiscomment) { in gst_speex_dec_handle_frame() 504 if (memcmp_buffers (dec->streamheader, buf)) { in gst_speex_dec_handle_frame()
|
D | gstspeexdec.h | 54 GstBuffer *streamheader; member
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | flacparse.c | 203 const GValue *streamheader; in GST_START_TEST() local 221 streamheader = gst_structure_get_value (s, "streamheader"); in GST_START_TEST() 222 fail_unless (G_VALUE_TYPE (streamheader) == GST_TYPE_ARRAY); in GST_START_TEST() 223 bufarr = g_value_peek_pointer (streamheader); in GST_START_TEST()
|
D | flvdemux.c | 279 const GValue *streamheader; in GST_START_TEST() local 292 streamheader = gst_structure_get_value (s, "streamheader"); in GST_START_TEST() 293 fail_unless (streamheader != NULL); in GST_START_TEST() 294 fail_unless (G_VALUE_HOLDS (streamheader, GST_TYPE_ARRAY)); in GST_START_TEST() 295 fail_unless_equals_int (2, gst_value_array_get_size (streamheader)); in GST_START_TEST() 297 header = gst_value_array_get_value (streamheader, 0); in GST_START_TEST() 302 vorbiscomment = gst_value_array_get_value (streamheader, 1); in GST_START_TEST()
|
/third_party/gstreamer/gstplugins_base/ext/opus/ |
D | gstopusdec.c | 199 gst_buffer_replace (&dec->streamheader, NULL); in gst_opus_dec_reset() 841 const GValue *streamheader; in gst_opus_dec_set_format() local 859 if ((streamheader = gst_structure_get_value (s, "streamheader")) && in gst_opus_dec_set_format() 860 G_VALUE_HOLDS (streamheader, GST_TYPE_ARRAY) && in gst_opus_dec_set_format() 861 gst_value_array_get_size (streamheader) >= 2) { in gst_opus_dec_set_format() 866 header = gst_value_array_get_value (streamheader, 0); in gst_opus_dec_set_format() 874 gst_buffer_replace (&dec->streamheader, buf); in gst_opus_dec_set_format() 877 vorbiscomment = gst_value_array_get_value (streamheader, 1); in gst_opus_dec_set_format() 946 if (dec->streamheader && dec->vorbiscomment) { in gst_opus_dec_handle_frame() 947 if (memcmp_buffers (dec->streamheader, buf)) { in gst_opus_dec_handle_frame()
|
D | gstopusdec.h | 52 GstBuffer *streamheader; member
|
/third_party/gstreamer/gstplugins_base/ext/theora/ |
D | gsttheoraparse.c | 271 bufs = parse->streamheader; in theora_parse_set_header_on_caps() 315 buf = parse->streamheader[i]; in theora_parse_set_streamheader() 380 if ((buf = parse->streamheader[i])) { in theora_parse_push_headers() 382 parse->streamheader[i] = NULL; in theora_parse_push_headers() 681 parse->streamheader[header - 0x80] = buffer; in theora_parse_chain() 933 if (parse->streamheader[i]) { in theora_parse_change_state() 934 gst_buffer_unref (parse->streamheader[i]); in theora_parse_change_state() 935 parse->streamheader[i] = NULL; in theora_parse_change_state()
|
D | gsttheoraparse.h | 60 GstBuffer * streamheader[3]; member
|
/third_party/gstreamer/gstplugins_bad/gst/rtmp2/ |
D | gstrtmp2sink.c | 917 const GValue *streamheader; in gst_rtmp2_sink_set_caps() local 925 streamheader = gst_structure_get_value (s, "streamheader"); in gst_rtmp2_sink_set_caps() 927 if (!streamheader) { in gst_rtmp2_sink_set_caps() 929 } else if (GST_VALUE_HOLDS_BUFFER (streamheader)) { in gst_rtmp2_sink_set_caps() 931 if (!add_streamheader (self, streamheader)) { in gst_rtmp2_sink_set_caps() 936 } else if (GST_VALUE_HOLDS_ARRAY (streamheader)) { in gst_rtmp2_sink_set_caps() 937 guint size = gst_value_array_get_size (streamheader); in gst_rtmp2_sink_set_caps() 942 const GValue *v = gst_value_array_get_value (streamheader, i); in gst_rtmp2_sink_set_caps() 950 G_VALUE_TYPE_NAME (streamheader)); in gst_rtmp2_sink_set_caps()
|
/third_party/gstreamer/gstplugins_base/gst/tcp/ |
D | README | 51 - if streamheader buffers, and we haven't sent yet to this client, 52 send current streamheader buffers, then set streamheader_sent
|
/third_party/gstreamer/gstplugins_good/gst/flv/ |
D | gstflvmux.c | 1419 gst_flv_mux_put_buffer_in_streamheader (GValue * streamheader, in gst_flv_mux_put_buffer_in_streamheader() argument 1429 gst_value_array_append_value (streamheader, &value); in gst_flv_mux_put_buffer_in_streamheader() 1442 GValue streamheader = { 0 }; in gst_flv_mux_prepare_src_caps() local 1487 g_value_init (&streamheader, GST_TYPE_ARRAY); in gst_flv_mux_prepare_src_caps() 1488 gst_flv_mux_put_buffer_in_streamheader (&streamheader, header); in gst_flv_mux_prepare_src_caps() 1489 gst_flv_mux_put_buffer_in_streamheader (&streamheader, metadata); in gst_flv_mux_prepare_src_caps() 1491 gst_flv_mux_put_buffer_in_streamheader (&streamheader, video_codec_data); in gst_flv_mux_prepare_src_caps() 1493 gst_flv_mux_put_buffer_in_streamheader (&streamheader, audio_codec_data); in gst_flv_mux_prepare_src_caps() 1498 gst_structure_set_value (structure, "streamheader", &streamheader); in gst_flv_mux_prepare_src_caps() 1499 g_value_unset (&streamheader); in gst_flv_mux_prepare_src_caps()
|
/third_party/gstreamer/gstplugins_bad/gst/mpegtsmux/ |
D | gstbasetsmux.h | 173 GQueue streamheader; member
|
/third_party/gstreamer/gstplugins_bad/tests/check/pipelines/ |
D | streamheader.c | 264 GST_CHECK_MAIN (streamheader);
|