Blend foreground and background to a destination frame-buffer.
static int32_t gpu_async_blend( struct gpu_buffer * dst, struct gpu_rectangle * dst_rect, struct gpu_buffer * fg, struct gpu_rectangle * fg_rect, struct gpu_buffer * bg, struct gpu_rectangle * bg_rect, enum gpu_blend blend )
This function BLEND a foreground frame-buffer and a background frame-buffer to a destination frame-buffer. This function is asynchronous, application can call gpu_async_register_callback function to register a callback function. The callback function will be invoked when GPU operation finished.
Type: struct gpu_buffer *
Pointer to the destination area buffer.
Type: struct gpu_rectangle *
Pointer to the destination area rectangle.
Type: struct gpu_buffer *
Pointer to the foreground area buffer.
Type: struct gpu_rectangle *
Pointer to the foreground area rectangle.
Type: struct gpu_buffer *
Pointer to the background area buffer.
Type: struct gpu_rectangle *
Pointer to the background area rectangle.
Type: enum gpu_blend
Blend function.
Type: int32_t
Operation status.
A GPU Operation still in processing.