资源简介
Vitamio 5.2.3 for AS
发布于: 2017-04-01
支持平台: Android 2.1+, ARMv6, VFP, ARMv7, NEON, x86
支持格式:MKV,FLV,MP4,MOV,TS,RMVB
代码片段和文件信息
/*
* 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 15:48 vitamio\.classpath
....... 815 2017-04-14 15:48 vitamio\.project
....... 173 2017-04-14 15:48 vitamio\.settings\org.eclipse.jdt.core.prefs
....... 827 2017-04-14 15:48 vitamio\AndroidManifest.xm
....... 675 2017-04-14 15:48 vitamio\build.gradle
文件 8867136 2017-04-14 15:48 vitamio\libs\arm64-v8a\libffmpeg.so
文件 50536 2017-04-14 15:48 vitamio\libs\arm64-v8a\libOMX.24.so
文件 587520 2017-04-14 15:48 vitamio\libs\arm64-v8a\libstlport_shared.so
文件 9456 2017-04-14 15:48 vitamio\libs\arm64-v8a\libvao.0.so
文件 290480 2017-04-14 15:48 vitamio\libs\arm64-v8a\libvpla
文件 166456 2017-04-14 15:48 vitamio\libs\arm64-v8a\libvscanner.so
文件 17720 2017-04-14 15:48 vitamio\libs\arm64-v8a\libvvo.0.so
文件 9456 2017-04-14 15:48 vitamio\libs\arm64-v8a\libvvo.9.so
文件 5360 2017-04-14 15:48 vitamio\libs\arm64-v8a\libvvo.j.so
文件 6344892 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libffmpeg.so
文件 70740 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libOMX.11.so
文件 70740 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libOMX.14.so
文件 70740 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libOMX.18.so
文件 70740 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libOMX.9.so
文件 349524 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libstlport_shared.so
文件 17564 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvao.0.so
文件 297284 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvpla
文件 165736 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvscanner.so
文件 17620 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvvo.0.so
文件 17560 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvvo.7.so
文件 17560 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvvo.8.so
文件 13464 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvvo.9.so
文件 13464 2017-04-14 15:48 vitamio\libs\armeabi-v7a\libvvo.j.so
文件 9526384 2017-04-14 15:48 vitamio\libs\x86\libffmpeg.so
文件 58420 2017-04-14 15:48 vitamio\libs\x86\libOMX.14.so
............此处省略87个文件信息
评论
共有 条评论