OWLIFT Library for Android: DecodeFunc Class Reference
OWLIFT Library for Android  1.8.0.0
Top Page
List of all members | Public Member Functions | Static Public Attributes
DecodeFunc Class Reference

Public Member Functions

 DecodeFunc (UvcOwliftFunc func)
 
void setDecodeRange (int min, int max) throws IllegalArgumentException
 
void setAGCRange (int min, int max) throws IllegalArgumentException
 
int getTempTable (OwliftTempTable tempTable)
 
DecodeType getDecodeType ()
 
void setDecodeType (DecodeType type)
 
boolean getNoiseFilter ()
 
void setNoiseFilter (boolean enabled)
 
int getNoiseFilterThreshold ()
 
void setNoiseFilterThreshold (int threshold)
 
boolean getCircumferenceCorrection ()
 
void setCircumferenceCorrection (boolean enabled)
 

Static Public Attributes

static final int OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT = 50
 
static final int OWDECODE_NOISE_FILTER_THRESHOLD_MIN = 1
 
static final int OWDECODE_NOISE_FILTER_THRESHOLD_MAX = 100
 

Detailed Description

Decode class.

Constructor & Destructor Documentation

◆ DecodeFunc()

The constructor.

Parameters
funcUVC function class instance.

Member Function Documentation

◆ getCircumferenceCorrection()

boolean getCircumferenceCorrection ( )

Returns whether or not the temperature correction of circumferential direction is enabled.

Returns
The corresponding value.

◆ getDecodeType()

DecodeType getDecodeType ( )

Returns color convert type.

Returns
DecodeType

◆ getNoiseFilter()

boolean getNoiseFilter ( )

Returns whether or not the Noise Filter is enabled.

Returns
The corresponding value.

◆ getNoiseFilterThreshold()

int getNoiseFilterThreshold ( )

Gets the threshold of the Noise Filter.

Returns
The corresponding value.

◆ getTempTable()

int getTempTable ( OwliftTempTable  tempTable)

Gets temperature table.
You can use this function in UvcOwliftFunc.Callback.recvBuffer().

Parameters
tempTableThe temperature table class.
Returns
ErrorCode

◆ setAGCRange()

void setAGCRange ( int  min,
int  max 
) throws IllegalArgumentException

Sets the minimum and maximum temperature for Auto Gain Control.

Parameters
minThe minimum temperature. The unit is 0.01 Kelvin.
maxThe maximum temperature. The unit is 0.01 Kelvin.
Exceptions
IllegalArgumentExceptionIllegal argument.
The error occurred, the min is equal to max or over.

◆ setCircumferenceCorrection()

void setCircumferenceCorrection ( boolean  enabled)

Enables or disables the temperature correction of circumferential direction.

Parameters
enabledtrue : enabled, false : disabled.

◆ setDecodeRange()

void setDecodeRange ( int  min,
int  max 
) throws IllegalArgumentException

Sets the minimum and maximum temperature for Manual Gain Control.

Parameters
minThe minimum temperature. The unit is 0.01 Kelvin.
maxThe maximum temperature. The unit is 0.01 Kelvin.
Exceptions
IllegalArgumentExceptionIllegal argument.
The error occurred, the min is equal to max or over.

◆ setDecodeType()

void setDecodeType ( DecodeType  type)

Sets color convert type.

Parameters
typecolor convert type.
See also
DecodeType

◆ setNoiseFilter()

void setNoiseFilter ( boolean  enabled)

Enables or disables the Noise Filter.

Parameters
enabledtrue : enabled, false : disabled.

◆ setNoiseFilterThreshold()

void setNoiseFilterThreshold ( int  threshold)

Sets the threshold of the Noise Filter.

Parameters
thresholdThe value from OWDECODE_NOISE_FILTER_THRESHOLD_MIN to OWDECODE_NOISE_FILTER_THRESHOLD_MAX. OWDECODE_NOISE_FILTER_THRESHOLD_MIN is minimum correction strength.

Member Data Documentation

◆ OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT

final int OWDECODE_NOISE_FILTER_THRESHOLD_DEFAULT = 50
static

The default value of a threshold for Noise Filter.

◆ OWDECODE_NOISE_FILTER_THRESHOLD_MAX

final int OWDECODE_NOISE_FILTER_THRESHOLD_MAX = 100
static

The maximum value of a threshold for Noise Filter.

◆ OWDECODE_NOISE_FILTER_THRESHOLD_MIN

final int OWDECODE_NOISE_FILTER_THRESHOLD_MIN = 1
static

The minimum value of a threshold for Noise Filter.