Methods Summary |
---|
public void | clearGpsData()
mGpsData = null;
|
public abstract com.android.ex.camera2.portability.CameraSettings | copy()
|
public CameraCapabilities.FlashMode | getCurrentFlashMode()Flash
return mCurrentFlashMode;
|
public CameraCapabilities.FocusMode | getCurrentFocusMode()
return mCurrentFocusMode;
|
public int | getCurrentPhotoFormat()
return mCurrentPhotoFormat;
|
public Size | getCurrentPhotoSize()
return new Size(mCurrentPhotoSize);
|
public int | getCurrentPreviewFormat()
return mCurrentPreviewFormat;
|
public Size | getCurrentPreviewSize()
return new Size(mCurrentPreviewSize);
|
public CameraCapabilities.SceneMode | getCurrentSceneMode()
return mCurrentSceneMode;
|
public float | getCurrentZoomRatio()
return mCurrentZoomRatio;
|
public Size | getExifThumbnailSize()Gets the size of the thumbnail in EXIF header.
return (mExifThumbnailSize == null) ? null : new Size(mExifThumbnailSize);
|
public int | getExposureCompensationIndex()
return mExposureCompensationIndex;
|
public java.util.List | getFocusAreas()
return new ArrayList<Camera.Area>(mFocusAreas);
|
public com.android.ex.camera2.portability.CameraSettings$GpsData | getGpsData()
return (mGpsData == null ? null : new GpsData(mGpsData));
|
public java.util.List | getMeteringAreas()
return new ArrayList<Camera.Area>(mMeteringAreas);
|
public int | getPhotoJpegCompressionQuality()
return mJpegCompressQuality;
|
public int | getPreviewFpsRangeMax()
return mPreviewFpsRangeMax;
|
public int | getPreviewFpsRangeMin()
return mPreviewFpsRangeMin;
|
public int | getPreviewFrameRate()
return mPreviewFrameRate;
|
public CameraCapabilities.WhiteBalance | getWhiteBalance()
return mWhiteBalance;
|
public boolean | isAutoExposureLocked()
return mAutoExposureLocked;
|
public boolean | isAutoWhiteBalanceLocked()
return mAutoWhiteBalanceLocked;
|
public boolean | isRecordingHintEnabled()
return mRecordingHintEnabled;
|
public boolean | isVideoStabilizationEnabled()
return mVideoStabilizationEnabled;
|
public void | setAutoExposureLock(boolean locked)
mAutoExposureLocked = locked;
|
public void | setAutoWhiteBalanceLock(boolean locked)
mAutoWhiteBalanceLocked = locked;
|
public void | setExifThumbnailSize(Size s)Sets the size of the thumbnail in EXIF header. To suppress thumbnail
generation, set a size of (0,0).
mExifThumbnailSize = s;
|
public void | setExposureCompensationIndex(int index)Exposure
mExposureCompensationIndex = index;
|
public void | setFlashMode(CameraCapabilities.FlashMode flashMode)
mCurrentFlashMode = flashMode;
|
public void | setFocusAreas(java.util.List areas)
mFocusAreas.clear();
if (areas != null) {
mFocusAreas.addAll(areas);
}
|
public void | setFocusMode(CameraCapabilities.FocusMode focusMode)Sets the focus mode.
mCurrentFocusMode = focusMode;
|
public void | setGpsData(com.android.ex.camera2.portability.CameraSettings$GpsData data)
mGpsData = new GpsData(data);
|
public void | setMeteringAreas(java.util.List areas)
mMeteringAreas.clear();
if (areas != null) {
mMeteringAreas.addAll(areas);
}
|
public void | setPhotoFormat(int format)Sets the format for the photo.
mCurrentPhotoFormat = format;
|
public void | setPhotoJpegCompressionQuality(int quality)Sets the JPEG compression quality.
if (quality < MIN_JPEG_COMPRESSION_QUALITY || quality > MAX_JPEG_COMPRESSION_QUALITY) {
Log.w(TAG, "Ignoring JPEG quality that falls outside the expected range");
return;
}
// This is safe because the positive numbers go up to 127.
mJpegCompressQuality = (byte) quality;
|
public boolean | setPhotoSize(Size photoSize)
if (mSizesLocked) {
Log.w(TAG, "Attempt to change photo size while locked");
return false;
}
mCurrentPhotoSize = new Size(photoSize);
return true;
|
public void | setPreviewFormat(int format)Sets the preview format.
mCurrentPreviewFormat = format;
|
public void | setPreviewFpsRange(int min, int max)Sets the preview FPS range. This call will invalidate prior calls to
{@link #setPreviewFrameRate(int)}.
if (min > max) {
int temp = max;
max = min;
min = temp;
}
mPreviewFpsRangeMax = max;
mPreviewFpsRangeMin = min;
mPreviewFrameRate = -1;
|
public void | setPreviewFrameRate(int frameRate)Sets the preview FPS. This call will invalidate prior calls to
{@link #setPreviewFpsRange(int, int)}.
if (frameRate > 0) {
mPreviewFrameRate = frameRate;
mPreviewFpsRangeMax = frameRate;
mPreviewFpsRangeMin = frameRate;
}
|
public boolean | setPreviewSize(Size previewSize)
if (mSizesLocked) {
Log.w(TAG, "Attempt to change preview size while locked");
return false;
}
mCurrentPreviewSize = new Size(previewSize);
return true;
|
public void | setRecordingHintEnabled(boolean hintEnabled)
mRecordingHintEnabled = hintEnabled;
|
public void | setSceneMode(CameraCapabilities.SceneMode sceneMode)Sets the scene mode for capturing.
mCurrentSceneMode = sceneMode;
|
public void | setSetting(java.lang.String key, java.lang.String value)General setting
mGeneralSetting.put(key, value);
|
void | setSizesLocked(boolean locked)Changes whether classes outside this class are allowed to set the preview
and photo capture sizes.
mSizesLocked = locked;
|
public void | setVideoStabilization(boolean enabled)Other Features
mVideoStabilizationEnabled = enabled;
|
public void | setWhiteBalance(CameraCapabilities.WhiteBalance whiteBalance)White balance
mWhiteBalance = whiteBalance;
|
public void | setZoomRatio(float ratio)Sets the zoom ratio.
mCurrentZoomRatio = ratio;
|