Tabnine Logo
EGL$EGLConfigChooser
Code IndexAdd Tabnine to your IDE (free)

How to use
EGL$EGLConfigChooser
in
io.vov.vitamio

Best Java code snippets using io.vov.vitamio.EGL$EGLConfigChooser (Showing top 18 results out of 315)

origin: curtis2/SuperVideoPlayer

public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
 int[] num_config = new int[1];
 if (!egl.eglChooseConfig(display, mConfigSpec, null, 0, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig failed");
 }
 int numConfigs = num_config[0];
 if (numConfigs <= 0) {
  throw new IllegalArgumentException("No configs match configSpec");
 }
 EGLConfig[] configs = new EGLConfig[numConfigs];
 if (!egl.eglChooseConfig(display, mConfigSpec, configs, numConfigs, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig#2 failed");
 }
 EGLConfig config = chooseConfig(egl, display, configs);
 if (config == null) {
  throw new IllegalArgumentException("No config chosen");
 }
 return config;
}
origin: hezhubo/HPlayer

public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
 int[] num_config = new int[1];
 if (!egl.eglChooseConfig(display, mConfigSpec, null, 0, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig failed");
 }
 int numConfigs = num_config[0];
 if (numConfigs <= 0) {
  throw new IllegalArgumentException("No configs match configSpec");
 }
 EGLConfig[] configs = new EGLConfig[numConfigs];
 if (!egl.eglChooseConfig(display, mConfigSpec, configs, numConfigs, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig#2 failed");
 }
 EGLConfig config = chooseConfig(egl, display, configs);
 if (config == null) {
  throw new IllegalArgumentException("No config chosen");
 }
 return config;
}
origin: XieShengda/FakeDouyu

public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
 int[] num_config = new int[1];
 if (!egl.eglChooseConfig(display, mConfigSpec, null, 0, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig failed");
 }
 int numConfigs = num_config[0];
 if (numConfigs <= 0) {
  throw new IllegalArgumentException("No configs match configSpec");
 }
 EGLConfig[] configs = new EGLConfig[numConfigs];
 if (!egl.eglChooseConfig(display, mConfigSpec, configs, numConfigs, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig#2 failed");
 }
 EGLConfig config = chooseConfig(egl, display, configs);
 if (config == null) {
  throw new IllegalArgumentException("No config chosen");
 }
 return config;
}
origin: whyalwaysmea/BigBoom

public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
 int[] num_config = new int[1];
 if (!egl.eglChooseConfig(display, mConfigSpec, null, 0, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig failed");
 }
 int numConfigs = num_config[0];
 if (numConfigs <= 0) {
  throw new IllegalArgumentException("No configs match configSpec");
 }
 EGLConfig[] configs = new EGLConfig[numConfigs];
 if (!egl.eglChooseConfig(display, mConfigSpec, configs, numConfigs, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig#2 failed");
 }
 EGLConfig config = chooseConfig(egl, display, configs);
 if (config == null) {
  throw new IllegalArgumentException("No config chosen");
 }
 return config;
}
origin: gpfduoduo/AirPlay-Receiver-on-Android

public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
 int[] num_config = new int[1];
 if (!egl.eglChooseConfig(display, mConfigSpec, null, 0, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig failed");
 }
 int numConfigs = num_config[0];
 if (numConfigs <= 0) {
  throw new IllegalArgumentException("No configs match configSpec");
 }
 EGLConfig[] configs = new EGLConfig[numConfigs];
 if (!egl.eglChooseConfig(display, mConfigSpec, configs, numConfigs, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig#2 failed");
 }
 EGLConfig config = chooseConfig(egl, display, configs);
 if (config == null) {
  throw new IllegalArgumentException("No config chosen");
 }
 return config;
}
origin: yixia/VitamioBundleStudio

public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) {
 int[] num_config = new int[1];
 if (!egl.eglChooseConfig(display, mConfigSpec, null, 0, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig failed");
 }
 int numConfigs = num_config[0];
 if (numConfigs <= 0) {
  throw new IllegalArgumentException("No configs match configSpec");
 }
 EGLConfig[] configs = new EGLConfig[numConfigs];
 if (!egl.eglChooseConfig(display, mConfigSpec, configs, numConfigs, num_config)) {
  throw new IllegalArgumentException("eglChooseConfig#2 failed");
 }
 EGLConfig config = chooseConfig(egl, display, configs);
 if (config == null) {
  throw new IllegalArgumentException("No config chosen");
 }
 return config;
}
origin: XieShengda/FakeDouyu

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;
}
origin: yixia/VitamioBundleStudio

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;
}
origin: whyalwaysmea/BigBoom

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;
}
origin: gpfduoduo/AirPlay-Receiver-on-Android

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;
}
origin: hezhubo/HPlayer

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;
}
origin: whyalwaysmea/BigBoom

public EGLConfigChooser(int[] configSpec) {
 mConfigSpec = filterConfigSpec(configSpec);
}
origin: XieShengda/FakeDouyu

public EGLConfigChooser(int[] configSpec) {
 mConfigSpec = filterConfigSpec(configSpec);
}
origin: hezhubo/HPlayer

public EGLConfigChooser(int[] configSpec) {
 mConfigSpec = filterConfigSpec(configSpec);
}
origin: gpfduoduo/AirPlay-Receiver-on-Android

public EGLConfigChooser(int[] configSpec) {
 mConfigSpec = filterConfigSpec(configSpec);
}
origin: yixia/VitamioBundleStudio

public EGLConfigChooser(int[] configSpec) {
 mConfigSpec = filterConfigSpec(configSpec);
}
origin: curtis2/SuperVideoPlayer

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;
}
origin: curtis2/SuperVideoPlayer

public EGLConfigChooser(int[] configSpec) {
 mConfigSpec = filterConfigSpec(configSpec);
}
io.vov.vitamioEGL$EGLConfigChooser

Most used methods

  • chooseConfig
  • filterConfigSpec

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • onRequestPermissionsResult (Fragment)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now