329 Commits

Author SHA1 Message Date
Joshua M. Doe
763b869063 niimaqsrc: Refactor pointer to GstNiImaqSrc to niimaqsrc 2014-01-24 09:22:55 -05:00
Joshua M. Doe
666edbe598 niimaqsrc: always return valid caps in get_caps
Return template caps if actual camera caps aren't known yet. Previously resulted in an assertion.
2014-01-24 09:22:55 -05:00
Joshua M. Doe
9b78e8c0f9 niimaqsrc: Report on IMAQ error strings
This should probably be done as a #DEFINE GST_IMAQ_DEBUG or something instead of as a function.
2014-01-24 09:22:54 -05:00
Joshua M. Doe
bfdbf89aa8 niimaqsrc: Output caps supports both actual bpp and bpp=16
The src caps now have two structures, the first contains the actual bpp of the camera, (10, 12, or 14), and the second has the standard bpp=16. This enables the element to be used both with ffmpegcolorspace (and other elements which only accept bpp=16) but also with our elements like videolevels.
2014-01-24 09:22:54 -05:00
Joshua M. Doe
54ee4258a0 videolevels: Accept bpp=[1,16] when depth=16
Accept any number of bits per pixel when the depth is 16 bits. This improves the behavior of the auto option and more accurately reflects the dynamic range of the source.
2014-01-24 09:22:54 -05:00
Joshua M. Doe
9566ebc6e8 niimaqsrc: Refactor class and function names from niimaq to niimaqsrc 2014-01-24 09:22:54 -05:00
Joshua M. Doe
2fd940a13e niimaqsrc: Move start of acquisition to GstBaseSrc.create from GstBaseSrc.start
This ensures that we can immediately push out buffers.
2014-01-24 09:22:53 -05:00
Joshua M. Doe
1a8eaf552c niimaqsrc: Use IMAQ copyBufferByNumber instead of examineBuffer, memcpy and releaseBuffer
Reduces code and possibly faster.
2014-01-24 09:22:53 -05:00
Joshua M. Doe
45df5409ec niimaqsrc: Add more inline documentation 2014-01-24 09:22:53 -05:00
Joshua M. Doe
af25506097 niimaqsrc: Fix caps negotiation
Set caps to src pad during GstBaseSrc.start.
Use static pad templates instead of dynamically generating caps.
Force bpp to 16 even if IMAQ says 10, 12, 14 (to be fixed in the future by implementing GstBaseSrc.negotiate).
2014-01-24 09:22:51 -05:00
Joshua M. Doe
c380bdfd7c niimaqsrc: remove unused variables 2014-01-24 09:19:30 -05:00
Joshua M. Doe
bc1b73b0ee niimaqsrc: minor formatting changes and doc updates 2014-01-24 09:19:30 -05:00
Joshua M. Doe
91a8ce057e untabify 2014-01-24 09:19:28 -05:00
Joshua M. Doe
93eb6a53cb niimaqsrc: add debug statements and change debug category name to niimaqsrc 2014-01-24 09:17:18 -05:00
Joshua M. Doe
5b70c57018 build: add interface library to niimaq and instal command 2014-01-24 09:17:18 -05:00
Joshua M. Doe
1c855b89e2 niimaqsrc: implement property probe interface for the interface name 2014-01-24 09:17:17 -05:00
Joshua M. Doe
dbf9136ff4 videolevels: fix auto adjust so video is immediately affected when auto is set to continuous 2014-01-24 09:17:17 -05:00
Joshua M. Doe
9010d2b941 videolevels: fix parameter ranges 2014-01-24 09:17:17 -05:00
Joshua M. Doe
841b5c3f34 videolevels: implement intervals with continuous auto adjust 2014-01-24 09:17:17 -05:00
Joshua M. Doe
9257139bca videolevels: add auto adjust mode and fix calculations 2014-01-24 09:17:15 -05:00
Joshua M. Doe
fdfc42a3b5 niimaqsrc: correct plugin description 2014-01-24 08:40:23 -05:00
Joshua M. Doe
d1a4f092f3 niimaqsrc: add copyright line to sources 2014-01-24 08:40:23 -05:00
Joshua M. Doe
8dc1c81570 videolevels: fix bug with incorrect stride use in _do_levels 2014-01-24 08:40:23 -05:00
Joshua M. Doe
53c2a38d81 videolevels: fixes to caps handling 2014-01-24 08:40:23 -05:00
Joshua M. Doe
38bf83dbe9 videolevels: add support for signed 16-bit input video 2014-01-24 08:40:20 -05:00
Joshua M. Doe
cfa14e8d60 * Improve CMake lists and modules 2014-01-24 08:32:31 -05:00
Joshua M. Doe
bee7d22fcc * Fix batch file to use C:\gstreamer 2014-01-24 08:30:55 -05:00
Joshua M. Doe
140ecc0107 * Moved plugin_init code into main.c 2014-01-24 08:30:41 -05:00
Joshua M. Doe
7fff476758 Initial commit of two preliminary plugins, videolevels and niimaqsrc 2014-01-24 08:29:14 -05:00