2020-05-15 09:39:32 +02:00
|
|
|
package meta
|
|
|
|
|
2022-04-12 13:28:28 +02:00
|
|
|
import "github.com/photoprism/photoprism/internal/video"
|
|
|
|
|
2020-05-15 09:39:32 +02:00
|
|
|
const CodecUnknown = ""
|
2022-04-12 13:28:28 +02:00
|
|
|
const CodecAvc1 = string(video.CodecAVC)
|
2020-05-15 09:39:32 +02:00
|
|
|
const CodecJpeg = "jpeg"
|
2020-05-27 13:40:21 +02:00
|
|
|
const CodecHeic = "heic"
|
|
|
|
const CodecXMP = "xmp"
|
2020-05-15 09:39:32 +02:00
|
|
|
|
2020-12-12 17:20:31 +01:00
|
|
|
// CodecAvc returns true if the video format is MPEG-4 AVC.
|
|
|
|
func (data Data) CodecAvc() bool {
|
2020-05-15 09:39:32 +02:00
|
|
|
return data.Codec == CodecAvc1
|
|
|
|
}
|