# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Constants | Ctors | Methods | Inherited Methods

# CameraProfile

`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.

## 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 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
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Constants

### QUALITY_HIGH

    public static final int QUALITY_HIGH

Constant Value: 2 (0x00000002)

### QUALITY_LOW

    public static final int QUALITY_LOW

Define three quality levels for JPEG image encoding.

Constant Value: 0 (0x00000000)

### QUALITY_MEDIUM

    public static final int QUALITY_MEDIUM

Constant Value: 1 (0x00000001)

## Public constructors

### CameraProfile

    public CameraProfile ()

## Public methods

### getJpegEncodingQualityParameter

    public 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. If the device has no back-facing camera, this returns 0.

Parameters
`quality` | `int`: The target quality level

Returns
`int` |

### getJpegEncodingQualityParameter

    public 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.

Parameters
`cameraId` | `int`: The id of the camera
`quality` | `int`: The target quality level

Returns
`int` |

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*