simplest_video_play_opengl

所属分类:OpenGL
开发工具:Visual C++
文件大小:519KB
下载次数:7
上传日期:2016-09-25 22:56:15
上 传 者vx00000000
说明:  使用OpenGL显示YUV图像的简单例子
(rendering yuv width OpenGL)

文件列表:
glew32.dll (337408, 2013-09-29)
glu32.dll (165376, 2009-07-14)
glut32.dll (169984, 1998-08-18)
include (0, 2014-10-18)
include\GL.h (69085, 2009-12-16)
include\glew.h (925388, 2013-07-22)
include\GLU.h (18284, 2009-12-16)
include\glut.h (21440, 1998-08-18)
include\glxew.h (68423, 2013-07-22)
include\wglew.h (62206, 2013-07-22)
lib (0, 2014-10-18)
lib\glew32.lib (562210, 2013-09-29)
lib\GlU32.Lib (12668, 2009-12-16)
lib\glut32.lib (79898, 1998-08-18)
lib\OpenGL32.Lib (76920, 2009-12-16)
simplest_video_play_opengl.cpp (6348, 2014-10-18)
simplest_video_play_opengl.vcxproj (4740, 2014-10-13)
simplest_video_play_opengl.vcxproj.filters (1030, 2014-10-13)
simplest_video_play_opengl.vcxproj.user (143, 2014-09-22)
simplest_video_play_opengl_cn.txt (11307, 2014-10-09)

最简单的OpenGL播放视频的例子(OpenGL播放RGB/YUV) Simplest Video Play OpenGL (OpenGL play RGB/YUV) 雷霄骅 Lei Xiaohua leixiaohua1020@126.com 中国传媒大学/数字电视技术 Communication University of *** / Digital TV Technology http://blog.csdn.net/leixiaohua1020 本程序使用OpenGL播放RGB/YUV视频像素数据。本程序实际上只能 播放RGB(RGB24,BGR24,BGRA)数据。如果输入数据为YUV420P 数据的话,需要先转换为RGB数据之后再进行播放。 本程序是最简单的使用OpenGL播放像素数据的例子,适合OpenGL新手学习。 函数调用步骤如下: [初始化] glutInit():初始化glut库。 glutInitDisplayMode():设置显示模式。 glutCreateWindow():创建一个窗口。 glutDisplayFunc():设置绘图函数(重绘的时候调用)。 glutTimerFunc():设置定时器。 glutMainLoop():进入消息循环。 [循环渲染数据] glRasterPos3f(),glPixelZoom():调整显示位置,图像大小。 glDrawPixels():绘制。 glutSwapBuffers():显示。 This software plays RGB/YUV raw video data using OpenGL. This software support show RGB (RGB24, BGR24, BGRA) data on the screen. If the input data is YUV420P, it need to be convert to RGB first. This program is the simplest example about play raw video data using OpenGL, Suitable for the beginner of OpenGL. The process is shown as follows: [Init] glutInit():Init glut library. glutInitDisplayMode(): Set display mode. glutCreateWindow(): Create a window. glutDisplayFunc(): Set the display callback. glutTimerFunc(): Set timer. glutMainLoop(): Start message loop. [Loop to Render data] glRasterPos3f(),glPixelZoom(): Change picture's size and position. glDrawPixels(): draw. glutSwapBuffers(): show.

近期下载者

相关文件


收藏者