photoprism/internal/meta/codec.go
Michael Mayer 68ba289d6c CLI: Add "photoprism show config/formats" subcommands
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>
2022-04-12 13:28:28 +02:00

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
}