Skip to content

PAGImage.FromTexture的用法 #2674

Answered by kevingpqi123
zeinx920 asked this question in Q&A
Discussion options

You must be logged in to vote

这里没有公开的使用范例,我大概讲下涉及到的 API 接口,pag 渲染的时候需要一个 OpenGL 环境,视频解码成纹理也需要一个 OpenGL 环境, PAGSurface 创建的时候有一个 shareContext 的接口,将视频解码过程中的纹理作为 shareContext 传入,PAGImage.FromTexture传入的是视频解码后的纹理数据,大概是这么个流程

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@zeinx920
Comment options

@kevingpqi123
Comment options

@zeinx920
Comment options

@kevingpqi123
Comment options

Answer selected by kevingpqi123
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants