Is it possible to use OpenGL to display video and be able to resize the view in runtime?
A:
Check this link : http://developer.android.com/guide/topics/graphics/opengl.html, it should give you the answers you seek.
Regards from France ;)
Squ36
2010-07-23 07:04:10
A:
Yes, it works by uploading each frame as a texture by glTexSubImage2D. I've tested this for output from FFmpeg based decoder and it's doing fine.
ognian
2010-07-23 13:40:23
Is this in software or is it hardware accelerated because software would be too slow.
Namratha
2010-07-26 01:56:09
"Would" be too slow? How do you know that without trying? Furthermore OpenGL isn't the best choice for video playing, unless you're after portability or 3D transformation of the video output. The resizing is performed on GPU with this method. However it will be "slow" on specific Snapdragon hardware like Nexus One.
ognian
2010-07-26 05:46:23