Lines Matching refs:scr
1196 find_offset (GstPsDemux * demux, guint64 scr, in find_offset() argument
1202 guint64 fscr = scr; in find_offset()
1210 MIN (gst_util_uint64_scale (scr - min_scr, scr_rate_n, in find_offset()
1217 if (fscr == scr || fscr == min_scr || fscr == max_scr) { in find_offset()
1221 if (fscr < scr) { in find_offset()
1222 return find_offset (demux, scr, fscr, offset, max_scr, max_scr_offset, in find_offset()
1225 return find_offset (demux, scr, min_scr, min_scr_offset, fscr, offset, in find_offset()
1235 guint64 scr = GSTTIME_TO_MPEGTIME (seeksegment->position + demux->base_time); in gst_ps_demux_do_seek() local
1241 scr = gst_util_uint64_scale (scr, demux->last_scr, demux->last_pts); in gst_ps_demux_do_seek()
1243 scr = MIN (demux->last_scr, scr); in gst_ps_demux_do_seek()
1244 scr = MAX (demux->first_scr, scr); in gst_ps_demux_do_seek()
1245 fscr = scr; in gst_ps_demux_do_seek()
1248 ", trying to go at SCR: %" G_GUINT64_FORMAT, &demux->sink_segment, scr); in gst_ps_demux_do_seek()
1251 find_offset (demux, scr, demux->first_scr, demux->first_scr_offset, in gst_ps_demux_do_seek()
1262 while (found && fscr < scr) { in gst_ps_demux_do_seek()
1267 while (found && fscr > scr && offset > 0) { in gst_ps_demux_do_seek()
1703 guint64 scr, scr_adjusted, new_rate; in gst_ps_demux_parse_pack_start() local
1742 scr = ((guint64) scr1 & 0x38000000) << 3; in gst_ps_demux_parse_pack_start()
1743 scr |= ((guint64) scr1 & 0x03fff800) << 4; in gst_ps_demux_parse_pack_start()
1744 scr |= ((guint64) scr1 & 0x000003ff) << 5; in gst_ps_demux_parse_pack_start()
1745 scr |= ((guint64) scr2 & 0xf8000000) >> 27; in gst_ps_demux_parse_pack_start()
1756 scr, scr_ext); in gst_ps_demux_parse_pack_start()
1759 scr = (scr * 300 + scr_ext % 300) / 300; in gst_ps_demux_parse_pack_start()
1792 scr = ((guint64) scr1 & 0x0e000000) << 5; in gst_ps_demux_parse_pack_start()
1793 scr |= ((guint64) scr1 & 0x00fffe00) << 6; in gst_ps_demux_parse_pack_start()
1794 scr |= ((guint64) scr1 & 0x000000ff) << 7; in gst_ps_demux_parse_pack_start()
1795 scr |= ((guint64) scr2 & 0xfe000000) >> 25; in gst_ps_demux_parse_pack_start()
1810 demux->first_scr = scr; in gst_ps_demux_parse_pack_start()
1814 demux->current_scr = scr; in gst_ps_demux_parse_pack_start()
1822 scr_adjusted = scr + demux->scr_adjust; in gst_ps_demux_parse_pack_start()
1827 scr, scr_adjusted, new_rate, in gst_ps_demux_parse_pack_start()
1828 GST_TIME_ARGS (MPEGTIME_TO_GSTTIME ((guint64) scr))); in gst_ps_demux_parse_pack_start()
1834 demux->first_scr = scr; in gst_ps_demux_parse_pack_start()
1869 scr, demux->cur_scr_offset, in gst_ps_demux_parse_pack_start()
1912 demux->scr_adjust = demux->next_scr - scr; in gst_ps_demux_parse_pack_start()
2533 guint64 scr; in gst_ps_demux_scan_ts() local
2557 scr = ((guint64) scr1 & 0x38000000) << 3; in gst_ps_demux_scan_ts()
2558 scr |= ((guint64) scr1 & 0x03fff800) << 4; in gst_ps_demux_scan_ts()
2559 scr |= ((guint64) scr1 & 0x000003ff) << 5; in gst_ps_demux_scan_ts()
2560 scr |= ((guint64) scr2 & 0xf8000000) >> 27; in gst_ps_demux_scan_ts()
2566 scr = (scr * 300 + scr_ext % 300) / 300; in gst_ps_demux_scan_ts()
2594 scr = ((guint64) scr1 & 0x0e000000) << 5; in gst_ps_demux_scan_ts()
2595 scr |= ((guint64) scr1 & 0x00fffe00) << 6; in gst_ps_demux_scan_ts()
2596 scr |= ((guint64) scr1 & 0x000000ff) << 7; in gst_ps_demux_scan_ts()
2597 scr |= ((guint64) scr2 & 0xfe000000) >> 25; in gst_ps_demux_scan_ts()
2602 *rts = scr; in gst_ps_demux_scan_ts()
2840 guint64 scr = 0; in gst_ps_sink_get_duration() local
2899 gst_ps_demux_scan_forward_ts (demux, &offset, SCAN_SCR, &scr, 0); in gst_ps_sink_get_duration()
2900 if (scr < demux->last_scr) { in gst_ps_sink_get_duration()
2901 demux->first_scr = scr; in gst_ps_sink_get_duration()