mirror of
https://github.com/pion/mediadevices.git
synced 2025-09-27 04:46:10 +08:00

From pkg.go.dev or godoc, the removed comments are not necessary as they won't get rendered or goes without saying.
25 lines
650 B
Go
25 lines
650 B
Go
package frame
|
|
|
|
type Format string
|
|
|
|
const (
|
|
// FormatI420 https://www.fourcc.org/pixel-format/yuv-i420/
|
|
FormatI420 Format = "I420"
|
|
// FormatI444 is a YUV format without sub-sampling
|
|
FormatI444 Format = "I444"
|
|
// FormatNV21 https://www.fourcc.org/pixel-format/yuv-nv21/
|
|
FormatNV21 = "NV21"
|
|
// FormatYUY2 https://www.fourcc.org/pixel-format/yuv-yuy2/
|
|
FormatYUY2 = "YUY2"
|
|
// FormatUYVY https://www.fourcc.org/pixel-format/yuv-uyvy/
|
|
FormatUYVY = "UYVY"
|
|
|
|
// FormatRGBA https://www.fourcc.org/pixel-format/rgb-rgba/
|
|
FormatRGBA Format = "RGBA"
|
|
|
|
// FormatMJPEG https://www.fourcc.org/mjpg/
|
|
FormatMJPEG = "MJPEG"
|
|
)
|
|
|
|
const FormatYUYV = FormatYUY2
|