BNBFullImageData
Objective-C
@interface BNBFullImageData : NSObject
Swift
class BNBFullImageData : NSObject
Container for image data designed for Banuba SDK.
-
A method for initializing a new object.
Declaration
Objective-C
- (nonnull instancetype)init:(nonnull CVPixelBufferRef)buffer cameraOrientation:(BNBCameraOrientation)cameraOrientation requireMirroring:(BOOL)requireMirroring faceOrientation:(NSInteger)faceOrientation fieldOfView:(float)fieldOfView;
Swift
init(_ buffer: CVPixelBuffer, cameraOrientation: BNBCameraOrientation, requireMirroring: Bool, faceOrientation: Int, fieldOfView: Float)
Parameters
buffer
is a pixel buffer stores an image in main memory.
cameraOrientation
is an enum value of camera orientation. It is present camera orientation in degrees.
requireMirroring
is responsible for mirroring image during rendering; if it is true image will be mirrored.
faceOrientation
present the face orientation in degrees.
fieldOfView
is a angle of field view in degrees.
Return Value
Returns initialized object of BNBFullImageData, or nil if an object coldn’t be created for some reason.
-
It is a readonly property representing width of image in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) uint32_t width;
Swift
var width: UInt32 { get }
-
It is a readonly property representing height of image in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) uint32_t height;
Swift
var height: UInt32 { get }
-
It is a readonly property representing filed of view in degrees.
Declaration
Objective-C
@property (nonatomic, readonly) float fieldOfView;
Swift
var fieldOfView: Float { get }
-
It is a readonly property representing camera orientation in degrees as enum value.
Declaration
Objective-C
@property (nonatomic, readonly) BNBCameraOrientation cameraOrientation;
Swift
var cameraOrientation: BNBCameraOrientation { get }
-
It is a readonly property representing necessity of mirroring during rendering.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL requireMirroring;
Swift
var requireMirroring: Bool { get }
-
It is a readonly property representing face orientation in degrees.
Declaration
Objective-C
@property (nonatomic, readonly) int faceOrientation;
Swift
var faceOrientation: Int32 { get }
-
It is a readonly property representing a pixel buffer stores an images.
Declaration
Objective-C
@property (nonatomic, readonly) CVPixelBufferRef _Nullable pixelBuffer;
Swift
var pixelBuffer: CVPixelBuffer? { get }