CBLRAWImageDescription

Objective-C


@interface CBLRAWImageDescription : NSObject

Swift

class RAWImageDescription : NSObject

Helper class for parsing RAW image headers.

  • Returns an array of image description objects contained in the given RAW data.

    Declaration

    Objective-C

    + (nullable NSArray<CBLRAWImageDescription *> *)imageDescriptionsInRAWHeaders:
        (nullable NSData *)headers;

    Swift

    class func imageDescriptions(inRAWHeaders headers: Data?) -> [RAWImageDescription]?

    Parameters

    headers

    An NSData instance containing at least the headers of a RAW image.

    Return Value

    Returns an array of CBLRAWImageDescription objects representing the information contained in the given RAW image headers, or nil if parsing failed.

  • Returns the metadata contained within a RAW EXIF blob.

    Declaration

    Objective-C

    + (nullable NSDictionary<NSString *, id> *)metadataInEXIFHeader:
        (nullable NSData *)metadata;

    Swift

    class func metadata(inEXIFHeader metadata: Data?) -> [String : Any]?

    Parameters

    metadata

    An NSData instance containing an EXIF blob.

    Return Value

    Returns an EXIF metadata dictionary appropriate for use with ImageIO, or nil if parsing failed.

  • Returns the metadata contained within a JPEG header.

    Declaration

    Objective-C

    + (nullable NSDictionary<NSString *, id> *)metadataInJPEGHeader:
        (nullable NSData *)jpegData;

    Swift

    class func metadata(inJPEGHeader jpegData: Data?) -> [String : Any]?

    Parameters

    jpegData

    A fragment of JPEG image, starting from the beginning of the file.

    Return Value

    Returns an EXIF metadata dictionary appropriate for use with ImageIO, or nil if parsing failed.

  • Returns true if the receiver describes a valid image, otherwise false.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isValidImage;

    Swift

    var isValidImage: Bool { get }
  • Returns true if the receiver describes a JPEG image, otherwise false.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isStandardJPEG;

    Swift

    var isStandardJPEG: Bool { get }
  • Returns true if the receiver describes a RAW image, otherwise false.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isRAWImage;

    Swift

    var isRAWImage: Bool { get }
  • Returns true if the receiver describes an entry that only contains image metadata (EXIF, etc).

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isMetadataOnly;

    Swift

    var isMetadataOnly: Bool { get }
  • Returns the size of the image the receiver describes, in pixels.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize imageSize;

    Swift

    var imageSize: CGSize { get }
  • Returns the range within the source data of the image data the receiver describes.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSRange sourceDataRange;

    Swift

    var sourceDataRange: NSRange { get }
  • Returns orientation of the receiver’s image as an EXIF orientation.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger orientation;

    Swift

    var orientation: UInt { get }
  • Returns any additional metadata describing the receiver’s image.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSDictionary *additionalMetadata;

    Swift

    var additionalMetadata: [AnyHashable : Any]? { get }