Linux software – Sensoray 2255 User Manual
Page 18
![background image](https://www.manualsdir.com/files/804242/content/doc018.png)
S2255_fill_bmi_vbhelper(HDEVICE hdev, BITMAPINFO *pbmi, int chn, int
frm);
Helper function for VB or VB.NET demo. This function is only intended for VB and not required for
C programs. Fills the bitmap info structure with the current bitmap info structure for a particular
frame and associated channel.
Parameters
hdev
a handle to the 2255 device.
pbmi
pointer to bitmap info structure
channel
channel number (1-4).
frmnum
Index of frame in question (starting from 0). Must be smaller than number of registered
buffers.
Returns
Returns 0 on success.
Linux Software
Preamble(new V4L directory in SDK)
There are now 2 drivers available: the original driver and the V4L2 driver. Sensoray has worked to
get a 2255 driver into the Linux kernel. It should be present in Linux kernel version 2.6.27. The
V4L driver distributed in V1.1.8 of the Linux SDK is supported on Linux kernel versions 2.6.24 to
the current 2.6.27 kernel. If you require the V4L driver on 2.6.18-2.6.23, backports of all current
V4L modules/libraries are available from the Video for Linux working group at
http://www.linuxtv.org. Sensoray supports only V4L2 as V4L1(version 1) has been marked
obsolete by Linux developers.
There are advantages and disadvantages for each driver. It is up to the customer to decide which
driver to use based on their application. Sensoray will support both drivers equally. The V4L
driver, however, will not be supported below Kernel version 2.6.18. Please see the READMEs in the
distributed SDK, if you choose to use the V4L driver. The rest of this manual after this Preamble
describes the Sensoray 2255 driver and SDK. The Video for Linux API is well documented
elsewhere.
Advantages of non-V4L driver(original):
In some earlier Linux distributions, V4L2 was not compiled by default into the kernel or as a
module. With the non-V4L driver, it was not necessary to recompile the kernel to get things
working. Additionally, some customers wanted an API similar to other Sensoray boards.
18