craw

package
v0.10.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT-0 Imports: 13 Imported by: 0

Documentation

Overview

Package craw provides support for loading Camera Raw settings.

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalSettings string // The global Camera Raw settings directory.
	UserSettings   string // The user's Camera Raw settings directory.
	EmbedProfiles  string // The file where to look for embed profiles.
)

Paths used to find Camera Raw settings.

Functions

func GetCameraProfileNames

func GetCameraProfileNames(make, model string) ([]string, error)

GetCameraProfileNames gets the names of all profiles that apply to a given camera. It looks for profiles under the GlobalSettings and UserSettings directories, and in the EmbedProfiles file, if set.

func GetCameraProfiles

func GetCameraProfiles(make, model string) ([]string, error)

GetCameraProfiles gets all the profiles that apply to a given camera. Returns the DCP file paths for the profiles. It looks for profiles under the GlobalSettings and UserSettings directories.

Types

type IndexedRecord

type IndexedRecord struct {
	Path string            // The path to the indexed file.
	Prop map[string]string // The name-value property pairs.
}

IndexedRecord holds properties for an indexed file.

func LoadIndex

func LoadIndex(path string) ([]IndexedRecord, error)

LoadIndex loads an Index.dat file. Index.dat files index the profiles, presets and other settings in a Camera Raw settings directory for faster access.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL