niimaq: try to improve accuracy of timestamping

By reducing instructions in callback, and adjusting for base time. This last
part needs testing however.
This commit is contained in:
Joshua M. Doe
2012-06-29 07:35:26 -04:00
parent 4fa97a4290
commit ad240b0ae3
2 changed files with 48 additions and 43 deletions

View File

@@ -49,26 +49,28 @@ typedef struct _GstNiImaqSrcClass GstNiImaqSrcClass;
struct _GstNiImaqSrc {
GstPushSrc element;
/* properties */
gchar *interface_name;
gint bufsize;
/* image info */
GstVideoFormat format;
int width;
int height;
gint framesize;
int rowpixels;
/* private */
GstClockTime running_time; /* total running time */
gint64 n_frames; /* total frames sent */
uInt32 cumbufnum;
gint64 n_dropped_frames;
gboolean segment;
gint bufsize;
guint32** buflist;
gchar *interface_name;
INTERFACE_ID iid;
SESSION_ID sid;
gboolean session_started;
GstClockTime base_time;
GSList *timelist;
GMutex *frametime_mutex;