连击 天
fork: star:
I have been interested in OpenGL ES 2.0 for years and today I want to share some of my experience. eglMakeCurrent First of all, do you remember the function eglMakeCurrent, its ...
FBO一个最常见的应用就是:渲染到纹理(render to texture),通过这项技术可以实现发光效果,环境映射,阴影映射等很炫的效果。 OpenGL中的Frame Buffer Object(FBO)扩展,被推荐用于把数据渲...
If there was one course I could add to every engineering education, it wouldn’t involve compilers or gates or time complexity. It would be Realities Of Your Industry 101, beca...
其实,网上已经有很多地方已经讨论过,System.Load 和 System.LoadLibrary 的差异了,比如这里: http://stackoverflow.com/questions/7016391/difference-between-system-load-and-system-l...
在调用 Looper.myLooper().quit() 的时候发现报 NullPointerException,通过 Android Studio 发现如下提示: 查阅了 Looper 的源码: /** * Return the Looper object associated w...
Fence是一种同步机制,在Android里主要用于图形系统中GraphicBuffer的同步。那它和已有同步机制相比有什么特点呢?它主要被用来处理跨硬件的情况,尤其是CPU,GPU和HWC之间的同步,另外它还可...
在写 jni 层代码的时候,遇到了如下异常: W/dalvikvm(15173): Invalid indirect reference 0x28 in decodeIndirectRef I/dalvikvm(15173): "main" prio=5 tid=1 RUNNABLE I/dalvikvm(15173...
在使用 javah 命令的时候,发现直接使用: javah -d outputdir -jni xxx.xxx.MyClass 会出现: 错误: 找不到类 android.hardware.Camera。 因为我的 MyClass 里面引用了 android.hardware.C...
#include <time.h> /* return current time in milliseconds */ long get_current_ms() { struct timespec res; clock_gettime(CLOCK_REALTIME, &res); return 1000 * res.tv_s...
YUV 格式有两大类:planar 和 packed。 对于 planar 的 YUV 格式,先连续存储所有像素点的 Y,紧接着存储所有像素点的 U,随后是所有像素点的 V。 对于 packed 的 YUV 格式,每个像素点的 Y,...
在 github 上面 clone 一个包含有 submodule 的 repo 的时候,用如下命令更新 submodule: git submodule update --remote --merge 一直没法更新,尝试重新 add submodule,比如: git subm...
本文主要从设计模式角度简单地侃下Android4.4(KitKat)的Graphics子系统。可以看到在KitKat中Google对code还是整理过的,比如替换了像SurfaceTexture这种第一眼看到不知所云的东西,去掉了像I...
libx264 版本是 128 libfaac 版本是 1.28 1、帧的划分 1.1 H.264 帧 对于 H.264 而言每帧的界定符为 00 00 00 01 或者 00 00 01。 比如下面的 h264 文件片断这就包含三帧数据: 00 00 00 01 ...
Overview Flash Video(简称FLV),是一种流行的网络格式。目前国内外大部分视频分享网站都是采用的这种格式. File Structure 从整个文件上开看,FLV是由The FLV header 和 The FLV File Body 组...
一、flv 格式 本文转自:http://blog.csdn.net/yeyumin89/article/details/7932368 对其文章的格式稍做调整,并修改了部分 type error. flv 文件的格式其实网上资料还是不少,但是怎么封装成...
使用 NDK 编译可执行文件,即 Android.mk 文件应该是编译 target 应该是 BUILD_EXECUTABLE include $(BUILD_EXECUTABLE) 假设,编出的目标为 helloworld 1. 将 helloworld push 到手机的 /s...
This page is intended to briefly introduce the differences between SurfaceView and TextureView. SurfaceView and TextureView Both SurfaceView and TextureView are inherited from a...
Android provides a few ViewGroups like LinearLayout, RelativeLayout, FrameLayout to position child Views. These general purpose ViewGroups have quite a lot of options in them. F...
与StatusBar和NavigationBar相关的东西有两种,一是控制它们的显示与隐藏,二是控制它们的透明与否及背景。 在2.3及以前,StatusBar只能显示与隐藏,即全屏模式,通过WindowManager.LayoutP...
Android中View的绘制过程 当Activity获得焦点时,它将被要求绘制自己的布局,Android framework将会处理绘制过程,Activity只需提供它的布局的根节点。 绘制过程从布局的根节点开始,...
没有更多内容
加载失败,请刷新页面
文章删除后无法恢复,确定删除此文章吗?
动弹删除后,数据将无法恢复
评论删除后,数据将无法恢复