Skip to content

Commit 6067c8c

Browse files
committed
update
1 parent ca8eb7b commit 6067c8c

12 files changed

+180
-25
lines changed

README.md

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,21 @@ Android学习笔记
6666
- [CDN及PCDN][228]
6767
- [P2P][229]
6868
- [播放器性能优化][230]
69+
- [MediaExtractor、MediaCodec、MediaMuxer][245]
6970
- [OpenGL][231]
7071
- [1.OpenGL简介][232]
7172
- [2.GLSurfaceView简介][233]
7273
- [3.GLSurfaceView源码解析][234]
73-
- [][]
74-
- [][]
75-
- [][]
76-
- [][]
77-
- [][]
78-
- [][]
79-
- [][]
80-
- [][]
81-
- [弹幕][]
82-
- [][]
74+
- [4.GLTextureView实现][235]
75+
- [5.OpenGL ES绘制三角形][236]
76+
- [6.OpenGL ES绘制矩形及圆形][237]
77+
- [7.OpenGL ES着色器语言GLSL][238]
78+
- [8.GLES类及Matrix类][239]
79+
- [9.OpenGL ES纹理][240]
80+
- [10.GLSurfaceView+MediaPlayer播放视频][241]
81+
- [11.OpenGL ES滤镜][242]
82+
- [弹幕][243]
83+
- [Android弹幕实现][244]
8384
- [图片加载][45]
8485
- [Glide简介(上)][25]
8586
- [Glide简介(下)][26]
@@ -509,6 +510,17 @@ Android学习笔记
509510
[232]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/1.OpenGL%E7%AE%80%E4%BB%8B.md "1.OpenGL简介"
510511
[233]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/2.GLSurfaceView%E7%AE%80%E4%BB%8B.md "2.GLSurfaceView简介""
511512
[234]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/3.GLSurfaceView%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90.md "3.GLSurfaceView源码解析"
513+
[235]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/4.GLTextureView%E5%AE%9E%E7%8E%B0.md "4.GLTextureView实现.md"
514+
[236]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/5.OpenGL%20ES%E7%BB%98%E5%88%B6%E4%B8%89%E8%A7%92%E5%BD%A2.md "5.OpenGL ES绘制三角形"
515+
[237]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/6.OpenGL%20ES%E7%BB%98%E5%88%B6%E7%9F%A9%E5%BD%A2%E5%8F%8A%E5%9C%86%E5%BD%A2.md "6.OpenGL ES绘制矩形及圆形"
516+
[238]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/7.OpenGL%20ES%E7%9D%80%E8%89%B2%E5%99%A8%E8%AF%AD%E8%A8%80GLSL.md "7.OpenGL ES着色器语言GLSL"
517+
[239]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/8.GLES%E7%B1%BB%E5%8F%8AMatrix%E7%B1%BB.md "8.GLES类及Matrix类"
518+
[240]: "https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/9.OpenGL%20ES%E7%BA%B9%E7%90%86.md" "9.OpenGL ES纹理"
519+
[241]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/10.GLSurfaceView%2BMediaPlayer%E6%92%AD%E6%94%BE%E8%A7%86%E9%A2%91.md "10.GLSurfaceView+MediaPlayer播放视频"
520+
[242]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/11.OpenGL%20ES%E6%BB%A4%E9%95%9C.md "11.OpenGL ES滤镜"
521+
[243]: https://github.com/CharonChui/AndroidNote/tree/master/VideoDevelopment/Danmaku "弹幕"
522+
[244]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/Danmaku/Android%E5%BC%B9%E5%B9%95%E5%AE%9E%E7%8E%B0.md "Android弹幕实现"
523+
[245]: https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/MediaExtractor%E3%80%81MediaCodec%E3%80%81MediaMuxer.md "MediaExtractor、MediaCodec、MediaMuxer"
512524

513525

514526

VideoDevelopment/OpenGL/1.OpenGL简介.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ OpenGL(Open Graphics Library开发图形库)是用于渲染2D、3D矢量图形
66

77
OpenGL的前身是硅谷图形功能(SGI)公司为其图形工作站开发的IRIS GL,后来因为IRIS GL的移植性不好,所以在其基础上,开发出了OpenGl。OpenGl一般用于在图形工作站,PC端使用,由于性能各方面原因,在移动端使用OpenGl基本带不动。为此,Khronos公司就为OpenGl提供了一个子集,OpenGl ES(OpenGl for Embedded System)。
88

9+
网上已经有很多文章,这里为什么还要写?主要是因为最近在学的时候发现那些文章看完后还是雨里雾里的不明白。我想写一个简单的,能从入门开始一步步学习的,能简单的学会,文章里面有一些是从下面写的参考链接中拷贝过来的,也有一些是自己从书上看的。
910

1011

1112
### OpenGL ES
@@ -228,8 +229,13 @@ Android 框架中有如下两个基本类,用于通过 OpenGL ES API 来创建
228229

229230

230231

232+
233+
[下一篇: 2.GLSurfaceView简介](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/2.GLSurfaceView%E7%AE%80%E4%BB%8B.md)
231234

235+
---
232236

237+
- 邮箱 :charon.chui@gmail.com
238+
- Good Luck!
233239

234240

235241

VideoDevelopment/OpenGL/10.GLSurfaceView+MediaPlayer播放视频.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 9.GLSurfaceView+MediaPlayer播放视频
1+
## 10.GLSurfaceView+MediaPlayer播放视频
22

33

44

@@ -105,4 +105,30 @@ public class VideoActivity extends Activity {
105105

106106

107107

108-
### 增加OpenGL ES
108+
### 增加OpenGL ES
109+
110+
111+
112+
113+
114+
115+
116+
117+
[上一篇: 9.OpenGL ES纹理](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/9.OpenGL%20ES%E7%BA%B9%E7%90%86.md)
118+
[下一篇: 11.OpenGL ES滤镜](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/11.OpenGL%20ES%E6%BB%A4%E9%95%9C.md)
119+
120+
---
121+
122+
- 邮箱 :charon.chui@gmail.com
123+
- Good Luck!
124+
125+
126+
127+
128+
129+
130+
131+
132+
133+
134+

VideoDevelopment/OpenGL/11.OpenGL ES滤镜.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 10.OpenGL ES滤镜
1+
## 11.OpenGL ES滤镜
22

33
滤镜其实就是利用纹理。
44

@@ -27,6 +27,12 @@ RGB三个通道的颜色取反,而alpha通道不变。
2727

2828

2929

30+
[上一篇: 10.GLSurfaceView+MediaPlayer播放视频](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/10.GLSurfaceView%2BMediaPlayer%E6%92%AD%E6%94%BE%E8%A7%86%E9%A2%91.md)
31+
32+
---
33+
34+
- 邮箱 :charon.chui@gmail.com
35+
- Good Luck!
3036

3137

3238

VideoDevelopment/OpenGL/2.GLSurfaceView简介.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,11 @@ GLSurfaceView继承自SurfaceView,它主要是在SurfaceView的基础上加入
3636

3737
OpenGL ES 3.0/3.1 API 软件包
3838

39-
- ```
40-
android.opengl: 此软件包提供了 OpenGL ES 3.0/3.1 类的接口。版本 3.0 从 Android 4.3(API 级别 18)开始可用。版本 3.1 从 Android 5.0(API 级别 21)开始可用。
41-
```
42-
39+
-
40+
android.opengl: 此软件包提供了 OpenGL ES 3.0/3.1 类的接口。
41+
版本 3.0 从 Android 4.3(API 级别 18)开始可用。
42+
版本 3.1 从 Android 5.0(API 级别 21)开始可用。
43+
4344
- `GLES30`
4445
- `GLES31`
4546
- `GLES31Ext` ([Android Extension Pack](https://developer.android.google.cn/guide/topics/graphics/opengl#aep))
@@ -198,7 +199,13 @@ SurfaceTexture对象可以在任何线程上创建。 updateTexImage()只能在
198199

199200

200201

202+
[上一篇: 1.OpenGL简介](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/1.OpenGL%E7%AE%80%E4%BB%8B.md)
203+
[下一篇: 3.GLSurfaceView源码解析](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/3.GLSurfaceView%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90.md)
204+
205+
---
201206

207+
- 邮箱 :charon.chui@gmail.com
208+
- Good Luck!
202209

203210

204211

VideoDevelopment/OpenGL/3.GLSurfaceView源码解析.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
GLSurfaceView源码解析
1+
## 3.GLSurfaceView源码解析
22

33
我感觉还是先看一下源码,了解一下内部的流程,再接着学习其他的OpenGL部分会更合适。
44

@@ -688,3 +688,25 @@ public interface Renderer {
688688

689689
这个类主要提供的是线程同步控制的功能,因为在GLSurfaceView里面有两个线程: GL线程和调用线程。所以对一些变量必须要进行同步。
690690

691+
692+
693+
694+
[上一篇: 2.GLSurfaceView简介](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/2.GLSurfaceView%E7%AE%80%E4%BB%8B.md)
695+
[下一篇: 4.GLTextureView实现](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/4.GLTextureView%E5%AE%9E%E7%8E%B0.md)
696+
697+
---
698+
699+
- 邮箱 :charon.chui@gmail.com
700+
- Good Luck!
701+
702+
703+
704+
705+
706+
707+
708+
709+
710+
711+
712+

VideoDevelopment/OpenGL/4.GLTextureView实现.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### GLTextureView
1+
### 4.GLTextureView
22

33
系统提供了GLSurfaceView,确没有提供GLTextureView,但是我们目前的项目灰常复杂庞大,我不想去封一层接口,然后动态去选择使用GLSurfaceView(实现一些纹理效果)或者TextureView(无OpenGL效果)来播放视频。我只想在目前的基础上去扩展,我想去实现一个GLTextureView。上面分析完GLSurfaceView的源码后我们也可以自己去实现GLTextureView的功能了。具体的实现就是和GLSurfaceView的源码一模一样。
44

@@ -1971,4 +1971,28 @@ public class GLTextureView extends TextureView implements TextureView.SurfaceTex
19711971
private int mEGLContextClientVersion;
19721972
private boolean mPreserveEGLContextOnPause;
19731973
}
1974-
```
1974+
```
1975+
1976+
1977+
1978+
1979+
1980+
1981+
[上一篇: 3.GLSurfaceView源码解析](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/3.GLSurfaceView%E6%BA%90%E7%A0%81%E8%A7%A3%E6%9E%90.md)
1982+
[下一篇: 5.OpenGL ES绘制三角形](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/5.OpenGL%20ES%E7%BB%98%E5%88%B6%E4%B8%89%E8%A7%92%E5%BD%A2.md)
1983+
1984+
---
1985+
1986+
- 邮箱 :charon.chui@gmail.com
1987+
- Good Luck!
1988+
1989+
1990+
1991+
1992+
1993+
1994+
1995+
1996+
1997+
1998+

VideoDevelopment/OpenGL/5.OpenGL ES绘制三角形.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## OpenGL Es绘制三角形
1+
## 5.OpenGL Es绘制三角形
22

33
OpenGL ES的绘制需要有一下步骤:
44

@@ -861,3 +861,24 @@ class TriangleRender implements GLSurfaceView.Renderer {
861861
}
862862
```
863863

864+
865+
866+
867+
[上一篇: 4.GLTextureView实现](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/4.GLTextureView%E5%AE%9E%E7%8E%B0.md)
868+
[下一篇: 6.OpenGL ES绘制矩形及圆形](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/6.OpenGL%20ES%E7%BB%98%E5%88%B6%E7%9F%A9%E5%BD%A2%E5%8F%8A%E5%9C%86%E5%BD%A2.md)
869+
870+
---
871+
872+
- 邮箱 :charon.chui@gmail.com
873+
- Good Luck!
874+
875+
876+
877+
878+
879+
880+
881+
882+
883+
884+

VideoDevelopment/OpenGL/6.OpenGL ES绘制矩形及圆形.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 5.OpenGL ES绘制矩形及圆形
1+
## 6.OpenGL ES绘制矩形及圆形
22

33

44

@@ -500,6 +500,13 @@ public class CircularRender implements GLSurfaceView.Renderer {
500500
```
501501

502502

503+
[上一篇: 5.OpenGL ES绘制三角形](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/5.OpenGL%20ES%E7%BB%98%E5%88%B6%E4%B8%89%E8%A7%92%E5%BD%A2.md
504+
[下一篇: 7.OpenGL ES着色器语言GLSL](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/7.OpenGL%20ES%E7%9D%80%E8%89%B2%E5%99%A8%E8%AF%AD%E8%A8%80GLSL.md)
505+
506+
---
507+
508+
- 邮箱 :charon.chui@gmail.com
509+
- Good Luck!
503510

504511

505512

VideoDevelopment/OpenGL/7.OpenGL ES着色器语言GLSL.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 6.OpenGL ES着色器语言GLSL
1+
## 7.OpenGL ES着色器语言GLSL
22

33
顶点着色器:
44

@@ -205,6 +205,14 @@ GLSL的类型转换与C不同。在GLSL中类型不可以自动提升,比如fl
205205

206206

207207

208+
[上一篇: 6.OpenGL ES绘制矩形及圆形](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/6.OpenGL%20ES%E7%BB%98%E5%88%B6%E7%9F%A9%E5%BD%A2%E5%8F%8A%E5%9C%86%E5%BD%A2.md)
209+
[下一篇: 8.GLES类及Matrix类](https://github.com/CharonChui/AndroidNote/blob/master/VideoDevelopment/OpenGL/8.GLES%E7%B1%BB%E5%8F%8AMatrix%E7%B1%BB.md)
210+
211+
---
212+
213+
- 邮箱 :charon.chui@gmail.com
214+
- Good Luck!
215+
208216

209217

210218

0 commit comments

Comments
 (0)