add capi interface

Signed-off-by: lin-jianwu <linjianwu@huawei.com>
This commit is contained in:
lin-jianwu 2023-11-10 15:22:02 +08:00
parent c2b6621d0f
commit f4c864478b
2 changed files with 4 additions and 4 deletions

View File

@ -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
*/

View File

@ -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,7 +65,7 @@ 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. */
OH_OnFrameAvailable onFrameAvailable;