Skip to content

PAGSurface readPixels失败 #77

Answered by domchen
krislyy asked this question in Q&A
Jan 26, 2022 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

你这边关键的步骤代码几乎都没贴出来,PAGComposition是怎么创建的?是不是一个空的内容。首帧是空的内容吗?generateSurfaceFrame里做什么了,有调用flush吗? PAGSurface.MakeOffscreen()是哪来的?android不存在这个方法。surface.readPixels(buffer); 这个又是哪来的方法?最后你是要readPixels,为啥read完了你把它当做文件去解码。你这个的代码是编译通过的吗?

Replies: 1 comment 4 replies

Comment options

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

@domchen
Comment options

@krislyy
Comment options

@domchen
Comment options

Answer selected by krislyy
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