java.lang.Object | |
↳ | android.hardware.camera2.params.InputConfiguration |
Immutable class to store an input configuration that is used to create a reprocessable capture session.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create an input configration with the width, height, and user-defined format.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Check if this InputConfiguration is equal to another InputConfiguration.
| |||||||||||
Get the format of this input configration.
| |||||||||||
Get the height of this input configration.
| |||||||||||
Get the width of this input configration.
| |||||||||||
Returns an integer hash code for this object.
| |||||||||||
Return this
InputConfiguration as a string representation.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create an input configration with the width, height, and user-defined format.
Images of an user-defined format are accessible by applications. Use
SCALER_STREAM_CONFIGURATION_MAP
to query supported input formats
width | Width of the input buffers. |
---|---|
height | Height of the input buffers. |
format | Format of the input buffers. One of ImageFormat or PixelFormat constants. |
Check if this InputConfiguration is equal to another InputConfiguration.
Two input configurations are equal if and only if they have the same widths, heights, and formats.
obj | the object to compare this instance with. |
---|
true
if the objects were equal, false
otherwise.
Get the format of this input configration.
Get the height of this input configration.
Get the width of this input configration.
Returns an integer hash code for this object. By contract, any two
objects for which equals(Object)
returns true
must return
the same hash code value. This means that subclasses of Object
usually override both methods or neither method.
Note that hash values must not change over time unless information used in equals comparisons also changes.
See Writing a correct
hashCode
method
if you intend implementing your own hashCode
method.
Return this InputConfiguration
as a string representation.
"InputConfiguration(w:%d, h:%d, format:%d)"
, where %d
represents
the width, height, and format, respectively.
InputConfiguration