Function Reference

Wrappers

Video4Linux.set_io_methodFunction
function set_io_method(method::IOMethods)

Set the IO method to one of the following enumerated types:

    Video4Linux.IO_METHOD_READ
    Video4Linux.IO_METHOD_MMAP
    Video4Linux.IO_METHOD_USERPTR
source
Video4Linux.mainloopFunction
mainloop(devicHandle, frameCount)

Run main capute loop [frameCount] times. Returns 0 on success.

source

Tasks

Video4Linux.videoproducerFunction
vidproducer(c::Channel, reader::T, devicename::String = "/dev/video0",  N::Int = 100) where T <: AbstractEncodings
source

Encodind/decoding

Video4Linux.UYVYextractYFunction
UYVYextractY(imbuff::Vector{UInt8}, width::Int, height::Int)

Extract the Y component out of a 4:2:2 YCbCr buffer

source
Video4Linux.convertYUYVtoArrayFunction
convertYUYVtoArray(imbuff::Vector{UInt8}, width::Int, height::Int)

Convert a 4:2:2 encoded YCbCr buffer [::Vector{UInt8}] to full 4:4:4 buffer [::Matrix{UInt8}[3]]

source
Video4Linux.convertY10BtoU16Function
convertY10BtoU16(imbuff::Vector{UInt8})

Convert a packed 10 bit grayscale buffer [::Vector{UInt8}] to 16 bit padded buffer [::Vector{UInt16}] [x x x x x x b9 b8 b7 b6 b5 b4 b3 b2 b1 b0]

source
Video4Linux.convertUYVYtoYCbCrFunction
convertUYVYtoYCbCr(imbuff::Vector{UInt8}, width::Int, height::Int)

Convert a UYVY 4:2:2 encoded YCbCr buffer [::Vector{UInt8}] to full YCbCr

source
Video4Linux.convertYUYVtoYCbCrFunction
convertYUYVtoYCbCr(imbuff::Vector{UInt8}, width::Int, height::Int)

Convert a UYVY 4:2:2 encoded YCbCr buffer [::Vector{UInt8}] to full YCbCr

source
Video4Linux.convertUYVYtoArrayFunction
convertUYVYtoArray(imbuff::Vector{UInt8}, width::Int, height::Int)

Convert a 4:2:2 encoded YCbCr buffer [::Vector{UInt8}] to full 4:4:4 buffer [::Matrix{UInt8}[3]]

source
Video4Linux.YUYVextractYFunction
UYVYextractY(imbuff::Vector{UInt8}, width::Int, height::Int)

Extract the Y component out of a 4:2:2 YCbCr buffer

source

Index