Merge "camera2-legacy: Fix jpeg thumbnail quality not being set" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4e5eddff5e
@@ -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