Go to the source code of this file.
Functions | |
| void | BGRtoRGB (unsigned char *img) |
| Transforms a BGR image in a RGB image. | |
| unsigned char * | BGR640toRGB720 (unsigned char *img) |
| Transforms a 640x480 BGR image in a 720x480 RGB image, putting black bands on laterals. | |
| unsigned char * | NextFrame (void) |
| Gets an image from v4l device. | |
| int | setChannel_Mode (int channel, int mode) |
| Sets channel and norm of the v4l device. | |
| int | initialize (char *deviceName, int channelNumber, int videoMode) |
| Initializes the v4l device. | |
| void | finalize (void) |
| Terminates communication with v4l device. | |
| unsigned char* BGR640toRGB720 | ( | unsigned char * | img | ) |
Transforms a 640x480 BGR image in a 720x480 RGB image, putting black bands on laterals.
| img | The image to transform. |
| void BGRtoRGB | ( | unsigned char * | img | ) |
Transforms a BGR image in a RGB image.
| img | The image to transform. |
| void finalize | ( | void | ) |
Terminates communication with v4l device.
| int initialize | ( | char * | deviceName, | |
| int | channelNumber, | |||
| int | channelMode | |||
| ) |
Initializes the v4l device.
| deviceName | The device name: "/dev/video0" | |
| channel | The channel number: 0=TV 1=Composite1 2=S-Video 3=Composite3 | |
| mode | The video mode: 0=VIDEO_MODE_PAL 1=VIDEO_MODE_NTSC. |
| unsigned char* NextFrame | ( | void | ) |
Gets an image from v4l device.
| int setChannel_Mode | ( | int | channel, | |
| int | mode | |||
| ) |
Sets channel and norm of the v4l device.
| channel | The channel number: 0=TV 1=Composite1 2=S-Video 3=Composite3 | |
| mode | The video mode: 0=VIDEO_MODE_PAL 1=VIDEO_MODE_NTSC. |
1.4.7