gpt4 book ai didi

java - SurfaceTexture 中的 texName 是什么?

转载 作者:行者123 更新时间:2023-12-02 05:52:35 26 4
gpt4 key购买 nike

实际上我正在尝试在不显示预览的情况下拍照。为此,我想出了 SurfaceTexture,但我想知道表面纹理中的 texName 是什么以及它的用途是什么?

//c is camera instance
SurfaceTexture surfaceTexture = new SurfaceTexture(10);
c.setPreviewTexture(surfaceTexture);

表面纹理中的10是什么?

最佳答案

10 是 txtName 的 int 值这是 OpenGL 纹理对象名称(例如通过 glGenTextures 生成)引用这个https://developer.android.com/reference/android/graphics/SurfaceTexture

关于java - SurfaceTexture 中的 texName 是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56037635/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com