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

fuchsia.hardware.ge2d

PROTOCOLS

Ge2d

Defined in fuchsia.hardware.ge2d/ge2d.fidl

InitTaskInPlaceWaterMark

Request

NameType
buffer_collection fuchsia.sysmem/BufferCollectionInfo_2
info vector<WaterMarkInfo>
image_format_table vector<fuchsia.sysmem/ImageFormat_2>
image_format_index uint32
frame_callback fuchsia.hardware.camerahwaccel/HwAccelFrameCallback
res_callback fuchsia.hardware.camerahwaccel/HwAccelResChangeCallback
task_remove_callback fuchsia.hardware.camerahwaccel/HwAccelRemoveTaskCallback

Response

NameType
s zx/status
task_index uint32

InitTaskResize

Request

NameType
input_buffer_collection fuchsia.sysmem/BufferCollectionInfo_2
output_buffer_collection fuchsia.sysmem/BufferCollectionInfo_2
info ResizeInfo
image_format fuchsia.sysmem/ImageFormat_2
output_image_format_table vector<fuchsia.sysmem/ImageFormat_2>
output_image_format_index uint32
frame_callback fuchsia.hardware.camerahwaccel/HwAccelFrameCallback
res_callback fuchsia.hardware.camerahwaccel/HwAccelResChangeCallback
task_remove_callback fuchsia.hardware.camerahwaccel/HwAccelRemoveTaskCallback

Response

NameType
s zx/status
task_index uint32

InitTaskWaterMark

Request

NameType
input_buffer_collection fuchsia.sysmem/BufferCollectionInfo_2
output_buffer_collection fuchsia.sysmem/BufferCollectionInfo_2
info vector<WaterMarkInfo>
image_format_table vector<fuchsia.sysmem/ImageFormat_2>
image_format_index uint32
frame_callback fuchsia.hardware.camerahwaccel/HwAccelFrameCallback
res_callback fuchsia.hardware.camerahwaccel/HwAccelResChangeCallback
task_remove_callback fuchsia.hardware.camerahwaccel/HwAccelRemoveTaskCallback

Response

NameType
s zx/status
task_index uint32

ProcessFrame

Request

NameType
task_index uint32
input_buffer_index uint32
capture_timestamp uint64

Response

NameType
s zx/status

ReleaseFrame

Request

NameType
task_index uint32
buffer_index uint32

RemoveTask

Request

NameType
task_index uint32

SetCropRect

Request

NameType
task_index uint32
crop fuchsia.hardware.camera/Rect

SetInputAndOutputResolution

Request

NameType
task_index uint32
new_image_format_index uint32

Response

NameType
s zx/status

SetOutputResolution

Request

NameType
task_index uint32
new_output_image_format_index uint32

Response

NameType
s zx/status

STRUCTS

ResizeInfo

Defined in fuchsia.hardware.ge2d/ge2d.fidl

NameTypeDescriptionDefault
crop fuchsia.hardware.camera/Rect No default
output_rotation Ge2dRotation No default

WaterMarkInfo resource

Defined in fuchsia.hardware.ge2d/ge2d.fidl

NameTypeDescriptionDefault
loc_x uint32 No default
loc_y uint32 No default
wm_image_format fuchsia.sysmem/ImageFormat_2 No default
watermark_vmo handle<vmo> No default
global_alpha float32 No default

ENUMS

Ge2dRotation strict

Type: uint8

Defined in fuchsia.hardware.ge2d/ge2d.fidl

NameValueDescription
ROTATION_0 0
ROTATION_90 1
ROTATION_180 2
ROTATION_270 3
MAX 4