aux/gst: Expose function to get offset from global time to video timestamp

This commit is contained in:
Moses Turner 2021-09-29 18:28:09 -05:00 committed by Jakob Bornecrantz
parent 37c5eee02a
commit 5efdea78da
2 changed files with 9 additions and 0 deletions
src/xrt/auxiliary/gstreamer

View file

@ -134,6 +134,12 @@ gstreamer_sink_send_eos(struct gstreamer_sink *gs)
gst_element_send_event(gs->appsrc, gst_event_new_eos());
}
uint64_t
gstreamer_sink_get_timestamp_offset(struct gstreamer_sink *gs)
{
return gs->offset_ns;
}
void
gstreamer_sink_create_with_pipeline(struct gstreamer_pipeline *gp,
uint32_t width,

View file

@ -22,6 +22,9 @@ struct gstreamer_pipeline;
void
gstreamer_sink_send_eos(struct gstreamer_sink *gp);
uint64_t
gstreamer_sink_get_timestamp_offset(struct gstreamer_sink *gs);
void
gstreamer_sink_create_with_pipeline(struct gstreamer_pipeline *gp,
uint32_t width,