[vlc-devel] [PATCH 03/18] clock: add vlc_clock
Thomas Guillem
thomas at gllm.fr
Sat Mar 9 11:52:20 CET 2019
On Fri, Mar 8, 2019, at 20:10, Francois Cartegnie wrote:
> Le 08/03/2019 à 13:12, Denis Charmet a écrit :
> > On 2019-03-07 17:51, Francois Cartegnie wrote:
> >> Le 07/03/2019 à 15:25, Thomas Guillem a écrit :
> >>
> >>> + */
> >>> +vlc_tick_t vlc_clock_SetDelay(vlc_clock_t *clock, vlc_tick_t
> >>> pts_delay);
> >>> +
> >>> +/**
> >>> + * Wait for a timestamp expressed in stream time
> >>> + */
> >>> +int vlc_clock_Wait(vlc_clock_t *clock, vlc_tick_t system_now,
> >>> vlc_tick_t pts,
> >>> + double rate, vlc_tick_t max_duration);
> >>> +
> >>
> >> I don't agree with the use of "pts" instead of "ts" or "timestamp".
> >>
> >> This is confusing (even more when mixing usage with pts_delay which is
> >> related to the real pts thing) and we clearly don't want pts there.
> >
> > Why is it confusing? You are waiting until the your streams playback
> > reach this timestamp in stream time. The clock_Wait function is called
> > with actual PTS of the frame to be displayed.
>
> I don't see the point of using terms related to presentation delta (ie
> out of order timestamps in a stream) when you just want to wait for a
> timestamp. It's up to the caller to ensure it passes the right one.
I think François is right. For spu we use the clock to convert stop times for example, this is not a pts at all.
+1 for a s/pts/ts in clock.c and clock.h
>
> --
> Francois Cartegnie
> VideoLAN - VLC Developer
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list