¡@

Home 

c++ Programming Glossary: imgwidth

Problems converting YV12 to RGB through GLSL

http://stackoverflow.com/questions/8977489/problems-converting-yv12-to-rgb-through-glsl

0 #endif static GLfloat Xrot 0 Yrot 0 Zrot 0 static GLint ImgWidth ImgHeight static GLushort ImageYUV NULL static void DrawObject.. GL_QUADS glTexCoord2f 0 0 glVertex2f 1.0 1.0 glTexCoord2f ImgWidth 0 glVertex2f 1.0 1.0 glTexCoord2f ImgWidth ImgHeight glVertex2f.. glTexCoord2f ImgWidth 0 glVertex2f 1.0 1.0 glTexCoord2f ImgWidth ImgHeight glVertex2f 1.0 1.0 glTexCoord2f 0 ImgHeight glVertex2f..

Image scaling (KeepAspectRatioByExpanding) through OpenGL

http://stackoverflow.com/questions/9011108/image-scaling-keepaspectratiobyexpanding-through-opengl

glTexCoord2f 0 0 glVertex2f offset_x offset_y glTexCoord2f ImgWidth 0 glVertex2f offset_x gl_width offset_y glTexCoord2f ImgWidth.. 0 glVertex2f offset_x gl_width offset_y glTexCoord2f ImgWidth ImgHeight glVertex2f offset_x gl_width offset_y gl_height glTexCoord2f.. coordinates in the respective direction swap 0s for ImgWidth or height and vice versa . EDIT2 Using pixel coordinates not..