am 6d2cca33: Merge "camera2-legacy: Fix jpeg thumbnail quality not being set" into lmp-dev
* commit '6d2cca330f2bfd7e9fc4699f3e8248762454e344': camera2-legacy: Fix jpeg thumbnail quality not being set
This commit is contained in:
@@ -45,6 +45,7 @@ public class LegacyRequestMapper {
|
||||
private static final String TAG = "LegacyRequestMapper";
|
||||
private static final boolean VERBOSE = Log.isLoggable(TAG, Log.VERBOSE);
|
||||
|
||||
/** Default quality for android.jpeg.quality, android.jpeg.thumbnailQuality */
|
||||
private static final byte DEFAULT_JPEG_QUALITY = 85;
|
||||
|
||||
/**
|
||||
@@ -410,8 +411,8 @@ public class LegacyRequestMapper {
|
||||
|
||||
// jpeg.thumbnailQuality
|
||||
{
|
||||
params.setJpegQuality(0xFF & ParamsUtils.getOrDefault(request, JPEG_THUMBNAIL_QUALITY,
|
||||
DEFAULT_JPEG_QUALITY));
|
||||
params.setJpegThumbnailQuality(0xFF & ParamsUtils.getOrDefault(request,
|
||||
JPEG_THUMBNAIL_QUALITY, DEFAULT_JPEG_QUALITY));
|
||||
}
|
||||
|
||||
// jpeg.thumbnailSize
|
||||
|
||||
Reference in New Issue
Block a user