BNBCameraTexture
Objective-C
@interface BNBCameraTexture : NSObject
/**@return camera texture format (camera_texture_format). Can be Y, UV, or RGBA. */
- (BNBCameraTextureFormat)getFormat;
/**
*set camera texture format for current texture.
*@param format (camera_texture_format). Can be Y, UV, or RGBA.
*/
- (void)setFormat:(BNBCameraTextureFormat)format;
/**@return upcast to base type */
- (nullable BNBImage *)asImage;
@end
Swift
class BNBCameraTexture : NSObject
Undocumented
-
Declaration
Objective-C
- (BNBCameraTextureFormat)getFormat;
Swift
func getFormat() -> BNBCameraTextureFormat
Return Value
camera texture format (camera_texture_format). Can be Y, UV, or RGBA.
-
set camera texture format for current texture.
Declaration
Objective-C
- (void)setFormat:(BNBCameraTextureFormat)format;
Swift
func setFormat(_ format: BNBCameraTextureFormat)
Parameters
format
(camera_texture_format). Can be Y, UV, or RGBA.