在分析视频编码层(VCL)经常看到如下红框中的描述符,很难弄请其意思。
现举个实列来解释更直观。
Hex 0x197E5A01
Binary form 0001 1001 0111 1110 0101 1010 0000 0001
Syntax Descriptor
syntax_1 b(8)
syntax_2 f(8)
syntax_3 f(1)
syntax_4 f(5)
syntax_5 b(8)
syntax_6 f(2)
Then for syntax_1, b(8) returns the first byte, 0001 1001. For syntax_2, f(8) returns the second byte, 0111 1110. For syntax_3, f(1) returns the value of next bit which is 0. Continue with the example, we have:
syntax_1 = 25 (0001 1001)
syntax_2 = 126 (0111 1110)
syntax_3 = 0 (0)
syntax_4 = 22 (10110)
syntax_5 = 128 (1000 0000)
syntax_6 = 1 (01)
ae(v):二进制算术编码语法元素。该描述符的解析过程在5.4.2 中规定;
b(8):任意形式的8 比特字节。该描述符的解析过程通过函数read_bits(8)的返回值来规定;
f(n):n 位比特串(由左至右&#