libgpuimage/src/main/java/org/wysaid/view/CameraGLSurfaceViewWithTexture.java
@Override
    public void onFrameAvailable(SurfaceTexture surfaceTexture) {

        requestRender();

//        if (mLastTimestamp2 == 0)
//            mLastTimestamp2 = System.currentTimeMillis();
//
//        long currentTimestamp = System.currentTimeMillis();
//
//        ++mFramesCount2;
//        mTimeCount2 += currentTimestamp - mLastTimestamp2;
//        mLastTimestamp2 = currentTimestamp;
//        if (mTimeCount2 >= 1000) {
//            Log.i(LOG_TAG, String.format("camera sample rate: %d", mFramesCount2));
//            mTimeCount2 %= 1000;
//            mFramesCount2 = 0;
//        }
    }
//    protected long mLastTimestamp2 = 0;
protected long mLastTimestamp2 = 0.
protected long mLastTimestamp2 = 0 .
@Override
    public void onFrameAvailable(SurfaceTexture surfaceTexture) {
        requestRender();
        long currentTimestamp = System.currentTimeMillis();
        ++mFramesCount2;
        mTimeCount2 += currentTimestamp - mLastTimestamp2;
        mLastTimestamp2 = currentTimestamp;
        if (mTimeCount2 >= 1000) {
            Log.i(LOG_TAG, String.format("camera sample rate: %d", mFramesCount2));
            mTimeCount2 %= 1000;
            mFramesCount2 = 0;
        }
    }
@ Override public void onFrameAvailable ( SurfaceTexture surfaceTexture ) { requestRender ( ) ; }
protected long mLastTimestamp2 = 0;
protected long mLastTimestamp2 = 0 ;
//        if (mLastTimestamp2 == 0) //            mLastTimestamp2 = System.currentTimeMillis(); // //        long currentTimestamp = System.currentTimeMillis(); // //        ++mFramesCount2; //        mTimeCount2 += currentTimestamp - mLastTimestamp2; //        mLastTimestamp2 = currentTimestamp; //        if (mTimeCount2 >= 1000) { //            Log.i(LOG_TAG, String.format("camera sample rate: %d", mFramesCount2)); //            mTimeCount2 %= 1000; //            mFramesCount2 = 0; //        }