Skip to content

Commit

Permalink
V1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin20150405 committed Feb 1, 2017
1 parent 18377ba commit 1cf8f23
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.android.tools.build:gradle:2.2.3'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;

import com.martin.ads.vrlib.filters.advanced.GGGrayScaleFilter;
import com.martin.ads.vrlib.filters.advanced.GGRiseFilter;
import com.martin.ads.vrlib.filters.advanced.GGSphere2DPlugin;
import com.martin.ads.vrlib.filters.base.GGFilterGroup;
Expand Down Expand Up @@ -46,6 +47,8 @@ public PanoRender(StatusHelper statusHelper,PanoMediaPlayerWrapper panoMediaPlay

filterGroup.addFilter(spherePlugin);

//filterGroup.addFilter(new GGGrayScaleFilter(statusHelper.getContext()));

//you can also add filters here
//pay attention to the order of execution

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
public class SensorEventHandler implements SensorEventListener {

public static String TAG = "PanoMediaPlayerWrapper";
public static String TAG = "SensorEventHandler";

private float[] rotationMatrix = new float[16];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ public static void saveRgb2Bitmap(IntBuffer buf, String filePath, int width, int
bos = new BufferedOutputStream(new FileOutputStream(filePath));
Bitmap bmp = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888);
bmp.copyPixelsFromBuffer(IntBuffer.wrap(pixelMirroredArray));
// Bitmap outImg = Bitmap.createBitmap(width,height, Bitmap.Config.ARGB_8888);
// Matrix rotate = new Matrix();
// rotate.setRotate(180,(float)width/2,(float)height/2);
// Canvas canvas = new Canvas(outImg);
// canvas.drawBitmap(bmp, rotate, new Paint());
// outImg.recycle();
bmp.compress(Bitmap.CompressFormat.JPEG, 90, bos);
bmp.recycle();
} catch (IOException e) {
Expand Down

0 comments on commit 1cf8f23

Please sign in to comment.