提交 9c3e1ba6 编写于 作者: S supeng

fixed d3c7762a from https://gitee.com/sjtu_sp/ohos_docs/pulls/23748

modify dual channel preview instruction
Signed-off-by: Nsupeng <supeng13@huawei.com>
上级 f74f356f
......@@ -11,6 +11,12 @@
- 暂不支持动态添加流,即不能在没有调用session.stop的情况下,调用addOutput添加流。
- 对ImageReceiver组件获取到的图像数据处理后,需要将对应的图像Buffer释放,确保Surface的BufferQueue正常轮转。
## 调用流程
双路方案调用流程图建议如下:
![dual-preview-streams-instructions](figures/dual-preview-streams-instructions.png)
## 开发步骤
1. 导入image接口。
......
......@@ -178,7 +178,7 @@ async function cameraModeCase(context: featureAbility.Context, surfaceId: string
// 获取支持的美颜类型对应的美颜强度范围
let beautyRanges: Array<number>;
try {
beautyRanges = portraitSession.getSupportedBeautyRanges(beautyTypes[0]);
beautyRanges = portraitSession.getSupportedBeautyRange(beautyTypes[0]);
} catch (error) {
let err = error as BusinessError;
console.error('Failed to get the beauty types ranges. errorCode = ' + err.code);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册