-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
66 lines (51 loc) · 2.04 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
环境
#64-Ubuntu SMP Wed Dec 9 08:16:25 UTC 2020
Using Qt version 5.14.2
sample
一些样本文件
triangle
https://learnopengl-cn.github.io/01%20Getting%20started/04%20Hello%20Triangle/
two-triangle
1. 窗口左上角与右下角各绘制一个三角形
2. 使用uniform结合qt的setUniformValue更改颜色
3. 使用混合函数GL_BLEND测试透明效果
rectangle
1. 通过绘制两个三角形绘制矩形
2. 利用索引缓冲对象EBO绘制
https://learnopengl-cn.github.io/01%20Getting%20started/04%20Hello%20Triangle/#_10
triangle2
1. 在着色器代码内设定location
2. 位置着色器内使用更多属性,包含位置与对应颜色,并输出颜色到片段着色器
3. glVertexAttribPointer 步长与偏移变量的设置
4. https://learnopengl-cn.github.io/01%20Getting%20started/05%20Shaders/#_5
texture
1. 基本的纹理练习
2. 使用两个shader program绘制三角形与木箱
texture2
1. 纹理的基本参数练习
2. 运行时生成shader program
yuv
通过opengl转换并显示一个I420格式的YUV文件
freetype
通过FreeType库显示文本
yuv-freetype
yuv + freetype 显示I420格式的YUV文件,并叠加文本
ffmpeg
结合ffmpeg
videoplayer
yuv420p播放器测试
yuv-pbo
yuv + pbo 测试
样本使用了1080P与2160P的文件;
pc下使用PBO, glTexSubImage2D可实现异步,耗时0MS,实现了DMA;
rasspberry pi 4b下运行测试,使用pbo比不使用pbo的情况下,glTexSubImage2D耗时近一倍,并没有实现异步,可能还是和硬件有关系。
yuv-fbo
yuv + fbo 测试
参考:
https://blog.csdn.net/lixiaoguang20/article/details/62041513
https://cloud.tencent.com/developer/article/1636045
http://www.songho.ca/opengl/gl_pbo.html
https://learnopengl-cn.github.io/
http://www.songho.ca/opengl/index.html
https://dangelog.wordpress.com/2013/02/10/using-fbos-instead-of-pbuffers-in-qt-5-2/
https://stackoverflow.com/questions/42734019/rendering-to-qopenglframebufferobject-without-paintgl-call