Project

General

Profile

Download (718 Bytes) Statistics
| Branch: | Revision:

examples / src / main / java / org / distorted / examples / macroblock / MacroblockSurfaceView.java @ 5068fa06

1

    
2
package org.distorted.examples.macroblock;
3

    
4
import android.content.Context;
5
import android.opengl.GLSurfaceView;
6
import android.os.Build;
7

    
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9

    
10
class MacroblockSurfaceView extends GLSurfaceView 
11
{
12
///////////////////////////////////////////////////////////////////////////////////////////////////
13
   
14
    public MacroblockSurfaceView(Context context) 
15
      {
16
      super(context);
17
      setEGLContextClientVersion(2);
18
        
19
      if( Build.FINGERPRINT.startsWith("generic") )
20
        { 
21
        setEGLConfigChooser(8, 8, 8, 8, 16, 0);   
22
        }
23
        
24
      setRenderer(new MacroblockRenderer(this));
25
      }
26
}
27

    
(3-3/3)