mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 14:50:20 +00:00
add capi interface
Signed-off-by: lin-jianwu <linjianwu@huawei.com>
This commit is contained in:
parent
c2b6621d0f
commit
f4c864478b
@ -267,7 +267,7 @@ uint32_t OH_NativeBuffer_GetSeqNum(OH_NativeBuffer *buffer);
|
||||
* @syscap SystemCapability.Graphic.Graphic2D.NativeBuffer
|
||||
* @param buffer Indicates the pointer to a <b>OH_NativeBuffer</b> instance.
|
||||
* @param colorSpace Indicates the color space of native buffer, see <b>OH_NativeBuffer_ColorSpace</b>.
|
||||
* @return Returns the sequence number, which is unique for each OH_NativeBuffer.
|
||||
* @return Returns an error code, 0 is success, otherwise, failed.
|
||||
* @since 11
|
||||
* @version 1.0
|
||||
*/
|
||||
|
@ -57,7 +57,7 @@ typedef struct NativeWindow OHNativeWindow;
|
||||
typedef void (*OH_OnFrameAvailable)(void *context);
|
||||
|
||||
/**
|
||||
* @brief A listener for native image, use <b>OH_NativeImage_SetOnFrameAvailableListener</b> to register \n
|
||||
* @brief A listener for OH_NativeImage, use <b>OH_NativeImage_SetOnFrameAvailableListener</b> to register \n
|
||||
* the listener object to <b>OH_NativeImage</b>, the callback will be triggered when there is available frame
|
||||
*
|
||||
* @since 11
|
||||
@ -65,9 +65,9 @@ typedef void (*OH_OnFrameAvailable)(void *context);
|
||||
*/
|
||||
typedef struct OH_OnFrameAvailableListener
|
||||
{
|
||||
/** User defined context, returned to the user in the callback function*/
|
||||
/** User defined context, returned to the user in the callback function. */
|
||||
void *context;
|
||||
/** The callback function of frame available.*/
|
||||
/** The callback function of frame available. */
|
||||
OH_OnFrameAvailable onFrameAvailable;
|
||||
} OH_OnFrameAvailableListener;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user