HighSpeedVideoConfigurationpublic final class HighSpeedVideoConfiguration extends Object Immutable class to store the available
{@link CameraCharacteristics#CONTROL_AVAILABLE_HIGH_SPEED_VIDEO_CONFIGURATIONS high speed video
configurations} |
Fields Summary |
---|
private final int | mWidth | private final int | mHeight | private final int | mFpsMin | private final int | mFpsMax | private final android.util.Size | mSize | private final android.util.Range | mFpsRange |
Constructors Summary |
---|
public HighSpeedVideoConfiguration(int width, int height, int fpsMin, int fpsMax)Create a new {@link HighSpeedVideoConfiguration}.
if (fpsMax < 60) {
throw new IllegalArgumentException("fpsMax must be at least 60");
}
mFpsMax = fpsMax;
mWidth = checkArgumentPositive(width, "width must be positive");
mHeight = checkArgumentPositive(height, "height must be positive");
mFpsMin = checkArgumentPositive(fpsMin, "fpsMin must be positive");
mSize = new Size(mWidth, mHeight);
mFpsRange = new Range<Integer>(mFpsMin, mFpsMax);
|
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)Check if this {@link HighSpeedVideoConfiguration} is equal to another
{@link HighSpeedVideoConfiguration}.
Two configurations are equal if and only if each of the respective elements is equal.
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (obj instanceof HighSpeedVideoConfiguration) {
final HighSpeedVideoConfiguration other = (HighSpeedVideoConfiguration) obj;
return mWidth == other.mWidth &&
mHeight == other.mHeight &&
mFpsMin == other.mFpsMin &&
mFpsMax == other.mFpsMax;
}
return false;
| public int | getFpsMax()Return the maximum frame per second of the high speed video configuration.
return mFpsMax;
| public int | getFpsMin()Return the minimum frame per second of the high speed video configuration.
return mFpsMin;
| public android.util.Range | getFpsRange()Convenience method to return the FPS range of this high speed video configuration.
return mFpsRange;
| public int | getHeight()Return the height of the high speed video configuration.
return mHeight;
| public android.util.Size | getSize()Convenience method to return the size of this high speed video configuration.
return mSize;
| public int | getWidth()Return the width of the high speed video configuration.
return mWidth;
| public int | hashCode(){@inheritDoc}
return HashCodeHelpers.hashCode(mWidth, mHeight, mFpsMin, mFpsMax);
|
|