MeiCam SDK For iOS  3.10.1
Instance Methods | Properties | List of all members
NvsMultiThumbnailSequenceView Class Reference

Multiple thumbnail sequence. More...

#import <NvsMultiThumbnailSequenceView.h>

Inheritance diagram for NvsMultiThumbnailSequenceView:
<NvsIconGeneratorDelegate>

Instance Methods

(instancetype) - init
 
(instancetype) - initWithFrame:
 
(instancetype) - initWithCoder:
 
(void) - enableClipEditModeWithThumnailHeight:
 Set up edit mode, When descArray is set, the contentoffSize and contentSize are not reset to avoid the thumbnail flashing,contentOffset and contentSize shoule be reset. More...
 
(int64_t) - mapTimelinePosFromX:
 Maps the X coordinate of the control to the timeline position. More...
 
(CGFloat) - mapXFromTimelinePos:
 Maps the timeline position to the X coordinate of the control. More...
 
(void) - scale:withAnchor:
 Zooms the current scale. More...
 
- Instance Methods inherited from <NvsIconGeneratorDelegate>
(void) - didIconReady:timestamp:taskId:
 Picture get callback. More...
 

Properties

NSArray< NvsThumbnailSequenceDesc * > * descArray
 The thumbnail sequence describes the array. Note: Once it has been set, altering array contents will not work unless one sets the thumbnail sequence description array again. NVSThumbNailSequenceDesc should be arranged in the order of InPoint from small to large, and the time segments represented by InPoint and OutPoint should not overlap. More...
 
CGFloat thumbnailAspectRatio
 Thumbnail aspect ratio,default:9.0/16. More...
 
double pointsPerMicrosecond
 Scale bar, the number of points occupied per microsecond. default: 720.0/15000000. More...
 
CGFloat startPadding
 Starting padding in unit of point. More...
 
CGFloat endPadding
 Ending padding in unit of point. More...
 
NvsThumbnailImageFillMode thumbnailImageFillMode
 Thumbnail image fill mode,default: NvsThumbnailFillModeStretch. More...
 
int64_t maxTimelinePosToScroll
 The maximum timeline position (in microseconds) that is allowed to scroll. The default value is 0, which means no limit. More...
 

Detailed Description

Multiple thumbnail sequence.

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

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

Method Documentation

◆ enableClipEditModeWithThumnailHeight:

- (void) enableClipEditModeWithThumnailHeight: (CGFloat)  height

Set up edit mode, When descArray is set, the contentoffSize and contentSize are not reset to avoid the thumbnail flashing,contentOffset and contentSize shoule be reset.

Parameters
heightHeight of thumbnail image, Default: Height of UIScrollView.If the height of the thumbnail is less than the height of the UIScrollView, You can add a custom view below the thumbnail that scrolls along with the thumbnail. If the height of the thumbnail is greater than the UIScrollView height, the excess part will not respond to the gesture event.
Since
2.15.0
See also
reloadClipData

◆ init

- (instancetype) init

◆ initWithCoder:

- (instancetype) initWithCoder: (NSCoder *)  aDecoder

◆ initWithFrame:

- (instancetype) initWithFrame: (CGRect)  frame

◆ mapTimelinePosFromX:

- (int64_t) mapTimelinePosFromX: (CGFloat)  x

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

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

◆ mapXFromTimelinePos:

- (CGFloat) mapXFromTimelinePos: (int64_t)  timelinePos

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

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

◆ scale:withAnchor:

- (void) scale: (double)  scaleFactor
withAnchor: (CGFloat)  anchorX 

Zooms the current scale.

Parameters
scaleFactorScale ratio,Value rangeļ¼š>0
anchorXX coordinate of scaled anchor(in points).

Property Documentation

◆ descArray

- (NSArray<NvsThumbnailSequenceDesc*>*) descArray
readwritenonatomicassign

The thumbnail sequence describes the array. Note: Once it has been set, altering array contents will not work unless one sets the thumbnail sequence description array again. NVSThumbNailSequenceDesc should be arranged in the order of InPoint from small to large, and the time segments represented by InPoint and OutPoint should not overlap.

◆ endPadding

- (CGFloat) endPadding
readwritenonatomicassign

Ending padding in unit of point.

◆ maxTimelinePosToScroll

- (int64_t) maxTimelinePosToScroll
readwritenonatomicassign

The maximum timeline position (in microseconds) that is allowed to scroll. The default value is 0, which means no limit.

◆ pointsPerMicrosecond

- (double) pointsPerMicrosecond
readwritenonatomicassign

Scale bar, the number of points occupied per microsecond. default: 720.0/15000000.

◆ startPadding

- (CGFloat) startPadding
readwritenonatomicassign

Starting padding in unit of point.

◆ thumbnailAspectRatio

- (CGFloat) thumbnailAspectRatio
readwritenonatomicassign

Thumbnail aspect ratio,default:9.0/16.

◆ thumbnailImageFillMode

- (NvsThumbnailImageFillMode) thumbnailImageFillMode
readwritenonatomicassign

Thumbnail image fill mode,default: NvsThumbnailFillModeStretch.


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