68ba289d6c
Replaces "photoprism config", which could only display current configuration values. Codecs and file formats have been refactored along the way. Signed-off-by: Michael Mayer <michael@liquidbytes.net>
14 lines
340 B
Go
14 lines
340 B
Go
package meta
|
|
|
|
import "github.com/photoprism/photoprism/internal/video"
|
|
|
|
const CodecUnknown = ""
|
|
const CodecAvc1 = string(video.CodecAVC)
|
|
const CodecJpeg = "jpeg"
|
|
const CodecHeic = "heic"
|
|
const CodecXMP = "xmp"
|
|
|
|
// CodecAvc returns true if the video format is MPEG-4 AVC.
|
|
func (data Data) CodecAvc() bool {
|
|
return data.Codec == CodecAvc1
|
|
}
|