Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.camera

PROTOCOLS

Device

Defined in fuchsia.hardware.camera/camera.fidl

GetChannel

Note: this method obtains a channel to the capture device which communicates using a non-simple fidl interface. Once the system has been updated to support normal fidl protocols, this method can be replaced with the protocol itself. Additionally, while the camera stack is migrating from camera to camera2, two methods are available, corresponding to the two versions of the protocol.

Request

NameType
ch handle<channel>

GetChannel2

Request

NameType
server_end request<fuchsia.camera2.hal/Controller>

STRUCTS

ColorVal

Defined in fuchsia.hardware.camera/camera.fidl

Encodes R, Gr, B, Gb pixel values.

NameTypeDescriptionDefault
red uint16 No default
green_r uint16 No default
blue uint16 No default
green_b uint16 No default

Dimensions

Defined in fuchsia.hardware.camera/camera.fidl

Encodes a pair of width and height values. For example, for use as a representation of frame resolution where |x| is width and |y| is height.

NameTypeDescriptionDefault
x float32 No default
y float32 No default

FrameRate

Defined in fuchsia.hardware.camera/camera.fidl

Encodes frame rate as separate a separate numerator and denominator. Decoded via frames_per_sec_numerator / frames_per_sec_denominator.

NameTypeDescriptionDefault
frames_per_sec_numerator uint32 No default
frames_per_sec_denominator uint32 No default

MinMaxConstraints

Defined in fuchsia.hardware.camera/camera.fidl

Encodes a pair of minimum and maximum values. For example, for use as sensor constraints for exposure settings.

NameTypeDescriptionDefault
min uint32 No default
max uint32 No default

Rect

Defined in fuchsia.hardware.camera/camera.fidl

Encodes information to represent a rectangle on a grid.

NameTypeDescriptionDefault
x uint32 No default
y uint32 No default
width uint32 No default
height uint32 No default

ENUMS

BayerPattern

Type: uint8

Defined in fuchsia.hardware.camera/camera.fidl

NameValueDescription
RGGB 1
GRBG 2
GBRG 3
BGGR 4