gpu_async_copy

COPY from a frame-buffer to another.

static int32_t gpu_async_copy(
    struct gpu_buffer * dst,
    struct gpu_rectangle * dst_rect,
    struct gpu_buffer * src,
    struct gpu_rectangle * src_rect
)

This function COPY a 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.

Parameters

dst

Type: struct gpu_buffer *

Pointer to the destination area buffer.

dst_rect

Type: struct gpu_rectangle *

Pointer to the destination area rectangle.

src

Type: struct gpu_buffer *

Pointer to the source area buffer.

src_rect

Type: struct gpu_rectangle *

Pointer to the source area rectangle.

Returns

Type: int32_t

Operation status.

ERR_BUSY

A GPU Operation still in processing.