• Home
  • Raw
  • Download

Lines Matching refs:last_buf

710   gst_buffer_replace (&qtpad->last_buf, NULL);  in gst_qt_mux_pad_reset()
5145 GstBuffer *last_buf = NULL; in gst_qt_mux_add_buffer() local
5182 last_buf = pad->last_buf; in gst_qt_mux_add_buffer()
5183 pad->last_buf = buf; in gst_qt_mux_add_buffer()
5185 if (last_buf == NULL) { in gst_qt_mux_add_buffer()
5199 if (!GST_BUFFER_PTS_IS_VALID (last_buf)) in gst_qt_mux_add_buffer()
5204 if (GST_BUFFER_PTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5205 pad->first_ts = GST_BUFFER_PTS (last_buf); in gst_qt_mux_add_buffer()
5206 } else if (GST_BUFFER_DTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5207 pad->first_ts = GST_BUFFER_DTS (last_buf); in gst_qt_mux_add_buffer()
5210 if (GST_BUFFER_DTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5211 pad->first_dts = pad->last_dts = GST_BUFFER_DTS (last_buf); in gst_qt_mux_add_buffer()
5212 } else if (GST_BUFFER_PTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5213 pad->first_dts = pad->last_dts = GST_BUFFER_PTS (last_buf); in gst_qt_mux_add_buffer()
5228 GST_CLOCK_TIME_IS_VALID (GST_BUFFER_DTS (last_buf)) && in gst_qt_mux_add_buffer()
5229 GST_BUFFER_DTS (buf) < GST_BUFFER_DTS (last_buf)) { in gst_qt_mux_add_buffer()
5232 GST_TIME_ARGS (GST_BUFFER_DTS (last_buf))); in gst_qt_mux_add_buffer()
5233 pad->last_buf = buf = gst_buffer_make_writable (buf); in gst_qt_mux_add_buffer()
5234 GST_BUFFER_DTS (buf) = GST_BUFFER_DTS (last_buf); in gst_qt_mux_add_buffer()
5237 buffer_size = gst_buffer_get_size (last_buf); in gst_qt_mux_add_buffer()
5260 last_buf = gst_buffer_make_writable (last_buf); in gst_qt_mux_add_buffer()
5261 gst_buffer_append_memory (last_buf, mem); in gst_qt_mux_add_buffer()
5271 if (GST_BUFFER_DURATION_IS_VALID (last_buf)) in gst_qt_mux_add_buffer()
5272 duration = GST_BUFFER_DURATION (last_buf); in gst_qt_mux_add_buffer()
5277 && GST_BUFFER_DTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5278 if (GST_BUFFER_DTS (buf) >= GST_BUFFER_DTS (last_buf)) in gst_qt_mux_add_buffer()
5279 duration = GST_BUFFER_DTS (buf) - GST_BUFFER_DTS (last_buf); in gst_qt_mux_add_buffer()
5281 && GST_BUFFER_PTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5282 if (GST_BUFFER_PTS (buf) >= GST_BUFFER_PTS (last_buf)) in gst_qt_mux_add_buffer()
5283 duration = GST_BUFFER_PTS (buf) - GST_BUFFER_PTS (last_buf); in gst_qt_mux_add_buffer()
5333 if (ABSDIFF (GST_BUFFER_DTS_OR_PTS (last_buf), in gst_qt_mux_add_buffer()
5337 if (GST_BUFFER_DURATION (last_buf) != GST_CLOCK_TIME_NONE) { in gst_qt_mux_add_buffer()
5338 nsamples = gst_util_uint64_scale_round (GST_BUFFER_DURATION (last_buf), in gst_qt_mux_add_buffer()
5340 duration = GST_BUFFER_DURATION (last_buf); in gst_qt_mux_add_buffer()
5357 || GST_BUFFER_DTS_IS_VALID (last_buf))) { in gst_qt_mux_add_buffer()
5362 pad->last_dts = GST_BUFFER_DTS (last_buf) + duration; in gst_qt_mux_add_buffer()
5398 !GST_BUFFER_FLAG_IS_SET (last_buf, GST_BUFFER_FLAG_DELTA_UNIT)) { in gst_qt_mux_add_buffer()
5404 if (GST_BUFFER_DTS_IS_VALID (last_buf)) { in gst_qt_mux_add_buffer()
5405 last_dts = gst_util_uint64_scale_round (GST_BUFFER_DTS (last_buf), in gst_qt_mux_add_buffer()
5408 (gint64) (gst_util_uint64_scale_round (GST_BUFFER_PTS (last_buf), in gst_qt_mux_add_buffer()
5412 last_dts = gst_util_uint64_scale_round (GST_BUFFER_PTS (last_buf), in gst_qt_mux_add_buffer()
5417 GST_TIME_ARGS (GST_BUFFER_DTS (last_buf)), in gst_qt_mux_add_buffer()
5418 GST_TIME_ARGS (GST_BUFFER_PTS (last_buf)), in gst_qt_mux_add_buffer()
5467 pad->flow_status = gst_qt_mux_register_and_push_sample (qtmux, pad, last_buf, in gst_qt_mux_add_buffer()
5481 GST_BUFFER_PTS (buf) - (GST_BUFFER_PTS (last_buf) + duration); in gst_qt_mux_add_buffer()
5518 gst_buffer_unref (last_buf); in gst_qt_mux_add_buffer()
5533 GST_TIME_ARGS (GST_BUFFER_DTS_OR_PTS (last_buf)), in gst_qt_mux_add_buffer()
5634 if (!tmp_buf && !qtpad->last_buf && (!qtpad->raw_audio_adapter in find_best_pad()
5693 if (tmp_buf || qtmux->current_pad->last_buf) { in find_best_pad()
5737 if (qtpad->last_buf) { in find_best_pad()
5738 timestamp = GST_BUFFER_DTS_OR_PTS (qtpad->last_buf); in find_best_pad()
5743 if (qtpad->last_buf) in find_best_pad()
5744 timestamp = GST_BUFFER_DTS_OR_PTS (qtpad->last_buf); in find_best_pad()
5823 g_assert (buf || best_pad->last_buf || (best_pad->raw_audio_adapter in gst_qt_mux_aggregate()