public class

CameraProfile

extends Object
java.lang.Object
   ↳ android.media.CameraProfile

Class Overview

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.

Summary

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.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int QUALITY_HIGH

Since: API Level 8

Constant Value: 2 (0x00000002)

public static final int QUALITY_LOW

Since: API Level 8

Define three quality levels for JPEG image encoding.

Constant Value: 0 (0x00000000)

public static final int QUALITY_MEDIUM

Since: API Level 8

Constant Value: 1 (0x00000001)

Public Constructors

public CameraProfile ()

Since: API Level 8

Public Methods

public static int getJpegEncodingQualityParameter (int quality)

Since: API Level 8

Returns a pre-defined still image capture (jpeg) quality level used for the given quality level in the Camera application.

Parameters
quality The target quality level