Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 379 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 379 Bytes

SwiftRaw

A thin Swift wrapper around LibRaw. Work in progress...

How to use

import SwiftRaw

let raw = try Raw.openFile(path: "my-raw-file.CR2")
try raw.unpack()
try raw.dcrawProcess()
let bitmap = try raw.renderImage()
// do something with bitmap
bitmap.withUnsafeBytes { buf in
    // convert to PNG, render to screen, etc ...
}