Documentation ¶
Overview ¶
Package v4l2_format provides a type used to represents a V4L2 (Video4Linux version 2) format.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pix ¶
type Pix struct { Width uint32 Height uint32 PixelFormat v4l2_pixelformat.Type // contains filtered or unexported fields }
This is more or less equivalent to the Linux V4L2 (Video4Linux version 2) v4l2_format.type with the v4l2_format.pix (v4l2_pix_format).
And thus, where v4l2_format.type is V4L2_BUF_TYPE_VIDEO_CAPTURE.
func (Pix) CastFormat ¶
CastFormat returns the v4l2_format.Pix as a v4l2_format.Type.
Basically, doing something similar to a type cast. Although there is copying involved.
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
This is more or less equivalent to the Linux V4L2 (Video4Linux version 2) v4l2_format.type with the v4l2_format.raw_data.
func (Type) BufferType ¶
func (receiver Type) BufferType() v4l2_buftype.Type
BufferType returns the buffer type of the format.
type V4L2PlanePixFormat ¶
type V4l2PixFormatMplane ¶
type V4l2PixFormatMplane struct { Width uint32 Height uint32 PixelFormat v4l2_pixelformat.Type Field uint32 ColorSpace uint32 PlaneFmt [8]V4L2PlanePixFormat NumPlanes uint8 Flags uint8 Encoding uint8 Quantization uint8 XferFunc uint8 // contains filtered or unexported fields }
func (V4l2PixFormatMplane) CastFormat ¶
func (receiver V4l2PixFormatMplane) CastFormat() Type
Click to show internal directories.
Click to hide internal directories.