Closed leeicmobile closed 10 years ago
Added markAsDirty yo the CameraPreviewInput when notified of new frame available this fixed it it seems :)
public void onFrameAvailable(SurfaceTexture arg0) {
markAsDirty();//<------this line
view.requestRender();
}
Yes, I recently added the only render when dirty, but it seems I missed it in both the image and video inputs. I will push up your change. Thanks!
The View just remains blank with no camera preview updating, it does appear the render loops are being called and camTex.update is called, perhaps an issue with the shaders or the transform matrix? Any help much appreciated. code below:
}
onResume calls ((CameraPreviewInput) input).onResume();
onPause calls ((CameraPreviewInput) input).onPause();
R.layout.cameralayout includes: <project.android.imageprocessing.FastImageProcessingView
android:id="@+id/gpuImageView" android:layout_width="match_parent" android:layout_height="match_parent" />