Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decoder ¶
Decoder defines the interface to implement a new raw decoder
func Open ¶
Open instanciates a decoder from a file by detecting its format
Example ¶
package main import ( "fmt" "github.com/tjamet/goraw" _ "github.com/tjamet/goraw/fuji" tools "github.com/tjamet/goraw/test-tools" ) func main() { testFile := tools.DownloadRAW("http://www.rawsamples.ch/raws/fuji/RAW_FUJI_FINEPIX_X100.RAF") decoder, _ := goraw.Open(testFile) reader, _ := decoder.ExifReaderAt() order := make([]byte, 2) reader.ReadAt(order, 0) fmt.Println(string(order)) }
Output: II
Click to show internal directories.
Click to hide internal directories.