public final class ReprocessFormatsMap extends Object
map
to be used for with
camera image reprocessing.
The mapping of image formats that are supported by this camera device for input streams, to their corresponding output formats.
Attempting to configure an input stream with output streams not listed as available in this map is not valid.
Constructor and Description |
---|
ReprocessFormatsMap(int[] entry)
Create a new
ReprocessFormatsMap
This value is encoded as a variable-size array-of-arrays. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Check if this
ReprocessFormatsMap is equal to another
ReprocessFormatsMap . |
int[] |
getInputs()
Get a list of all input image formats that can be used to reprocess an input
stream into an output stream.
|
int[] |
getOutputs(int format)
Get the list of output formats that can be reprocessed into from the input
format . |
int |
hashCode()
Returns a hash code value for the object.
|
public ReprocessFormatsMap(int[] entry)
ReprocessFormatsMap
This value is encoded as a variable-size array-of-arrays.
The inner array always contains [format, length, ...]
where ... has length elements.
An inner array is followed by another inner array if the total metadata entry size hasn't
yet been exceeded.
Entry must not be null
. Empty array is acceptable.
The entry array ownership is passed to this instance after construction; do not write to it afterwards.
entry
- Array of ints, not yet deserialized (not-null)IllegalArgumentException
- if the data was poorly formatted
(missing output format length or too few output formats)
or if any of the input/formats were not validNullPointerException
- if entry was nullStreamConfigurationMap.checkArgumentFormatInternal(int)
public int[] getInputs()
Use this input format to look up the available output formats with getOutputs(int)
.
null
)ImageFormat
,
getOutputs(int)
public int[] getOutputs(int format)
format
.
The input format
must be one of the formats returned by getInputs()
.
format
- an input formatImageFormat
,
getInputs()
public boolean equals(Object obj)
ReprocessFormatsMap
is equal to another
ReprocessFormatsMap
.
These two objects are only equal if and only if each of the respective elements is equal.
equals
in class Object
obj
- the reference object with which to compare.true
if the objects were equal, false
otherwiseObject.hashCode()
,
HashMap
public int hashCode()
HashMap
.
The general contract of hashCode
is:
hashCode
method
must consistently return the same integer, provided no information
used in equals
comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode
method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)