// Path: vrlib/src/main/java/com/martin/ads/vrlib/constant/AdjustingMode.java
// public class AdjustingMode {
//     public static final int ADJUSTING_MODE_STRETCH=1;
//     public static final int ADJUSTING_MODE_CROP=2;
//     public static final int ADJUSTING_MODE_FIT_TO_SCREEN=3;
// 
// }


import android.opengl.Matrix;
import com.martin.ads.vrlib.constant.AdjustingMode;
package com.martin.ads.vrlib.utils;



/**
 * Created by Ads on 2017/1/27.
 */

public class MatrixUtils {
    public static float IDENTITY_MATRIX[]=new float[16];
    static {
        Matrix.setIdentityM(IDENTITY_MATRIX,0);
    }

    public static void updateProjection(int imageWidth, int imageHeight,int surfaceWidth,int surfaceHeight,int adjustingMode,float[] projectionMatrix){
        switch (adjustingMode){
// Path: vrlib/src/main/java/com/martin/ads/vrlib/constant/AdjustingMode.java
// public class AdjustingMode {
//     public static final int ADJUSTING_MODE_STRETCH=1;
//     public static final int ADJUSTING_MODE_CROP=2;
//     public static final int ADJUSTING_MODE_FIT_TO_SCREEN=3;
// 
// }


// Path: vrlib/src/main/java/com/martin/ads/vrlib/utils/MatrixUtils.java
import android.opengl.Matrix;
import com.martin.ads.vrlib.constant.AdjustingMode;

package com.martin.ads.vrlib.utils;



/**
 * Created by Ads on 2017/1/27.
 */

public class MatrixUtils {
    public static float IDENTITY_MATRIX[]=new float[16];
    static {
        Matrix.setIdentityM(IDENTITY_MATRIX,0);
    }

    public static void updateProjection(int imageWidth, int imageHeight,int surfaceWidth,int surfaceHeight,int adjustingMode,float[] projectionMatrix){
        switch (adjustingMode){
            case AdjustingMode.ADJUSTING_MODE_STRETCH: