java.lang.Object | |
↳ | android.hardware.camera2.params.BlackLevelPattern |
Immutable class to store a 4-element vector of integers corresponding to a 2x2 pattern of color channel offsets used for the black level offsets of each color channel.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | COUNT | The number of offsets in this vector. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Copy the ColorChannel offsets into the destination vector.
| |||||||||||
Check if this
BlackLevelPattern is equal to another BlackLevelPattern .
| |||||||||||
Return the color channel offset for a given index into the array of raw pixel values.
| |||||||||||
Returns an integer hash code for this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
The number of offsets in this vector.
Copy the ColorChannel offsets into the destination vector.
Offsets are given in row-column scan order for a given 2x2 color pattern.
destination | an array big enough to hold at least .COUNT elements after the
offset |
---|---|
offset | a non-negative offset into the array |
IllegalArgumentException | if the offset is invalid. |
---|---|
ArrayIndexOutOfBoundsException | if the destination vector is too small. |
NullPointerException | if the destination is null. |
Check if this BlackLevelPattern
is equal to another BlackLevelPattern
.
Two vectors are only equal if and only if each of the respective elements is equal.
obj | the object to compare this instance with. |
---|
true
if the objects were equal, false
otherwise
Return the color channel offset for a given index into the array of raw pixel values.
column | the column index in the the raw pixel array. |
---|---|
row | the row index in the raw pixel array. |
IllegalArgumentException | if a column or row given is negative. |
---|
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.