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

VideoPlayHWGL代码的问题请教 #6

Open
liangrf opened this issue Mar 7, 2025 · 1 comment
Open

VideoPlayHWGL代码的问题请教 #6

liangrf opened this issue Mar 7, 2025 · 1 comment

Comments

@liangrf
Copy link

liangrf commented Mar 7, 2025

VideoPlayHWGL代码中,硬件解码一帧后,调用了dataCopy接口,按注释是将数据从GPU拷贝到CPU。但是OpenGL应该可以直接使用GPU中的数据进行渲染,为什么要多进行这一次拷贝呢?

@liangrf
Copy link
Author

liangrf commented Mar 18, 2025

应该是现在渲染方式是内存数据的渲染,显存数据的绑定方式或者格式和这种方式不同,所以需要拷贝到内存再渲染

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

1 participant