Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
222364d2
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
222364d2
编写于
9月 27, 2022
作者:
Z
zengyawen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update docs
Signed-off-by:
N
zengyawen
<
zengyawen1@huawei.com
>
上级
dd5b0adc
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
16 deletion
+16
-16
zh-cn/application-dev/reference/native-apis/external__window_8h.md
...lication-dev/reference/native-apis/external__window_8h.md
+16
-16
未找到文件。
zh-cn/application-dev/reference/native-apis/external__window_8h.md
浏览文件 @
222364d2
...
...
@@ -49,19 +49,19 @@
| 函数名称 | 描述 |
| -------- | -------- |
|
[
OH_NativeWindow_CreateNativeWindow
](
_native_window.md#oh_nativewindow_createnativewindow
)
(
void
\*
pSurface) | 创建NativeWindow实例,每次调用都会产生一个新的NativeWindow实例 |
|
[
OH_NativeWindow_DestroyNativeWindow
](
_native_window.md#oh_nativewindow_destroynativewindow
)
(
OHNativeWindow
\*
window) | 将NativeWindow对象的引用计数减1,当引用计数为0的时候,该NativeWindow对象会被析构掉 |
|
[
OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer
](
_native_window.md#oh_nativewindow_createnativewindowbufferfromsurfacebuffer
)
(
void
\*
pSurfaceBuffer) | 创建NativeWindowBuffer实例,每次调用都会产生一个新的NativeWindowBuffer实例 |
|
[
OH_NativeWindow_DestroyNativeWindowBuffer
](
_native_window.md#oh_nativewindow_destroynativewindowbuffer
)
(
OHNativeWindowBuffer
\*
buffer) | 将NativeWindowBuffer对象的引用计数减1,当引用计数为0的时候,该NativeWindowBuffer对象会被析构掉 |
|
[
OH_NativeWindow_NativeWindowRequestBuffer
](
_native_window.md#oh_nativewindow_nativewindowrequestbuffer
)
(
OHNativeWindow
\*
window, OHNativeWindowBuffer
\*\*
buffer, int
\*
fenceFd) | 通过NativeWindow对象申请一块NativeWindowBuffer,用以内容生产 |
|
[
OH_NativeWindow_NativeWindowFlushBuffer
](
_native_window.md#oh_nativewindow_nativewindowflushbuffer
)
(
OHNativeWindow
\*
window, OHNativeWindowBuffer
\*
buffer, int fenceFd,
[
Region
](
_region.md
)
region) | 通过NativeWindow将生产好内容的NativeWindowBuffer放回到Buffer队列中,用以内容消费 |
|
[
OH_NativeWindow_NativeWindowAbortBuffer
](
_native_window.md#oh_nativewindow_nativewindowabortbuffer
)
(
OHNativeWindow
\*
window, OHNativeWindowBuffer
\*
buffer) | 通过NativeWindow将之前申请出来的NativeWindowBuffer返还到Buffer队列中,供下次再申请 |
|
[
OH_NativeWindow_NativeWindowHandleOpt
](
_native_window.md#oh_nativewindow_nativewindowhandleopt
)
(
OHNativeWindow
\*
window, int code,...) | 设置/获取NativeWindow的属性,包括设置/获取宽高、内容格式等 |
|
[
OH_NativeWindow_GetBufferHandleFromNative
](
_native_window.md#oh_nativewindow_getbufferhandlefromnative
)
(
OHNativeWindowBuffer
\*
buffer) | 通过NativeWindowBuffer获取该buffer的BufferHandle指针 |
|
[
OH_NativeWindow_NativeObjectReference
](
_native_window.md#oh_nativewindow_nativeobjectreference
)
(
void
\*
obj) | 增加一个NativeObject的引用计数 |
|
[
OH_NativeWindow_NativeObjectUnreference
](
_native_window.md#oh_nativewindow_nativeobjectunreference
)
(
void
\*
obj) | 减少一个NativeObject的引用计数,当引用计数减少为0时,该NativeObject将被析构掉 |
|
[
OH_NativeWindow_GetNativeObjectMagic
](
_native_window.md#oh_nativewindow_getnativeobjectmagic
)
(
void
\*
obj) | 获取NativeObject的MagicId |
|
[
OH_NativeWindow_NativeWindowSetScalingMode
](
_native_window.md#oh_nativewindow_nativewindowsetscalingmode
)
(
OHNativeWindow
\*
window, uint32_t sequence,
[
OHScalingMode
](
_native_window.md#ohscalingmode
)
scalingMode) | 设置NativeWindow的ScalingMode |
|
[
OH_NativeWindow_NativeWindowSetMetaData
](
_native_window.md#oh_nativewindow_nativewindowsetmetadata
)
(
OHNativeWindow
\*
window, uint32_t sequence, int32_t size, const
[
OHHDRMetaData
](
_o_h_h_d_r_meta_data.md
)
\*
metaData) | 设置NativeWindow的元数据 |
|
[
OH_NativeWindow_NativeWindowSetMetaDataSet
](
_native_window.md#oh_nativewindow_nativewindowsetmetadataset
)
(
OHNativeWindow
\*
window, uint32_t sequence,
[
OHHDRMetadataKey
](
_native_window.md#ohhdrmetadatakey
)
key, int32_t size, const uint8_t
\*
metaData) | 设置NativeWindow的元数据集。 |
|
[
OH_NativeWindow_NativeWindowSetTunnelHandle
](
_native_window.md#oh_nativewindow_nativewindowsettunnelhandle
)
(
OHNativeWindow
\*
window, const
[
OHExtDataHandle
](
_o_h_ext_data_handle.md
)
\*
handle) | 设置NativeWindow的TunnelHandle。 |
\ No newline at end of file
|
[
OH_NativeWindow_CreateNativeWindow
](
_native_window.md#oh_nativewindow_createnativewindow
)
(
void
\*
pSurface) | 创建NativeWindow实例,每次调用都会产生一个新的NativeWindow实例 |
|
[
OH_NativeWindow_DestroyNativeWindow
](
_native_window.md#oh_nativewindow_destroynativewindow
)
(
OHNativeWindow
\*
window) | 将NativeWindow对象的引用计数减1,当引用计数为0的时候,该NativeWindow对象会被析构掉 |
|
[
OH_NativeWindow_CreateNativeWindowBufferFromSurfaceBuffer
](
_native_window.md#oh_nativewindow_createnativewindowbufferfromsurfacebuffer
)
(
void
\*
pSurfaceBuffer) | 创建NativeWindowBuffer实例,每次调用都会产生一个新的NativeWindowBuffer实例 |
|
[
OH_NativeWindow_DestroyNativeWindowBuffer
](
_native_window.md#oh_nativewindow_destroynativewindowbuffer
)
(
OHNativeWindowBuffer
\*
buffer) | 将NativeWindowBuffer对象的引用计数减1,当引用计数为0的时候,该NativeWindowBuffer对象会被析构掉 |
|
[
OH_NativeWindow_NativeWindowRequestBuffer
](
_native_window.md#oh_nativewindow_nativewindowrequestbuffer
)
(
OHNativeWindow
\*
window, OHNativeWindowBuffer
\*\*
buffer, int
\*
fenceFd) | 通过NativeWindow对象申请一块NativeWindowBuffer,用以内容生产 |
|
[
OH_NativeWindow_NativeWindowFlushBuffer
](
_native_window.md#oh_nativewindow_nativewindowflushbuffer
)
(
OHNativeWindow
\*
window, OHNativeWindowBuffer
\*
buffer, int fenceFd,
[
Region
](
_region.md
)
region) | 通过NativeWindow将生产好内容的NativeWindowBuffer放回到Buffer队列中,用以内容消费 |
|
[
OH_NativeWindow_NativeWindowAbortBuffer
](
_native_window.md#oh_nativewindow_nativewindowabortbuffer
)
(
OHNativeWindow
\*
window, OHNativeWindowBuffer
\*
buffer) | 通过NativeWindow将之前申请出来的NativeWindowBuffer返还到Buffer队列中,供下次再申请 |
|
[
OH_NativeWindow_NativeWindowHandleOpt
](
_native_window.md#oh_nativewindow_nativewindowhandleopt
)
(
OHNativeWindow
\*
window, int code,...) | 设置/获取NativeWindow的属性,包括设置/获取宽高、内容格式等 |
|
[
OH_NativeWindow_GetBufferHandleFromNative
](
_native_window.md#oh_nativewindow_getbufferhandlefromnative
)
(
OHNativeWindowBuffer
\*
buffer) | 通过NativeWindowBuffer获取该buffer的BufferHandle指针 |
|
[
OH_NativeWindow_NativeObjectReference
](
_native_window.md#oh_nativewindow_nativeobjectreference
)
(
void
\*
obj) | 增加一个NativeObject的引用计数 |
|
[
OH_NativeWindow_NativeObjectUnreference
](
_native_window.md#oh_nativewindow_nativeobjectunreference
)
(
void
\*
obj) | 减少一个NativeObject的引用计数,当引用计数减少为0时,该NativeObject将被析构掉 |
|
[
OH_NativeWindow_GetNativeObjectMagic
](
_native_window.md#oh_nativewindow_getnativeobjectmagic
)
(
void
\*
obj) | 获取NativeObject的MagicId |
|
[
OH_NativeWindow_NativeWindowSetScalingMode
](
_native_window.md#oh_nativewindow_nativewindowsetscalingmode
)
(
OHNativeWindow
\*
window, uint32_t sequence,
[
OHScalingMode
](
_native_window.md#ohscalingmode
)
scalingMode) | 设置NativeWindow的ScalingMode |
|
[
OH_NativeWindow_NativeWindowSetMetaData
](
_native_window.md#oh_nativewindow_nativewindowsetmetadata
)
(
OHNativeWindow
\*
window, uint32_t sequence, int32_t size, const
[
OHHDRMetaData
](
_o_h_h_d_r_meta_data.md
)
\*
metaData) | 设置NativeWindow的元数据 |
|
[
OH_NativeWindow_NativeWindowSetMetaDataSet
](
_native_window.md#oh_nativewindow_nativewindowsetmetadataset
)
(
OHNativeWindow
\*
window, uint32_t sequence,
[
OHHDRMetadataKey
](
_native_window.md#ohhdrmetadatakey
)
key, int32_t size, const uint8_t
\*
metaData) | 设置NativeWindow的元数据集。 |
|
[
OH_NativeWindow_NativeWindowSetTunnelHandle
](
_native_window.md#oh_nativewindow_nativewindowsettunnelhandle
)
(
OHNativeWindow
\*
window, const
[
OHExtDataHandle
](
_o_h_ext_data_handle.md
)
\*
handle) | 设置NativeWindow的TunnelHandle。 |
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录