public
class
CameraProfile
extends Object
| java.lang.Object | |
| ↳ | android.media.CameraProfile |
The CameraProfile class is used to retrieve the pre-defined still image capture (jpeg) quality levels (0-100) used for low, medium, and high quality settings in the Camera application.
Constants | |
|---|---|
int |
QUALITY_HIGH
|
int |
QUALITY_LOW
Define three quality levels for JPEG image encoding. |
int |
QUALITY_MEDIUM
|
Public constructors | |
|---|---|
CameraProfile()
|
|
Public methods | |
|---|---|
static
int
|
getJpegEncodingQualityParameter(int quality)
Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application for the first back-facing camera on the device. |
static
int
|
getJpegEncodingQualityParameter(int cameraId, int quality)
Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application for the specified camera. |
Inherited methods | |
|---|---|
java.lang.Object
| |
int QUALITY_LOW
Define three quality levels for JPEG image encoding.
Constant Value: 0 (0x00000000)
int getJpegEncodingQualityParameter (int quality)
Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application for the first back-facing camera on the device. If the device has no back-facing camera, this returns 0.
| Parameters | |
|---|---|
quality |
int:
The target quality level
|
| Returns | |
|---|---|
int |
|
int getJpegEncodingQualityParameter (int cameraId,
int quality)
Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application for the specified camera.
| Parameters | |
|---|---|
cameraId |
int:
The id of the camera |
quality |
int:
The target quality level
|
| Returns | |
|---|---|
int |
|