Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
952 stars 241 forks source link

The image is underexposed on Samsung S8 #13

Closed orestesgaolin closed 4 years ago

orestesgaolin commented 4 years ago

Steps to Reproduce

  1. Launch the example app in profile mode
  2. Change mode of flashlight to always on
  3. The flashlight is on all the time (same as in #12)
  4. Take picture, the flashlight fires

Expected results

Image should have correct exposure

Actual results

Image is dark/underexposed

Screenshot_20200826-173112

About your device

Brand Model OS
Samsung S8 Android 9

Logs

Launching lib/main.dart on SM G950F in profile mode...
✓ Built build/app/outputs/flutter-apk/app-profile.apk (10.0MB).
Installing build/app/outputs/flutter-apk/app.apk...
Connecting to VM Service at ws://127.0.0.1:53906/M7DOLnSG1Ss=/ws
D/EmergencyMode(10645): [EmergencyManager] android createPackageContext successful
D/InputTransport(10645): Input channel constructed: fd=89
D/ViewRootImpl@58a97b3[MainActivity](10645): setView = DecorView@7010117[MainActivity] TM=true MM=false
D/SurfaceView(10645): onWindowVisibilityChanged(0) true io.flutter.embedding.android.FlutterSurfaceView{dad5170 V.E...... ......I. 0,0-0,0} of ViewRootImpl@58a97b3[MainActivity]
D/ViewRootImpl@58a97b3[MainActivity](10645): dispatchAttachedToWindow
D/ViewRootImpl@58a97b3[MainActivity](10645): Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x7 surface={valid=true 487475417088} changed=true
I/OpenGLRenderer(10645): Initialized EGL, version 1.4
D/OpenGLRenderer(10645): Swap behavior 2
D/mali_winsys(10645): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/OpenGLRenderer(10645): eglCreateWindowSurface = 0x7180d2ac00, 0x717fcc9010
D/SurfaceView(10645): show() Surface(name=SurfaceView - com.apparence.camerawesome_example/com.apparence.camerawesome_example.MainActivity@dad5170@0[10645])/@0x815de88 io.flutter.embedding.android.FlutterSurfaceView{dad5170 V.E...... ......ID 0,0-1080,2076}
D/SurfaceView(10645): surfaceCreated 1 #8 io.flutter.embedding.android.FlutterSurfaceView{dad5170 V.E...... ......ID 0,0-1080,2076}
D/mali_winsys(10645): EGLint new_window_surface(egl_winsys_display *, void *, EGLSurface, EGLConfig, egl_winsys_surface **, EGLBoolean) returns 0x3000
D/SurfaceView(10645): surfaceChanged (1080,2076) 1 #8 io.flutter.embedding.android.FlutterSurfaceView{dad5170 V.E...... ......ID 0,0-1080,2076}
D/com.apparence.camerawesome.CamerawesomePlugin(10645): _handleCheckPermissions:
D/ViewRootImpl@58a97b3[MainActivity](10645): Relayout returned: old=[0,0][1080,2220] new=[0,0][1080,2220] result=0x3 surface={valid=true 487475417088} changed=false
D/vndksupport(10645): Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
D/ViewRootImpl@58a97b3[MainActivity](10645): MSG_RESIZED: frame=Rect(0, 0 - 1080, 2220) ci=Rect(0, 72 - 0, 144) vi=Rect(0, 72 - 0, 144) or=1
D/ViewRootImpl@58a97b3[MainActivity](10645): MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
V/InputMethodManager(10645): Starting input: tba=com.apparence.camerawesome_example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(10645): startInputInner - Id : 0
I/InputMethodManager(10645): startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(10645): Input channel constructed: fd=95
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
V/InputMethodManager(10645): Starting input: tba=com.apparence.camerawesome_example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(10645): startInputInner - Id : 0
D/ViewRootImpl@58a97b3[MainActivity](10645): MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
D/InputTransport(10645): Input channel destroyed: fd=95
I/flutter (10645): granted
D/ViewRootImpl@58a97b3[MainActivity](10645): setWindowStopped(false) old=false
D/com.apparence.camerawesome.CamerawesomePlugin(10645): _handleCheckPermissions:
D/ViewRootImpl@58a97b3[MainActivity](10645): MSG_WINDOW_FOCUS_CHANGED 1 1
I/flutter (10645): granted
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
V/InputMethodManager(10645): Starting input: tba=com.apparence.camerawesome_example ic=null mNaviBarColor -855310 mIsGetNaviBarColorSuccess true , NavVisible : true , NavTrans : false
D/InputMethodManager(10645): startInputInner - Id : 0
I/InputMethodManager(10645): startInputInner - mService.startInputOrWindowGainedFocus
D/InputTransport(10645): Input channel constructed: fd=95
I/CameraManagerGlobal(10645): Connecting to camera service
D/VendorTagDescriptor(10645): addVendorDescriptor: vendor tag id 3854507339 added
D/SensorManager(10645): registerListener :: 6, LSM6DSL Acceleration Sensor, 200000, 0,
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
I/flutter (10645): ----------------------------------
I/flutter (10645): TAKE PHOTO CALLED
I/flutter (10645): ==> hastakePhoto : Instance of 'Future<bool>'
I/flutter (10645): ==> path : /data/user/0/com.apparence.camerawesome_example/cache/test/1598455776895.jpg
I/flutter (10645): ==> img.width : 4032
I/flutter (10645): ==> img.height : 3024
I/flutter (10645): ----------------------------------
I/        (10645): Increase max job count 60
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
D/ViewRootImpl@58a97b3[MainActivity](10645): MSG_WINDOW_FOCUS_CHANGED 0 1
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
D/ViewRootImpl@58a97b3[MainActivity](10645): MSG_WINDOW_FOCUS_CHANGED 1 1
D/InputMethodManager(10645): prepareNavigationBarInfo() DecorView@7010117[MainActivity]
D/InputMethodManager(10645): getNavigationBarColor() -855310
D/ViewRootImpl@58a97b3[MainActivity](10645): setWindowStopped(false) old=false
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 0
D/ViewRootImpl@58a97b3[MainActivity](10645): ViewPostIme pointer 1