Lines Matching refs:collect_pad
592 gst_matroska_pad_reset (GstMatroskaPad * collect_pad, gboolean full) in gst_matroska_pad_reset() argument
598 if (collect_pad->track != NULL) { in gst_matroska_pad_reset()
600 name = collect_pad->track->name; in gst_matroska_pad_reset()
601 type = collect_pad->track->type; in gst_matroska_pad_reset()
605 (GstMatroskaTrackVideoContext *) collect_pad->track; in gst_matroska_pad_reset()
612 g_free (collect_pad->track->codec_id); in gst_matroska_pad_reset()
613 g_free (collect_pad->track->codec_name); in gst_matroska_pad_reset()
615 g_free (collect_pad->track->name); in gst_matroska_pad_reset()
616 g_free (collect_pad->track->language); in gst_matroska_pad_reset()
617 g_free (collect_pad->track->codec_priv); in gst_matroska_pad_reset()
618 g_free (collect_pad->track); in gst_matroska_pad_reset()
619 collect_pad->track = NULL; in gst_matroska_pad_reset()
620 if (collect_pad->tags) { in gst_matroska_pad_reset()
621 gst_tag_list_unref (collect_pad->tags); in gst_matroska_pad_reset()
622 collect_pad->tags = NULL; in gst_matroska_pad_reset()
650 context->uid = gst_matroska_mux_create_uid (collect_pad->mux); in gst_matroska_pad_reset()
653 collect_pad->track = context; in gst_matroska_pad_reset()
654 collect_pad->start_ts = GST_CLOCK_TIME_NONE; in gst_matroska_pad_reset()
655 collect_pad->end_ts = GST_CLOCK_TIME_NONE; in gst_matroska_pad_reset()
656 collect_pad->tags = gst_tag_list_new_empty (); in gst_matroska_pad_reset()
657 gst_tag_list_set_scope (collect_pad->tags, GST_TAG_SCOPE_STREAM); in gst_matroska_pad_reset()
668 gst_matroska_pad_free (GstPad * collect_pad) in gst_matroska_pad_free() argument
670 gst_matroska_pad_reset ((GstMatroskaPad *) collect_pad, TRUE); in gst_matroska_pad_free()
695 GstMatroskaPad *collect_pad; in gst_matroska_mux_reset() local
697 collect_pad = (GstMatroskaPad *) walk->data; in gst_matroska_mux_reset()
700 gst_matroska_pad_reset (collect_pad, FALSE); in gst_matroska_mux_reset()
822 GstMatroskaPad *collect_pad; in gst_matroska_mux_handle_sink_event() local
830 collect_pad = (GstMatroskaPad *) data; in gst_matroska_mux_handle_sink_event()
832 context = collect_pad->track; in gst_matroska_mux_handle_sink_event()
839 collect_pad = (GstMatroskaPad *) gst_pad_get_element_private (pad); in gst_matroska_mux_handle_sink_event()
842 ret = collect_pad->capsfunc (pad, caps); in gst_matroska_mux_handle_sink_event()
873 gst_tag_list_insert (collect_pad->tags, list, GST_TAG_MERGE_REPLACE); in gst_matroska_mux_handle_sink_event()
1087 GstMatroskaPad *collect_pad; in gst_matroska_mux_video_pad_setcaps() local
1101 collect_pad = (GstMatroskaPad *) gst_pad_get_element_private (pad); in gst_matroska_mux_video_pad_setcaps()
1102 g_assert (collect_pad); in gst_matroska_mux_video_pad_setcaps()
1103 context = collect_pad->track; in gst_matroska_mux_video_pad_setcaps()
1972 GstMatroskaPad *collect_pad; in gst_matroska_mux_audio_pad_setcaps() local
2000 collect_pad = (GstMatroskaPad *) gst_pad_get_element_private (pad); in gst_matroska_mux_audio_pad_setcaps()
2001 g_assert (collect_pad); in gst_matroska_mux_audio_pad_setcaps()
2002 context = collect_pad->track; in gst_matroska_mux_audio_pad_setcaps()
2414 GstMatroskaPad *collect_pad; in gst_matroska_mux_subtitle_pad_setcaps() local
2442 collect_pad = (GstMatroskaPad *) gst_pad_get_element_private (pad); in gst_matroska_mux_subtitle_pad_setcaps()
2443 g_assert (collect_pad); in gst_matroska_mux_subtitle_pad_setcaps()
2444 data = (GstCollectData *) (collect_pad); in gst_matroska_mux_subtitle_pad_setcaps()
2446 context = collect_pad->track; in gst_matroska_mux_subtitle_pad_setcaps()
2558 GstMatroskaPad *collect_pad; in gst_matroska_mux_request_new_pad() local
2620 collect_pad = (GstMatroskaPad *) in gst_matroska_mux_request_new_pad()
2625 collect_pad->mux = mux; in gst_matroska_mux_request_new_pad()
2626 collect_pad->track = context; in gst_matroska_mux_request_new_pad()
2627 gst_matroska_pad_reset (collect_pad, FALSE); in gst_matroska_mux_request_new_pad()
2629 gst_matroska_mux_set_codec_id (collect_pad->track, id); in gst_matroska_mux_request_new_pad()
2630 collect_pad->track->dts_only = FALSE; in gst_matroska_mux_request_new_pad()
2632 collect_pad->capsfunc = capsfunc; in gst_matroska_mux_request_new_pad()
2672 GstMatroskaPad *collect_pad = (GstMatroskaPad *) cdata; in gst_matroska_mux_release_pad() local
2681 if (GST_CLOCK_TIME_IS_VALID (collect_pad->start_ts) && in gst_matroska_mux_release_pad()
2682 GST_CLOCK_TIME_IS_VALID (collect_pad->end_ts)) { in gst_matroska_mux_release_pad()
2684 GST_CLOCK_DIFF (collect_pad->start_ts, collect_pad->end_ts); in gst_matroska_mux_release_pad()
3255 GstMatroskaPad *collect_pad; in gst_matroska_mux_start() local
3259 collect_pad = (GstMatroskaPad *) collected->data; in gst_matroska_mux_start()
3260 thepad = collect_pad->collect.pad; in gst_matroska_mux_start()
3296 GstMatroskaPad *collect_pad; in gst_matroska_mux_start() local
3299 collect_pad = (GstMatroskaPad *) collected->data; in gst_matroska_mux_start()
3302 if (collect_pad->track->codec_id == NULL) in gst_matroska_mux_start()
3310 if (collect_pad == first_pad) in gst_matroska_mux_start()
3316 ts = gst_matroska_track_get_buffer_timestamp (collect_pad->track, buf); in gst_matroska_mux_start()
3331 if (collect_pad->track->type == GST_MATROSKA_TRACK_TYPE_AUDIO && in gst_matroska_mux_start()
3332 collect_pad->track->default_duration == 0) { in gst_matroska_mux_start()
3333 if (collect_pad == first_pad) in gst_matroska_mux_start()
3339 collect_pad->track->default_duration = in gst_matroska_mux_start()
3340 GST_BUFFER_DURATION (buf) + collect_pad->track->codec_delay; in gst_matroska_mux_start()
3345 collect_pad->track->num = tracknum++; in gst_matroska_mux_start()
3347 gst_matroska_mux_track_header (mux, collect_pad->track); in gst_matroska_mux_start()
3350 collect_pad->default_duration_scaled = in gst_matroska_mux_start()
3351 gst_util_uint64_scale (collect_pad->track->default_duration, in gst_matroska_mux_start()
3540 GstMatroskaPad *collect_pad; in gst_matroska_mux_write_streams_tags() local
3542 collect_pad = (GstMatroskaPad *) walk->data; in gst_matroska_mux_write_streams_tags()
3544 gst_matroska_mux_write_stream_tags (mux, collect_pad); in gst_matroska_mux_write_streams_tags()
3554 GstMatroskaPad *collect_pad; in gst_matroska_mux_streams_have_tags() local
3556 collect_pad = (GstMatroskaPad *) walk->data; in gst_matroska_mux_streams_have_tags()
3557 if (!gst_matroska_mux_tag_list_is_empty (collect_pad->tags)) in gst_matroska_mux_streams_have_tags()
3766 GstMatroskaPad *collect_pad; in gst_matroska_mux_finish() local
3773 collect_pad = (GstMatroskaPad *) collected->data; in gst_matroska_mux_finish()
3777 " end ts %" GST_TIME_FORMAT, collect_pad, in gst_matroska_mux_finish()
3778 GST_TIME_ARGS (collect_pad->start_ts), in gst_matroska_mux_finish()
3779 GST_TIME_ARGS (collect_pad->end_ts)); in gst_matroska_mux_finish()
3781 if (GST_CLOCK_TIME_IS_VALID (collect_pad->start_ts) && in gst_matroska_mux_finish()
3782 GST_CLOCK_TIME_IS_VALID (collect_pad->end_ts)) { in gst_matroska_mux_finish()
3784 GST_CLOCK_DIFF (collect_pad->start_ts, collect_pad->end_ts); in gst_matroska_mux_finish()
3785 GST_DEBUG_OBJECT (collect_pad->collect.pad, in gst_matroska_mux_finish()
3789 GST_WARNING_OBJECT (collect_pad->collect.pad, in gst_matroska_mux_finish()
3859 GstMatroskaPad * collect_pad, GstBuffer * buf) in gst_matroska_mux_handle_dirac_packet() argument
3862 (GstMatroskaTrackVideoContext *) collect_pad->track; in gst_matroska_mux_handle_dirac_packet()
3968 gst_matroska_mux_write_data (GstMatroskaMux * mux, GstMatroskaPad * collect_pad, in gst_matroska_mux_write_data() argument
3990 pad = GST_MATROSKAMUX_PAD_CAST (collect_pad->collect.pad); in gst_matroska_mux_write_data()
3993 if (collect_pad->track->xiph_headers_to_skip > 0) { in gst_matroska_mux_write_data()
3994 --collect_pad->track->xiph_headers_to_skip; in gst_matroska_mux_write_data()
3996 GST_LOG_OBJECT (collect_pad->collect.pad, "dropping streamheader buffer"); in gst_matroska_mux_write_data()
4003 if (!strcmp (collect_pad->track->codec_id, GST_MATROSKA_CODEC_ID_VIDEO_DIRAC)) { in gst_matroska_mux_write_data()
4004 buf = gst_matroska_mux_handle_dirac_packet (mux, collect_pad, buf); in gst_matroska_mux_write_data()
4007 } else if (!strcmp (collect_pad->track->codec_id, in gst_matroska_mux_write_data()
4015 gst_matroska_track_get_buffer_timestamp (collect_pad->track, buf); in gst_matroska_mux_write_data()
4027 GST_WARNING_OBJECT (collect_pad->collect.pad, in gst_matroska_mux_write_data()
4033 if (!strcmp (collect_pad->track->codec_id, GST_MATROSKA_CODEC_ID_AUDIO_OPUS) in gst_matroska_mux_write_data()
4034 && collect_pad->track->codec_delay) { in gst_matroska_mux_write_data()
4036 if (buffer_timestamp > collect_pad->track->codec_delay) { in gst_matroska_mux_write_data()
4037 buffer_timestamp += collect_pad->track->codec_delay; in gst_matroska_mux_write_data()
4040 duration_diff = collect_pad->track->codec_delay - buffer_timestamp; in gst_matroska_mux_write_data()
4047 if (collect_pad->track->type == GST_MATROSKA_TRACK_TYPE_VIDEO) { in gst_matroska_mux_write_data()
4053 (!strcmp (collect_pad->track->codec_id, GST_MATROSKA_CODEC_ID_VIDEO_VP8) in gst_matroska_mux_write_data()
4054 || !strcmp (collect_pad->track->codec_id, in gst_matroska_mux_write_data()
4067 is_audio_only = (collect_pad->track->type == GST_MATROSKA_TRACK_TYPE_AUDIO) && in gst_matroska_mux_write_data()
4154 if (mux->index[last_idx].track == collect_pad->track->num) in gst_matroska_mux_write_data()
4172 idx->track = collect_pad->track->num; in gst_matroska_mux_write_data()
4184 if (block_duration > collect_pad->default_duration_scaled + 1 || in gst_matroska_mux_write_data()
4185 block_duration < collect_pad->default_duration_scaled - 1) { in gst_matroska_mux_write_data()
4210 if (!strcmp (collect_pad->track->codec_id, GST_MATROSKA_CODEC_ID_AUDIO_OPUS)) { in gst_matroska_mux_write_data()
4224 gst_matroska_mux_create_buffer_header (collect_pad->track, in gst_matroska_mux_write_data()
4240 gst_matroska_mux_create_buffer_header (collect_pad->track, in gst_matroska_mux_write_data()
4245 if (!strcmp (collect_pad->track->codec_id, GST_MATROSKA_CODEC_ID_AUDIO_OPUS) in gst_matroska_mux_write_data()