i´m new to opengl and i have the following problem. I get images from a camera very fast up to 25 Frames per second. To show the images i use the Qt Toolkit and from then i use the QGLWidget.
My problem is that the images i get from the camera have a resolution from 1600 x 1200. My Widget that i use can be dynamicly resize and i have to scale the image to this widget.
To draw the image bits to the widget i use the following function:
glDrawPixels(m_image.width(), m_image.height(), GL_RGB, GL_UNSIGNED_BYTE, bits);
But the image isn´t scaled. Now i found this function to scale images
This function is so slow and my cpu get up to 66%. My question is. How can i scale the image fast and resource friendly to the widget? Is there any OpenGL function that could help me with this problem ?
If it is possible show me a littel example but at moment it is not really easy for me to found the right GL functions.
Thank you really for your help
PS: Sorry for my bad english.