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

改变四通道图片的宽高,节省内存开销 | FLYING的博客 #5

Open
yang-f opened this issue Feb 21, 2019 · 1 comment
Open

Comments

@yang-f
Copy link
Owner

yang-f commented Feb 21, 2019

https://yangf.vip/2017/08/09/%E6%94%B9%E5%8F%98%E5%9B%9B%E9%80%9A%E9%81%93%E5%9B%BE%E7%89%87%E7%9A%84%E5%AE%BD%E9%AB%98%EF%BC%8C%E8%8A%82%E7%9C%81%E5%86%85%E5%AD%98%E5%BC%80%E9%94%80/

有时候我们需要将大量的图片放到内存里面,但是又不想占用太多内存。比如实现进度条拖拽流畅的正播倒播,只能先把视频帧解码之后放到内存中才能实现。如果是原始图片大小,假设为1280720的图片,4通道,我们可以简单估算一下时长一分钟帧率为24视频解码之后所占内存的大小:16024*(12807204/8)/1024 kB = 648000 kB = 632 MB 632 MB 的内存对于PC

@yang-f
Copy link
Owner Author

yang-f commented Feb 21, 2019

mark

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

No branches or pull requests

1 participant