Banuba SDK
libs
djinni
generated
objc
BNBVideo.h
Go to the documentation of this file.
1
// AUTOGENERATED FILE - DO NOT MODIFY!
2
// This file was generated by Djinni from scene.djinni
3
4
#import "
BNBTextureFilteringMode.h
"
5
#import <Foundation/Foundation.h>
6
@class
BNBImage
;
7
@class
BNBMedia
;
8
@protocol
BNBVideoLoadingResultListener
;
9
10
11
/**Class, represents video texture interface. Subclass of image, also subclass of media. */
12
13
#ifndef DJINNI_EXPORT
14
#define DJINNI_EXPORT __attribute__((__visibility__("default")))
15
#endif
16
17
DJINNI_EXPORT
18
@interface
BNBVideo
: NSObject
19
20
/**@return current loaded video file (string). */
21
- (nonnull NSString *)
getCurrentVideo
;
22
23
/**@return current loaded video pixels width (int). */
24
- (int32_t)
getWidth
;
25
26
/**@return current loaded video pixels height (int). */
27
- (int32_t)
getHeight
;
28
29
/**
30
*Load video file for decoding.
31
*@param file_name (string): absolute path for video file.
32
*/
33
- (void)load:(nonnull NSString *)videoPath
34
onLoadingFinished:(nullable
id
<
BNBVideoLoadingResultListener
>)onLoadingFinished;
35
36
/**
37
*Load video file for decoding by file descriptor.
38
*@param fd (i32): file descriptor, should be closed on the caller side.
39
*/
40
- (void)loadByFd:(int32_t)fd
41
onLoadingFinished:(nullable
id
<
BNBVideoLoadingResultListener
>)onLoadingFinished;
42
43
/**cast video to media parent class (media). */
44
- (nullable
BNBMedia
*)
asMedia
;
45
46
/**@return upcast to image type */
47
- (nullable
BNBImage
*)
asImage
;
48
49
/** Video own rotation angle */
50
- (float)
getRotationAngle
;
51
52
/**
53
*set gpu video texture filtering mode
54
*param mode (texture_filtering_mode)
55
*/
56
- (void)setFilteringMode:(BNBTextureFilteringMode)value;
57
58
/**@return filtering mode (texture_filtering_mode) */
59
- (BNBTextureFilteringMode)
getFilteringMode
;
60
61
@end
-[BNBVideo getWidth]
int32_t getWidth()
BNBImage
Definition:
BNBImage.h:24
-[BNBVideo getFilteringMode]
BNBTextureFilteringMode getFilteringMode()
BNBVideo
Definition:
BNBVideo.h:18
-[BNBVideo getCurrentVideo]
nonnull NSString * getCurrentVideo()
-[BNBVideo asImage]
nullable BNBImage * asImage()
BNBVideoLoadingResultListener-p
Interface to receive loading result from video.
Definition:
BNBVideoLoadingResultListener.h:8
DJINNI_EXPORT
#define DJINNI_EXPORT
Class, represents video texture interface.
Definition:
BNBVideo.h:14
-[BNBVideo asMedia]
nullable BNBMedia * asMedia()
cast video to media parent class (media).
BNBTextureFilteringMode.h
BNBMedia
Definition:
BNBMedia.h:14
-[BNBVideo getHeight]
int32_t getHeight()
-[BNBVideo getRotationAngle]
float getRotationAngle()
Video own rotation angle.
Generated by
1.8.17