
Definition in file V4Lgrabber.C.
#include "Devices/V4Lgrabber.H"
#include "Component/OptionManager.H"
#include "Devices/DeviceOpts.H"
#include "Image/ColorOps.H"
#include "Raster/GenericFrame.H"
#include "Util/Assert.H"
#include "Util/log.H"
#include "Video/VideoFrame.H"
#include <cerrno>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <unistd.h>
Include dependency graph for V4Lgrabber.C:

Go to the source code of this file.
Defines | |
| #define | MYLOGID itsFd |
| for id-logging; see log.H: | |
| #define | CHECK_PALETTE(p) |
Functions | |
| int | ioctl_nointr (int d, int req, void *mem) |
Variables | |
| V4LPalette | palettes [12] |
|
|
Value: { \
vp.palette = p; \
vp.depth = 32; \
ioctl_nointr(itsFd, VIDIOCSPICT, &vp);\
ioctl_nointr(itsFd, VIDIOCGPICT, &vp);\
if (vp.palette == p) \
LINFO(" %-22s supported", #p); \
else \
LINFO(" %-22s NOT supported", #p); \
}
|
|
|
for id-logging; see log.H:
Definition at line 58 of file V4Lgrabber.C. |
|
|
|
|
palette
Definition at line 65 of file V4Lgrabber.C. Referenced by V4Lgrabber::start1(). |
|
|
Initial value:
{
{ VIDEO_PALETTE_RGB24, 24, "bgr24", VIDFMT_RGB24 },
{ VIDEO_PALETTE_RGB24 | 0x80, 24, "rgb24", VIDFMT_RGB24 },
{ VIDEO_PALETTE_RGB32, 32, "bgr32", VIDFMT_RGB32 },
{ VIDEO_PALETTE_RGB32 | 0x80, 32, "rgb32", VIDFMT_RGB32 },
{ VIDEO_PALETTE_YUYV, 24, "yuyv 16bpp", VIDFMT_YUYV },
{ VIDEO_PALETTE_YUV422, 24, "yuv422 16bpp", VIDFMT_YUV422 },
{ VIDEO_PALETTE_RGB565, 16, "rgb565", VIDFMT_RGB565 },
{ VIDEO_PALETTE_RGB555, 15, "rgb555", VIDFMT_RGB555 },
{ VIDEO_PALETTE_YUV420, 24, "yuv420 12bpp", VIDFMT_YUV420 },
{ VIDEO_PALETTE_YUV420P, 24, "yuv420 planar 12bpp", VIDFMT_YUV420P },
{ VIDEO_PALETTE_GREY, 8, "grayscale 8bpp", VIDFMT_GREY },
{ -1, -1, 0, VideoFormat(-1) }
}
Definition at line 73 of file V4Lgrabber.C. Referenced by V4Lgrabber::start1(). |
|
|
Frame grabber mode.
Definition at line 68 of file V4Lgrabber.C. Referenced by MgzDecoder::readFrame(), and MgzEncoder::writeFrame(). |
1.4.4