photoprism/internal/entity/const.go
Michael Mayer 82d61d1f93 File Types: Add experimental support for animated GIFs #590 #2207
Animated GIFs are transcoded to AVC because it is much smaller and
thus also suitable for long/large animations. In addition, this commit
adds support for more metadata fields such as frame rate, number of
frames, file capture timestamp (unix milliseconds), media type,
and software version. Support for SVG files can later be implemented in
a similar way.
2022-04-13 22:17:59 +02:00

83 lines
1.7 KiB
Go

package entity
import "github.com/photoprism/photoprism/pkg/fs"
// Panorama Projection Types
// TODO: Move to separate package.
const (
ProjDefault = ""
ProjEquirectangular = "equirectangular"
ProjCubestrip = "cubestrip"
ProjCylindrical = "cylindrical"
ProjTransverseCylindrical = "transverse-cylindrical"
ProjPseudocylindricalCompromise = "pseudocylindrical-compromise"
)
// Media Types.
const (
MediaUnknown = ""
MediaImage = string(fs.MediaImage)
MediaVector = string(fs.MediaVector)
MediaAnimated = "animated"
MediaLive = "live"
MediaVideo = string(fs.MediaVideo)
MediaRaw = string(fs.MediaRaw)
TypeMeta = "meta"
)
// Root Dirs.
const (
RootUnknown = ""
RootOriginals = "/"
RootExamples = "examples"
RootSidecar = "sidecar"
RootImport = "import"
RootPath = "/"
)
// Defaults.
const (
UnknownYear = -1
UnknownMonth = -1
UnknownDay = -1
UnknownName = "Unknown"
UnknownTitle = UnknownName
UnknownID = "zz"
)
// Event Types
const (
Updated = "updated"
Created = "created"
Deleted = "deleted"
)
// Photo Stacks
const (
IsStacked int8 = 1
IsStackable int8 = 0
IsUnstacked int8 = -1
)
// Sort Orders
const (
SortOrderDefault = ""
SortOrderRelevance = "relevance"
SortOrderCount = "count"
SortOrderAdded = "added"
SortOrderImported = "imported"
SortOrderEdited = "edited"
SortOrderNewest = "newest"
SortOrderOldest = "oldest"
SortOrderPlace = "place"
SortOrderMoment = "moment"
SortOrderName = "name"
SortOrderPath = "path"
SortOrderSlug = "slug"
SortOrderCategory = "category"
SortOrderSimilar = "similar"
)