Function Reference
Wrappers
Video4Linux.IOMethods — TypeEnumerated type for IO method used
Video4Linux.set_io_method — Functionfunction 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_USERPTRVideo4Linux.open_device — Functionopen_device(deviceSting)Open v4l2 video device [/dev/video0], returns device hanle [Int32]
Video4Linux.init_device — Functioninit_device(devicHandle)Initialize already opened device. Returns 0 on success.
Video4Linux.start_capturing — Functionstart_capturing(devicHandle)Start capturing on opened and initialized device. Returns 0 on success.
Video4Linux.mainloop — Functionmainloop(devicHandle, frameCount)Run main capute loop [frameCount] times. Returns 0 on success.
Video4Linux.stop_capturing — Functionstop_capturing(devicHandle)Stop capturing on opened device. Returns 0 on success.
Video4Linux.uninit_device — Functionuninit_device(devicHandle)Uninitialize already opened device. Returns 0 on success.
Video4Linux.close_device — Functionclose_device(devicHandle)Close already opened device. Returns 0 on success.
Video4Linux.copy_buffer_bytes — Functioncopy_buffer_bytes(numBytes)Copy [numBytes] from buffer to new buffer [Array{UInt8,1}]
Video4Linux.copy_buffer_bytes! — Functioncopy_buffer_bytes!(outbuffer, numBytes)Copy [numBytes] from buffer to existing buffer outbuffer[Array{UInt8,1}]
Tasks
Video4Linux.videoproducer — Functionvidproducer(c::Channel, reader::T, devicename::String = "/dev/video0", N::Int = 100) where T <: AbstractEncodingsEncodind/decoding
Video4Linux.UYVYextractY — FunctionUYVYextractY(imbuff::Vector{UInt8}, width::Int, height::Int)Extract the Y component out of a 4:2:2 YCbCr buffer
Video4Linux.convertYUYVtoArray — FunctionconvertYUYVtoArray(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]]
Video4Linux.convertY10BtoU16 — FunctionconvertY10BtoU16(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]
Video4Linux.convertUYVYtoYCbCr — FunctionconvertUYVYtoYCbCr(imbuff::Vector{UInt8}, width::Int, height::Int)Convert a UYVY 4:2:2 encoded YCbCr buffer [::Vector{UInt8}] to full YCbCr
Video4Linux.convertYUYVtoYCbCr — FunctionconvertYUYVtoYCbCr(imbuff::Vector{UInt8}, width::Int, height::Int)Convert a UYVY 4:2:2 encoded YCbCr buffer [::Vector{UInt8}] to full YCbCr
Video4Linux.convertUYVYtoArray — FunctionconvertUYVYtoArray(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]]
Video4Linux.YUYVextractY — FunctionUYVYextractY(imbuff::Vector{UInt8}, width::Int, height::Int)Extract the Y component out of a 4:2:2 YCbCr buffer
Index
Video4Linux.IOMethodsVideo4Linux.UYVYextractYVideo4Linux.YUYVextractYVideo4Linux.close_deviceVideo4Linux.convertUYVYtoArrayVideo4Linux.convertUYVYtoYCbCrVideo4Linux.convertY10BtoU16Video4Linux.convertYUYVtoArrayVideo4Linux.convertYUYVtoYCbCrVideo4Linux.copy_buffer_bytesVideo4Linux.copy_buffer_bytes!Video4Linux.init_deviceVideo4Linux.mainloopVideo4Linux.open_deviceVideo4Linux.set_io_methodVideo4Linux.start_capturingVideo4Linux.stop_capturingVideo4Linux.uninit_deviceVideo4Linux.videoproducer