Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下 RGBA 如何转换为 YUV #1

Open
erleizh opened this issue Nov 15, 2017 · 1 comment
Open

请教一下 RGBA 如何转换为 YUV #1

erleizh opened this issue Nov 15, 2017 · 1 comment

Comments

@erleizh
Copy link

erleizh commented Nov 15, 2017

用 OpenGl Es glReadPixels 读取的像素数据 , GLES30.GL_RGBA, 怎么才能转换成 yuv 呢

我用 YuvUtils.RgbaToI420(Key.RGBA_TO_I420 ,...) 转换出来的图像是乱的

@doggycoder
Copy link
Owner

如果是颜色不对,换成ABGRToI40试试。如果是图像乱的,看下是不是读取宽高和转换宽高对不上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants