v4l2_format

package
v0.0.0-...-4809048 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 3 Imported by: 0

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 Caster

type Caster interface {
	CastFormat() Type
}

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

func (receiver Pix) CastFormat() Type

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 V4L2PlanePixFormat struct {
	SizeImage    uint32
	BytesPerLine uint32
	// contains filtered or unexported fields
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL