diff --git a/docs/android-docs/allclasses-frame.html b/docs/android-docs/allclasses-frame.html new file mode 100644 index 0000000..6386646 --- /dev/null +++ b/docs/android-docs/allclasses-frame.html @@ -0,0 +1,22 @@ + + + +
+ +public interface TSRLogger
+Log
,
+TSRSdk.init(long, String, TSRLogger)
限定符和类型 | +方法和说明 | +
---|---|
void |
+logWithLevel(int logLevel,
+ java.lang.String tag,
+ java.lang.String msg)
+Logs the message with the specified log level.
+ |
+
void logWithLevel(int logLevel, + java.lang.String tag, + java.lang.String msg)+
logLevel
- The log level, e.g., Log.VERBOSE, Log.DEBUG, Log.INFO, Log.WARN, Log.ERRORtag
- The log tag, used to identify the source of the logmsg
- The log message, containing the detailed information to be loggedpublic class TSRPass
+extends java.lang.Object
+Usage:
+init(int, int, float)
method.render(int)
+ method.release()
+ method.Example:
++ // Create a TSRPass object using the constructor. + TSRPass tsrPass = new TSRPass(); + + // The code below must be executed in glThread. + //----------------------GL Thread------------------------------------// + + tsrPass.init(inputWidth, inputHeight, srRatio); + + // If the type of inputTexture is TextureOES, you must transform it to Texture2D. + int outputTextureId = tsrPass.render(inputTextureId); + + //----------------------GL Thread------------------------------------// + + // Release resources when the TsrPassAndroid object is no longer needed. + tsrPass.release(); +
构造器和说明 | +
---|
TSRPass()
+Creates a TSRPass object for super-resolution.
+ |
+
限定符和类型 | +方法和说明 | +
---|---|
void |
+init(int inputWidth,
+ int inputHeight,
+ float srRatio)
+Init TSRPass object for super-resolution.
+ |
+
void |
+release()
+Releases the resources.
+ |
+
int |
+render(int textureId)
+Performs the super-resolution rendering operation on the input image.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public TSRPass()+
TSRSdk.init(long, String, TSRLogger)
public void init(int inputWidth, + int inputHeight, + float srRatio)+
inputWidth
- The width of the input imageinputHeight
- The height of the input imagesrRatio
- The magnification factor for super-resolution, ranging from 1 to 2. When srRatio is less than 1,
+ set its value to 1; when srRatio is greater than 2, set its value to 2.public int render(int textureId)+
textureId
- The OpenGL textureId of the input image that needs to be processed for super-resolution. The
+ corresponding texture is a texture2D texture.public void release()+
public static enum TSRSdk.TSRSdkLicenseStatus +extends java.lang.Enum<TSRSdk.TSRSdkLicenseStatus>+
枚举常量和说明 | +
---|
AVAILABLE
+Verify successful.
+ |
+
ERROR_INVALID
+License server verify failed (invalid appid/sdkid, or disabled).
+ |
+
EXPIRES
+License expires.
+ |
+
INTERNAL_ERR
+Internal operating logic error.
+ |
+
LIMIT_COUNT
+License limit count.
+ |
+
NO_AVAILABLE_AUTH
+License not available for user request (online authorization).
+ |
+
SIGN_MATCHED
+License sign matched.
+ |
+
SIGN_NOT_MATCHED
+License sign not matched.
+ |
+
TRIALS
+Network abort, trials.
+ |
+
UNAVAILABLE
+License verify failed (mismatched certificate info or incorrect format or file not found).
+ |
+
UNKNOWN
+License status is unknown.
+ |
+
限定符和类型 | +方法和说明 | +
---|---|
static TSRSdk.TSRSdkLicenseStatus |
+findEnumByCode(java.lang.Integer code) |
+
int |
+getCode() |
+
java.lang.String |
+toString() |
+
static TSRSdk.TSRSdkLicenseStatus |
+valueOf(java.lang.String name)
+返回带有指定名称的该类型的枚举常量。
+ |
+
static TSRSdk.TSRSdkLicenseStatus[] |
+values()
+按照声明该枚举类型的常量的顺序, 返回
+包含这些常量的数组。
+ |
+
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
getClass, notify, notifyAll, wait, wait, wait
public static final TSRSdk.TSRSdkLicenseStatus UNKNOWN+
public static final TSRSdk.TSRSdkLicenseStatus INTERNAL_ERR+
public static final TSRSdk.TSRSdkLicenseStatus SIGN_NOT_MATCHED+
public static final TSRSdk.TSRSdkLicenseStatus SIGN_MATCHED+
public static final TSRSdk.TSRSdkLicenseStatus ERROR_INVALID+
public static final TSRSdk.TSRSdkLicenseStatus EXPIRES+
public static final TSRSdk.TSRSdkLicenseStatus LIMIT_COUNT+
public static final TSRSdk.TSRSdkLicenseStatus NO_AVAILABLE_AUTH+
public static final TSRSdk.TSRSdkLicenseStatus TRIALS+
public static final TSRSdk.TSRSdkLicenseStatus UNAVAILABLE+
public static final TSRSdk.TSRSdkLicenseStatus AVAILABLE+
public static TSRSdk.TSRSdkLicenseStatus[] values()+
+for (TSRSdk.TSRSdkLicenseStatus c : TSRSdk.TSRSdkLicenseStatus.values()) + System.out.println(c); +
public static TSRSdk.TSRSdkLicenseStatus valueOf(java.lang.String name)+
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static TSRSdk.TSRSdkLicenseStatus findEnumByCode(java.lang.Integer code)+
public int getCode()+
@NonNull +public java.lang.String toString()+
toString
在类中 java.lang.Enum<TSRSdk.TSRSdkLicenseStatus>
public class TSRSdk
+extends java.lang.Object
+Usage:
+getInstance()
method.init(long, String, TSRLogger)
methods.TSRPass
class.release()
method.Example for offline verification:
++ String licensePath = "----path to you sdk license.----"; + TSRSdk tsrSdk = TSRSdk.getInstance(); + SdkLicenseStatus status = tsrSdk.init(appId, licensePath, logger); + if (status == SdkLicenseStatus.AVAILABLE) { + // Perform super-resolution rendering using TSRPass class. + } else { + // Do something when the verification of sdk's license failed. + } + + // If you have created TSRPass, you should release it before release TSRSdk. + tsrPass.release(); + // Release resources when the TSRSdk object is no longer needed. + tsrSdk.release(); +
限定符和类型 | +类和说明 | +
---|---|
static class |
+TSRSdk.TSRSdkLicenseStatus
+Enum representing the status of an SDK license.
+ |
+
限定符和类型 | +方法和说明 | +
---|---|
static TSRSdk |
+getInstance() |
+
TSRSdk.TSRSdkLicenseStatus |
+init(long appId,
+ java.lang.String licensePath,
+ TSRLogger tsrLogger)
+Initializes the TSRSdk with offline license verification.
+ |
+
void |
+release()
+Releases the resources associated with the TSRSdk instance.
+ |
+
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static TSRSdk getInstance()+
public TSRSdk.TSRSdkLicenseStatus init(long appId, + java.lang.String licensePath, + TSRLogger tsrLogger)+
release()
is executed.appId
- appIdlicensePath
- The path of the licensetsrLogger
- Set a logger for the TSRSdk. The Logger must not be null.public void release()+
+ This method should be called when the TSRSdk instance is no longer needed, to free up memory and other
+ resources.
+ Before calling this method, make sure to release all associated TSRPass objects by calling their
+ TSRPass.release()
method, as they depend on the resources provided by the TSRSdk instance. Failing to
+ release TSRPass objects before releasing the TSRSdk may lead to unexpected errors or undefined behavior.
+
+ After calling this method, you must re-initialize the TSRSdk instance using the init methods
+ init(long, String, TSRLogger)
) before using it again.
+
Usage:
-init(int, int, float)
method.render(int)
- method.release()
- method.Example:
-- // Create a TsrPass object using the constructor. - TsrPass tsrPass = new TsrPass(); - - // The code below must be executed in glThread. - //----------------------GL Thread------------------------------------// - - tsrPass.init(inputWidth, inputHeight, srRatio); - - // If the type of inputTexture is TextureOES, you must transform it to Texture2D. - int outputTextureId = tsrPass.render(inputTextureId); - - //----------------------GL Thread------------------------------------// - - // Release resources when the TsrPass object is no longer needed. - tsrPass.release(); -
TsrSdk.init(long, String, TsrLogger)
inputWidth
- The width of the input imageinputHeight
- The height of the input imagesrRatio
- The magnification factor for super-resolution, ranging from 1 to 2. When srRatio is less than 1,
- set its value to 1; when srRatio is greater than 2, set its value to 2.textureId
- The OpenGL textureId of the input image that needs to be processed for super-resolution. The
- corresponding texture is a texture2D texture.Serializable
, Comparable<TsrSdk.SdkLicenseStatus>
, Constable
Enum.EnumDesc<E extends Enum<E>>
static TsrSdk.SdkLicenseStatus
findEnumByCode(Integer code)
int
getCode()
toString()
static TsrSdk.SdkLicenseStatus
static TsrSdk.SdkLicenseStatus[]
values()
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
name
- 要返回的枚举常量的名称。IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- 如果参数为空值toString
在类中 Enum<TsrSdk.SdkLicenseStatus>
Usage:
-getInstance()
method.init(long, String, TsrLogger)
methods.TsrPass
class.release()
method.Example for offline verification:
-- String licensePath = "----path to you sdk license.----"; - TsrSdk tsrSdk = TsrSdk.getInstance(); - SdkLicenseStatus status = tsrSdk.init(appId, licensePath, logger); - if (status == SdkLicenseStatus.AVAILABLE) { - // Perform super-resolution rendering using TsrPass class. - } else { - // Do something when the verification of sdk's license failed. - } - - // If you have created TsrPass, you should release it before release TsrSdk. - tsrPass.release(); - // Release resources when the TsrSdk object is no longer needed. - tsrSdk.release(); -
static enum
release()
is executed.appId
- appIdlicensePath
- The path of the licenselogger
- Set a logger for the TsrSdk. The Logger must not be null.
- This method should be called when the TsrSdk instance is no longer needed, to free up memory and other
- resources.
- Before calling this method, make sure to release all associated TsrPass objects by calling their
- TsrPass.release()
method, as they depend on the resources provided by the TsrSdk instance. Failing to
- release TsrPass objects before releasing the TsrSdk may lead to unexpected errors or undefined behavior.
-
- After calling this method, you must re-initialize the TsrSdk instance using one of the init methods
- init(long, String, TsrLogger)
) before using it again.
-