public class SisrConfiguration extends VisionConfiguration
The basic parameters include the SISR scale factor and quality.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
SisrConfiguration.Builder |
A nested class used to create a
SisrConfiguration object. |
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected int |
quality |
Indicates the super resolution quality, high for default.
|
protected float |
scale |
Indicates the super resolution scale, 1x for default.
|
static int |
SISR_QUALITY_HIGH |
Indicates the high SISR quality.
|
static int |
SISR_QUALITY_LOW |
Indicates the low SISR quality.
|
static int |
SISR_QUALITY_MEDIUM |
Indicates the medium SISR quality.
|
static float |
SISR_SCALE_1X |
Indicates the scale factor of 1.0 (known as 1x).
|
static float |
SISR_SCALE_3X |
Indicates the scale factor of 3.0 (known as 3x).
|
APP_QUICK, APP_TRADITIONAL, appType, clientPkgName, clientState, clientVersion, MODE_IN, MODE_OUT, processMode, STATE_BACKGROUND, STATE_FOREGROUND| 限定符和类型 | 方法 | 说明 |
|---|---|---|
PacMap |
getParam() |
Passes the basic SISR parameter settings to a
PacMap instance. |
int |
getQuality() |
Obtains the SISR quality.
|
float |
getScale() |
Obtains the SISR scale factor.
|
void |
setQuality() |
Sets the default SISR quality to high.
|
void |
setQuality(int quality) |
Sets the SISR quality.
|
void |
setScale() |
Sets the default SISR scale factor to 1x.
|
void |
setScale(float scale) |
Sets the SISR scale factor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetProcessModepublic static final int SISR_QUALITY_HIGH
public static final int SISR_QUALITY_LOW
public static final int SISR_QUALITY_MEDIUM
public static final float SISR_SCALE_1X
public static final float SISR_SCALE_3X
protected int quality
protected float scale
public PacMap getParam()
PacMap instance.getParam 在类中 VisionConfigurationPacMap instance that contains the basic SISR parameters.public float getScale()
The SISR scale factor includes SISR_SCALE_1X and SISR_SCALE_3X.
public void setScale(float scale)
The SISR scale factor includes SISR_SCALE_1X and SISR_SCALE_3X.
scale - Indicates the scale factor to set.public void setScale()
public int getQuality()
The SISR quality includes SISR_QUALITY_LOW, SISR_QUALITY_MEDIUM and SISR_QUALITY_HIGH.
public void setQuality(int quality)
The SISR quality includes SISR_QUALITY_LOW, SISR_QUALITY_MEDIUM and SISR_QUALITY_HIGH.
quality - Indicates the SISR quality to set.public void setQuality()