资源简介
Vitamio 5.2.3 Android StudioVitamio 5.2.3 Android StudioVitamio 5.2.3 Android StudioVitamio 5.2.3 Android Studio
代码片段和文件信息
/*
* Copyright (C) 2013 YIXIA.COM
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.vov.vitamio;
import javax.microedition.khronos.egl.EGL10;
import javax.microedition.khronos.egl.EGL11;
import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.egl.EGLContext;
import javax.microedition.khronos.egl.EGLDisplay;
import javax.microedition.khronos.egl.EGLSurface;
import javax.microedition.khronos.opengles.GL;
import android.util.Log;
import android.view.Surface;
/**
* DON‘T MODIFY THIS FILE IF YOU‘RE NOT FAMILIAR WITH EGL IT‘S USED BY NATIVE CODE!!!
*/
public class EGL {
private EGL10 mEgl;
private EGLDisplay mEglDisplay;
private EGLSurface mEglSurface;
private EGLConfig mEglConfig;
private EGLContext mEglContext;
private EGLConfigChooser mEGLConfigChooser;
private EGLContextFactory mEGLContextFactory;
private EGLWindowSurfaceFactory mEGLWindowSurfaceFactory;
public EGL() {
mEGLConfigChooser = new SimpleEGLConfigChooser();
mEGLContextFactory = new EGLContextFactory();
mEGLWindowSurfaceFactory = new EGLWindowSurfaceFactory();
}
public boolean initialize(Surface surface) {
start();
return createSurface(surface) != null;
}
public void release() {
destroySurface();
finish();
}
public void start() {
mEgl = (EGL10) EGLContext.getEGL();
mEglDisplay = mEgl.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
if (mEglDisplay == EGL10.EGL_NO_DISPLAY) {
throw new RuntimeException(“eglGetDisplay failed“);
}
int[] version = new int[2];
if (!mEgl.eglInitialize(mEglDisplay version)) {
throw new RuntimeException(“eglInitialize failed“);
}
mEglConfig = mEGLConfigChooser.chooseConfig(mEgl mEglDisplay);
mEglContext = mEGLContextFactory.createContext(mEgl mEglDisplay mEglConfig);
if (mEglContext == null || mEglContext == EGL10.EGL_NO_CONTEXT) {
mEglContext = null;
throwEglException(“createContext“);
}
mEglSurface = null;
}
public GL createSurface(Surface surface) {
if (mEgl == null)
throw new RuntimeException(“egl not initialized“);
if (mEglDisplay == null)
throw new RuntimeException(“eglDisplay not initialized“);
if (mEglConfig == null)
throw new RuntimeException(“mEglConfig not initialized“);
if (mEglSurface != null && mEglSurface != EGL10.EGL_NO_SURFACE) {
mEgl.eglMakeCurrent(mEglDisplay EGL10.EGL_NO_SURFACE EGL10.EGL_NO_SURFACE EGL10.EGL_NO_CON
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 466 2017-04-14 00:48 .classpath
文件 815 2017-04-14 00:48 .project
目录 0 2017-04-14 00:48 .settings\
文件 173 2017-04-14 00:48 .settings\org.eclipse.jdt.core.prefs
文件 827 2017-04-14 00:48 AndroidManifest.xm
文件 145 2017-04-14 00:48 README.md
文件 675 2017-04-14 00:48 build.gradle
目录 0 2017-04-14 00:48 libs\
目录 0 2017-04-14 00:48 libs\arm64-v8a\
文件 50536 2017-04-14 00:48 libs\arm64-v8a\libOMX.24.so
文件 8867136 2017-04-14 00:48 libs\arm64-v8a\libffmpeg.so
文件 587520 2017-04-14 00:48 libs\arm64-v8a\libstlport_shared.so
文件 9456 2017-04-14 00:48 libs\arm64-v8a\libvao.0.so
文件 290480 2017-04-14 00:48 libs\arm64-v8a\libvpla
文件 166456 2017-04-14 00:48 libs\arm64-v8a\libvscanner.so
文件 17720 2017-04-14 00:48 libs\arm64-v8a\libvvo.0.so
文件 9456 2017-04-14 00:48 libs\arm64-v8a\libvvo.9.so
文件 5360 2017-04-14 00:48 libs\arm64-v8a\libvvo.j.so
目录 0 2017-04-14 00:48 libs\armeabi-v7a\
文件 70740 2017-04-14 00:48 libs\armeabi-v7a\libOMX.11.so
文件 70740 2017-04-14 00:48 libs\armeabi-v7a\libOMX.14.so
文件 70740 2017-04-14 00:48 libs\armeabi-v7a\libOMX.18.so
文件 70740 2017-04-14 00:48 libs\armeabi-v7a\libOMX.9.so
文件 6344892 2017-04-14 00:48 libs\armeabi-v7a\libffmpeg.so
文件 349524 2017-04-14 00:48 libs\armeabi-v7a\libstlport_shared.so
文件 17564 2017-04-14 00:48 libs\armeabi-v7a\libvao.0.so
文件 297284 2017-04-14 00:48 libs\armeabi-v7a\libvpla
文件 165736 2017-04-14 00:48 libs\armeabi-v7a\libvscanner.so
文件 17620 2017-04-14 00:48 libs\armeabi-v7a\libvvo.0.so
文件 17560 2017-04-14 00:48 libs\armeabi-v7a\libvvo.7.so
文件 17560 2017-04-14 00:48 libs\armeabi-v7a\libvvo.8.so
............此处省略82个文件信息
- 上一篇:java入门精通程序
- 下一篇:基于ssm的jsp图书馆管理系统课程设计.zip
相关资源
- 基于WiFi与Android的智能家居监控系统设
- 《Android系统应用开发实战详解》 PD
- 基于android studio的地图App
- ANDROID模拟器2-3
- android视频播放源码
- AndroidKiller_v1.3.1修复高版本dex2jar卡死
- 基于Android的测绘水准网平差软件附使
- commons-lang3-3.1包的源代码
- 学习android必备的java基础
- [现代编译器的Java实现].(美)Andrew
- Java核心技术卷2高级特性 Core.Java.Vol
- Java Cookbook - Problems and Solutions for Jav
- canal.deployer-1.1.3.tar.gz
- Kotlin for Android Developers
- The JOOQ User Manual(java对象转SQL)
- Hands-On Design Patterns with Java
- Android应用开发 TrainSystemHelper 完整源码
- android 异步加载网络图片
- android 截图
- android fiip特效
- android 远程服务
- android 模块化开发
- baidumap导航
- android 按钮
- android 开奖转盘完整
- Android开发中相当便捷的JSON反序列化实
- android 下拉瀑布流显示图片效果
- android 音量控制 ,效果不错
- android 实现圆形菜单
- 将PC电脑端的文件通过usb传到android手
评论
共有 条评论