forked from asticode/go-astiav
-
Notifications
You must be signed in to change notification settings - Fork 0
/
color_primaries.go
26 lines (23 loc) · 1.22 KB
/
color_primaries.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package astiav
//#include <libavutil/pixfmt.h>
import "C"
// https://ffmpeg.org/doxygen/7.0/pixfmt_8h.html#ad384ee5a840bafd73daef08e6d9cafe7
type ColorPrimaries C.enum_AVColorPrimaries
const (
ColorPrimariesReserved0 = ColorPrimaries(C.AVCOL_PRI_RESERVED0)
ColorPrimariesBt709 = ColorPrimaries(C.AVCOL_PRI_BT709)
ColorPrimariesUnspecified = ColorPrimaries(C.AVCOL_PRI_UNSPECIFIED)
ColorPrimariesReserved = ColorPrimaries(C.AVCOL_PRI_RESERVED)
ColorPrimariesBt470M = ColorPrimaries(C.AVCOL_PRI_BT470M)
ColorPrimariesBt470Bg = ColorPrimaries(C.AVCOL_PRI_BT470BG)
ColorPrimariesSmpte170M = ColorPrimaries(C.AVCOL_PRI_SMPTE170M)
ColorPrimariesSmpte240M = ColorPrimaries(C.AVCOL_PRI_SMPTE240M)
ColorPrimariesFilm = ColorPrimaries(C.AVCOL_PRI_FILM)
ColorPrimariesBt2020 = ColorPrimaries(C.AVCOL_PRI_BT2020)
ColorPrimariesSmpte428 = ColorPrimaries(C.AVCOL_PRI_SMPTE428)
ColorPrimariesSmptest4281 = ColorPrimaries(C.AVCOL_PRI_SMPTEST428_1)
ColorPrimariesSmpte431 = ColorPrimaries(C.AVCOL_PRI_SMPTE431)
ColorPrimariesSmpte432 = ColorPrimaries(C.AVCOL_PRI_SMPTE432)
ColorPrimariesJedecP22 = ColorPrimaries(C.AVCOL_PRI_JEDEC_P22)
ColorPrimariesNb = ColorPrimaries(C.AVCOL_PRI_NB)
)