12 Commits

Author SHA1 Message Date
Joshua M. Doe
61288388c5 niimaqsrc: improve timestamping
_create often locks the mutex before the start_frame_callback, resulting
in bad timestamps. Also an estimated duration causes d3dvideosink to give
poor display, so comment this out for now.
2014-03-12 15:13:42 -04:00
Joshua M. Doe
cedae288d2 niimaq: add is-signed property 2014-01-24 10:03:12 -05:00
Joshua M. Doe
8719f95528 niimaqsrc: untested port to 1.0 2014-01-24 10:03:07 -05:00
Joshua M. Doe
1033aea633 niimaqsrc: another attempt at robust date-timestamping
Before indices would get out of sync. Try mutexes now.
2014-01-24 10:03:00 -05:00
Joshua M. Doe
a9cfe6062d niimaqsrc: use simpler method of correlating buffers with timestamps
Drop the mutexes and special struct, just create ring buffer of
GstClockTimes. Also rely on callbacks for start/stop of acquisition.

The absolute date-timestamps need to be corrected for the first buffer
timestamp.
2014-01-24 10:03:00 -05:00
Joshua M. Doe
d6fe385cb9 niimaqsrc: add avoid copy mode
Unfortunately IMAQ only lets you examine one buffer at a time, and elements
like queue store up multiple buffers, so avoid-copy=TRUE can only be used in
pipelines without queues or other such elements.

Also, make property strings static.
2014-01-24 10:02:59 -05:00
Joshua M. Doe
ad240b0ae3 niimaq: try to improve accuracy of timestamping
By reducing instructions in callback, and adjusting for base time. This last
part needs testing however.
2014-01-24 10:02:58 -05:00
Joshua M. Doe
4fa97a4290 niimaq: cleanup, remove unused property, organize code 2014-01-24 10:02:58 -05:00
Joshua M. Doe
9002eb1f70 niimaq: handle byte alignment during copying
Previously if the row stride wasn't a multiple of 4, display would not work
correctly. Rely on NI-IMAQ to fix the byte alignment for us. This hasn't
been thoroughly tested yet however.
2014-01-24 10:02:57 -05:00
Joshua M. Doe
48ea4b565d niimaq: more cleanup, rely more on base and video libraries 2014-01-24 10:02:57 -05:00
Joshua M. Doe
d5409fca8a niimaq: send DateTime tag event 2014-01-24 10:02:53 -05:00
Joshua M. Doe
eccdfc2703 niimaqsrc: Move into subfolder of sys 2014-01-24 10:00:26 -05:00