Display Driver
Usage
Version 02.01.01.08
Platform Support Products
85
}
/* Set SRC_COLOR_KEYING if device supports that */
if(framebuffer.capability & V4L2_FBUF_CAP_SRC_CHROMAKEY) {
framebuffer.flags |= V4L2_FBUF_FLAG_SRC_CHROMAKEY;
ret = ioctl (fd, VIDIOC_S_FBUF, &framebuffer);
if (ret < 0) {
perror ("VIDIOC_S_FBUF");
exit(1);
}
}
Below example shows how to disable source color keying
struct v4l2_framebuffer framebuffer;
ret = ioctl (fd, VIDIOC_G_FBUF, &framebuffer);
if (ret < 0) {
perror ("VIDIOC_G_FBUF");
exit(1);
}
if(framebuffer.capability & V4L2_FBUF_CAP_SRC_CHROMAKEY) {
framebuffer.flags &= ~V4L2_FBUF_FLAG_SRC_CHROMAKEY;
ret = ioctl (fd, VIDIOC_S_FBUF, &framebuffer);
if (ret < 0) {
perror ("VIDIOC_S_FBUF");
exit(1);
}
}
Below example show how to enable destination color keying
struct v4l2_framebuffer framebuffer;
ret = ioctl (fd, VIDIOC_G_FBUF, &framebuffer);
if (ret < 0) {
perror ("VIDIOC_G_FBUF");
exit(1);
}
/* Set SRC_COLOR_KEYING if device supports that */
if(framebuffer.capability & V4L2_FBUF_CAP_CHROMAKEY) {
framebuffer.flags |= V4L2_FBUF_FLAG_CHROMAKEY;
ret = ioctl (fd, VIDIOC_S_FBUF, &framebuffer);
if (ret < 0) {
perror ("VIDIOC_S_FBUF");
exit(1);
}
}
Below example shows how to disable destination color keying
struct v4l2_framebuffer framebuffer;
Summary of Contents for OMAP35 Series
Page 1: ...OMAP35x EVM Linux PSP User Guide 02 01 01 08 Published 22 May 2009 ...
Page 2: ...2 Platform Support Products Version 02 01 01 08 ...
Page 4: ...OMAP35x EVM Linux PSP 2 Platform Support Products Version 02 01 01 08 ...
Page 12: ...Version 02 01 01 08 Platform Support Products x ...
Page 16: ...Version 02 01 01 08 Platform Support Products xiv ...
Page 22: ...Version 02 01 01 08 Platform Support Products xx ...
Page 30: ...Version 02 01 01 08 Platform Support Products 8 ...
Page 58: ...Version 02 01 01 08 Platform Support Products 36 ...
Page 138: ...Version 02 01 01 08 Platform Support Products 116 ...
Page 158: ...Resizer Driver Data Structures 136 Platform Support Products Version 02 01 01 08 ...
Page 164: ...Version 02 01 01 08 Platform Support Products 142 ...
Page 170: ...Version 02 01 01 08 Platform Support Products 148 ...
Page 202: ...Version 02 01 01 08 Platform Support Products 180 ...