java - How to get quality of jpeg 100? Camera2API -
i spend lot of time question how set jpeg quality if use camera2api
, , find such solution
i achieved increasing jpeg quality adding key capturerequest.builder
the jpeg quality set in capturestillpicture() method in camer2basicfragment so:
// capturerequest.builder use take picture. final capturerequest.builder capturebuilder = mcameradevice.createcapturerequest(cameradevice.template_still_capture); capturebuilder.addtarget(mimagereader.getsurface()); //set jpeg quality here capturebuilder.set(capturerequest.jpeg_quality, (byte)100);
thanks @blinkingcahill
but issue case if set quality 100
evetually in saved image 96
...
maybe know how can 100
? or depends of device or smth else?
Comments
Post a Comment