Setting Driver Properties
The reference width and height represent the full uncropped size of the incoming video. Your crop settings are interpreted relative to this reference size. For example, if you are capturing
Granularity
Most video data capture formats impose restrictions on the possible width and/or height of the video, referred to as granularity restrictions. For example, the I420 capture format requires that the capture width be a multiple of 4 and the capture height be a multiple of 2.
The granularities for the various color formats are as follows:
Format | Horizontal | Vertical |
|
|
|
RGB32 | 4 | 1 |
|
|
|
RGB24 | 4 | 1 |
|
|
|
RGB555 | 4 | 1 |
|
|
|
Greyscale | 4 | 1 |
|
|
|
YUY2 | 4 | 1 |
|
|
|
UYVY | 4 | 1 |
|
|
|
I420 | 4 | 2 |
|
|
|
YVU9 | 4 | 4 |
|
|
|
[none] | 4 | 1 |
|
|
|
[any] | 4 | 4 |
|
|
|
The Granularity controls show the granularity restrictions for the selected video format, and assist you in choosing crop and output sizes that observe those restrictions.
Figure 58. Capture drop-down list
Because you can set the preview and capture pins to different color formats, they can have different granularities. When you open the Size and Crop tab, the Capture and Preview fields are initialized to the current or most recently used format for the selected pin (Figure 58).
62 | ViewCast |