cats-oss / android-gpuimage

Android filters based on OpenGL (idea from GPUImage for iOS)
9.01k stars 2.27k forks source link

Camera1Loader with Lollipop or over #448

Open stylixpro opened 5 years ago

stylixpro commented 5 years ago

Bug Reporting

Camera1Loader in Lollipop or over shows black preview It does not call preview callback.

Steps to Reproduce

  1. Create emulator with Lollipop or over
  2. Modify v2.0.3 example code to always use Camera1Loader
  3. Run app

Actual Results (include screenshots)

Preview is black

Expected Results (include screenshots)

Actual camera preview

URL

OS details

Please add relevant labels When I use v1.4.1 in same devices or emulator, it works fine

fatCat2015 commented 5 years ago

yes, i have the same issue

FlyMarco commented 5 years ago

first add preview view and callback will called.

act262 commented 4 years ago

Camera1 must be own SurfaceTexture or SurfaceHolder then can call onPreviewFrame callback, and we also request render all time by self.

cameraInstance.setPreviewTexture(surfaceTexture)