views:

45

answers:

2

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
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
Is this in software or is it hardware accelerated because software would be too slow.
Namratha
"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