com.iristick.smartglass.support.camera2.params
Class BlackLevelPattern¶
- java.lang.Object
-
- com.iristick.smartglass.support.camera2.params.BlackLevelPattern
Deprecated.
Not maintained anymore. Please use the
com.iristick.smartglass.core.camera
package instead.@Deprecated public abstract class BlackLevelPattern extends Object
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.
- Since:
- Android API level 21
Field Summary¶
Modifier and Type | Field and Description |
---|---|
static int |
COUNT
Deprecated.
The number of offsets in this vector.
|
Constructor Summary¶
Constructor and Description |
---|
BlackLevelPattern()
Deprecated.
|
Method Summary¶
Modifier and Type | Method and Description |
---|---|
abstract void |
copyTo(int[] destination,
int offset)
Deprecated.
Copy the ColorChannel offsets into the destination vector.
|
abstract boolean |
equals(Object obj)
Deprecated.
Check if this
BlackLevelPattern is equal to another BlackLevelPattern . |
abstract int |
getOffsetForIndex(int column,
int row)
Deprecated.
Return the color channel offset for a given index into the array of raw pixel values.
|
abstract String |
toString()
Deprecated.
Return this
BlackLevelPattern as a string representation. |
Methods inherited from class java.lang.Object¶
getClass, hashCode, notify, notifyAll, wait, wait, wait
Field Detail¶
COUNT¶
public static final int COUNT
Deprecated.
The number of offsets in this vector.
Constructor Detail¶
BlackLevelPattern¶
public BlackLevelPattern()
Deprecated.
Method Detail¶
getOffsetForIndex¶
public abstract int getOffsetForIndex(int column, int row)
Deprecated.
Return the color channel offset for a given index into the array of raw pixel values.
- Parameters:
column
- the column index in the the raw pixel array.row
- the row index in the raw pixel array.- Returns:
- a color channel offset.
- Throws:
IllegalArgumentException
- if a column or row given is negative.
copyTo¶
public abstract void copyTo(int[] destination, int offset)
Deprecated.
Copy the ColorChannel offsets into the destination vector.
Offsets are given in row-column scan order for a given 2x2 color pattern.
- Parameters:
destination
- an array big enough to hold at least 4 elements after theoffset
offset
- a non-negative offset into the array- Throws:
IllegalArgumentException
- if the offset is invalid.ArrayIndexOutOfBoundsException
- if the destination vector is too small.NullPointerException
- if the destination is null.
equals¶
public abstract boolean equals(Object obj)
Deprecated.
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.
toString¶
public abstract String toString()
Deprecated.
Return this
BlackLevelPattern
as a string representation.
"BlackLevelPattern([%d, %d], [%d, %d])"
, where each %d
represents one
black level offset of a color channel. The values are in the same order as channels listed
for the CFA layout key (see
CameraCharacteristics.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
).
- Overrides:
toString
in classObject
- Returns:
- string representation of
BlackLevelPattern
- See Also:
CameraCharacteristics.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT