Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
CameraSourceQTKit Class ReferenceThis interfaces with a specific camera through the QTKit API, which is the only capture interface which supports 64-bit on OS X. More...
Inheritance diagram for CameraSourceQTKit:
Detailed DescriptionThis interfaces with a specific camera through the QTKit API, which is the only capture interface which supports 64-bit on OS X. Definition at line 14 of file CameraSourceQTKit.h.
Member Enumeration Documentation
Conversion formats supported for requesting camera output.
Definition at line 27 of file CameraSourceQTKit.h. Constructor & Destructor Documentation
constructor Definition at line 38 of file CameraSourceQTKit.h.
destructor
do not copy Member Function Documentation
Called when the simulator is stepping while paused or advancing a frozen data source, return true if successful, or false if no more data is available. Implements DataSource.
Returns the four-character-code as a string for display.
User hook, called when the data source should release its claim on outputs with feedback (ignoringOuput()). It would be wise to call this from your destructor as well. Reimplemented from DataSource.
user hook for when frozen is set to true; advance() will be called by simulator at user discretion. Reimplemented from DataSource.
user hook for when frozen is set to false; if enteringRealtime() has been called then you should resume sending data. Reimplemented from DataSource.
general initialization: add configuration entries, retain device and create delegate Referenced by CameraSourceQTKit().
Returns a descriptive name of the next data segment for user feedback (e.g. a filename for logged data). Just use your class name if you don't have a useful name for individual samples. Implements DataSource. Definition at line 48 of file CameraSourceQTKit.h.
Returns the simulator time of the next data segment. Should be in the future if nothing new since last data segment, otherwise should be the timestamp of the most recent data segment (older segments are skipped), return -1U if there is no more data Implements DataSource. Definition at line 47 of file CameraSourceQTKit.h.
do not assign
uyvy ordering, upsample by duplicating u and v columns Uses CCIR601 range (e.g. Y ∈ [16,235] )
uyvy ordering, downsample to common resolution (y/4, u,v/2) Uses CCIR601 range (e.g. Y ∈ [16,235] )
Grayscale, white is 0. Need to convert to CCIR601 (y = (255-g)·219/255+16) and fill in u=v=128 You might think compressing the Y range would lower quality, but inspecting data from iSight indicates it originates as CCIR601, with this setting showing gaps in the histogram as it was stretched to full range, so really this is just resetting
yuyv ordering, downsample to common resolution (y/4, u,v/2) Uses CCIR601 range (e.g. Y ∈ [16,235] )
yuyv ordering, upsample by duplicating u and v columns Uses CCIR601 range (e.g. Y ∈ [16,235] )
called from delegate with each frame
User hook, called when the data source should claim which outputs it provides feedback (providingOuput()). Does not indicate the data source should start sending updates yet — wait for enteringRealtime() or advance() to be called Reimplemented from DataSource.
returns the display string as a four-character-code Member Data Documentation
receives per-frame callbacks from the session, forwards calls to processImage() Definition at line 96 of file CameraSourceQTKit.h.
the camera associated with this instance Definition at line 94 of file CameraSourceQTKit.h. the frame duration encoded in the captured frame meta-data Definition at line 100 of file CameraSourceQTKit.h. Referenced by nextTimestamp(). If non-empty, requests the camera convert to the specified format (a four character code aka FourCC). Definition at line 35 of file CameraSourceQTKit.h.
a frame index counter Definition at line 98 of file CameraSourceQTKit.h.
condition to wake up advance when a frame has been sent Definition at line 103 of file CameraSourceQTKit.h.
held by advance() when waiting for a frame Definition at line 102 of file CameraSourceQTKit.h. If true, upsamples color channels horizontally to match Y channel, otherwise downsamples everything to common resolution (y/4, u,v/2); set to true to use full resolution of camera (either as the “full” layer or if you are accessing the “double” layer), set to false if you are using half-resolution as the resolution of the “full” layer. Definition at line 21 of file CameraSourceQTKit.h. time in seconds of ideal frame arrival time, if drifts more than a frame duration, reset via get_time() Definition at line 99 of file CameraSourceQTKit.h. Referenced by nextTimestamp().
Controls the resolution layer at which the image should be processed. Definition at line 24 of file CameraSourceQTKit.h.
Definition at line 93 of file CameraSourceQTKit.h. Referenced by nextName(). set to true by advance(), indicates capture should stop once a frame is sent Definition at line 101 of file CameraSourceQTKit.h. If true, will attempt to use Apple's Grand Central Dispatch to do block processing... this parallelizes image processing, may slightly increase total CPU usage but reduces per-frame wall time. Definition at line 18 of file CameraSourceQTKit.h.
the capture session created in registerSource (thus non-NULL if registered), used to start/stop capture when frozen Definition at line 95 of file CameraSourceQTKit.h. The documentation for this class was generated from the following file: |
Tekkotsu Hardware Abstraction Layer 5.1CVS |
Generated Mon May 9 05:01:40 2016 by Doxygen 1.6.3 |