PAGImage.FromTexture的用法 #2674
-
想咨询下Android平台如何解析视频文件为纹理数据构建PAGImage,PAGImage.FromTexture这个api有使用的示例代码吗 |
Beta Was this translation helpful? Give feedback.
Answered by
kevingpqi123
Feb 21, 2025
Replies: 1 comment 4 replies
-
这里没有公开的使用范例,我大概讲下涉及到的 API 接口,pag 渲染的时候需要一个 OpenGL 环境,视频解码成纹理也需要一个 OpenGL 环境, PAGSurface 创建的时候有一个 shareContext 的接口,将视频解码过程中的纹理作为 shareContext 传入,PAGImage.FromTexture传入的是视频解码后的纹理数据,大概是这么个流程 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
kevingpqi123
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这里没有公开的使用范例,我大概讲下涉及到的 API 接口,pag 渲染的时候需要一个 OpenGL 环境,视频解码成纹理也需要一个 OpenGL 环境, PAGSurface 创建的时候有一个 shareContext 的接口,将视频解码过程中的纹理作为 shareContext 传入,PAGImage.FromTexture传入的是视频解码后的纹理数据,大概是这么个流程