Method class to get thumbnails of a file.
More...
Method class to get thumbnails of a file.
- Warning
- In the NvsIconGenerator class, all public APIs are used in the UI thread! ! !
◆ NvsIconGenerator()
com.meicam.sdk.NvsIconGenerator.NvsIconGenerator |
( |
| ) |
|
|
inline |
◆ cancelTask()
void com.meicam.sdk.NvsIconGenerator.cancelTask |
( |
long |
taskId | ) |
|
|
inline |
Cancel current task.
- Parameters
-
◆ getIcon()
long com.meicam.sdk.NvsIconGenerator.getIcon |
( |
String |
mediaFilePath, |
|
|
long |
timestamp, |
|
|
int |
flags |
|
) |
| |
|
inline |
Get pictures from original sources.
- Parameters
-
mediaFilePath | Resource path |
timestamp | Current time |
flags | Flag field. If there is no special requirement, please fill in 0.Please refer to get icon flags. |
- Returns
- Returns taskId
◆ getIconFromCache()
Bitmap com.meicam.sdk.NvsIconGenerator.getIconFromCache |
( |
String |
mediaFilePath, |
|
|
long |
timestamp, |
|
|
int |
flags |
|
) |
| |
|
inline |
Get picture from cache.
- Parameters
-
mediaFilePath | Resource path |
timestamp | Current time |
flags | Flag field. If there is no special requirement, please fill in 0.Please refer to get icon flags. |
- Returns
- Returns the UIImage. return null if this icon is not cached
◆ isReleased()
boolean com.meicam.sdk.NvsIconGenerator.isReleased |
( |
| ) |
|
|
inline |
Check to see if the resource has been released.
- Returns
- boolean value isReleased
◆ release()
void com.meicam.sdk.NvsIconGenerator.release |
( |
| ) |
|
|
inline |
◆ setIconCallback()
void com.meicam.sdk.NvsIconGenerator.setIconCallback |
( |
IconCallback |
callback | ) |
|
|
inline |
Set the thumbnail callback.
- Parameters
-
◆ GET_ICON_FLAGS_HDR_TONEMAPPING_SUPPORT
final int com.meicam.sdk.NvsIconGenerator.GET_ICON_FLAGS_HDR_TONEMAPPING_SUPPORT = 8 |
|
static |
Support HDR video to SDR through tonemapping
◆ GET_ICON_FLAGS_KEY_FRAME
final int com.meicam.sdk.NvsIconGenerator.GET_ICON_FLAGS_KEY_FRAME = 1 |
|
static |
The documentation for this class was generated from the following file: