Platforms to show: All Mac Windows Linux Cross-Platform

Back to RaspberryPiCameraFormatMBS class.

RaspberryPiCameraFormatMBS.BytesPerRow as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The number of bytes per row.

For padding, zero if unused.
(Read and Write property)

RaspberryPiCameraFormatMBS.ColorSpace as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The colorspace.
Example
// ITU-R 601 -- broadcast NTSC/PAL
const V4L2_COLORSPACE_SMPTE170M = 1

// 1125-Line (US) HDTV
const V4L2_COLORSPACE_SMPTE240M = 2

// HD and modern captures.
const V4L2_COLORSPACE_REC709 = 3

// broken BT878 extents (601, luma range 16-253 instead of 16-235)
const V4L2_COLORSPACE_BT878 = 4

// These should be useful. Assume 601 extents.
const V4L2_COLORSPACE_470_SYSTEM_M = 5
const V4L2_COLORSPACE_470_SYSTEM_BG = 6

// I know there will be cameras that send this. So, this is
// unspecified chromaticities and full 0-255 on each of the
// Y'CbCr components
const V4L2_COLORSPACE_JPEG = 7

// For RGB colourspaces, this is probably a good start.
const V4L2_COLORSPACE_SRGB = 8

Normally zero for default.
(Read and Write property)

RaspberryPiCameraFormatMBS.Field as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The field.
Example
const V4L2_FIELD_ANY = 0
// driver can choose from none, top, bottom, interlaced
// depending on whatever it thinks is approximate ...
const V4L2_FIELD_NONE = 1
// this device has no fields ...
const V4L2_FIELD_TOP = 2
// top field only
const V4L2_FIELD_BOTTOM = 3
// bottom field only
const V4L2_FIELD_INTERLACED = 4
// both fields interlaced
const V4L2_FIELD_SEQ_TB = 5
// both fields sequential into one
// buffer, top-bottom order
const V4L2_FIELD_SEQ_BT = 6
// same as above + bottom-top order
const V4L2_FIELD_ALTERNATE = 7
// both fields alternating into separate buffers
const V4L2_FIELD_INTERLACED_TB = 8
// both fields interlaced, top field
// first and the top field is transmitted first
const V4L2_FIELD_INTERLACED_BT = 9
// both fields interlaced, top field
// first and the bottom field is transmitted first

(Read and Write property)

RaspberryPiCameraFormatMBS.Height as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The height of image in pixels.

(Read and Write property)

RaspberryPiCameraFormatMBS.Pixelformat as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The pixel format.

(Read and Write property)

RaspberryPiCameraFormatMBS.PixelformatString as String

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The pixel format as text.

(Read only property)

RaspberryPiCameraFormatMBS.SizeImage as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The size of image.

(Read and Write property)

RaspberryPiCameraFormatMBS.Type as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The type of data stream.

With plugin we always use 1 for video capture (V4L2_BUF_TYPE_VIDEO_CAPTURE).
(Read and Write property)

RaspberryPiCameraFormatMBS.Width as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property RaspberryPiCamera MBS Linux Plugin 16.4 ❌ No ❌ No ✅ Yes ❌ No Desktop, Console & Web
The width of image in pixels.

(Read and Write property)

The items on this page are in the following plugins: MBS Linux Plugin.


The biggest plugin in space...