diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-05-02 21:16:56 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2003-05-02 21:16:56 +0000 |
commit | 5b879bd5b7c65b87236a0c122ac91dfb1e385087 (patch) | |
tree | 64f91b07aa61fcc5a795dcda3707a885b95daa26 /sys/v4l2/gstv4l2src.h | |
parent | 1cf42a0f448f35e9d939def72ca71008c68a2fbc (diff) | |
download | gst-plugins-bad-5b879bd5b7c65b87236a0c122ac91dfb1e385087.tar.gz gst-plugins-bad-5b879bd5b7c65b87236a0c122ac91dfb1e385087.tar.bz2 gst-plugins-bad-5b879bd5b7c65b87236a0c122ac91dfb1e385087.zip |
Implement element synchronization (#108301)
Original commit message from CVS:
Implement element synchronization (#108301)
Diffstat (limited to 'sys/v4l2/gstv4l2src.h')
-rw-r--r-- | sys/v4l2/gstv4l2src.h | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/sys/v4l2/gstv4l2src.h b/sys/v4l2/gstv4l2src.h index 401161c7..ae457e59 100644 --- a/sys/v4l2/gstv4l2src.h +++ b/sys/v4l2/gstv4l2src.h @@ -51,7 +51,24 @@ struct _GstV4l2Src { struct v4l2_buffer bufsettings; struct v4l2_requestbuffers breq; struct v4l2_format format; - guint64 first_timestamp; + + /* A/V sync... frame counter and internal cache */ + gulong handled; + gint last_frame; + gint need_writes; + gulong last_seq; + + /* clock */ + GstClock *clock; + + /* time to substract from clock time to get back to timestamp */ + GstClockTime substract_time; + + /* how often are we going to use each frame? */ + gint *use_num_times; + + /* how are we going to push buffers? */ + gboolean use_fixed_fps; /* bufferpool for the buffers we're gonna use */ GstBufferPool *bufferpool; @@ -64,6 +81,12 @@ struct _GstV4l2Src { struct _GstV4l2SrcClass { GstV4l2ElementClass parent_class; + + void (*frame_capture) (GObject *object); + void (*frame_drop) (GObject *object); + void (*frame_insert) (GObject *object); + void (*frame_lost) (GObject *object, + gint num_lost); }; |