bd3426ae51
Still need to index metadata. Work in progress. Signed-off-by: Michael Mayer <michael@liquidbytes.net>
36 lines
558 B
Go
36 lines
558 B
Go
/*
|
|
This package encapsulates JPEG thumbnail generation.
|
|
|
|
Additional information can be found in our Developer Guide:
|
|
|
|
https://github.com/photoprism/photoprism/wiki
|
|
*/
|
|
package video
|
|
|
|
import (
|
|
"github.com/photoprism/photoprism/internal/event"
|
|
"github.com/photoprism/photoprism/pkg/fs"
|
|
)
|
|
|
|
var log = event.Log
|
|
|
|
type Type struct {
|
|
Format fs.FileType
|
|
Width int
|
|
Height int
|
|
Public bool
|
|
}
|
|
|
|
type TypeMap map[string]Type
|
|
|
|
var TypeMP4 = Type{
|
|
Format: fs.TypeMP4,
|
|
Width: 0,
|
|
Height: 0,
|
|
Public: true,
|
|
}
|
|
|
|
var Types = TypeMap{
|
|
"": TypeMP4,
|
|
"mp4": TypeMP4,
|
|
}
|