MeiCam SDK For Android  3.14.0
Classes | List of all members
com.meicam.sdk.NvsMultiThumbnailSequenceView Class Reference

Multiple thumbnail sequence. More...

Inheritance diagram for com.meicam.sdk.NvsMultiThumbnailSequenceView:
com.meicam.sdk.NvsIconGenerator.IconCallback

Classes

interface  OnScrollChangeListener
 Interface for monitoring horizontal scrolling. More...
 
class  ThumbnailSequenceDesc
 Multi-thumbnail sequence information description. More...
 

图片填充模式

static final int THUMBNAIL_IMAGE_FILLMODE_STRETCH = 0
 Image zoom to fill the full window without maintaining the original scale (default mode) More...
 
static final int THUMBNAIL_IMAGE_FILLMODE_ASPECTCROP = 1
 The image fills the full window evenly and scales if necessary. More...
 
 NvsMultiThumbnailSequenceView (Context context)
 
 NvsMultiThumbnailSequenceView (Context context, AttributeSet attrs)
 
 NvsMultiThumbnailSequenceView (Context context, AttributeSet attrs, int defStyleAttr)
 
 NvsMultiThumbnailSequenceView (Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
 
void setThumbnailSequenceDescArray (ArrayList< ThumbnailSequenceDesc > descArray)
 Sets the thumbnail sequence description array. More...
 
ArrayList< ThumbnailSequenceDescgetThumbnailSequenceDescArray ()
 Gets the thumbnail sequence description array. More...
 
void setThumbnailImageFillMode (int fillMode)
 Sets the image fill mode of the thumbnail,default:THUMBNAIL_IMAGE_FILLMODE_STRETCH. More...
 
int getThumbnailImageFillMode ()
 Gets the image fill mode of the thumbnail. More...
 
void setThumbnailAspectRatio (float thumbnailAspectRatio)
 Sets thumbnail aspect ratio,default:9.0f / 16. More...
 
float getThumbnailAspectRatio ()
 Gets thumbnail aspect ratio. More...
 
void setPixelPerMicrosecond (double pixelPerMicrosecond)
 Sets the scale,default:1080.0 / 15000000. More...
 
double getPixelPerMicrosecond ()
 Gets the current scale. More...
 
void setStartPadding (int startPadding)
 Sets the starting padding. More...
 
int getStartPadding ()
 Gets the current starting padding. More...
 
void setEndPadding (int endPadding)
 Sets end padding. More...
 
int getEndPadding ()
 Gets the current ending padding. More...
 
void setMaxTimelinePosToScroll (int maxTimelinePosToScroll)
 Sets the maximum timeline position that allows scrolling. More...
 
long getMaxTimelinePosToScroll ()
 Gets the maximum timeline position that allows scrolling. More...
 
long mapTimelinePosFromX (int x)
 Maps the X coordinate of the control to the timeline position. More...
 
int mapXFromTimelinePos (long timelinePos)
 Maps the timeline position to the X coordinate of the control. More...
 
void scaleWithAnchor (double scaleFactor, int anchorX)
 Zooms the current scale. More...
 
void setOnScrollChangeListenser (OnScrollChangeListener listener)
 Sets the scroll listener interface. More...
 
OnScrollChangeListener getOnScrollChangeListenser ()
 Gets the current scrolling listener interface. More...
 
void setScrollEnabled (boolean enable)
 Sets whether to start scroll preview. More...
 
boolean getScrollEnabled ()
 Gets whether scroll preview has started. More...
 
void updateThumbnails ()
 
void onIconReady (Bitmap icon, long timestamp, long taskId)
 Picture get callback. More...
 
void onSizeChanged (int w, int h, int oldw, int oldh)
 
void onLayout (boolean changed, int left, int top, int right, int bottom)
 
void onAttachedToWindow ()
 
void onDetachedFromWindow ()
 
void onScrollChanged (int l, int t, int oldl, int oldt)
 

Additional Inherited Members

Detailed Description

Multiple thumbnail sequence.

A multi-thumbnail sequence displays a sequence of thumbnails of multiple segments within a timeline. It supports the adjustment of the thumbnail time scale, and supports scrolling when the effective content is too long.

Warning
In the NvsMultiThumbnailSequenceView class, all public APIs are used in the UI thread! ! !
Since
1.10.0

Constructor & Destructor Documentation

◆ NvsMultiThumbnailSequenceView() [1/4]

com.meicam.sdk.NvsMultiThumbnailSequenceView.NvsMultiThumbnailSequenceView ( Context  context)
inline

◆ NvsMultiThumbnailSequenceView() [2/4]

com.meicam.sdk.NvsMultiThumbnailSequenceView.NvsMultiThumbnailSequenceView ( Context  context,
AttributeSet  attrs 
)
inline

◆ NvsMultiThumbnailSequenceView() [3/4]

com.meicam.sdk.NvsMultiThumbnailSequenceView.NvsMultiThumbnailSequenceView ( Context  context,
AttributeSet  attrs,
int  defStyleAttr 
)
inline

◆ NvsMultiThumbnailSequenceView() [4/4]

com.meicam.sdk.NvsMultiThumbnailSequenceView.NvsMultiThumbnailSequenceView ( Context  context,
AttributeSet  attrs,
int  defStyleAttr,
int  defStyleRes 
)
inline

Member Function Documentation

◆ getEndPadding()

int com.meicam.sdk.NvsMultiThumbnailSequenceView.getEndPadding ( )
inline

Gets the current ending padding.

Returns
Returns the ending padding(in pixels)
See also
setEndPadding

◆ getMaxTimelinePosToScroll()

long com.meicam.sdk.NvsMultiThumbnailSequenceView.getMaxTimelinePosToScroll ( )
inline

Gets the maximum timeline position that allows scrolling.

Returns
Returns the maximum timeline position that is allowed to scroll(in microseconds).
See also
setMaxTimelinePosToScroll
Since
1.17.0

◆ getOnScrollChangeListenser()

OnScrollChangeListener com.meicam.sdk.NvsMultiThumbnailSequenceView.getOnScrollChangeListenser ( )
inline

Gets the current scrolling listener interface.

Returns
Returns the current scrolling listener interface.
See also
setOnScrollChangeListenser

◆ getPixelPerMicrosecond()

double com.meicam.sdk.NvsMultiThumbnailSequenceView.getPixelPerMicrosecond ( )
inline

Gets the current scale.

Returns
Returns the number of pixels per subtle.
See also
setPixelPerMicrosecond

◆ getScrollEnabled()

boolean com.meicam.sdk.NvsMultiThumbnailSequenceView.getScrollEnabled ( )
inline

Gets whether scroll preview has started.

Returns
Returns whether scroll preview has started.
See also
setScrollEnabled
Since
1.11.0

◆ getStartPadding()

int com.meicam.sdk.NvsMultiThumbnailSequenceView.getStartPadding ( )
inline

Gets the current starting padding.

Returns
Returns the starting padding(in pixels).
See also
setStartPadding

◆ getThumbnailAspectRatio()

float com.meicam.sdk.NvsMultiThumbnailSequenceView.getThumbnailAspectRatio ( )
inline

Gets thumbnail aspect ratio.

Returns
Returns the thumbnail aspect ratio.
See also
setThumbnailAspectRatio

◆ getThumbnailImageFillMode()

int com.meicam.sdk.NvsMultiThumbnailSequenceView.getThumbnailImageFillMode ( )
inline

Gets the image fill mode of the thumbnail.

Returns
Returns the obtained image fill mode of the thumbnail
See also
setThumbnailImageFillMode

◆ getThumbnailSequenceDescArray()

ArrayList<ThumbnailSequenceDesc> com.meicam.sdk.NvsMultiThumbnailSequenceView.getThumbnailSequenceDescArray ( )
inline

Gets the thumbnail sequence description array.

Returns
Returns the obtained thumbnail sequence description array.
See also
setThumbnailSequenceDescArray

◆ mapTimelinePosFromX()

long com.meicam.sdk.NvsMultiThumbnailSequenceView.mapTimelinePosFromX ( int  x)
inline

Maps the X coordinate of the control to the timeline position.

Parameters
xThe X coordinate of the control(in pixels)
Returns
Returns the timeline position of the map(in microseconds).
See also
mapXFromTimelinePos

◆ mapXFromTimelinePos()

int com.meicam.sdk.NvsMultiThumbnailSequenceView.mapXFromTimelinePos ( long  timelinePos)
inline

Maps the timeline position to the X coordinate of the control.

Parameters
timelinePosTimeline position(in microseconds)
Returns
Returns the X coordinate of the mapped control(in pixels).
See also
mapTimelinePosFromX

◆ onAttachedToWindow()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.onAttachedToWindow ( )
inlineprotected

◆ onDetachedFromWindow()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.onDetachedFromWindow ( )
inlineprotected

◆ onIconReady()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.onIconReady ( Bitmap  icon,
long  timestamp,
long  taskId 
)
inline

Picture get callback.

Parameters
iconCurrent icon
timestampCurrent timestamp
timestampCurrent taskId

Implements com.meicam.sdk.NvsIconGenerator.IconCallback.

◆ onLayout()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.onLayout ( boolean  changed,
int  left,
int  top,
int  right,
int  bottom 
)
inlineprotected

◆ onScrollChanged()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.onScrollChanged ( int  l,
int  t,
int  oldl,
int  oldt 
)
inlineprotected

◆ onSizeChanged()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.onSizeChanged ( int  w,
int  h,
int  oldw,
int  oldh 
)
inlineprotected

◆ scaleWithAnchor()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.scaleWithAnchor ( double  scaleFactor,
int  anchorX 
)
inline

Zooms the current scale.

Parameters
scaleFactorScale ratio
anchorXScaled anchor X coordinate(in pixels).

◆ setEndPadding()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setEndPadding ( int  endPadding)
inline

Sets end padding.

Parameters
endPaddingEnds padding(in pixels)
See also
getEndPadding

◆ setMaxTimelinePosToScroll()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setMaxTimelinePosToScroll ( int  maxTimelinePosToScroll)
inline

Sets the maximum timeline position that allows scrolling.

Parameters
maxTimelinePosToScrollThe maximum timeline position that is allowed to scroll(in microseconds).
See also
getMaxTimelinePosToScroll
Since
1.17.0

◆ setOnScrollChangeListenser()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setOnScrollChangeListenser ( OnScrollChangeListener  listener)
inline

Sets the scroll listener interface.

Parameters
listenerRolling monitor interface
See also
getOnScrollChangeListenser

◆ setPixelPerMicrosecond()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setPixelPerMicrosecond ( double  pixelPerMicrosecond)
inline

Sets the scale,default:1080.0 / 15000000.

Parameters
pixelPerMicrosecondThe number of pixels per subtle
See also
getPixelPerMicrosecond

◆ setScrollEnabled()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setScrollEnabled ( boolean  enable)
inline

Sets whether to start scroll preview.

Parameters
enableWhether to start scroll preview.
See also
getScrollEnabled
Since
1.11.0

◆ setStartPadding()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setStartPadding ( int  startPadding)
inline

Sets the starting padding.

Parameters
startPaddingStarting padding(in pixels)
See also
getStartPadding

◆ setThumbnailAspectRatio()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setThumbnailAspectRatio ( float  thumbnailAspectRatio)
inline

Sets thumbnail aspect ratio,default:9.0f / 16.

Parameters
thumbnailAspectRatioaspect ratio
See also
getThumbnailAspectRatio

◆ setThumbnailImageFillMode()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setThumbnailImageFillMode ( int  fillMode)
inline

Sets the image fill mode of the thumbnail,default:THUMBNAIL_IMAGE_FILLMODE_STRETCH.

Parameters
fillModeimage fill mode
See also
getThumbnailImageFillMode

◆ setThumbnailSequenceDescArray()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.setThumbnailSequenceDescArray ( ArrayList< ThumbnailSequenceDesc descArray)
inline

Sets the thumbnail sequence description array.

Parameters
descArrayThe thumbnail sequence describes the array. Note: Once it is set, modifying the contents of the array will not work unless thumbnail sequence description is set array again.
See also
getThumbnailSequenceDescArray

◆ updateThumbnails()

void com.meicam.sdk.NvsMultiThumbnailSequenceView.updateThumbnails ( )
inline

Member Data Documentation

◆ THUMBNAIL_IMAGE_FILLMODE_ASPECTCROP

final int com.meicam.sdk.NvsMultiThumbnailSequenceView.THUMBNAIL_IMAGE_FILLMODE_ASPECTCROP = 1
static

The image fills the full window evenly and scales if necessary.

◆ THUMBNAIL_IMAGE_FILLMODE_STRETCH

final int com.meicam.sdk.NvsMultiThumbnailSequenceView.THUMBNAIL_IMAGE_FILLMODE_STRETCH = 0
static

Image zoom to fill the full window without maintaining the original scale (default mode)


The documentation for this class was generated from the following file: