BNBPixelBuffer

Objective-C

@interface BNBPixelBuffer : NSObject
- (nonnull instancetype)initWithData:(nonnull NSData *)data
                              format:(BNBPixelFormat)format
                               width:(int32_t)width
                              heigth:(int32_t)heigth;
+ (nonnull instancetype)pixelBufferWithData:(nonnull NSData *)data
                                     format:(BNBPixelFormat)format
                                      width:(int32_t)width
                                     heigth:(int32_t)heigth;

@property (nonatomic, readonly, nonnull) NSData * data;

@property (nonatomic, readonly) BNBPixelFormat format;

@property (nonatomic, readonly) int32_t width;

@property (nonatomic, readonly) int32_t heigth;

@end

Swift

class BNBPixelBuffer : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithData:(nonnull NSData *)data
                                  format:(BNBPixelFormat)format
                                   width:(int32_t)width
                                  heigth:(int32_t)heigth;

    Swift

    init(data: Data, format: BNBPixelFormat, width: Int32, heigth: Int32)
  • Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)pixelBufferWithData:(nonnull NSData *)data
                                         format:(BNBPixelFormat)format
                                          width:(int32_t)width
                                         heigth:(int32_t)heigth;
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) NSData * data

    Swift

    var data: Data { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) BNBPixelFormat format

    Swift

    var format: BNBPixelFormat { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t width

    Swift

    var width: Int32 { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) int32_t heigth

    Swift

    var heigth: Int32 { get }