class Ge2dNode
Defined at line 22 of file ../../src/camera/drivers/controller/ge2d_node.h
Public Methods
void Ge2dNode (async_dispatcher_t * dispatcher, BufferAttachments attachments, FrameCallback frame_callback, const ddk::Ge2dProtocolClient & ge2d, const camera::InternalConfigNode & internal_ge2d_node)
Defined at line 25 of file ../../src/camera/drivers/controller/ge2d_node.cc
fpromise::result<std::unique_ptr<Ge2dNode>, zx_status_t> Create (async_dispatcher_t * dispatcher, BufferAttachments attachments, FrameCallback frame_callback, const LoadFirmwareCallback & load_firmware, const ddk::Ge2dProtocolClient & ge2d, const InternalConfigNode & internal_ge2d_node, const StreamCreationData & info)
Creates a |Ge2dNode| object.
Args:
|memory_allocator| : Memory allocator object to allocate memory using sysmem.
|dispatcher| : Dispatcher on which GE2D tasks can be queued up.
|device| : Device pointer to get the GE2D configs from DDK.
|ge2d| : GE2D protocol to talk to the driver.
|info| : StreamCreationData for the requested stream.
|parent_node| : pointer to the node to which we need to append this |OutputNode|.
|internal_output_node| : InternalConfigNode corresponding to this node.
Defined at line 34 of file ../../src/camera/drivers/controller/ge2d_node.cc
zx_status_t SetCropRect (float x_min, float y_min, float x_max, float y_max)
Special functionality provided by the GE2D node.
Notifies that the client has requested a new crop rectangle.
(x_min, y_min): Top left co-ordinates for the crop rectangle.
(x_max, y_max): Bottom right coordinates for the crop rectangle.
These are in the range [0.0f, 1.0f]
Defined at line 221 of file ../../src/camera/drivers/controller/ge2d_node.cc