photoprism/internal/ffmpeg/format.go
Michael Mayer 3cf1c699df Video: Refactor FFmpeg Transcoding Size Limit #3466 #3498 #3549
Signed-off-by: Michael Mayer <michael@photoprism.app>
2023-07-18 15:15:04 +02:00

16 lines
356 B
Go

package ffmpeg
// PixelFormat represents a standard pixel format.
type PixelFormat string
// String returns the pixel format as string.
func (f PixelFormat) String() string {
return string(f)
}
// Standard pixel formats.
const (
FormatYUV420P PixelFormat = "yuv420p"
FormatRGB32 PixelFormat = "rgb32"
FormatNV12 PixelFormat = "nv12,hwupload"
)