MeiCam SDK For iOS  3.11.2
Instance Methods | List of all members
NvsVideoFrameRetriever Class Reference

Video frame extraction. More...

#import <NvsVideoFrameRetriever.h>

Inheritance diagram for NvsVideoFrameRetriever:

Instance Methods

(void) - setFrameTimeTolerance:
 Set the time tolerance for acquiring video frames. The actual time of the generated images will be within the range [time-timeToleranceļ¼Œtime+timeTolerance] and may differ from the requested time for efficiency.Pass 0 for to request frame-accurate image generation; this may incur additional decoding delay.Default is 500000. More...
 
(UIImage *) - getFrameAtTime:videoFrameHeightGrade:
 Gets a video frame image at a certain moment. For details, please refer to Video Frame Image Extraction. More...
 
(UIImage *) - getFrameAtTimeWithVideoFrameHeight:videoFrameHeight:
 Gets a video frame image at a certain time which users can customize the height of the video frame. For details, please refer to Video Frame Image Extraction. More...
 

Detailed Description

Video frame extraction.

The video frame extraction class can acquire the original video frame image at a certain moment.

Warning
In the NvsVideoFrameRetriever class, all public APIs can be used not only in the UI thread, but also across threads! ! !
Since
1.2.0

Method Documentation

◆ getFrameAtTime:videoFrameHeightGrade:

- (UIImage *) getFrameAtTime: (int64_t)  time
videoFrameHeightGrade: (NvsVideoFrameHeightGrade videoFrameHeightGrade 

Gets a video frame image at a certain moment. For details, please refer to Video Frame Image Extraction.

Parameters
timethe time value (in microseconds)
videoFrameHeightGradeThe height level of the extracted video frame
Returns
Returns a UIImage object representing the video frame image at a certain moment.

◆ getFrameAtTimeWithVideoFrameHeight:videoFrameHeight:

- (UIImage *) getFrameAtTimeWithVideoFrameHeight: (int64_t)  time
videoFrameHeight: (unsigned int)  videoFrameHeight 

Gets a video frame image at a certain time which users can customize the height of the video frame. For details, please refer to Video Frame Image Extraction.

Parameters
timethe time value (in microseconds)
videoFrameHeightCustom video frame height.
Returns
Returns a UIImage object representing the video frame image at a certain moment.
Since
1.15.0

◆ setFrameTimeTolerance:

- (void) setFrameTimeTolerance: (int64_t)  timeTolerance

Set the time tolerance for acquiring video frames. The actual time of the generated images will be within the range [time-timeToleranceļ¼Œtime+timeTolerance] and may differ from the requested time for efficiency.Pass 0 for to request frame-accurate image generation; this may incur additional decoding delay.Default is 500000.

Parameters
timeTolerancethe time value (in microseconds)
Since
2.20.0

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