Banuba SDK
Instance Methods | List of all members
BNBVideo Class Reference

#import <BNBVideo.h>

Inheritance diagram for BNBVideo:

Instance Methods

(nonnull NSString *) - getCurrentVideo
 
(int32_t) - getWidth
 
(int32_t) - getHeight
 
(void) - load:onLoadingFinished:
 Load video file for decoding. More...
 
(void) - loadByFd:onLoadingFinished:
 Load video file for decoding by file descriptor. More...
 
(nullable BNBMedia *) - asMedia
 cast video to media parent class (media). More...
 
(nullable BNBImage *) - asImage
 
(float) - getRotationAngle
 Video own rotation angle. More...
 
(void) - setFilteringMode:
 set gpu video texture filtering mode param mode (texture_filtering_mode) More...
 
(BNBTextureFilteringMode) - getFilteringMode
 

Detailed Description

Definition at line 18 of file BNBVideo.h.

Method Documentation

◆ asImage

- (nullable BNBImage *) asImage
Returns
upcast to image type

◆ asMedia

- (nullable BNBMedia *) asMedia

cast video to media parent class (media).

◆ getCurrentVideo

- (nonnull NSString *) getCurrentVideo
Returns
current loaded video file (string).

◆ getFilteringMode

- (BNBTextureFilteringMode) getFilteringMode
Returns
filtering mode (texture_filtering_mode)

◆ getHeight

- (int32_t) getHeight
Returns
current loaded video pixels height (int).

◆ getRotationAngle

- (float) getRotationAngle

Video own rotation angle.

◆ getWidth

- (int32_t) getWidth
Returns
current loaded video pixels width (int).

◆ load:onLoadingFinished:

- (void) load: (nonnull NSString *)  videoPath
onLoadingFinished: (nullable id< BNBVideoLoadingResultListener >)  onLoadingFinished 

Load video file for decoding.

Parameters
file_name(string): absolute path for video file.

◆ loadByFd:onLoadingFinished:

- (void) loadByFd: (int32_t)  fd
onLoadingFinished: (nullable id< BNBVideoLoadingResultListener >)  onLoadingFinished 

Load video file for decoding by file descriptor.

Parameters
fd(i32): file descriptor, should be closed on the caller side.

◆ setFilteringMode:

- (void) setFilteringMode: (BNBTextureFilteringMode)  value

set gpu video texture filtering mode param mode (texture_filtering_mode)


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