-
Notifications
You must be signed in to change notification settings - Fork 6
/
bptc.txt
1136 lines (1021 loc) · 72.2 KB
/
bptc.txt
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright (c) 2014-2019 The Khronos Group Inc.
// Copyright notice at https://www.khronos.org/registry/speccopyright.html
[[BPTC]]
== BPTC Compressed Texture Image Formats
_This description is derived from the ``BPTC Compressed Texture Image Formats''
section of the OpenGL 4.4 specification._
More information on
link:https://docs.microsoft.com/en-us/windows/desktop/direct3d11/bc7-format[BC7],
link:https://docs.microsoft.com/en-us/windows/desktop/direct3d11/bc7-format-mode-reference[BC7 modes]
and link:https://docs.microsoft.com/en-us/windows/desktop/direct3d11/bc6h-format[BC6h]
can be found in Microsoft's online documentation.
Compressed texture images stored using the BPTC compressed image formats are
represented as a collection of 4{times}4 texel blocks, each of which
contains 128 bits of texel data stored in little-endian order.
The image is encoded as a normal 2D raster image in which each 4{times}4 block
is treated as a single pixel.
If a BPTC image has a width or height that is not a multiple of four, the
data corresponding to texels outside the image are irrelevant and undefined.
When a BPTC image with width _w_, height _h_, and block size
_blocksize_ (16 bytes) is decoded, the corresponding image size (in
bytes) is:
[latexmath]
++++++++++++++++
\begin{align*}
\left\lceil { w \over 4 } \right\rceil \times
\left\lceil { h \over 4 } \right\rceil \times
blocksize
\end{align*}
++++++++++++++++
When decoding a BPTC image, the block containing the texel at offset (_x_, _y_)
begins at an offset (in bytes) relative to the base of the image of:
[latexmath]
++++++++++++++
\begin{align*}
blocksize \times
\left( { \left\lceil { w \over 4 } \right\rceil \times
\left\lfloor { y \over 4 } \right\rfloor +
\left\lfloor { x \over 4 } \right\rfloor } \right)
\end{align*}
++++++++++++++
The data corresponding to a specific texel (_x_, _y_) are extracted from a
4{times}4 texel block using a relative (_x_, _y_) value of:
[latexmath]
++++++++++++++
\begin{align*}
(x \bmod 4,y \bmod 4)
\end{align*}
++++++++++++++
There are two distinct BPTC image formats each of which has two variants.
BC7 with or without an sRGB transform function used in the encoding of the
_RGB_ channels compresses 8-bit unsigned, normalized fixed-point data.
BC6H in signed or unsigned form compresses high dynamic range
floating-point values. The formats are similar, so the description of the
BC6H format will reference significant sections of the BC7 description.
[[bptc_bc7]]
=== BC7
Each 4{times}4 block of texels consists of 128 bits of _RGBA_
image data, of which the _RGB_ channels may be encoded linearly or with the
<<TRANSFER_SRGB,sRGB transfer function>>.
Each block contains enough information to select and decode a number of
colors called endpoints, pairs of which forms subsets, then to
interpolate between those endpoints in a variety of ways, and finally to
remap the result into the final output by indexing into these interpolated
values according to a partition layout which maps each relative coordinate
to a subset.
Each block can contain data in one of eight modes. The mode is identified by
the lowest bits of the lowest byte. It is encoded as zero or more zeros
followed by a one. For example, using `x' to indicate a bit not included in
the mode number, mode 0 is encoded as xxxxxxx1 in the low byte in binary,
mode 5 is xx100000, and mode 7 is 10000000. Encoding the low byte as zero is
reserved and should not be used when encoding a BPTC texture; hardware
decoders processing a texel block with a low byte of 0 should return 0 for
all channels of all texels.
All further decoding is driven by the values derived from the mode listed in
<<table-bptcmodes>> and <<table-bptcmodedescriptions>>.
The fields in the block are always in the same order for all modes.
In increasing bit order after the mode, these fields are:
partition pattern selection, rotation, index selection, color, alpha,
per-endpoint P-bit, shared P-bit, primary indices, and secondary indices.
The number of bits to be read in each field is determined directly from
these tables, as shown in <<table-bptcmodebits>>.
[NOTE]
====
Per texel block, _CB_ = 3(each of _R_, _G_,
_B_){times}2(endpoints){times}NS(#subsets){times}CB(bits/channel/endpoint).
_AB_ = 2(endpoints){times}NS(#subsets){times}AB(bits/endpoint).
{_IB_,_IB~2~_} = 16(texels){times}{IB,IB~2~}(#index bits/texel)
- NS(1bit/subset).
====
[[table-bptcmodes]]
.Mode-dependent BPTC parameters
[width="97%",cols="7%,4%,4%,4%,4%,9%,9%,11%,9%,5%,4%,1%,3%,4%,4%,5%,5%,4%,4%"]
|============
^| *Mode* ^| *NS* ^| *PB* ^| *RB* ^| *ISB* ^| *CB* ^| *AB* ^| *EPB* ^| *SPB* ^| *IB* ^| *IB~2~* 1.10+^| ^| *M* ^| *_CB_* ^| *_AB_* ^| *_EPB_* ^| *_SPB_* ^| *_IB_* ^| *_IB~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*PB* | Partition selection bits
^| *RB* | Rotation bits
^| *ISB* | Index selection bit
^| *CB* | Color bits
^| *AB* | Alpha bits
^| *EPB* | Endpoint P-bits (all channels)
^| *SPB* | Shared P-bits
^| *IB* | Index bits
^| *IB~2~* | Secondary index bits
|============
Each block can be divided into between 1 and 3 groups of pixels called _subsets_,
which have different endpoints.
There are two endpoint colors per subset, grouped first by endpoint,
then by subset, then by channel.
For example, mode 1, with two subsets and six color bits, would have six
bits of red for endpoint 0 of the first subset, then six bits of red for
endpoint 1, then the two ends of the second subset, then green and blue stored
similarly.
If a block has any alpha bits, the alpha data follows the color data with
the same organization.
If not, alpha is overridden to 255.
These bits are treated as the high bits of a fixed-point value in a byte
for each color channel of the endpoints: {_E_~_R_~^7..0^, _E_~_G_~^7..0^, _E_~_B_~^7..0^,
_E_~_A_~^7..0^} per endpoint.
If the mode has shared P-bits, there are two endpoint bits, the lower of
which applies to both endpoints of subset 0 and the upper of which applies
to both endpoints of subset 1.
If the mode has per-endpoint P-bits, then there are 2 {times} _subsets_
P-bits stored in the same order as color and alpha.
Both kinds of P-bits are added as a bit below the color data stored in the
byte.
So, for mode 1 with six red bits, the P-bit ends up in bit 1.
For final scaling, the top bits of the value are replicated into any
remaining bits in the byte.
For the example of mode 1, bit 7 (which originated as bit 5 of the 6-bit
encoded channel) would be replicated to bit 0.
<<table-bptcsourcebits>> and <<table-bptcsourcebits2>> show the origin of
each endpoint color bit for each mode.
[[table-bptcmodebits]]
.Bit layout for BC7 modes (LSB..MSB)
[cols="7*1"]
|============
1.6+^.^| Mode
{nbsp}0 2+^| ~_0:_~ *M^0^ = 1* 4+^| ~_1..4:_~ PB^0..3^
^| ~_5..8:_~ _R_~0~^0..3^ ^| ~_9..12:_~ _R_~1~^0..3^ ^| ~_13..16:_~ _R_~2~^0..3^ ^| ~_17..20:_~ _R_~3~^0..3^ ^| ~_21..24:_~ _R_~4~^0..3^ ^| ~_25..28:_~ _R_~5~^0..3^
^| ~_29..32:_~ _G_~0~^0..3^ ^| ~_33..36:_~ _G_~1~^0..3^ ^| ~_37..40:_~ _G_~2~^0..3^ ^| ~_41..44:_~ _G_~3~^0..3^ ^| ~_45..48:_~ _G_~4~^0..3^ ^| ~_49..52:_~ _G_~5~^0..3^
^| ~_53..56:_~ _B_~0~^0..3^ ^| ~_57..60:_~ _B_~1~^0..3^ ^| ~_61..64:_~ _B_~2~^0..3^ ^| ~_65..68:_~ _B_~3~^0..3^ ^| ~_69..72:_~ _B_~4~^0..3^ ^| ~_73..76:_~ _B_~5~^0..3^
^| ~_77:_~ EPB~0~^0^ ^| ~_78:_~ EPB~1~^0^ ^| ~_79:_~ EPB~2~^0^ ^| ~_80:_~ EPB~3~^0^ ^| ~_81:_~ EPB~4~^0^ ^| ~_82:_~ EPB~5~^0^
6+^| ~_83..127:_~ IB^0..44^
1.5+^.^| Mode
{nbsp}1 2+^| ~_0..1:_~ *M^0..1^ = 01* 4+^| ~_2..7:_~ PB^0..5^
^| ~_8..13:_~ _R_~0~^0..5^ ^| ~_14..19:_~ _R_~1~^0..5^ ^| ~_20..25:_~ _R_~2~^0..5^ ^| ~_26..31:_~ _R_~3~^0..5^ 2.3+^|
^| ~_32..37:_~ _G_~0~^0..5^ ^| ~_38..43:_~ _G_~1~^0..5^ ^| ~_44..49:_~ _G_~2~^0..5^ ^| ~_50..55:_~ _G_~3~^0..5^
^| ~_56..61:_~ _B_~0~^0..5^ ^| ~_62..67:_~ _B_~1~^0..5^ ^| ~_68..73:_~ _B_~2~^0..5^ ^| ~_74..79:_~ _B_~3~^0..5^
^| ~_80:_~ SPB~0~^0^ ^| ~_81:_~ SPB~1~^0^ 4+^| ~_82..127:_~ IB^0..45^
1.5+^.^| Mode
{nbsp}2 2+^| ~_0..2:_~ *M^0..2^ = 001* 4+^| ~_3..8:_~ PB^0..5^
^| ~_9..13:_~ _R_~0~^0..4^ ^| ~_14..18:_~ _R_~1~^0..4^ ^| ~_19..23:_~ _R_~2~^0..4^ ^| ~_24..28:_~ _R_~4~^0..4^ ^| ~_29..33:_~ _R_~4~^0..4^ ^| ~_34..38:_~ _R_~5~^0..4^
^| ~_39..43:_~ _G_~0~^0..4^ ^| ~_44..48:_~ _G_~1~^0..4^ ^| ~_49..53:_~ _G_~2~^0..4^ ^| ~_54..58:_~ _G_~4~^0..4^ ^| ~_59..63:_~ _G_~4~^0..4^ ^| ~_64..68:_~ _G_~5~^0..4^
^| ~_69..73:_~ _B_~0~^0..4^ ^| ~_74..78:_~ _B_~1~^0..4^ ^| ~_79..83:_~ _B_~2~^0..4^ ^| ~_84..88:_~ _B_~4~^0..4^ ^| ~_89..93:_~ _B_~4~^0..4^ ^| ~_94..98:_~ _B_~5~^0..4^
6+^| ~_99..127:_~ IB^0..28^
1.5+^.^| Mode
{nbsp}3 2+^| ~_0..3:_~ *M^0..3^ = 0001* 4+^| ~_4..9:_~ PB^0..5^
^| ~_10..16:_~ _R_~0~^0..6^ ^| ~_17..23:_~ _R_~1~^0..6^ ^| ~_24..30:_~ _R_~2~^0..6^ ^| ~_31..37:_~ _R_~3~^0..6^ 2.3+^|
^| ~_38..44:_~ _G_~0~^0..6^ ^| ~_45..51:_~ _G_~1~^0..6^ ^| ~_52..58:_~ _G_~2~^0..6^ ^| ~_59..65:_~ _G_~3~^0..6^
^| ~_66..72:_~ _B_~0~^0..6^ ^| ~_73..79:_~ _B_~1~^0..6^ ^| ~_80..86:_~ _B_~2~^0..6^ ^| ~_87..93:_~ _B_~3~^0..6^
^| ~_94:_~ EPB~0~^0^ ^| ~_95:_~ EPB~1~^0^ ^| ~_96:_~ EPB~2~^0^ ^| ~_97:_~ EPB~3~^0^ 2+^| ~_98..127:_~ IB^0..29^
1.3+^.^| Mode
{nbsp}4 2+^| ~_0..4:_~ *M^0..4^ = 00001* 2+^| ~_5..6:_~ RB^0..1^ 2+^| ~_7:_~ ISB^0^
^| ~_8..12:_~ _R_~0~^0..4^ ^| ~_13..17:_~ _R_~1~^0..4^ ^| ~_18..22:_~ _G_~0~^0..4^ ^| ~_23..27:_~ _G_~1~^0..4^ ^| ~_28..32:_~ _B_~0~^0..4^ ^| ~_33..37:_~ _B_~1~^0..4^
^| ~_38..43:_~ _A_~0~^0..5^ ^| ~_44..49:_~ _A_~1~^0..5^ 2+^| ~_50..80:_~ IB^0..30^ 2+^| ~_81..127:_~ IB~2~^0..46^
1.3+^.^| Mode
{nbsp}5 2+^| ~_0..5:_~ *M^0..5^ = 000001* 4+^| ~_6..7:_~ RB^0..1^
^| ~_8..14:_~ _R_~0~^0..6^ ^| ~_15..21:_~ _R_~1~^0..6^ ^| ~_22..28:_~ _G_~0~^0..6^ ^| ~_29..35:_~ _G_~1~^0..6^ ^| ~_36..42:_~ _B_~0~^0..6^ ^| ~_43..49:_~ _B_~1~^0..6^
^| ~_50..57:_~ _A_~0~^0..7^ ^| ~_58..65:_~ _A_~1~^0..7^ 2+^| ~_66..96:_~ IB^0..30^ 2+^| ~_97..127:_~ IB~2~^0..30^
1.3+^.^| Mode
{nbsp}6 2+^| ~_0..6:_~ *M^0..6^ = 0000001* 4+^|
^| ~_7..13:_~ _R_~0~^0..6^ ^| ~_14..20:_~ _R_~1~^0..6^ ^| ~_21..27:_~ _G_~0~^0..6^ ^| ~_28..34:_~ _G_~1~^0..6^ ^| ~_35..41:_~ _B_~0~^0..6^ ^| ~_42..48:_~ _B_~1~^0..6^
^| ~_49..55:_~ _A_~0~^0..6^ ^| ~_56..62:_~ _A_~1~^0..6^ ^| ~_63:_~ EPB~0~^0^ ^| ~_64:_~ EPB~1~^0^ 2+^| ~_65..127:_~ IB^0..62^
1.6+^.^| Mode
{nbsp}7 2+^| ~_0..7:_~ *M^0..7^ = 00000001* 4+^| ~_8..13:_~ PB^0..5^
^| ~_14..18:_~ _R_~0~^0..4^ ^| ~_19..23:_~ _R_~1~^0..4^ ^| ~_24..28:_~ _R_~2~^0..4^ ^| ~_29..33:_~ _R_~3~^0..4^ 2.4+^|
^| ~_34..38:_~ _G_~0~^0..4^ ^| ~_39..43:_~ _G_~1~^0..4^ ^| ~_44..48:_~ _G_~2~^0..4^ ^| ~_49..53:_~ _G_~3~^0..4^
^| ~_54..58:_~ _B_~0~^0..4^ ^| ~_59..63:_~ _B_~1~^0..4^ ^| ~_64..68:_~ _B_~2~^0..4^ ^| ~_69..73:_~ _B_~3~^0..4^
^| ~_74..78:_~ _A_~0~^0..4^ ^| ~_79..83:_~ _A_~1~^0..4^ ^| ~_84..88:_~ _A_~2~^0..4^ ^| ~_89..93:_~ _A_~3~^0..4^
^| ~_94:_~ EPB~0~^0^ ^| ~_95:_~ EPB~1~^0^ ^| ~_96:_~ EPB~2~^0^ ^| ~_97:_~ EPB~3~^0^ 2+^| ~_98..127:_~ IB^0..29^
|============
ifndef::a2xhtml[]
endif::[]
[[table-bptcsourcebits]]
.Bit sources for BC7 endpoints (modes 0..2, MSB..LSB per channel)
[cols="32*1",width="97%"]
|============
32+^| *Mode 0*
8+^| _E_~_R0_~^7..0^ 8+^| _E_~_G0_~^7..0^ 8+^| _E_~_B0_~^7..0^ 8+^| _E_~_A0_~^7..0^
^| 8 ^| 7 ^| 6 ^| 5 ^| 77 ^| 8 ^| 7 ^| 6
^| 32 ^| 31 ^| 30 ^| 29 ^| 77 ^| 32 ^| 31 ^| 30
^| 56 ^| 55 ^| 54 ^| 53 ^| 77 ^| 56 ^| 55 ^| 54
8+^| _255_
8+^| _E_~_R1_~^7..0^ 8+^| _E_~_G1_~^7..0^ 8+^| _E_~_B1_~^7..0^ 8+^| _E_~_A1_~^7..0^
^| 12 ^| 11 ^| 10 ^| 9 ^| 78 ^| 12 ^| 11 ^| 10
^| 36 ^| 35 ^| 34 ^| 33 ^| 78 ^| 36 ^| 35 ^| 34
^| 60 ^| 59 ^| 58 ^| 57 ^| 78 ^| 60 ^| 59 ^| 58
8+^| _255_
8+^| _E_~_R2_~^7..0^ 8+^| _E_~_G2_~^7..0^ 8+^| _E_~_B2_~^7..0^ 8+^| _E_~_A2_~^7..0^
^| 16 ^| 15 ^| 14 ^| 13 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| 96 ^| 95 ^| 94 ^| 98 ^| 97 ^| 96
8+^| _255_
|============
ifndef::a2xhtml[]
endif::[]
[[table-bptcsourcebits2]]
.Bit sources for BC7 endpoints (modes 3..7, MSB..LSB per channel)
[cols="32*1",width="97%"]
|============
32+^| *Mode 3*
8+^| _E_~_R0_~^7..0^ 8+^| _E_~_G0_~^7..0^ 8+^| _E_~_B0_~^7..0^ 8+^| _E_~_A0_~^7..0^
^| 16 ^| 15 ^| 14 ^| 13 ^| 12 ^| 11 ^| 10 ^| 94
^| 44 ^| 43 ^| 42 ^| 41 ^| 40 ^| 39 ^| 38 ^| 94
^| 72 ^| 71 ^| 70 ^| 69 ^| 68 ^| 67 ^| 66 ^| 94
8+^| _255_
8+^| _E_~_R1_~^7..0^ 8+^| _E_~_G1_~^7..0^ 8+^| _E_~_B1_~^7..0^ 8+^| _E_~_A1_~^7..0^
^| 23 ^| 22 ^| 21 ^| 20 ^| 19 ^| 18 ^| 17 ^| 95
^| 51 ^| 50 ^| 49 ^| 48 ^| 47 ^| 46 ^| 45 ^| 95
^| 79 ^| 78 ^| 77 ^| 76 ^| 75 ^| 74 ^| 73 ^| 95
8+^| _255_
8+^| _E_~_R2_~^7..0^ 8+^| _E_~_G2_~^7..0^ 8+^| _E_~_B2_~^7..0^ 8+^| _E_~_A2_~^7..0^
^| 30 ^| 29 ^| 28 ^| 27 ^| 26 ^| 25 ^| 24 ^| 96
^| 58 ^| 57 ^| 56 ^| 55 ^| 54 ^| 53 ^| 52 ^| 96
^| 86 ^| 85 ^| 84 ^| 83 ^| 82 ^| 81 ^| 80 ^| 96
8+^| _255_
8+^| _E_~_R3_~^7..0^ 8+^| _E_~_G3_~^7..0^ 8+^| _E_~_B3_~^7..0^ 8+^| _E_~_A3_~^7..0^
^| 37 ^| 36 ^| 35 ^| 34 ^| 33 ^| 32 ^| 31 ^| 97
^| 65 ^| 64 ^| 63 ^| 62 ^| 61 ^| 60 ^| 59 ^| 97
^| 93 ^| 92 ^| 91 ^| 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^| 20 ^| 19 ^| 95 ^| 23 ^| 22
^| 43 ^| 42 ^| 41 ^| 40 ^| 39 ^| 95 ^| 43 ^| 42
^| 63 ^| 62 ^| 61 ^| 60 ^| 59 ^| 95 ^| 63 ^| 62
^| 83 ^| 82 ^| 81 ^| 80 ^| 79 ^| 95 ^| 83 ^| 82
8+^| _E_~_R2_~^7..0^ 8+^| _E_~_G2_~^7..0^ 8+^| _E_~_B2_~^7..0^ 8+^| _E_~_A2_~^7..0^
^| 28 ^| 27 ^| 26 ^| 25 ^| 24 ^| 96 ^| 28 ^| 27
^| 48 ^| 47 ^| 46 ^| 45 ^| 44 ^| 96 ^| 48 ^| 47
^| 68 ^| 67 ^| 66 ^| 65 ^| 64 ^| 96 ^| 68 ^| 67
^| 88 ^| 87 ^| 86 ^| 85 ^| 84 ^| 96 ^| 88 ^| 87
8+^| _E_~_R3_~^7..0^ 8+^| _E_~_G3_~^7..0^ 8+^| _E_~_B3_~^7..0^ 8+^| _E_~_A3_~^7..0^
^| 33 ^| 32 ^| 31 ^| 30 ^| 29 ^| 97 ^| 33 ^| 32
^| 53 ^| 52 ^| 51 ^| 50 ^| 49 ^| 97 ^| 53 ^| 52
^| 73 ^| 72 ^| 71 ^| 70 ^| 69 ^| 97 ^| 73 ^| 72
^| 93 ^| 92 ^| 91 ^| 90 ^| 89 ^| 97 ^| 93 ^| 92
|============
ifndef::a2xhtml[]
<<<
<<<
<<<
<<<
endif::[]
A texel in a block with one subset is always considered to be in subset zero.
Otherwise, a number encoded in the partition bits is used to look up a
partition pattern in <<bptcP2subset>> or <<bptcP3subset>> for 2 subsets and
3 subsets respectively.
This partition pattern is accessed by the relative _x_ and _y_ offsets within
the block to determine the subset which defines the pixel at these coordinates.
The endpoint colors are interpolated using index values stored in the block.
The index bits are stored in y-major order. That is, the bits for the index
value corresponding to a relative (_x_, _y_) position of (0, 0) are stored
in increasing order in the lowest index bits of the block (but see the next
paragraph about anchor indices), the next bits of the block in increasing
order store the index bits of (1, 0), followed by (2, 0) and (3, 0), then
(0, 1) etc.
Each index has the number of bits indicated by the mode except for one
special index per subset called the anchor index.
Since the interpolation scheme between endpoints is symmetrical, we can
save one bit on one index per subset by ordering the endpoints such that
the highest bit for that index is guaranteed to be zero -- and not storing
that bit.
Each anchor index corresponds to an index in the corresponding partition
number in <<bptcP2subset>> or <<bptcP3subset>>, and are indicated in bold
italics in those tables.
In partition zero, the anchor index is always index zero -- that is, at
a relative position of (0,0) (as can be seen in <<bptcP2subset>> and
<<bptcP3subset>>, index 0 always corresponds to partition zero).
In other partitions, the anchor index is specified by <<bptcA2index>>,
<<bptcA32index>>, and <<bptcA33index>>.
[NOTE]
====
In summary, the bit offset for index data with relative _x,y_ coordinates within the texel
block is:
[latexmath]
++++++++++++++
\begin{align*}
\textrm{index offset}_{x,y} &= \begin{cases}
0, & x = y = 0 \\
\textrm{IB} \times (x + 4\times y) - 1, & \textrm{NS} = 1,\ 0 < x + 4\times y \\
\textrm{IB} \times (x + 4\times y) - 1, & \textrm{NS} = 2,\ 0 < x + 4\times y \leq \textrm{anchor}_2[\mathit{part}] \\
\textrm{IB} \times (x + 4\times y) - 2, & \textrm{NS} = 2,\ \textrm{anchor}_2[\mathit{part}] < x + 4\times y \\
\textrm{IB} \times (x + 4\times y) - 1, & \textrm{NS} = 3,\ 0 < x + 4\times y \leq \textrm{anchor}_{3,2}[\mathit{part}],\ x + 4\times y \leq \textrm{anchor}_{3,2}[\mathit{part}]\\
\textrm{IB} \times (x + 4\times y) - 3, & \textrm{NS} = 3,\ x + 4\times y > \textrm{anchor}_{3,2}[\mathit{part}],\ x + 4\times y > \textrm{anchor}_{3,3}[\mathit{part}] \\
\textrm{IB} \times (x + 4\times y) - 2, & \textrm{NS} = 3,\ \textrm{otherwise} \\
\end{cases} \\
\end{align*}
++++++++++++++
where anchor~2~ is <<bptcA2index>>, anchor~3,2~ is <<bptcA32index>>,
anchor~3,3~ is <<bptcA33index>>, and _part_ is encoded in the partition
selection bits PB.
====
If secondary index bits are present, they follow the primary index bits and
are read in the same manner.
The anchor index information is only used to determine the number of bits each
index has when read from the block data.
The endpoint color and alpha values used for final interpolation are the
decoded values corresponding to the applicable subset as selected above.
The index value for interpolating color comes from the secondary index bits
for the texel if the mode has an index selection bit and its value is one,
and from the primary index bits otherwise.
The alpha index comes from the secondary index bits if the block has a
secondary index and the block either doesn't have an index selection bit or
that bit is zero, and from the primary index bits otherwise.
[NOTE]
====
As an example of the texel decode process, consider a block encoded with
mode 2 -- that is, M^0^ = 0, M^1^ = 0, M^2^ = 1.
This mode has three subsets, so <<bptcP3subset>> is used to determine which
subset applies to each texel.
Let us assume that this block has partition pattern 6 encoded in the
partition selection bits, and that we wish to decode the texel at relative
(_x_, _y_) offset (1, 2) -- that is, index 9 in y-major order.
We can see from <<bptcP3subset>> that this texel is partitioned into
subset 1 (the second of three), and therefore by endpoints 2 and 3.
Mode 2 stores two index bits per texel, except for index 0 (which is
the anchor index for subset 0), index 15 (for subset 1, as indicated
in <<bptcA32index>>) and index 3 (for subset 2, as indicated in
<<bptcA33index>>).
Index 9 is therefore stored in two bits starting at index bits offset
14 (for indices 1..2 and 4..8) plus 2 (for indices 0 and 3) -- a total
of 16 bit offset into the index bits or, as seen in
<<table-bptcmodebits>>, bits 115 and 116 of the block.
These two bits are used to interpolate between endpoints 2 and 3
using <<BPTCinterpolation>> with weights from the two-bit index row of
<<BPTCInterpolation>>, as described below.
====
[[bptcP2subset]]
.Partition table for 2-subset BPTC, with the 4×4 block of values for each partition number
[cols="5,5,5,5,1,5,5,5,5,1,5,5,5,5,1,5,5,5,5,1,5,5,5,5,1,5,5,5,5,1,5,5,5,5,1,5,5,5,5",width="97%"]
|==================
4+^| ~0~ 1.40+| 4+^| ~1~ 1.40+| 4+^| ~2~ 1.40+| 4+^| ~3~ 1.40+| 4+^| ~4~ 1.40+| 4+^| ~5~ 1.40+| 4+^| ~6~ 1.40+| 4+^| ~7~
^| *_0_* ^| 0 ^| 1 ^| 1 ^| *_0_* ^| 0 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
^| ~16~ ^| ~17~ ^| ~18~ ^| ~19~ ^| ~20~ ^| ~21~ ^| ~22~ ^| ~23~
^| 15 ^| 2 ^| 8 ^| 2 ^| 2 ^| 8 ^| 8 ^| 15
^| ~24~ ^| ~25~ ^| ~26~ ^| ~27~ ^| ~28~ ^| ~29~ ^| ~30~ ^| ~31~
^| 2 ^| 8 ^| 2 ^| 2 ^| 8 ^| 8 ^| 2 ^| 2
^| ~32~ ^| ~33~ ^| ~34~ ^| ~35~ ^| ~36~ ^| ~37~ ^| ~38~ ^| ~39~
^| 15 ^| 15 ^| 6 ^| 8 ^| 2 ^| 8 ^| 15 ^| 15
^| ~40~ ^| ~41~ ^| ~42~ ^| ~43~ ^| ~44~ ^| ~45~ ^| ~46~ ^| ~47~
^| 2 ^| 8 ^| 2 ^| 2 ^| 2 ^| 15 ^| 15 ^| 6
^| ~48~ ^| ~49~ ^| ~50~ ^| ~51~ ^| ~52~ ^| ~53~ ^| ~54~ ^| ~55~
^| 6 ^| 2 ^| 6 ^| 8 ^| 15 ^| 15 ^| 2 ^| 2
^| ~56~ ^| ~57~ ^| ~58~ ^| ~59~ ^| ~60~ ^| ~61~ ^| ~62~ ^| ~63~
^| 15 ^| 15 ^| 15 ^| 15 ^| 15 ^| 2 ^| 2 ^| 15
|==============
ifndef::a2xhtml[]
<<<
<<<
<<<
endif::[]
Interpolation is always performed using a 6-bit interpolation factor.
The effective interpolation factors for 2-, 3-, and 4-bit indices are
given in <<BPTCInterpolation>>.
[[BPTCInterpolation]]
.BPTC interpolation factors
[cols="h,18*",width="85%"]
|==========
.2+^.^| 2 2+^| Index 4+^| ~0~ 4+^| ~1~ 4+^| ~2~ 4+^| ~3~
2+^| _Weight_ 4+^| 0 4+^| 21 4+^| 43 4+^| 64
.2+^.^| 3 2+^| Index 2+^| ~0~ 2+^| ~1~ 2+^| ~2~ 2+^| ~3~ 2+^| ~4~ 2+^| ~5~ 2+^| ~6~ 2+^| ~7~
2+^| _Weight_ 2+^| 0 2+^| 9 2+^| 18 2+^| 27 2+^| 37 2+^| 46 2+^| 55 2+^| 64
.2+^.^| 4 2+^| Index ^| ~0~ ^| ~1~ ^| ~2~ ^| ~3~ ^| ~4~ ^| ~5~ ^| ~6~ ^| ~7~ ^| ~8~ ^| ~9~ ^| ~10~ ^| ~11~ ^| ~12~ ^| ~13~ ^| ~14~ ^| ~15~
2+^| _Weight_ ^| 0 ^| 4 ^| 9 ^| 13 ^| 17 ^| 21 ^| 26 ^| 30 ^| 34 ^| 38 ^| 43 ^| 47 ^| 51 ^| 55 ^| 60 ^| 64
|==========
// Note: The interpolation formula is not explicitly present in the OpenGL Specification.
// Since bit-exact interpolation is mandated by some implementations, the following formula is
// provided, as described in https://docs.microsoft.com/en-us/windows/desktop/direct3d11/bc7-format
Given _E_~0~ and _E_~1~, unsigned integer endpoints [0 .. 255] for each channel and _weight_
as an unsigned integer interpolation factor from <<BPTCInterpolation>>:
[[BPTCinterpolation]]
.BPTC endpoint interpolation formula
[latexmath]
++++++++++++++
\begin{align*}
\mathit{interpolated\ value} & = ((64 - \mathit{weight}) \times \textit{E}_0 + \mathit{weight} \times \textit{E}_1 + 32) \gg 6
\end{align*}
++++++++++++++
where latexmath:[$\gg$] performs a (truncating) bitwise right-shift, and
_interpolated value_ is an (unsigned) integer in the range [0..255].
The interpolation results in an _RGBA_ color. If rotation bits are present,
this interpolated color is remapped according to <<BPTCRotation>>.
[[BPTCRotation]]
.BPTC Rotation bits
[cols="h,3",width="20%"]
|============
^| 0 ^| no change
^| 1 ^| _swap_(_A_, _R_)
^| 2 ^| _swap_(_A_, _G_)
^| 3 ^| _swap_(_A_, _B_)
|============
These 8-bit values should be interpreted as _RGBA_ 8-bit normalized channels,
either linearly encoded (by multiplying by latexmath:[$1\over 255$]) or
with the <<TRANSFER_SRGB,sRGB transfer function>>.
<<<
[[bptc_bc6h]]
=== BC6H
Each 4{times}4 block of texels consists of 128 bits of _RGB_ data. The
signed and unsigned formats are very similar and will be described together.
In the description and pseudocode below, _signed_ will be used as a condition which is true
for the signed version of the format and false for the unsigned version of the format.
Both formats only contain _RGB_ data, so the returned alpha value is 1.0. If a
block uses a reserved or invalid encoding, the return value is
(0.0, 0.0, 0.0, 1.0).
[NOTE]
====
Where BC7 encodes a fixed-point 8-bit value, BC6H encodes a 16-bit integer
which will be interpreted as a 16-bit half float.
Interpolation in BC6H is therefore nonlinear, but monotonic.
====
Each block can contain data in one of 14 modes. The mode number is encoded
in either the low two bits or the low five bits. If the low two bits are
less than two, that is the mode number, otherwise the low five bits is the mode
number. Mode numbers not listed in <<table-bptcblockmodes>>
(19, 23, 27, and 31) are reserved.
[[table-bptcblockmodes]]
.Endpoint and partition parameters for BPTC block modes
[width="100%",cols="10%,15%,20%,20%,10%,1%,7%,10%,7%"]
|==============
.2+^.^| *Mode number* .2+^.^| *Transformed endpoints* ^.^| *Partition bits (PB)* ^.^| *Endpoint bits (EPB)* ^.^| *Delta bits* 1.16+| ^.^| *Mode* ^.^| *Endpoint* ^.^| *Delta*
^| Bits per texel block 2+^| {_R_,_G_,_B_} bits per endpoint 3+^| Bits per texel block (total)
^| *0* ^| {check} ^| 5 ^| {10, 10, 10} ^| {5, 5, 5} ^| 2 ^| 30 ^| 45
^| *1* ^| {check} ^| 5 ^| {7, 7, 7} ^| {6, 6, 6} ^| 2 ^| 21 ^| 54
^| *2* ^| {check} ^| 5 ^| {11, 11, 11} ^| {5, 4, 4} ^| 5 ^| 33 ^| 39
^| *6* ^| {check} ^| 5 ^| {11, 11, 11} ^| {4, 5, 4} ^| 5 ^| 33 ^| 39
^| *10* ^| {check} ^| 5 ^| {11, 11, 11} ^| {4, 4, 5} ^| 5 ^| 33 ^| 39
^| *14* ^| {check} ^| 5 ^| {9, 9, 9} ^| {5, 5, 5} ^| 5 ^| 27 ^| 45
^| *18* ^| {check} ^| 5 ^| {8, 8, 8} ^| {6, 5, 5} ^| 5 ^| 24 ^| 48
^| *22* ^| {check} ^| 5 ^| {8, 8, 8} ^| {5, 6, 5} ^| 5 ^| 24 ^| 48
^| *26* ^| {check} ^| 5 ^| {8, 8, 8} ^| {5, 5, 6} ^| 5 ^| 24 ^| 48
^| *30* ^| ^| 5 ^| {6, 6, 6} ^| - ^| 5 ^| 72 ^| 0
^| *3* ^| ^| 0 ^| {10, 10, 10} ^| - ^| 5 ^| 60 ^| 0
^| *7* ^| {check} ^| 0 ^| {11, 11, 11} ^| {9, 9, 9} ^| 5 ^| 33 ^| 27
^| *11* ^| {check} ^| 0 ^| {12, 12, 12} ^| {8, 8, 8} ^| 5 ^| 36 ^| 24
^| *15* ^| {check} ^| 0 ^| {16, 16, 16} ^| {4, 4, 4} ^| 5 ^| 48 ^| 12
|==============
The data for the compressed blocks is stored in a different manner for each
mode.
The interpretation of bits for each mode are specified in <<table-bptcblockformat>>.
The descriptions are intended to be read from left to right with the LSB on the left.
Each element is of the form _v_^_a_.._b_^. If _a_ {geq} _b_, this indicates
extracting _b_ - _a_ {plus} 1 bits from the block at that location and put them in
the corresponding bits of the variable _v_.
If _a_ < _b_, then the bits are reversed.
_v_^_a_^ is used as a shorthand for the one bit _v_^_a_.._a_^.
As an example, M^1..0^, _G_~2~^4^ would move the low two bits from the block into the
low two bits of mode number M, then the next bit of the block into bit 4 of _G_~2~.
The resultant bit interpretations are shown explicitly in <<table-bptcbc6hbits>>
and <<table-bptcbc6hbits2>>.
The variable names given in the table will be referred to in the language below.
Subsets and indices work in much the same way as described for the
BC7 formats above.
If a float block has no partition bits, then it is a single-subset block.
If it has partition bits, then it is a two-subset block.
The partition number references the first half of <<bptcP2subset>>.
<<<
[[table-bptcblockformat]]
.Block descriptions for BC6H block modes (LSB..MSB)
[options="header",cols="3,13",width="85%"]
|===========================
^| Mode Number ^| Block description
^.^| 0 ^.^| M^1..0^, _G_~2~^4^, _B_~2~^4^, _B_~3~^4^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^4..0^,
_G_~3~^4^, _G_~2~^3..0^, _G_~1~^4..0^, _B_~3~^0^, _G_~3~^3..0^, _B_~1~^4..0^, _B_~3~^1^, _B_~2~^3..0^,
_R_~2~^4..0^, _B_~3~^2^, _R_~3~^4..0^, _B_~3~^3^, PB^4..0^
^.^| 1 ^.^| M^1..0^, _G_~2~^5^, _G_~3~^4^, _G_~3~^5^, _R_~0~^6..0^, _B_~3~^0^, _B_~3~^1^, _B_~2~^4^,
_G_~0~^6..0^, _B_~2~^5^, _B_~3~^2^, _G_~2~^4^, _B_~0~^6..0^, _B_~3~^3^, _B_~3~^5^, _B_~3~^4^,
_R_~1~^5..0^, _G_~2~^3..0^, _G_~1~^5..0^, _G_~3~^3..0^, _B_~1~^5..0^, _B_~2~^3..0^, _R_~2~^5..0^,
_R_~3~^5..0^, PB^4..0^
^.^| 2 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^4..0^, _R_~0~^10^, _G_~2~^3..0^,
_G_~1~^3..0^, _G_~0~^10^, _B_~3~^0^, _G_~3~^3..0^, _B_~1~^3..0^, _B_~0~^10^, _B_~3~^1^, _B_~2~^3..0^,
_R_~2~^4..0^, _B_~3~^2^, _R_~3~^4..0^, _B_~3~^3^, PB^4..0^
^.^| 6 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^3..0^, _R_~0~^10^, _G_~3~^4^,
_G_~2~^3..0^, _G_~1~^4..0^, _G_~0~^10^, _G_~3~^3..0^, _B_~1~^3..0^, _B_~0~^10^, _B_~3~^1^,
_B_~2~^3..0^, _R_~2~^3..0^, _B_~3~^0^, _B_~3~^2^, _R_~3~^3..0^, _G_~2~^4^, _B_~3~^3^, PB^4..0^
^.^| 10 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^3..0^, _R_~0~^10^, _B_~2~^4^,
_G_~2~^3..0^, _G_~1~^3..0^, _G_~0~^10^, _B_~3~^0^, _G_~3~^3..0^, _B_~1~^4..0^, _B_~0~^10^,
_B_~2~^3..0^, _R_~2~^3..0^, _B_~3~^1^, _B_~3~^2^, _R_~3~^3..0^, _B_~3~^4^, _B_~3~^3^, PB^4..0^
^.^| 14 ^.^| M^4..0^, _R_~0~^8..0^, _B_~2~^4^, _G_~0~^8..0^, _G_~2~^4^, _B_~0~^8..0^, _B_~3~^4^, _R_~1~^4..0^,
_G_~3~^4^, _G_~2~^3..0^, _G_~1~^4..0^, _B_~3~^0^, _G_~3~^3..0^, _B_~1~^4..0^, _B_~3~^1^, _B_~2~^3..0^,
_R_~2~^4..0^, _B_~3~^2^, _R_~3~^4..0^, _B_~3~^3^, PB^4..0^
^.^| 18 ^.^| M^4..0^, _R_~0~^7..0^, _G_~3~^4^, _B_~2~^4^, _G_~0~^7..0^, _B_~3~^2^, _G_~2~^4^, _B_~0~^7..0^,
_B_~3~^3^, _B_~3~^4^, _R_~1~^5..0^, _G_~2~^3..0^, _G_~1~^4..0^, _B_~3~^0^, _G_~3~^3..0^, _B_~1~^4..0^,
_B_~3~^1^, _B_~2~^3..0^, _R_~2~^5..0^, _R_~3~^5..0^, PB^4..0^
^.^| 22 ^.^| M^4..0^, _R_~0~^7..0^, _B_~3~^0^, _B_~2~^4^, _G_~0~^7..0^, _G_~2~^5^, _G_~2~^4^, _B_~0~^7..0^,
_G_~3~^5^, _B_~3~^4^, _R_~1~^4..0^, _G_~3~^4^, _G_~2~^3..0^, _G_~1~^5..0^, _G_~3~^3..0^, _B_~1~^4..0^,
_B_~3~^1^, _B_~2~^3..0^, _R_~2~^4..0^, _B_~3~^2^, _R_~3~^4..0^, _B_~3~^3^, PB^4..0^
^.^| 26 ^.^| M^4..0^, _R_~0~^7..0^, _B_~3~^1^, _B_~2~^4^, _G_~0~^7..0^, _B_~2~^5^, _G_~2~^4^, _B_~0~^7..0^,
_B_~3~^5^, _B_~3~^4^, _R_~1~^4..0^, _G_~3~^4^, _G_~2~^3..0^, _G_~1~^4..0^, _B_~3~^0^, _G_~3~^3..0^,
_B_~1~^5..0^, _B_~2~^3..0^, _R_~2~^4..0^, _B_~3~^2^, _R_~3~^4..0^, _B_~3~^3^, PB^4..0^
^.^| 30 ^.^| M^4..0^, _R_~0~^5..0^, _G_~3~^4^, _B_~3~^0^, _B_~3~^1^, _B_~2~^4^, _G_~0~^5..0^, _G_~2~^5^,
_B_~2~^5^, _B_~3~^2^, _G_~2~^4^, _B_~0~^5..0^, _G_~3~^5^, _B_~3~^3^, _B_~3~^5^, _B_~3~^4^,
_R_~1~^5..0^, _G_~2~^3..0^, _G_~1~^5..0^, _G_~3~^3..0^, _B_~1~^5..0^, _B_~2~^3..0^, _R_~2~^5..0^,
_R_~3~^5..0^, PB^4..0^
^.^| 3 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^9..0^, _G_~1~^9..0^, _B_~1~^9..0^
^.^| 7 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^8..0^, _R_~0~^10^, _G_~1~^8..0^,
_G_~0~^10^, _B_~1~^8..0^, _B_~0~^10^
^.^| 11 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^7..0^, _R_~0~^10..11^, _G_~1~^7..0^,
_G_~0~^10..11^, _B_~1~^7..0^, _B_~0~^10..11^
^.^| 15 ^.^| M^4..0^, _R_~0~^9..0^, _G_~0~^9..0^, _B_~0~^9..0^, _R_~1~^3..0^, _R_~0~^10..15^, _G_~1~^3..0^,
_G_~0~^10..15^, _B_~1~^3..0^, _B_~0~^10..15^
|==========================
Indices are read in the same way as the BC7 formats including obeying the
anchor values for index 0 and as needed by <<bptcA2index>>.
That is, for modes with only one partition, the mode and endpoint data are followed
by 63 bits of index data (four index bits IB~_x,y_~^0..3^ per texel, with one implicit
bit for IB~_x,y_~^3^) starting at bit 65 with IB~0,0~^0^.
For modes with two partitions, the mode, endpoint and partition data are followed by
46 bits of index data (three per texel IB~_x,y_~^0..2^, with two implicit bits, one for
partition 0 at IB~0,0~^2^ and one IB~_x,y_~^2^ bit for partition 1 at an offset
determined by the partition pattern selected) starting at bit 82 with IB~0,0~^0^.
In both cases, index bits are stored in y-major offset order by increasing
little-endian bit number, with the bits for each index stored consecutively:
[latexmath]
++++++++++++++
\begin{align*}
{\textrm{Bit offset of IB}_{x,y}}^0 &= \begin{cases}
65, & 1\ \textrm{subset},\ x = y = 0 \\
65 + 4 \times (x + 4\times y) - 1, & 1\ \textrm{subset},\ 0 < x + 4\times y \\
82, & 2\ \textrm{subsets},\ x = y = 0 \\
82 + 3 \times (x + 4\times y) - 1, & 2\ \textrm{subsets},\ 0 < x + 4\times y \leq \textrm{anchor}_2[\mathit{part}] \\
82 + 3 \times (x + 4\times y) - 2, & 2\ \textrm{subsets},\ \textrm{anchor}_2[\mathit{part}] < x + 4\times y \\
\end{cases} \\
\end{align*}
++++++++++++++
[[table-bptcbc6hbits]]
.Interpretation of lower bits for BC6H block modes
[width="85%", cols=">1,14*^1"]
|================
>| 14+^| *Mode*
^| *Bit* | *0* | *1* | *2* | *6* | *10* | *14* | *18* | *22* | *26* | *30* | *3* | *7* | *11* | *15*
>| *0* | M^0^: *0* | M^0^: *1* | M^0^: *0* | M^0^: *0* | M^0^: *0* | M^0^: *0* | M^0^: *0* | M^0^: *0* | M^0^: *0* | M^0^: *0* | M^0^: *1* | M^0^: *1* | M^0^: *1* | M^0^: *1*
>| *1* | M^1^: *0* | M^1^: *0* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1* | M^1^: *1*
>| *2* | _G_~2~^4^ | _G_~2~^5^ | M^2^: *0* | M^2^: *1* | M^2^: *0* | M^2^: *1* | M^2^: *0* | M^2^: *1* | M^2^: *0* | M^2^: *1* | M^2^: *0* | M^2^: *1* | M^2^: *0* | M^2^: *1*
>| *3* | _B_~2~^4^ | _G_~3~^4^ | M^3^: *0* | M^3^: *0* | M^3^: *1* | M^3^: *1* | M^3^: *0* | M^3^: *0* | M^3^: *1* | M^3^: *1* | M^3^: *0* | M^3^: *0* | M^3^: *1* | M^3^: *1*
>| *4* | _B_~3~^4^ | _G_~3~^5^ | M^4^: *0* | M^4^: *0* | M^4^: *0* | M^4^: *0* | M^4^: *1* | M^4^: *1* | M^4^: *1* | M^4^: *1* | M^4^: *0* | M^4^: *0* | M^4^: *0* | M^4^: *0*
>| *5* | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^ | _R_~0~^0^
>| *6* | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^ | _R_~0~^1^
>| *7* | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^ | _R_~0~^2^
>| *8* | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^ | _R_~0~^3^
>| *9* | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^ | _R_~0~^4^
>| *10* | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^ | _R_~0~^5^
>| *11* | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _G_~3~^4^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^ | _R_~0~^6^
>| *12* | _R_~0~^7^ | _B_~3~^0^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^ | _B_~3~^0^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^ | _R_~0~^7^
>| *13* | _R_~0~^8^ | _B_~3~^1^ | _R_~0~^8^ | _R_~0~^8^ | _R_~0~^8^ | _R_~0~^8^ | _G_~3~^4^ | _B_~3~^0^ | _B_~3~^1^ | _B_~3~^1^ | _R_~0~^8^ | _R_~0~^8^ | _R_~0~^8^ | _R_~0~^8^
>| *14* | _R_~0~^9^ | _B_~2~^4^ | _R_~0~^9^ | _R_~0~^9^ | _R_~0~^9^ | _B_~2~^4^ | _B_~2~^4^ | _B_~2~^4^ | _B_~2~^4^ | _B_~2~^4^ | _R_~0~^9^ | _R_~0~^9^ | _R_~0~^9^ | _R_~0~^9^
>| *15* | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^ | _G_~0~^0^
>| *16* | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^ | _G_~0~^1^
>| *17* | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^ | _G_~0~^2^
>| *18* | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^ | _G_~0~^3^
>| *19* | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^ | _G_~0~^4^
>| *20* | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^ | _G_~0~^5^
>| *21* | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~2~^5^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^ | _G_~0~^6^
>| *22* | _G_~0~^7^ | _B_~2~^5^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^ | _B_~2~^5^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^ | _G_~0~^7^
>| *23* | _G_~0~^8^ | _B_~3~^2^ | _G_~0~^8^ | _G_~0~^8^ | _G_~0~^8^ | _G_~0~^8^ | _B_~3~^2^ | _G_~2~^5^ | _B_~2~^5^ | _B_~3~^2^ | _G_~0~^8^ | _G_~0~^8^ | _G_~0~^8^ | _G_~0~^8^
>| *24* | _G_~0~^9^ | _G_~2~^4^ | _G_~0~^9^ | _G_~0~^9^ | _G_~0~^9^ | _G_~2~^4^ | _G_~2~^4^ | _G_~2~^4^ | _G_~2~^4^ | _G_~2~^4^ | _G_~0~^9^ | _G_~0~^9^ | _G_~0~^9^ | _G_~0~^9^
>| *25* | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^ | _B_~0~^0^
>| *26* | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^ | _B_~0~^1^
>| *27* | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^ | _B_~0~^2^
>| *28* | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^ | _B_~0~^3^
>| *29* | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^ | _B_~0~^4^
>| *30* | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^ | _B_~0~^5^
>| *31* | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _G_~3~^5^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^ | _B_~0~^6^
>| *32* | _B_~0~^7^ | _B_~3~^3^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^ | _B_~3~^3^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^ | _B_~0~^7^
>| *33* | _B_~0~^8^ | _B_~3~^5^ | _B_~0~^8^ | _B_~0~^8^ | _B_~0~^8^ | _B_~0~^8^ | _B_~3~^3^ | _G_~3~^5^ | _B_~3~^5^ | _B_~3~^5^ | _B_~0~^8^ | _B_~0~^8^ | _B_~0~^8^ | _B_~0~^8^
>| *34* | _B_~0~^9^ | _B_~3~^4^ | _B_~0~^9^ | _B_~0~^9^ | _B_~0~^9^ | _B_~3~^4^ | _B_~3~^4^ | _B_~3~^4^ | _B_~3~^4^ | _B_~3~^4^ | _B_~0~^9^ | _B_~0~^9^ | _B_~0~^9^ | _B_~0~^9^
>| *35* | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^ | _R_~1~^0^
>| *36* | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^ | _R_~1~^1^
>| *37* | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^ | _R_~1~^2^
>| *38* | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^ | _R_~1~^3^
>| *39* | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~0~^10^ | _R_~0~^10^ | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~1~^4^ | _R_~0~^15^
>| *40* | _G_~3~^4^ | _R_~1~^5^ | _R_~0~^10^ | _G_~3~^4^ | _B_~2~^4^ | _G_~3~^4^ | _R_~1~^5^ | _G_~3~^4^ | _G_~3~^4^ | _R_~1~^5^ | _R_~1~^5^ | _R_~1~^5^ | _R_~1~^5^ | _R_~0~^14^
|================
[[table-bptcbc6hbits2]]
.Interpretation of upper bits for BC6H block modes
[width="80%", cols=">1,14*^1"]
|================
>| 14+^| *Mode*
^| *Bit* | *0* | *1* | *2* | *6* | *10* | *14* | *18* | *22* | *26* | *30* | *3* | *7* | *11* | *15*
>| *41* | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _G_~2~^0^ | _R_~1~^6^ | _R_~1~^6^ | _R_~1~^6^ | _R_~0~^13^
>| *42* | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _G_~2~^1^ | _R_~1~^7^ | _R_~1~^7^ | _R_~1~^7^ | _R_~0~^12^
>| *43* | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _G_~2~^2^ | _R_~1~^8^ | _R_~1~^8^ | _R_~0~^11^ | _R_~0~^11^
>| *44* | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _G_~2~^3^ | _R_~1~^9^ | _R_~0~^10^ | _R_~0~^10^ | _R_~0~^10^
>| *45* | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^ | _G_~1~^0^
>| *46* | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^ | _G_~1~^1^
>| *47* | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^ | _G_~1~^2^
>| *48* | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^ | _G_~1~^3^
>| *49* | _G_~1~^4^ | _G_~1~^4^ | _G_~0~^10^ | _G_~1~^4^ | _G_~0~^10^ | _G_~1~^4^ | _G_~1~^4^ | _G_~1~^4^ | _G_~1~^4^ | _G_~1~^4^ | _G_~1~^4^ | _G_~1~^4^ | _G_~1~^4^ | _G_~0~^15^
>| *50* | _B_~3~^0^ | _G_~1~^5^ | _B_~3~^0^ | _G_~0~^10^ | _B_~3~^0^ | _B_~3~^0^ | _B_~3~^0^ | _G_~1~^5^ | _B_~3~^0^ | _G_~1~^5^ | _G_~1~^5^ | _G_~1~^5^ | _G_~1~^5^ | _G_~0~^14^
>| *51* | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~3~^0^ | _G_~1~^6^ | _G_~1~^6^ | _G_~1~^6^ | _G_~0~^13^
>| *52* | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~3~^1^ | _G_~1~^7^ | _G_~1~^7^ | _G_~1~^7^ | _G_~0~^12^
>| *53* | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~3~^2^ | _G_~1~^8^ | _G_~1~^8^ | _G_~0~^11^ | _G_~0~^11^
>| *54* | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~3~^3^ | _G_~1~^9^ | _G_~0~^10^ | _G_~0~^10^ | _G_~0~^10^
>| *55* | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^ | _B_~1~^0^
>| *56* | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^ | _B_~1~^1^
>| *57* | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^ | _B_~1~^2^
>| *58* | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^ | _B_~1~^3^
>| *59* | _B_~1~^4^ | _B_~1~^4^ | _B_~0~^10^ | _B_~0~^10^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~1~^4^ | _B_~0~^15^
>| *60* | _B_~3~^1^ | _B_~1~^5^ | _B_~3~^1^ | _B_~3~^1^ | _B_~0~^10^ | _B_~3~^1^ | _B_~3~^1^ | _B_~3~^1^ | _B_~1~^5^ | _B_~1~^5^ | _B_~1~^5^ | _B_~1~^5^ | _B_~1~^5^ | _B_~0~^14^
>| *61* | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~2~^0^ | _B_~1~^6^ | _B_~1~^6^ | _B_~1~^6^ | _B_~0~^13^
>| *62* | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~2~^1^ | _B_~1~^7^ | _B_~1~^7^ | _B_~1~^7^ | _B_~0~^12^
>| *63* | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~2~^2^ | _B_~1~^8^ | _B_~1~^8^ | _B_~0~^11^ | _B_~0~^11^
>| *64* | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~2~^3^ | _B_~1~^9^ | _B_~0~^10^ | _B_~0~^10^ | _B_~0~^10^
>| *65* | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | _R_~2~^0^ | IB~0,0~^0^ | IB~0,0~^0^ | IB~0,0~^0^ | IB~0,0~^0^
>| *66* | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | _R_~2~^1^ | IB~0,0~^1^ | IB~0,0~^1^ | IB~0,0~^1^ | IB~0,0~^1^
>| *67* | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | _R_~2~^2^ | IB~0,0~^2^ | IB~0,0~^2^ | IB~0,0~^2^ | IB~0,0~^2^
>| *68* | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | _R_~2~^3^ | IB~1,0~^0^ | IB~1,0~^0^ | IB~1,0~^0^ | IB~1,0~^0^
>| *69* | _R_~2~^4^ | _R_~2~^4^ | _R_~2~^4^ | _B_~3~^0^ | _B_~3~^1^ | _R_~2~^4^ | _R_~2~^4^ | _R_~2~^4^ | _R_~2~^4^ | _R_~2~^4^ | IB~1,0~^1^ | IB~1,0~^1^ | IB~1,0~^1^ | IB~1,0~^1^
>| *70* | _B_~3~^2^ | _R_~2~^5^ | _B_~3~^2^ | _B_~3~^2^ | _B_~3~^2^ | _B_~3~^2^ | _R_~2~^5^ | _B_~3~^2^ | _B_~3~^2^ | _R_~2~^5^ | IB~1,0~^2^ | IB~1,0~^2^ | IB~1,0~^2^ | IB~1,0~^2^
>| *71* | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | _R_~3~^0^ | IB~1,0~^3^ | IB~1,0~^3^ | IB~1,0~^3^ | IB~1,0~^3^
>| *72* | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | _R_~3~^1^ | IB~2,0~^0^ | IB~2,0~^0^ | IB~2,0~^0^ | IB~2,0~^0^
>| *73* | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | _R_~3~^2^ | IB~2,0~^1^ | IB~2,0~^1^ | IB~2,0~^1^ | IB~2,0~^1^
>| *74* | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | _R_~3~^3^ | IB~2,0~^2^ | IB~2,0~^2^ | IB~2,0~^2^ | IB~2,0~^2^
>| *75* | _R_~3~^4^ | _R_~3~^4^ | _R_~3~^4^ | _G_~2~^4^ | _B_~3~^4^ | _R_~3~^4^ | _R_~3~^4^ | _R_~3~^4^ | _R_~3~^4^ | _R_~3~^4^ | IB~2,0~^3^ | IB~2,0~^3^ | IB~2,0~^3^ | IB~2,0~^3^
>| *76* | _B_~3~^3^ | _R_~3~^5^ | _B_~3~^3^ | _B_~3~^3^ | _B_~3~^3^ | _B_~3~^3^ | _R_~3~^5^ | _B_~3~^3^ | _B_~3~^3^ | _R_~3~^5^ | IB~3,0~^0^ | IB~3,0~^0^ | IB~3,0~^0^ | IB~3,0~^0^
>| *77* | PB^0^ | PB^0^ | PB^0^ | PB^0^ | PB^0^ | PB^0^ | PB^0^ | PB^0^ | PB^0^ | PB^0^ | IB~3,0~^1^ | IB~3,0~^1^ | IB~3,0~^1^ | IB~3,0~^1^
>| *78* | PB^1^ | PB^1^ | PB^1^ | PB^1^ | PB^1^ | PB^1^ | PB^1^ | PB^1^ | PB^1^ | PB^1^ | IB~3,0~^2^ | IB~3,0~^2^ | IB~3,0~^2^ | IB~3,0~^2^
>| *79* | PB^2^ | PB^2^ | PB^2^ | PB^2^ | PB^2^ | PB^2^ | PB^2^ | PB^2^ | PB^2^ | PB^2^ | IB~3,0~^3^ | IB~3,0~^3^ | IB~3,0~^3^ | IB~3,0~^3^
>| *80* | PB^3^ | PB^3^ | PB^3^ | PB^3^ | PB^3^ | PB^3^ | PB^3^ | PB^3^ | PB^3^ | PB^3^ | IB~0,1~^0^ | IB~0,1~^0^ | IB~0,1~^0^ | IB~0,1~^0^
>| *81* | PB^4^ | PB^4^ | PB^4^ | PB^4^ | PB^4^ | PB^4^ | PB^4^ | PB^4^ | PB^4^ | PB^4^ | IB~0,1~^1^ | IB~0,1~^1^ | IB~0,1~^1^ | IB~0,1~^1^
|================
[NOTE]
====
<<table-bptcbc6hbits>> and <<table-bptcbc6hbits2>> show bits 0..81 for each mode.
Since modes 3, 7, 11 and 15 each have only one partition, only the first