Android camera api SCENE_MODE_HDR not supported in Nexus 5? -


my nexus 5 isn't supporting hdr scene mode of camera api (as camera2 api). due manufacturer support? if so, want implement hdr scene mode in custom camera app in stock camera?

i tried using both camera apis none supporting scene_mode_hdr parameter.

using android.hardware.camera api: (logs hdr mode not supported)

list<string> scenemodes = params.getsupportedscenemodes(); if (scenemodes.contains(camera.parameters.scene_mode_hdr)) {     log.d("hdr", "hdr mode supported");     params.setscenemode(camera.parameters.scene_mode_hdr); } else {     log.d("hdr", "hdr mode not supported"); } 

and using android.hardware.camera2 api: (logs hdr mode not supported)

cameracharacteristics characteristics = manager.getcameracharacteristics(cameraid); int[] scenemodes= characteristics.get(cameracharacteristics.control_available_scene_modes); boolean ishdrsupported = false; (int scenemode : scenemodes) {     if (scenemode == cameracharacteristics.control_scene_mode_hdr) {         ishdrsupported = true;         break;     } } log.d("hdr", "hdr mode " + (ishdrsupported ? "" : "not ") + "supported"); 

am missing obvious here?

the nexus 5 not have support hdr scene mode.

the hdr+ mode in included camera app part of application (there's blog post how works on top of camera2 api).


Comments

Popular posts from this blog

Upgrade php version of xampp not success -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -