photoprism/internal/ffmpeg/encode/pixel_format.go
Michael Mayer bbb30e6a33 FFmpeg: Add tests, refactor package, and split into sub-packages #4604
Signed-off-by: Michael Mayer <michael@photoprism.app>
2025-01-08 18:27:33 +01:00

16 lines
354 B
Go

package encode
// 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"
FormatNV12 PixelFormat = "nv12,hwupload"
FormatQSV PixelFormat = "qsv"
)