2020-05-15 09:39:32 +02:00
|
|
|
package meta
|
|
|
|
|
2022-04-15 09:42:07 +02:00
|
|
|
import (
|
|
|
|
"github.com/photoprism/photoprism/pkg/video"
|
|
|
|
)
|
2022-04-12 13:28:28 +02:00
|
|
|
|
2020-05-15 09:39:32 +02:00
|
|
|
const CodecUnknown = ""
|
2022-06-24 06:59:22 +02:00
|
|
|
const CodecAv1 = string(video.CodecAV1)
|
2022-04-12 13:28:28 +02:00
|
|
|
const CodecAvc1 = string(video.CodecAVC)
|
2023-09-22 23:59:56 +02:00
|
|
|
const CodecHvc1 = string(video.CodecHVC)
|
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
|
|
|
|
2023-07-18 21:23:56 +02:00
|
|
|
// CodecAvc returns true if the video codec is AVC.
|
2020-12-12 17:20:31 +01:00
|
|
|
func (data Data) CodecAvc() bool {
|
2020-05-15 09:39:32 +02:00
|
|
|
return data.Codec == CodecAvc1
|
|
|
|
}
|