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
Name | Type |
---|---|
ch |
handle<channel>
|
GetChannel2
Request
Name | Type |
---|---|
server_end |
request<fuchsia.camera2.hal/Controller>
|
STRUCTS
ColorVal
Defined in fuchsia.hardware.camera/camera.fidl
Encodes R, Gr, B, Gb pixel values.
Name | Type | Description | Default |
---|---|---|---|
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.
Name | Type | Description | Default |
---|---|---|---|
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.
Name | Type | Description | Default |
---|---|---|---|
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.
Name | Type | Description | Default |
---|---|---|---|
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.
Name | Type | Description | Default |
---|---|---|---|
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
Name | Value | Description |
---|---|---|
RGGB |
1 |
|
GRBG |
2 |
|
GBRG |
3 |
|
BGGR |
4 |