module V4L2

Overview

Video 4 Linux 2

Defined in:

v4l2.cr
v4l2/enums.cr

Constant Summary

VERSION = "1.0.1"
VIDIOC_DQBUF = V4L2.iorw('V', 17, sizeof(LibV4l2::Buffer))
VIDIOC_ENUM_FMT = V4L2.iorw('V', 2, sizeof(LibV4l2::Fmtdesc))
VIDIOC_ENUM_FRAMEINTERVALS = V4L2.iorw('V', 75, sizeof(LibV4l2::Frmivalenum))
VIDIOC_ENUM_FRAMESIZES = V4L2.iorw('V', 74, sizeof(LibV4l2::Frmsizeenum))
VIDIOC_QBUF = V4L2.iorw('V', 15, sizeof(LibV4l2::Buffer))
VIDIOC_QUERYBUF = V4L2.iorw('V', 9, sizeof(LibV4l2::Buffer))
VIDIOC_QUERYCAP = V4L2.ior('V', 0, sizeof(LibV4l2::Capability))
VIDIOC_REQBUFS = V4L2.iorw('V', 8, sizeof(LibV4l2::Requestbuffers))
VIDIOC_S_FMT = V4L2.iorw('V', 5, sizeof(LibV4l2::Format))
VIDIOC_STREAMOFF = V4L2.iow('V', 19, sizeof(Int32))
VIDIOC_STREAMON = V4L2.iow('V', 18, sizeof(Int32))

Class Method Summary

Class Method Detail

def self.ioc(direction : UInt32, type : UInt32, nr : UInt32, size : UInt32) : UInt32 #

[View source]
def self.ior(type : Char, nr : Int, size : Int) #

[View source]
def self.iorw(type : Char, nr : Int, size : Int) : UInt32 #

IOWR(type,nr,size) IOC(IOC_READ|IOC_WRITE,(type),(nr),(IOC_TYPECHECK(size)))


[View source]
def self.iow(type : Char, nr : Int, size : Int) #

IOW(type,nr,size) IOC(IOC_WRITE,(type),(nr),(IOC_TYPECHECK(size)))


[View source]
def self.v4l2_fourcc(a : Char, b : Char, c : Char, d : Char) : UInt32 #

[View source]
def self.v4l2_fourcc(a : UInt32, b : UInt32, c : UInt32, d : UInt32) : UInt32 #

[View source]
def self.v4l2_fourcc_be(a : Char, b : Char, c : Char, d : Char) : UInt32 #

[View source]
def self.v4l2_fourcc_be(a : UInt32, b : UInt32, c : UInt32, d : UInt32) : UInt32 #

[View source]