2023-07-18 15:15:04 +02:00
|
|
|
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"
|
|
|
|
FormatNV12 PixelFormat = "nv12,hwupload"
|
2024-02-07 17:25:57 +01:00
|
|
|
FormatQSV PixelFormat = "qsv"
|
2023-07-18 15:15:04 +02:00
|
|
|
)
|