1
1
mirror of https://github.com/wader/fq.git synced 2024-12-28 08:02:28 +03:00
fq/format/vpx/vpx.go
Mattias Wadman 9b81d4d3ab decode: More type safe API and split scalar into multiple types
Preparation to make decoder use less memory and API more type safe.
Now each scalar type has it's own struct type so it can store different
things and enables to have a scalar interface.
Also own types will enable experimenting with decode DLS designs like
using chained methods that are type aware.
2022-12-14 16:23:58 +01:00

28 lines
482 B
Go

package vpx
import "github.com/wader/fq/pkg/scalar"
var vpxLevelNames = scalar.UintMapSymStr{
10: "level_1",
11: "level_1.1",
20: "level_2",
21: "level_2.1",
30: "level_3",
31: "level_3.1",
40: "level_4",
41: "level_4.1",
50: "level_5",
51: "level_5.1",
52: "level_5.2",
60: "level_6",
61: "level_6.1",
62: "level_6.2",
}
var vpxChromeSubsamplingNames = scalar.UintMapSymStr{
0: "4:2:0 vertical",
1: "4:2:0 colocated with luma (0,0)",
2: "4:2:2",
3: "4:4:4",
}