当前位置: 首页>>代码示例>>Java>>正文


Java EGLExt.eglPresentationTimeANDROID方法代码示例

本文整理汇总了Java中android.opengl.EGLExt.eglPresentationTimeANDROID方法的典型用法代码示例。如果您正苦于以下问题:Java EGLExt.eglPresentationTimeANDROID方法的具体用法?Java EGLExt.eglPresentationTimeANDROID怎么用?Java EGLExt.eglPresentationTimeANDROID使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在android.opengl.EGLExt的用法示例。


在下文中一共展示了EGLExt.eglPresentationTimeANDROID方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
 * Sends the presentation time stamp to EGL.
 * @param display an EGL display connection instance
 * @param surface an EGL rendering surface
 * @param nSecs time is expressed in nanoseconds.
 */
public static void setPresentationTime(@NonNull EGLDisplay display,
        @NonNull EGLSurface surface, long nSecs) {
    //noinspection StatementWithEmptyBody
    if (!EGLExt.eglPresentationTimeANDROID(display, surface, nSecs)) {
        logError();
        throw new RuntimeException("Unable to set presentation time (" + nSecs +"ns)." +
                getDisplayString(display) + "; " + getSurfaceString(surface));
    } else {/*
        logDebug("Set presentation time (" + nSecs +"ns)." +
                getDisplayString(display) + "; " + getSurfaceString(surface));*/
    }
}
 
开发者ID:Nik-Gleb,项目名称:mpeg-encoder,代码行数:19,代码来源:GLTools.java

示例2: swapBuffers

import android.opengl.EGLExt; //导入方法依赖的package包/类
@Override
public void swapBuffers(long timeStampNs) {
  checkIsNotReleased();
  if (eglSurface == EGL14.EGL_NO_SURFACE) {
    throw new RuntimeException("No EGLSurface - can't swap buffers");
  }
  synchronized (EglBase.lock) {
    // See
    // https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
    EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timeStampNs);
    EGL14.eglSwapBuffers(eglDisplay, eglSurface);
  }
}
 
开发者ID:Piasy,项目名称:AppRTC-Android,代码行数:14,代码来源:EglBase14.java

示例3: swapBuffers

import android.opengl.EGLExt; //导入方法依赖的package包/类
public void swapBuffers(long timeStampNs) {
  checkIsNotReleased();
  if (eglSurface == EGL14.EGL_NO_SURFACE) {
    throw new RuntimeException("No EGLSurface - can't swap buffers");
  }
  synchronized (EglBase.lock) {
    // See
    // https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
    EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timeStampNs);
    EGL14.eglSwapBuffers(eglDisplay, eglSurface);
  }
}
 
开发者ID:lgyjg,项目名称:AndroidRTC,代码行数:13,代码来源:EglBase14.java

示例4: swapBuffers

import android.opengl.EGLExt; //导入方法依赖的package包/类
@Override
public void swapBuffers(long timestampNs) {
  checkIsNotReleased();
  if (eglSurface == EGL14.EGL_NO_SURFACE) {
    throw new RuntimeException("No EGLSurface - can't swap buffers");
  }
  synchronized (EglBase.lock) {
    // See
    // https://android.googlesource.com/platform/frameworks/native/+/tools_r22.2/opengl/specs/EGL_ANDROID_presentation_time.txt
    if (timestampNs != -1) {
      EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, timestampNs);
    }
    EGL14.eglSwapBuffers(eglDisplay, eglSurface);
  }
}
 
开发者ID:Piasy,项目名称:VideoCRE,代码行数:16,代码来源:EglBase14.java

示例5: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
 * Sends the presentation time stamp to EGL.
 *
 * @param nsecs Timestamp, in nanoseconds.
 */
@Override
public void setPresentationTime(long nsecs) {
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2 && nsecs != 0) {
        EGLExt.eglPresentationTimeANDROID(mEglDisplay, mEglSurface, nsecs);
    }
}
 
开发者ID:ChillingVan,项目名称:android-openGL-canvas,代码行数:12,代码来源:EglHelperAPI17.java

示例6: swap

import android.opengl.EGLExt; //导入方法依赖的package包/类
private int swap(final EGLSurface surface, final long presentationTimeNs) {
//		if (DEBUG) Log.v(TAG, "swap:");
		EGLExt.eglPresentationTimeANDROID(mEglDisplay, surface, presentationTimeNs);
        if (!EGL14.eglSwapBuffers(mEglDisplay, surface)) {
        	final int err = EGL14.eglGetError();
//        	if (DEBUG) Log.w(TAG, "swap:err=" + err);
            return err;
        }
        return EGL14.EGL_SUCCESS;
	}
 
开发者ID:saki4510t,项目名称:libcommon,代码行数:11,代码来源:EGLBase14.java

示例7: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR2)
public void setPresentationTime(EGLSurface surface, long time){
    EGLExt.eglPresentationTimeANDROID(mEGLDisplay,surface,time);
}
 
开发者ID:aiyaapp,项目名称:AAVT,代码行数:5,代码来源:EglHelper.java

示例8: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
void setPresentationTime(long nsecs) {
    EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
 
开发者ID:wuyisheng,项目名称:libRtmp,代码行数:4,代码来源:RecorderImpl.java

示例9: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(long nsecs) {
	EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
 
开发者ID:lzmlsfe,项目名称:19porn,代码行数:4,代码来源:InputSurface.java

示例10: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(long nsecs) {
    EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
 
开发者ID:MLNO,项目名称:airgram,代码行数:4,代码来源:InputSurface.java

示例11: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
 * Sends the presentation time stamp to EGL.  Time is expressed in nanoseconds.
 */
public void setPresentationTime(long nsecs) {
    EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs);
}
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:7,代码来源:InputSurface.java

示例12: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
 * Sends the presentation time stamp to EGL.  Time is expressed in nanoseconds.
 */
public void setPresentationTime(EGLSurface eglSurface, long nsecs) {
    EGLExt.eglPresentationTimeANDROID(mEGLDisplay, eglSurface, nsecs);
}
 
开发者ID:zhangyaqiang,项目名称:Fatigue-Detection,代码行数:7,代码来源:EglCore.java

示例13: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(EGLSurface eglSurface, long nsecs) {
    EGLExt.eglPresentationTimeANDROID(mEGLDisplay, eglSurface, nsecs);
}
 
开发者ID:LeonHover,项目名称:MediaCodecRecorder,代码行数:4,代码来源:GLContext.java

示例14: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
/**
 * Sends the presentation time stamp to EGL.  Time is expressed in nanoseconds.
 */
public void setPresentationTime(long nsecs) {
  EGLExt.eglPresentationTimeANDROID(eglDisplay, eglSurface, nsecs);
  GlUtil.checkEglError("eglPresentationTimeANDROID");
}
 
开发者ID:pedroSG94,项目名称:rtmp-rtsp-stream-client-java,代码行数:8,代码来源:SurfaceManager.java

示例15: setPresentationTime

import android.opengl.EGLExt; //导入方法依赖的package包/类
public void setPresentationTime(long nsecs, EglSurface eglSurface) {
    EGLExt.eglPresentationTimeANDROID(mEglDisplay, eglSurface.geSurface(), nsecs);
}
 
开发者ID:uestccokey,项目名称:EZFilter,代码行数:4,代码来源:EGLEnvironment.java


注:本文中的android.opengl.EGLExt.eglPresentationTimeANDROID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。