Destination buffer

Updated: October 26, 2022

The video capture API includes constants that specify the video capture destination buffer properties.

Definitions:

#define CAPTURE_PROPERTY_DST_COLOR_SPACE CAPTURE_PROPERTY( 'Q', 'N', 'C', 'D' )

Set default destination color space and values range of the color space.

Read/Write uint32_t

#define CAPTURE_PROPERTY_DST_WIDTH CAPTURE_PROPERTY( 'Q', 'D', 'F', 'W' )

Width of destination frame, in pixels.

Read/Write uint32_t

#define CAPTURE_PROPERTY_DST_HEIGHT CAPTURE_PROPERTY( 'Q', 'D', 'F', 'H' )

Height of destination frame buffer, in pixels.

Read/Write uint32_t

#define CAPTURE_PROPERTY_DST_STRIDE CAPTURE_PROPERTY( 'Q', 'D', 'F', 'S' )

Stride of destination frame buffer, in bytes.

Read/Write uint32_t

#define CAPTURE_PROPERTY_DST_NBYTES CAPTURE_PROPERTY( 'Q', 'D', 'F', 'B' )

Size of destination frame buffer, in bytes.

For planar YUV formats, the size of each allocated destination buffer must be large enough for all the planes.

For other formats, each allocated destination buffer (CAPTURE_PROPERTY_DST_NBYTES) must be at least the product of the destination stride and the destination frame height (CAPTURE_PROPERTY_DST_STRIDE x CAPTURE_PROPERTY_DST_HEIGHT).

Read/Write uint32_t

#define CAPTURE_PROPERTY_DST_FORMAT CAPTURE_PROPERTY( 'Q', 'D', 'F', 'F' )

Destination buffer format.

When setting CAPTURE_PROPERTY_SRC_FORMAT, the valid values for this property are defined by Screen pixel format types in screen.h.

Read/Write [] uint32_t

#define CAPTURE_PROPERTY_PLANAR_OFFSETS CAPTURE_PROPERTY( 'Q', 'P', 'L', 'O' )

Offset from the base address for each of the Y, U, and V components of planar YUV formats.

Read/Write int