summaryrefslogtreecommitdiff
path: root/src/hwdefs/msvdx_cmds_io2.h
blob: 215b279527f80705c2f4fbcf79e93d46d4ec9d83 (plain)
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
/*
 * Copyright (c) 2011 Intel Corporation. All Rights Reserved.
 * Copyright (c) Imagination Technologies Limited, UK
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sub license, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice (including the
 * next paragraph) shall be included in all copies or substantial portions
 * of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
 * IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
 * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */


/*!
******************************************************************************
@file   : /work/sim/msvdx/register_includes/msvdx_cmds_io2.h

@brief

@Author <Autogenerated>

<b>Description:</b>\n
                This file contains the MSVDX_CMDS_IO2_H Defintions.

<b>Platform:</b>\n
                ?

@Version
                1.0

******************************************************************************/

#if !defined (__MSVDX_CMDS_IO2_H__)
#define __MSVDX_CMDS_IO2_H__

#ifdef __cplusplus
extern "C" {
#endif


#define MSVDX_CMDS_REFERENCE_PICTURE_BASE_ADDRESSES_OFFSET              (0x0100)
#define MSVDX_CMDS_REFERENCE_PICTURE_BASE_ADDRESSES_STRIDE              (4)
#define MSVDX_CMDS_REFERENCE_PICTURE_BASE_ADDRESSES_NO_ENTRIES          (32)

// MSVDX_CMDS     REFERENCE_PICTURE_BASE_ADDRESSES     REF_BASE_ADDR
#define MSVDX_CMDS_REFERENCE_PICTURE_BASE_ADDRESSES_REF_BASE_ADDR_MASK          (0xFFFFF000)
#define MSVDX_CMDS_REFERENCE_PICTURE_BASE_ADDRESSES_REF_BASE_ADDR_LSBMASK               (0x000FFFFF)
#define MSVDX_CMDS_REFERENCE_PICTURE_BASE_ADDRESSES_REF_BASE_ADDR_SHIFT         (12)

#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_OFFSET               (0x0200)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_STRIDE               (4)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_NO_ENTRIES           (32)

// MSVDX_CMDS     H264_WEIGHTED_FACTORS_A     CR_WEIGHT_A
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_CR_WEIGHT_A_MASK             (0x07FC0000)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_CR_WEIGHT_A_LSBMASK          (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_CR_WEIGHT_A_SHIFT            (18)

// MSVDX_CMDS     H264_WEIGHTED_FACTORS_A     CB_WEIGHT_A
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_CB_WEIGHT_A_MASK             (0x0003FE00)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_CB_WEIGHT_A_LSBMASK          (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_CB_WEIGHT_A_SHIFT            (9)

// MSVDX_CMDS     H264_WEIGHTED_FACTORS_A     Y_WEIGHT_A
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_Y_WEIGHT_A_MASK              (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_Y_WEIGHT_A_LSBMASK           (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_A_Y_WEIGHT_A_SHIFT             (0)

#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_OFFSET                (0x0280)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_STRIDE                (4)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_NO_ENTRIES            (32)

// MSVDX_CMDS     H264_WEIGHTED_OFFSET_A     CR_OFFSET_A
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_CR_OFFSET_A_MASK              (0x00FF0000)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_CR_OFFSET_A_LSBMASK           (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_CR_OFFSET_A_SHIFT             (16)

// MSVDX_CMDS     H264_WEIGHTED_OFFSET_A     CB_OFFSET_A
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_CB_OFFSET_A_MASK              (0x0000FF00)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_CB_OFFSET_A_LSBMASK           (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_CB_OFFSET_A_SHIFT             (8)

// MSVDX_CMDS     H264_WEIGHTED_OFFSET_A     Y_OFFSET_A
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_Y_OFFSET_A_MASK               (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_Y_OFFSET_A_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_A_Y_OFFSET_A_SHIFT              (0)

#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_OFFSET               (0x0300)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_STRIDE               (4)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_NO_ENTRIES           (32)

// MSVDX_CMDS     H264_WEIGHTED_FACTORS_B     CR_WEIGHT_B
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_CR_WEIGHT_B_MASK             (0x07FC0000)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_CR_WEIGHT_B_LSBMASK          (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_CR_WEIGHT_B_SHIFT            (18)

// MSVDX_CMDS     H264_WEIGHTED_FACTORS_B     CB_WEIGHT_B
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_CB_WEIGHT_B_MASK             (0x0003FE00)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_CB_WEIGHT_B_LSBMASK          (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_CB_WEIGHT_B_SHIFT            (9)

// MSVDX_CMDS     H264_WEIGHTED_FACTORS_B     Y_WEIGHT_B
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_Y_WEIGHT_B_MASK              (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_Y_WEIGHT_B_LSBMASK           (0x000001FF)
#define MSVDX_CMDS_H264_WEIGHTED_FACTORS_B_Y_WEIGHT_B_SHIFT             (0)

#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_OFFSET                (0x0380)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_STRIDE                (4)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_NO_ENTRIES            (32)

// MSVDX_CMDS     H264_WEIGHTED_OFFSET_B     CR_OFFSET_B
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_CR_OFFSET_B_MASK              (0x00FF0000)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_CR_OFFSET_B_LSBMASK           (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_CR_OFFSET_B_SHIFT             (16)

// MSVDX_CMDS     H264_WEIGHTED_OFFSET_B     CB_OFFSET_B
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_CB_OFFSET_B_MASK              (0x0000FF00)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_CB_OFFSET_B_LSBMASK           (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_CB_OFFSET_B_SHIFT             (8)

// MSVDX_CMDS     H264_WEIGHTED_OFFSET_B     Y_OFFSET_B
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_Y_OFFSET_B_MASK               (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_Y_OFFSET_B_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_H264_WEIGHTED_OFFSET_B_Y_OFFSET_B_SHIFT              (0)

#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_OFFSET                (0x041C)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_STRIDE                (4)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_NO_ENTRIES            (5)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION     INTRA_PRED_BLOCK_SIZE
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_BLOCK_SIZE_MASK            (0x00070000)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_BLOCK_SIZE_LSBMASK         (0x00000007)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_BLOCK_SIZE_SHIFT           (16)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION     INTRA_PRED_MODE3
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE3_MASK         (0x0000F000)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE3_LSBMASK              (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE3_SHIFT                (12)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION     INTRA_PRED_MODE2
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE2_MASK         (0x00000F00)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE2_LSBMASK              (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE2_SHIFT                (8)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION     INTRA_PRED_MODE1
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE1_MASK         (0x000000F0)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE1_LSBMASK              (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE1_SHIFT                (4)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION     INTRA_PRED_MODE0
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE0_MASK         (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE0_LSBMASK              (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_INTRA_PRED_MODE0_SHIFT                (0)

#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_OFFSET                (0x0430)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_STRIDE                (4)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_NO_ENTRIES            (4)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     WEIGHT_INDEX_B
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_WEIGHT_INDEX_B_MASK           (0x3E000000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_WEIGHT_INDEX_B_LSBMASK                (0x0000001F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_WEIGHT_INDEX_B_SHIFT          (25)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     WEIGHT_INDEX_A
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_WEIGHT_INDEX_A_MASK           (0x01F00000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_WEIGHT_INDEX_A_LSBMASK                (0x0000001F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_WEIGHT_INDEX_A_SHIFT          (20)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     INTER_PRED_BLOCK_SIZE
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_INTER_PRED_BLOCK_SIZE_MASK            (0x00070000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_INTER_PRED_BLOCK_SIZE_LSBMASK         (0x00000007)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_INTER_PRED_BLOCK_SIZE_SHIFT           (16)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_B_INTERLACED
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_B_INTERLACED_MASK         (0x00004000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_B_INTERLACED_LSBMASK              (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_B_INTERLACED_SHIFT                (14)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_INDEX_B_VALID
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_B_VALID_MASK                (0x00002000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_B_VALID_LSBMASK             (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_B_VALID_SHIFT               (13)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_INDEX_FIELD_B
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_FIELD_B_MASK                (0x00001000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_FIELD_B_LSBMASK             (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_FIELD_B_SHIFT               (12)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_INDEX_B
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_B_MASK              (0x00000F00)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_B_LSBMASK           (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_B_SHIFT             (8)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_A_INTERLACED
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_A_INTERLACED_MASK         (0x00000040)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_A_INTERLACED_LSBMASK              (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_A_INTERLACED_SHIFT                (6)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_INDEX_A_VALID
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_A_VALID_MASK                (0x00000020)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_A_VALID_LSBMASK             (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_A_VALID_SHIFT               (5)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_INDEX_FIELD_A
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_FIELD_A_MASK                (0x00000010)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_FIELD_A_LSBMASK             (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_FIELD_A_SHIFT               (4)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION     REF_INDEX_A
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_A_MASK              (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_A_LSBMASK           (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_REF_INDEX_A_SHIFT             (0)

#define MSVDX_CMDS_MOTION_VECTOR_OFFSET         (0x0500)
#define MSVDX_CMDS_MOTION_VECTOR_STRIDE         (4)
#define MSVDX_CMDS_MOTION_VECTOR_NO_ENTRIES             (32)

// MSVDX_CMDS     MOTION_VECTOR     MV_Y
#define MSVDX_CMDS_MOTION_VECTOR_MV_Y_MASK              (0x03FFC000)
#define MSVDX_CMDS_MOTION_VECTOR_MV_Y_LSBMASK           (0x00000FFF)
#define MSVDX_CMDS_MOTION_VECTOR_MV_Y_SHIFT             (14)

// MSVDX_CMDS     MOTION_VECTOR     MV_X
#define MSVDX_CMDS_MOTION_VECTOR_MV_X_MASK              (0x00003FFF)
#define MSVDX_CMDS_MOTION_VECTOR_MV_X_LSBMASK           (0x00003FFF)
#define MSVDX_CMDS_MOTION_VECTOR_MV_X_SHIFT             (0)

#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_OFFSET         (0x061C)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_STRIDE         (4)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_NO_ENTRIES             (5)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE1     INTRA_PRED_BLOCK_SIZE_ABOVE1
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_BLOCK_SIZE_ABOVE1_MASK              (0x00070000)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_BLOCK_SIZE_ABOVE1_LSBMASK           (0x00000007)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_BLOCK_SIZE_ABOVE1_SHIFT             (16)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE1     INTRA_PRED_MODE3_ABOVE1
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE3_ABOVE1_MASK           (0x0000F000)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE3_ABOVE1_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE3_ABOVE1_SHIFT          (12)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE1     INTRA_PRED_MODE2_ABOVE1
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE2_ABOVE1_MASK           (0x00000F00)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE2_ABOVE1_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE2_ABOVE1_SHIFT          (8)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE1     INTRA_PRED_MODE1_ABOVE1
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE1_ABOVE1_MASK           (0x000000F0)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE1_ABOVE1_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE1_ABOVE1_SHIFT          (4)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE1     INTRA_PRED_MODE0_ABOVE1
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE0_ABOVE1_MASK           (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE0_ABOVE1_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE1_INTRA_PRED_MODE0_ABOVE1_SHIFT          (0)

#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_OFFSET         (0x0630)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_STRIDE         (4)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_NO_ENTRIES             (4)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     INTER_PRED_BLOCK_SIZE_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_INTER_PRED_BLOCK_SIZE_ABOVE1_MASK              (0x00070000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_INTER_PRED_BLOCK_SIZE_ABOVE1_LSBMASK           (0x00000007)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_INTER_PRED_BLOCK_SIZE_ABOVE1_SHIFT             (16)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     REF_INDEX_B_VALID_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_B_VALID_ABOVE1_MASK          (0x00002000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_B_VALID_ABOVE1_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_B_VALID_ABOVE1_SHIFT         (13)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     REF_INDEX_FIELD_B_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_FIELD_B_ABOVE1_MASK          (0x00001000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_FIELD_B_ABOVE1_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_FIELD_B_ABOVE1_SHIFT         (12)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     REF_INDEX_B_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_B_ABOVE1_MASK                (0x00000F00)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_B_ABOVE1_LSBMASK             (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_B_ABOVE1_SHIFT               (8)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     REF_INDEX_A_VALID_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_A_VALID_ABOVE1_MASK          (0x00000020)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_A_VALID_ABOVE1_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_A_VALID_ABOVE1_SHIFT         (5)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     REF_INDEX_FIELD_A_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_FIELD_A_ABOVE1_MASK          (0x00000010)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_FIELD_A_ABOVE1_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_FIELD_A_ABOVE1_SHIFT         (4)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE1     REF_INDEX_A_ABOVE1
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_A_ABOVE1_MASK                (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_A_ABOVE1_LSBMASK             (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE1_REF_INDEX_A_ABOVE1_SHIFT               (0)

#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_OFFSET          (0x0700)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_STRIDE          (4)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_NO_ENTRIES              (32)

// MSVDX_CMDS     MOTION_VECTOR_ABOVE1     MV_Y_ABOVE1
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_MV_Y_ABOVE1_MASK                (0x03FFC000)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_MV_Y_ABOVE1_LSBMASK             (0x00000FFF)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_MV_Y_ABOVE1_SHIFT               (14)

// MSVDX_CMDS     MOTION_VECTOR_ABOVE1     MV_X_ABOVE1
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_MV_X_ABOVE1_MASK                (0x00003FFF)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_MV_X_ABOVE1_LSBMASK             (0x00003FFF)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE1_MV_X_ABOVE1_SHIFT               (0)

#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_OFFSET         (0x081C)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_STRIDE         (4)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_NO_ENTRIES             (5)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE2     INTRA_PRED_BLOCK_SIZE_ABOVE2
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_BLOCK_SIZE_ABOVE2_MASK              (0x00070000)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_BLOCK_SIZE_ABOVE2_LSBMASK           (0x00000007)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_BLOCK_SIZE_ABOVE2_SHIFT             (16)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE2     INTRA_PRED_MODE3_ABOVE2
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE3_ABOVE2_MASK           (0x0000F000)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE3_ABOVE2_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE3_ABOVE2_SHIFT          (12)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE2     INTRA_PRED_MODE2_ABOVE2
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE2_ABOVE2_MASK           (0x00000F00)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE2_ABOVE2_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE2_ABOVE2_SHIFT          (8)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE2     INTRA_PRED_MODE1_ABOVE2
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE1_ABOVE2_MASK           (0x000000F0)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE1_ABOVE2_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE1_ABOVE2_SHIFT          (4)

// MSVDX_CMDS     INTRA_BLOCK_PREDICTION_ABOVE2     INTRA_PRED_MODE0_ABOVE2
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE0_ABOVE2_MASK           (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE0_ABOVE2_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_INTRA_BLOCK_PREDICTION_ABOVE2_INTRA_PRED_MODE0_ABOVE2_SHIFT          (0)

#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_OFFSET         (0x0830)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_STRIDE         (4)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_NO_ENTRIES             (4)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     INTER_PRED_BLOCK_SIZE_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_INTER_PRED_BLOCK_SIZE_ABOVE2_MASK              (0x00070000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_INTER_PRED_BLOCK_SIZE_ABOVE2_LSBMASK           (0x00000007)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_INTER_PRED_BLOCK_SIZE_ABOVE2_SHIFT             (16)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     REF_INDEX_B_VALID_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_B_VALID_ABOVE2_MASK          (0x00002000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_B_VALID_ABOVE2_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_B_VALID_ABOVE2_SHIFT         (13)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     REF_INDEX_FIELD_B_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_FIELD_B_ABOVE2_MASK          (0x00001000)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_FIELD_B_ABOVE2_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_FIELD_B_ABOVE2_SHIFT         (12)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     REF_INDEX_B_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_B_ABOVE2_MASK                (0x00000F00)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_B_ABOVE2_LSBMASK             (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_B_ABOVE2_SHIFT               (8)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     REF_INDEX_A_VALID_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_A_VALID_ABOVE2_MASK          (0x00000020)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_A_VALID_ABOVE2_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_A_VALID_ABOVE2_SHIFT         (5)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     REF_INDEX_FIELD_A_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_FIELD_A_ABOVE2_MASK          (0x00000010)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_FIELD_A_ABOVE2_LSBMASK               (0x00000001)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_FIELD_A_ABOVE2_SHIFT         (4)

// MSVDX_CMDS     INTER_BLOCK_PREDICTION_ABOVE2     REF_INDEX_A_ABOVE2
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_A_ABOVE2_MASK                (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_A_ABOVE2_LSBMASK             (0x0000000F)
#define MSVDX_CMDS_INTER_BLOCK_PREDICTION_ABOVE2_REF_INDEX_A_ABOVE2_SHIFT               (0)

#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_OFFSET          (0x0900)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_STRIDE          (4)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_NO_ENTRIES              (32)

// MSVDX_CMDS     MOTION_VECTOR_ABOVE2     MV_Y_ABOVE2
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_MV_Y_ABOVE2_MASK                (0x03FFC000)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_MV_Y_ABOVE2_LSBMASK             (0x00000FFF)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_MV_Y_ABOVE2_SHIFT               (14)

// MSVDX_CMDS     MOTION_VECTOR_ABOVE2     MV_X_ABOVE2
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_MV_X_ABOVE2_MASK                (0x00003FFF)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_MV_X_ABOVE2_LSBMASK             (0x00003FFF)
#define MSVDX_CMDS_MOTION_VECTOR_ABOVE2_MV_X_ABOVE2_SHIFT               (0)

#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_OFFSET          (0x0000)

// MSVDX_CMDS     DISPLAY_PICTURE_SIZE     DISPLAY_PICTURE_HEIGHT
#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_DISPLAY_PICTURE_HEIGHT_MASK             (0x00FFF000)
#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_DISPLAY_PICTURE_HEIGHT_LSBMASK          (0x00000FFF)
#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_DISPLAY_PICTURE_HEIGHT_SHIFT            (12)

// MSVDX_CMDS     DISPLAY_PICTURE_SIZE     DISPLAY_PICTURE_WIDTH
#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_DISPLAY_PICTURE_WIDTH_MASK              (0x00000FFF)
#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_DISPLAY_PICTURE_WIDTH_LSBMASK           (0x00000FFF)
#define MSVDX_CMDS_DISPLAY_PICTURE_SIZE_DISPLAY_PICTURE_WIDTH_SHIFT             (0)

#define MSVDX_CMDS_CODED_PICTURE_SIZE_OFFSET            (0x0004)

// MSVDX_CMDS     CODED_PICTURE_SIZE     CODED_PICTURE_HEIGHT
#define MSVDX_CMDS_CODED_PICTURE_SIZE_CODED_PICTURE_HEIGHT_MASK         (0x00FFF000)
#define MSVDX_CMDS_CODED_PICTURE_SIZE_CODED_PICTURE_HEIGHT_LSBMASK              (0x00000FFF)
#define MSVDX_CMDS_CODED_PICTURE_SIZE_CODED_PICTURE_HEIGHT_SHIFT                (12)

// MSVDX_CMDS     CODED_PICTURE_SIZE     CODED_PICTURE_WIDTH
#define MSVDX_CMDS_CODED_PICTURE_SIZE_CODED_PICTURE_WIDTH_MASK          (0x00000FFF)
#define MSVDX_CMDS_CODED_PICTURE_SIZE_CODED_PICTURE_WIDTH_LSBMASK               (0x00000FFF)
#define MSVDX_CMDS_CODED_PICTURE_SIZE_CODED_PICTURE_WIDTH_SHIFT         (0)

#define MSVDX_CMDS_OPERATING_MODE_OFFSET                (0x0008)

// MSVDX_CMDS     OPERATING_MODE     CHROMA_INTERLEAVED
#define MSVDX_CMDS_OPERATING_MODE_CHROMA_INTERLEAVED_MASK               (0x08000000)
#define MSVDX_CMDS_OPERATING_MODE_CHROMA_INTERLEAVED_LSBMASK            (0x00000001)
#define MSVDX_CMDS_OPERATING_MODE_CHROMA_INTERLEAVED_SHIFT              (27)

// MSVDX_CMDS     OPERATING_MODE     ROW_STRIDE
#define MSVDX_CMDS_OPERATING_MODE_ROW_STRIDE_MASK               (0x07000000)
#define MSVDX_CMDS_OPERATING_MODE_ROW_STRIDE_LSBMASK            (0x00000007)
#define MSVDX_CMDS_OPERATING_MODE_ROW_STRIDE_SHIFT              (24)

// MSVDX_CMDS     OPERATING_MODE     CODEC_PROFILE
#define MSVDX_CMDS_OPERATING_MODE_CODEC_PROFILE_MASK            (0x00300000)
#define MSVDX_CMDS_OPERATING_MODE_CODEC_PROFILE_LSBMASK         (0x00000003)
#define MSVDX_CMDS_OPERATING_MODE_CODEC_PROFILE_SHIFT           (20)

// MSVDX_CMDS     OPERATING_MODE     CODEC_MODE
#define MSVDX_CMDS_OPERATING_MODE_CODEC_MODE_MASK               (0x00070000)
#define MSVDX_CMDS_OPERATING_MODE_CODEC_MODE_LSBMASK            (0x00000007)
#define MSVDX_CMDS_OPERATING_MODE_CODEC_MODE_SHIFT              (16)

// MSVDX_CMDS     OPERATING_MODE     ASYNC_MODE
#define MSVDX_CMDS_OPERATING_MODE_ASYNC_MODE_MASK               (0x00006000)
#define MSVDX_CMDS_OPERATING_MODE_ASYNC_MODE_LSBMASK            (0x00000003)
#define MSVDX_CMDS_OPERATING_MODE_ASYNC_MODE_SHIFT              (13)

// MSVDX_CMDS     OPERATING_MODE     CHROMA_FORMAT
#define MSVDX_CMDS_OPERATING_MODE_CHROMA_FORMAT_MASK            (0x00001000)
#define MSVDX_CMDS_OPERATING_MODE_CHROMA_FORMAT_LSBMASK         (0x00000001)
#define MSVDX_CMDS_OPERATING_MODE_CHROMA_FORMAT_SHIFT           (12)

// MSVDX_CMDS     OPERATING_MODE     INTERLACED
#define MSVDX_CMDS_OPERATING_MODE_INTERLACED_MASK               (0x00000800)
#define MSVDX_CMDS_OPERATING_MODE_INTERLACED_LSBMASK            (0x00000001)
#define MSVDX_CMDS_OPERATING_MODE_INTERLACED_SHIFT              (11)

// MSVDX_CMDS     OPERATING_MODE     OVERLAP
#define MSVDX_CMDS_OPERATING_MODE_OVERLAP_MASK          (0x00000400)
#define MSVDX_CMDS_OPERATING_MODE_OVERLAP_LSBMASK               (0x00000001)
#define MSVDX_CMDS_OPERATING_MODE_OVERLAP_SHIFT         (10)

// MSVDX_CMDS     OPERATING_MODE     PIC_CONDOVER
#define MSVDX_CMDS_OPERATING_MODE_PIC_CONDOVER_MASK             (0x00000300)
#define MSVDX_CMDS_OPERATING_MODE_PIC_CONDOVER_LSBMASK          (0x00000003)
#define MSVDX_CMDS_OPERATING_MODE_PIC_CONDOVER_SHIFT            (8)

// MSVDX_CMDS     OPERATING_MODE     PIC_QUANT
#define MSVDX_CMDS_OPERATING_MODE_PIC_QUANT_MASK                (0x0000001F)
#define MSVDX_CMDS_OPERATING_MODE_PIC_QUANT_LSBMASK             (0x0000001F)
#define MSVDX_CMDS_OPERATING_MODE_PIC_QUANT_SHIFT               (0)

#define MSVDX_CMDS_LUMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_OFFSET             (0x000C)

// MSVDX_CMDS     LUMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES     LUMA_RECON_BASE_ADDR
#define MSVDX_CMDS_LUMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_LUMA_RECON_BASE_ADDR_MASK          (0xFFFFF000)
#define MSVDX_CMDS_LUMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_LUMA_RECON_BASE_ADDR_LSBMASK               (0x000FFFFF)
#define MSVDX_CMDS_LUMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_LUMA_RECON_BASE_ADDR_SHIFT         (12)

#define MSVDX_CMDS_CHROMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_OFFSET           (0x0010)

// MSVDX_CMDS     CHROMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES     CHROMA_RECON_BASE_ADDR
#define MSVDX_CMDS_CHROMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_CHROMA_RECON_BASE_ADDR_MASK              (0xFFFFF000)
#define MSVDX_CMDS_CHROMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_CHROMA_RECON_BASE_ADDR_LSBMASK           (0x000FFFFF)
#define MSVDX_CMDS_CHROMA_RECONSTRUCTED_PICTURE_BASE_ADDRESSES_CHROMA_RECON_BASE_ADDR_SHIFT             (12)

#define MSVDX_CMDS_AUX_MSB_BUFFER_BASE_ADDRESSES_OFFSET         (0x0014)

// MSVDX_CMDS     AUX_MSB_BUFFER_BASE_ADDRESSES     AUX_MSB_BUFFER_BASE_ADDR
#define MSVDX_CMDS_AUX_MSB_BUFFER_BASE_ADDRESSES_AUX_MSB_BUFFER_BASE_ADDR_MASK          (0xFFFFF000)
#define MSVDX_CMDS_AUX_MSB_BUFFER_BASE_ADDRESSES_AUX_MSB_BUFFER_BASE_ADDR_LSBMASK               (0x000FFFFF)
#define MSVDX_CMDS_AUX_MSB_BUFFER_BASE_ADDRESSES_AUX_MSB_BUFFER_BASE_ADDR_SHIFT         (12)

#define MSVDX_CMDS_INTRA_BUFFER_BASE_ADDRESS_OFFSET             (0x0018)

// MSVDX_CMDS     INTRA_BUFFER_BASE_ADDRESS     INTRA_BASE_ADDR
#define MSVDX_CMDS_INTRA_BUFFER_BASE_ADDRESS_INTRA_BASE_ADDR_MASK               (0xFFFFFF00)
#define MSVDX_CMDS_INTRA_BUFFER_BASE_ADDRESS_INTRA_BASE_ADDR_LSBMASK            (0x00FFFFFF)
#define MSVDX_CMDS_INTRA_BUFFER_BASE_ADDRESS_INTRA_BASE_ADDR_SHIFT              (8)

#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_OFFSET                (0x001C)

// MSVDX_CMDS     MC_CACHE_CONFIGURATION     CONFIG_REF_OFFSET
#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_CONFIG_REF_OFFSET_MASK                (0x00FFF000)
#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_CONFIG_REF_OFFSET_LSBMASK             (0x00000FFF)
#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_CONFIG_REF_OFFSET_SHIFT               (12)

// MSVDX_CMDS     MC_CACHE_CONFIGURATION     CONFIG_ROW_OFFSET
#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_CONFIG_ROW_OFFSET_MASK                (0x00000FFF)
#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_CONFIG_ROW_OFFSET_LSBMASK             (0x00000FFF)
#define MSVDX_CMDS_MC_CACHE_CONFIGURATION_CONFIG_ROW_OFFSET_SHIFT               (0)

#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_OFFSET          (0x0020)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_PARAMETER     VC1_LUMSHIFT2
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSHIFT2_MASK              (0x00FC0000)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSHIFT2_LSBMASK           (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSHIFT2_SHIFT             (18)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_PARAMETER     VC1_LUMSCALE2
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSCALE2_MASK              (0x0003F000)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSCALE2_LSBMASK           (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSCALE2_SHIFT             (12)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_PARAMETER     VC1_LUMSHIFT1
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSHIFT1_MASK              (0x00000FC0)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSHIFT1_LSBMASK           (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSHIFT1_SHIFT             (6)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_PARAMETER     VC1_LUMSCALE1
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSCALE1_MASK              (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSCALE1_LSBMASK           (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_PARAMETER_VC1_LUMSCALE1_SHIFT             (0)

#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_OFFSET           (0x0034)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_BACKWARD     VC1_LUMSHIFT_PREV
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSHIFT_PREV_MASK           (0x00FC0000)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSHIFT_PREV_LSBMASK                (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSHIFT_PREV_SHIFT          (18)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_BACKWARD     VC1_LUMSCALE_PREV
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSCALE_PREV_MASK           (0x0003F000)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSCALE_PREV_LSBMASK                (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSCALE_PREV_SHIFT          (12)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_BACKWARD     VC1_LUMSHIFT_BACK
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSHIFT_BACK_MASK           (0x00000FC0)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSHIFT_BACK_LSBMASK                (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSHIFT_BACK_SHIFT          (6)

// MSVDX_CMDS     VC1_INTENSITY_COMPENSATION_BACKWARD     VC1_LUMSCALE_BACK
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSCALE_BACK_MASK           (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSCALE_BACK_LSBMASK                (0x0000003F)
#define MSVDX_CMDS_VC1_INTENSITY_COMPENSATION_BACKWARD_VC1_LUMSCALE_BACK_SHIFT          (0)

#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_OFFSET              (0x0024)

// MSVDX_CMDS     H264_WEIGHTED_FACTOR_DENOMINATOR     C_LOG2_WEIGHT_DENOM
#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_C_LOG2_WEIGHT_DENOM_MASK            (0x00000070)
#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_C_LOG2_WEIGHT_DENOM_LSBMASK         (0x00000007)
#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_C_LOG2_WEIGHT_DENOM_SHIFT           (4)

// MSVDX_CMDS     H264_WEIGHTED_FACTOR_DENOMINATOR     Y_LOG2_WEIGHT_DENOM
#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_Y_LOG2_WEIGHT_DENOM_MASK            (0x00000007)
#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_Y_LOG2_WEIGHT_DENOM_LSBMASK         (0x00000007)
#define MSVDX_CMDS_H264_WEIGHTED_FACTOR_DENOMINATOR_Y_LOG2_WEIGHT_DENOM_SHIFT           (0)

#define MSVDX_CMDS_VC1_LUMA_RANGE_MAPPING_BASE_ADDRESS_OFFSET           (0x0028)

// MSVDX_CMDS     VC1_LUMA_RANGE_MAPPING_BASE_ADDRESS     LUMA_RANGE_BASE_ADDR
#define MSVDX_CMDS_VC1_LUMA_RANGE_MAPPING_BASE_ADDRESS_LUMA_RANGE_BASE_ADDR_MASK                (0xFFFFF000)
#define MSVDX_CMDS_VC1_LUMA_RANGE_MAPPING_BASE_ADDRESS_LUMA_RANGE_BASE_ADDR_LSBMASK             (0x000FFFFF)
#define MSVDX_CMDS_VC1_LUMA_RANGE_MAPPING_BASE_ADDRESS_LUMA_RANGE_BASE_ADDR_SHIFT               (12)

#define MSVDX_CMDS_VC1_CHROMA_RANGE_MAPPING_BASE_ADDRESS_OFFSET         (0x002C)

// MSVDX_CMDS     VC1_CHROMA_RANGE_MAPPING_BASE_ADDRESS     CHROMA_RANGE_BASE_ADDR
#define MSVDX_CMDS_VC1_CHROMA_RANGE_MAPPING_BASE_ADDRESS_CHROMA_RANGE_BASE_ADDR_MASK            (0xFFFFF000)
#define MSVDX_CMDS_VC1_CHROMA_RANGE_MAPPING_BASE_ADDRESS_CHROMA_RANGE_BASE_ADDR_LSBMASK         (0x000FFFFF)
#define MSVDX_CMDS_VC1_CHROMA_RANGE_MAPPING_BASE_ADDRESS_CHROMA_RANGE_BASE_ADDR_SHIFT           (12)

#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_OFFSET               (0x0030)

// MSVDX_CMDS     VC1_RANGE_MAPPING_FLAGS     CHROMA_RANGE_MAP_FLAG
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_CHROMA_RANGE_MAP_FLAG_MASK           (0x00000080)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_CHROMA_RANGE_MAP_FLAG_LSBMASK                (0x00000001)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_CHROMA_RANGE_MAP_FLAG_SHIFT          (7)

// MSVDX_CMDS     VC1_RANGE_MAPPING_FLAGS     CHROMA_RANGE_MAP
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_CHROMA_RANGE_MAP_MASK                (0x00000070)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_CHROMA_RANGE_MAP_LSBMASK             (0x00000007)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_CHROMA_RANGE_MAP_SHIFT               (4)

// MSVDX_CMDS     VC1_RANGE_MAPPING_FLAGS     LUMA_RANGE_MAP_FLAG
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_LUMA_RANGE_MAP_FLAG_MASK             (0x00000008)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_LUMA_RANGE_MAP_FLAG_LSBMASK          (0x00000001)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_LUMA_RANGE_MAP_FLAG_SHIFT            (3)

// MSVDX_CMDS     VC1_RANGE_MAPPING_FLAGS     LUMA_RANGE_MAP
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_LUMA_RANGE_MAP_MASK          (0x00000007)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_LUMA_RANGE_MAP_LSBMASK               (0x00000007)
#define MSVDX_CMDS_VC1_RANGE_MAPPING_FLAGS_LUMA_RANGE_MAP_SHIFT         (0)

#define MSVDX_CMDS_SLICE_PARAMS_OFFSET          (0x0400)

// MSVDX_CMDS     SLICE_PARAMS     VC1_PREV_INT_COMP
#define MSVDX_CMDS_SLICE_PARAMS_VC1_PREV_INT_COMP_MASK          (0x0C000000)
#define MSVDX_CMDS_SLICE_PARAMS_VC1_PREV_INT_COMP_LSBMASK               (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_VC1_PREV_INT_COMP_SHIFT         (26)

// MSVDX_CMDS     SLICE_PARAMS     VC1_BACK_INT_COMP
#define MSVDX_CMDS_SLICE_PARAMS_VC1_BACK_INT_COMP_MASK          (0x03000000)
#define MSVDX_CMDS_SLICE_PARAMS_VC1_BACK_INT_COMP_LSBMASK               (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_VC1_BACK_INT_COMP_SHIFT         (24)

// MSVDX_CMDS     SLICE_PARAMS     CONSTRAINED_INTRA_PRED
#define MSVDX_CMDS_SLICE_PARAMS_CONSTRAINED_INTRA_PRED_MASK             (0x00800000)
#define MSVDX_CMDS_SLICE_PARAMS_CONSTRAINED_INTRA_PRED_LSBMASK          (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_CONSTRAINED_INTRA_PRED_SHIFT            (23)

// MSVDX_CMDS     SLICE_PARAMS     RND_CTL_BIT
#define MSVDX_CMDS_SLICE_PARAMS_RND_CTL_BIT_MASK                (0x00400000)
#define MSVDX_CMDS_SLICE_PARAMS_RND_CTL_BIT_LSBMASK             (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_RND_CTL_BIT_SHIFT               (22)

// MSVDX_CMDS     SLICE_PARAMS     MODE_CONFIG
#define MSVDX_CMDS_SLICE_PARAMS_MODE_CONFIG_MASK                (0x003E0000)
#define MSVDX_CMDS_SLICE_PARAMS_MODE_CONFIG_LSBMASK             (0x0000001F)
#define MSVDX_CMDS_SLICE_PARAMS_MODE_CONFIG_SHIFT               (17)

// MSVDX_CMDS     SLICE_PARAMS     SUBPEL_FILTER_MODE
#define MSVDX_CMDS_SLICE_PARAMS_SUBPEL_FILTER_MODE_MASK         (0x00010000)
#define MSVDX_CMDS_SLICE_PARAMS_SUBPEL_FILTER_MODE_LSBMASK              (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_SUBPEL_FILTER_MODE_SHIFT                (16)

// MSVDX_CMDS     SLICE_PARAMS     VC1_FASTUVMC
#define MSVDX_CMDS_SLICE_PARAMS_VC1_FASTUVMC_MASK               (0x00008000)
#define MSVDX_CMDS_SLICE_PARAMS_VC1_FASTUVMC_LSBMASK            (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_VC1_FASTUVMC_SHIFT              (15)

// MSVDX_CMDS     SLICE_PARAMS     LOOPFILTER
#define MSVDX_CMDS_SLICE_PARAMS_LOOPFILTER_MASK         (0x00004000)
#define MSVDX_CMDS_SLICE_PARAMS_LOOPFILTER_LSBMASK              (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_LOOPFILTER_SHIFT                (14)

// MSVDX_CMDS     SLICE_PARAMS     DISABLE_DEBLOCK_FILTER_IDC
#define MSVDX_CMDS_SLICE_PARAMS_DISABLE_DEBLOCK_FILTER_IDC_MASK         (0x00003000)
#define MSVDX_CMDS_SLICE_PARAMS_DISABLE_DEBLOCK_FILTER_IDC_LSBMASK              (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_DISABLE_DEBLOCK_FILTER_IDC_SHIFT                (12)

// MSVDX_CMDS     SLICE_PARAMS     SLICE_ALPHA_CO_OFFSET_DIV2
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_ALPHA_CO_OFFSET_DIV2_MASK         (0x00000F00)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_ALPHA_CO_OFFSET_DIV2_LSBMASK              (0x0000000F)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_ALPHA_CO_OFFSET_DIV2_SHIFT                (8)

// MSVDX_CMDS     SLICE_PARAMS     SLICE_BETA_OFFSET_DIV2
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_BETA_OFFSET_DIV2_MASK             (0x000000F0)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_BETA_OFFSET_DIV2_LSBMASK          (0x0000000F)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_BETA_OFFSET_DIV2_SHIFT            (4)

// MSVDX_CMDS     SLICE_PARAMS     SLICE_FIELD_TYPE
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_FIELD_TYPE_MASK           (0x0000000C)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_FIELD_TYPE_LSBMASK                (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_FIELD_TYPE_SHIFT          (2)

// MSVDX_CMDS     SLICE_PARAMS     SLICE_CODE_TYPE
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_CODE_TYPE_MASK            (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_CODE_TYPE_LSBMASK         (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_SLICE_CODE_TYPE_SHIFT           (0)

#define MSVDX_CMDS_END_SLICE_PICTURE_OFFSET             (0x0404)

// MSVDX_CMDS     END_SLICE_PICTURE     FLUSH_VDEB
#define MSVDX_CMDS_END_SLICE_PICTURE_FLUSH_VDEB_MASK            (0x00000002)
#define MSVDX_CMDS_END_SLICE_PICTURE_FLUSH_VDEB_LSBMASK         (0x00000001)
#define MSVDX_CMDS_END_SLICE_PICTURE_FLUSH_VDEB_SHIFT           (1)

// MSVDX_CMDS     END_SLICE_PICTURE     PICTURE_END
#define MSVDX_CMDS_END_SLICE_PICTURE_PICTURE_END_MASK           (0x00000001)
#define MSVDX_CMDS_END_SLICE_PICTURE_PICTURE_END_LSBMASK                (0x00000001)
#define MSVDX_CMDS_END_SLICE_PICTURE_PICTURE_END_SHIFT          (0)

#define MSVDX_CMDS_MACROBLOCK_NUMBER_OFFSET             (0x0408)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_LEFT2_INTER
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_LEFT2_INTER_MASK                (0x40000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_LEFT2_INTER_LSBMASK             (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_LEFT2_INTER_SHIFT               (30)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_LEFT1_INTER
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_LEFT1_INTER_MASK                (0x20000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_LEFT1_INTER_LSBMASK             (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_LEFT1_INTER_SHIFT               (29)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_ABOVE_RIGHT_INTER
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_RIGHT_INTER_MASK          (0x10000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_RIGHT_INTER_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_RIGHT_INTER_SHIFT         (28)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_ABOVE_INTER
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_INTER_MASK                (0x08000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_INTER_LSBMASK             (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_INTER_SHIFT               (27)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_ABOVE_LEFT_INTER
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_LEFT_INTER_MASK           (0x04000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_LEFT_INTER_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_LEFT_INTER_SHIFT          (26)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_ABOVE_RIGHT
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_RIGHT_MASK                (0x02000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_RIGHT_LSBMASK             (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_RIGHT_SHIFT               (25)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_ABOVE_LEFT
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_LEFT_MASK         (0x01000000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_LEFT_LSBMASK              (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ABOVE_LEFT_SHIFT                (24)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_ERROR_FLAG
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ERROR_FLAG_MASK         (0x00400000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ERROR_FLAG_LSBMASK              (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_ERROR_FLAG_SHIFT                (22)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_OVERFLAG
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_OVERFLAG_MASK           (0x00200000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_OVERFLAG_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_OVERFLAG_SHIFT          (21)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_FIELD_CODE
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_FIELD_CODE_MASK         (0x00100000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_FIELD_CODE_LSBMASK              (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_FIELD_CODE_SHIFT                (20)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_SLICE_TOP
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_SLICE_TOP_MASK          (0x00080000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_SLICE_TOP_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_SLICE_TOP_SHIFT         (19)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_SLICE_LHS
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_SLICE_LHS_MASK          (0x00040000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_SLICE_LHS_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_SLICE_LHS_SHIFT         (18)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_CODE_TYPE
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_CODE_TYPE_MASK          (0x00030000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_CODE_TYPE_LSBMASK               (0x00000003)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_CODE_TYPE_SHIFT         (16)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_NO_Y
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_NO_Y_MASK               (0x0000FF00)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_NO_Y_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_NO_Y_SHIFT              (8)

// MSVDX_CMDS     MACROBLOCK_NUMBER     MB_NO_X
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_NO_X_MASK               (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_NO_X_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_MB_NO_X_SHIFT              (0)

#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_OFFSET         (0x040C)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT     TRANSFORM_SIZE_8X8_FLAG
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_TRANSFORM_SIZE_8X8_FLAG_MASK           (0x01000000)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_TRANSFORM_SIZE_8X8_FLAG_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_TRANSFORM_SIZE_8X8_FLAG_SHIFT          (24)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT     MB_QUANT_CHROMA_CR
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_CHROMA_CR_MASK                (0x003F0000)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_CHROMA_CR_LSBMASK             (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_CHROMA_CR_SHIFT               (16)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT     MB_QUANT_CHROMA_CB
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_CHROMA_CB_MASK                (0x00003F00)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_CHROMA_CB_LSBMASK             (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_CHROMA_CB_SHIFT               (8)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT     MB_QUANT_LUMA
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_LUMA_MASK             (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_LUMA_LSBMASK          (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_MB_QUANT_LUMA_SHIFT            (0)

#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_OFFSET               (0x0410)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_SIZE     VC1_FIELDTX
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_VC1_FIELDTX_MASK             (0x00001000)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_VC1_FIELDTX_LSBMASK          (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_VC1_FIELDTX_SHIFT            (12)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_SIZE     MB_BLOCK_TRANSFORM_SIZE
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_MB_BLOCK_TRANSFORM_SIZE_MASK         (0x00000FFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_MB_BLOCK_TRANSFORM_SIZE_LSBMASK              (0x00000FFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_MB_BLOCK_TRANSFORM_SIZE_SHIFT                (0)

#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_OFFSET               (0x0414)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_ZERO     MB_BLOCK_TRANSFORM_ZERO
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_MB_BLOCK_TRANSFORM_ZERO_MASK         (0x00FFFFFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_MB_BLOCK_TRANSFORM_ZERO_LSBMASK              (0x00FFFFFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_MB_BLOCK_TRANSFORM_ZERO_SHIFT                (0)

#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_OFFSET            (0x0418)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     REVERSE_FLAG_ORDER
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_REVERSE_FLAG_ORDER_MASK           (0x00008000)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_REVERSE_FLAG_ORDER_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_REVERSE_FLAG_ORDER_SHIFT          (15)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     VA_ADD_128
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_VA_ADD_128_MASK           (0x00004000)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_VA_ADD_128_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_VA_ADD_128_SHIFT          (14)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     VA_DATA_FORMAT
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_VA_DATA_FORMAT_MASK               (0x00003000)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_VA_DATA_FORMAT_LSBMASK            (0x00000003)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_VA_DATA_FORMAT_SHIFT              (12)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     RESIDUAL_FIELD_CODED
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_RESIDUAL_FIELD_CODED_MASK         (0x00000100)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_RESIDUAL_FIELD_CODED_LSBMASK              (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_RESIDUAL_FIELD_CODED_SHIFT                (8)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     CR_FROM_VEC
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_CR_FROM_VEC_MASK          (0x00000020)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_CR_FROM_VEC_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_CR_FROM_VEC_SHIFT         (5)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     CB_FROM_VEC
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_CB_FROM_VEC_MASK          (0x00000010)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_CB_FROM_VEC_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_CB_FROM_VEC_SHIFT         (4)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     Y3_FROM_VEC
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y3_FROM_VEC_MASK          (0x00000008)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y3_FROM_VEC_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y3_FROM_VEC_SHIFT         (3)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     Y2_FROM_VEC
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y2_FROM_VEC_MASK          (0x00000004)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y2_FROM_VEC_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y2_FROM_VEC_SHIFT         (2)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     Y1_FROM_VEC
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y1_FROM_VEC_MASK          (0x00000002)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y1_FROM_VEC_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y1_FROM_VEC_SHIFT         (1)

// MSVDX_CMDS     MACROBLOCK_RESIDUAL_FORMAT     Y0_FROM_VEC
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y0_FROM_VEC_MASK          (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y0_FROM_VEC_LSBMASK               (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_RESIDUAL_FORMAT_Y0_FROM_VEC_SHIFT         (0)

#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_OFFSET          (0x0440)

// MSVDX_CMDS     H264_IMPLICIT_WEIGHT_AVERAGE     IMPLICIT_W1
#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_IMPLICIT_W1_MASK                (0x0003FE00)
#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_IMPLICIT_W1_LSBMASK             (0x000001FF)
#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_IMPLICIT_W1_SHIFT               (9)

// MSVDX_CMDS     H264_IMPLICIT_WEIGHT_AVERAGE     IMPLICIT_W0
#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_IMPLICIT_W0_MASK                (0x000001FF)
#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_IMPLICIT_W0_LSBMASK             (0x000001FF)
#define MSVDX_CMDS_H264_IMPLICIT_WEIGHT_AVERAGE_IMPLICIT_W0_SHIFT               (0)

#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_OFFSET              (0x0450)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY     INLOOP_Y3_BOUNDARY
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y3_BOUNDARY_MASK             (0xFF000000)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y3_BOUNDARY_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y3_BOUNDARY_SHIFT            (24)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY     INLOOP_Y2_BOUNDARY
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y2_BOUNDARY_MASK             (0x00FF0000)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y2_BOUNDARY_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y2_BOUNDARY_SHIFT            (16)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY     INLOOP_Y1_BOUNDARY
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y1_BOUNDARY_MASK             (0x0000FF00)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y1_BOUNDARY_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y1_BOUNDARY_SHIFT            (8)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY     INLOOP_Y0_BOUNDARY
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y0_BOUNDARY_MASK             (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y0_BOUNDARY_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_INLOOP_Y0_BOUNDARY_SHIFT            (0)

#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_OFFSET            (0x0454)

// MSVDX_CMDS     VC1_INLOOP_CHROMA_BOUNDARY     INLOOP_CR_BOUNDARY
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_INLOOP_CR_BOUNDARY_MASK           (0x0000FF00)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_INLOOP_CR_BOUNDARY_LSBMASK                (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_INLOOP_CR_BOUNDARY_SHIFT          (8)

// MSVDX_CMDS     VC1_INLOOP_CHROMA_BOUNDARY     INLOOP_CB_BOUNDARY
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_INLOOP_CB_BOUNDARY_MASK           (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_INLOOP_CB_BOUNDARY_LSBMASK                (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_INLOOP_CB_BOUNDARY_SHIFT          (0)

#define MSVDX_CMDS_JPEG_BLOCK_OFFSET            (0x0480)

// MSVDX_CMDS     JPEG_BLOCK     FRAME_INDEX
#define MSVDX_CMDS_JPEG_BLOCK_FRAME_INDEX_MASK          (0x0F000000)
#define MSVDX_CMDS_JPEG_BLOCK_FRAME_INDEX_LSBMASK               (0x0000000F)
#define MSVDX_CMDS_JPEG_BLOCK_FRAME_INDEX_SHIFT         (24)

// MSVDX_CMDS     JPEG_BLOCK     BLOCK_Y_OFFSET
#define MSVDX_CMDS_JPEG_BLOCK_BLOCK_Y_OFFSET_MASK               (0x00FFF000)
#define MSVDX_CMDS_JPEG_BLOCK_BLOCK_Y_OFFSET_LSBMASK            (0x00000FFF)
#define MSVDX_CMDS_JPEG_BLOCK_BLOCK_Y_OFFSET_SHIFT              (12)

// MSVDX_CMDS     JPEG_BLOCK     BLOCK_X_OFFSET
#define MSVDX_CMDS_JPEG_BLOCK_BLOCK_X_OFFSET_MASK               (0x00000FFF)
#define MSVDX_CMDS_JPEG_BLOCK_BLOCK_X_OFFSET_LSBMASK            (0x00000FFF)
#define MSVDX_CMDS_JPEG_BLOCK_BLOCK_X_OFFSET_SHIFT              (0)

#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_OFFSET           (0x0600)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     RND_CTL_BIT_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_RND_CTL_BIT_ABOVE1_MASK          (0x00400000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_RND_CTL_BIT_ABOVE1_LSBMASK               (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_RND_CTL_BIT_ABOVE1_SHIFT         (22)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     MODE_CONFIG_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_MODE_CONFIG_ABOVE1_MASK          (0x003E0000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_MODE_CONFIG_ABOVE1_LSBMASK               (0x0000001F)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_MODE_CONFIG_ABOVE1_SHIFT         (17)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     SUBPEL_FILTER_MODE_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SUBPEL_FILTER_MODE_ABOVE1_MASK           (0x00010000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SUBPEL_FILTER_MODE_ABOVE1_LSBMASK                (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SUBPEL_FILTER_MODE_ABOVE1_SHIFT          (16)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     VC1_FASTUVMC_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_VC1_FASTUVMC_ABOVE1_MASK         (0x00008000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_VC1_FASTUVMC_ABOVE1_LSBMASK              (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_VC1_FASTUVMC_ABOVE1_SHIFT                (15)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     LOOPFILTER_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_LOOPFILTER_ABOVE1_MASK           (0x00004000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_LOOPFILTER_ABOVE1_LSBMASK                (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_LOOPFILTER_ABOVE1_SHIFT          (14)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     DISABLE_DEBLOCK_FILTER_IDC_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_DISABLE_DEBLOCK_FILTER_IDC_ABOVE1_MASK           (0x00003000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_DISABLE_DEBLOCK_FILTER_IDC_ABOVE1_LSBMASK                (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_DISABLE_DEBLOCK_FILTER_IDC_ABOVE1_SHIFT          (12)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE1_MASK           (0x00000F00)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE1_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE1_SHIFT          (8)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     SLICE_BETA_OFFSET_DIV2_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_BETA_OFFSET_DIV2_ABOVE1_MASK               (0x000000F0)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_BETA_OFFSET_DIV2_ABOVE1_LSBMASK            (0x0000000F)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_BETA_OFFSET_DIV2_ABOVE1_SHIFT              (4)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     SLICE_FIELD_TYPE_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_FIELD_TYPE_ABOVE1_MASK             (0x0000000C)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_FIELD_TYPE_ABOVE1_LSBMASK          (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_FIELD_TYPE_ABOVE1_SHIFT            (2)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE1     SLICE_CODE_TYPE_ABOVE1
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_CODE_TYPE_ABOVE1_MASK              (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_CODE_TYPE_ABOVE1_LSBMASK           (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE1_SLICE_CODE_TYPE_ABOVE1_SHIFT             (0)

#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_OFFSET              (0x0608)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_ERROR_FLAG_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_ERROR_FLAG_ABOVE1_MASK           (0x00400000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_ERROR_FLAG_ABOVE1_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_ERROR_FLAG_ABOVE1_SHIFT          (22)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_OVERFLAG_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_OVERFLAG_ABOVE1_MASK             (0x00200000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_OVERFLAG_ABOVE1_LSBMASK          (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_OVERFLAG_ABOVE1_SHIFT            (21)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_FIELD_CODE_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_FIELD_CODE_ABOVE1_MASK           (0x00100000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_FIELD_CODE_ABOVE1_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_FIELD_CODE_ABOVE1_SHIFT          (20)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_SLICE_TOP_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_SLICE_TOP_ABOVE1_MASK            (0x00080000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_SLICE_TOP_ABOVE1_LSBMASK         (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_SLICE_TOP_ABOVE1_SHIFT           (19)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_SLICE_LHS_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_SLICE_LHS_ABOVE1_MASK            (0x00040000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_SLICE_LHS_ABOVE1_LSBMASK         (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_SLICE_LHS_ABOVE1_SHIFT           (18)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_CODE_TYPE_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_CODE_TYPE_ABOVE1_MASK            (0x00030000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_CODE_TYPE_ABOVE1_LSBMASK         (0x00000003)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_CODE_TYPE_ABOVE1_SHIFT           (16)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_NO_Y_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_NO_Y_ABOVE1_MASK         (0x0000FF00)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_NO_Y_ABOVE1_LSBMASK              (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_NO_Y_ABOVE1_SHIFT                (8)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE1     MB_NO_X_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_NO_X_ABOVE1_MASK         (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_NO_X_ABOVE1_LSBMASK              (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE1_MB_NO_X_ABOVE1_SHIFT                (0)

#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_OFFSET          (0x060C)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE1     TRANSFORM_SIZE_8X8_FLAG_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_TRANSFORM_SIZE_8X8_FLAG_ABOVE1_MASK             (0x01000000)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_TRANSFORM_SIZE_8X8_FLAG_ABOVE1_LSBMASK          (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_TRANSFORM_SIZE_8X8_FLAG_ABOVE1_SHIFT            (24)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE1     MB_QUANT_CHROMA_CR_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_CHROMA_CR_ABOVE1_MASK          (0x003F0000)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_CHROMA_CR_ABOVE1_LSBMASK               (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_CHROMA_CR_ABOVE1_SHIFT         (16)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE1     MB_QUANT_CHROMA_CB_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_CHROMA_CB_ABOVE1_MASK          (0x00003F00)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_CHROMA_CB_ABOVE1_LSBMASK               (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_CHROMA_CB_ABOVE1_SHIFT         (8)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE1     MB_QUANT_LUMA_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_LUMA_ABOVE1_MASK               (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_LUMA_ABOVE1_LSBMASK            (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE1_MB_QUANT_LUMA_ABOVE1_SHIFT              (0)

#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE1_OFFSET                (0x0610)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE1     MB_BLOCK_TRANSFORM_SIZE_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE1_MB_BLOCK_TRANSFORM_SIZE_ABOVE1_MASK           (0x00000FFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE1_MB_BLOCK_TRANSFORM_SIZE_ABOVE1_LSBMASK                (0x00000FFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE1_MB_BLOCK_TRANSFORM_SIZE_ABOVE1_SHIFT          (0)

#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE1_OFFSET                (0x0614)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE1     MB_BLOCK_TRANSFORM_ZERO_ABOVE1
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE1_MB_BLOCK_TRANSFORM_ZERO_ABOVE1_MASK           (0x00FFFFFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE1_MB_BLOCK_TRANSFORM_ZERO_ABOVE1_LSBMASK                (0x00FFFFFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE1_MB_BLOCK_TRANSFORM_ZERO_ABOVE1_SHIFT          (0)

#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_OFFSET               (0x0650)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY_ABOVE1     INLOOP_Y3_BOUNDARY_ABOVE1
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y3_BOUNDARY_ABOVE1_MASK               (0xFF000000)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y3_BOUNDARY_ABOVE1_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y3_BOUNDARY_ABOVE1_SHIFT              (24)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY_ABOVE1     INLOOP_Y2_BOUNDARY_ABOVE1
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y2_BOUNDARY_ABOVE1_MASK               (0x00FF0000)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y2_BOUNDARY_ABOVE1_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y2_BOUNDARY_ABOVE1_SHIFT              (16)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY_ABOVE1     INLOOP_Y1_BOUNDARY_ABOVE1
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y1_BOUNDARY_ABOVE1_MASK               (0x0000FF00)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y1_BOUNDARY_ABOVE1_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y1_BOUNDARY_ABOVE1_SHIFT              (8)

// MSVDX_CMDS     VC1_INLOOP_LUMA_BOUNDARY_ABOVE1     INLOOP_Y0_BOUNDARY_ABOVE1
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y0_BOUNDARY_ABOVE1_MASK               (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y0_BOUNDARY_ABOVE1_LSBMASK            (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_LUMA_BOUNDARY_ABOVE1_INLOOP_Y0_BOUNDARY_ABOVE1_SHIFT              (0)

#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_OFFSET             (0x0654)

// MSVDX_CMDS     VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1     INLOOP_CR_BOUNDARY_ABOVE1
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_INLOOP_CR_BOUNDARY_ABOVE1_MASK             (0x0000FF00)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_INLOOP_CR_BOUNDARY_ABOVE1_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_INLOOP_CR_BOUNDARY_ABOVE1_SHIFT            (8)

// MSVDX_CMDS     VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1     INLOOP_CB_BOUNDARY_ABOVE1
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_INLOOP_CB_BOUNDARY_ABOVE1_MASK             (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_INLOOP_CB_BOUNDARY_ABOVE1_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE1_INLOOP_CB_BOUNDARY_ABOVE1_SHIFT            (0)

#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_OFFSET           (0x0800)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     RND_CTL_BIT_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_RND_CTL_BIT_ABOVE2_MASK          (0x00400000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_RND_CTL_BIT_ABOVE2_LSBMASK               (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_RND_CTL_BIT_ABOVE2_SHIFT         (22)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     MODE_CONFIG_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_MODE_CONFIG_ABOVE2_MASK          (0x003E0000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_MODE_CONFIG_ABOVE2_LSBMASK               (0x0000001F)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_MODE_CONFIG_ABOVE2_SHIFT         (17)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     SUBPEL_FILTER_MODE_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SUBPEL_FILTER_MODE_ABOVE2_MASK           (0x00010000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SUBPEL_FILTER_MODE_ABOVE2_LSBMASK                (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SUBPEL_FILTER_MODE_ABOVE2_SHIFT          (16)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     VC1_FASTUVMC_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_VC1_FASTUVMC_ABOVE2_MASK         (0x00008000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_VC1_FASTUVMC_ABOVE2_LSBMASK              (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_VC1_FASTUVMC_ABOVE2_SHIFT                (15)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     LOOPFILTER_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_LOOPFILTER_ABOVE2_MASK           (0x00004000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_LOOPFILTER_ABOVE2_LSBMASK                (0x00000001)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_LOOPFILTER_ABOVE2_SHIFT          (14)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     DISABLE_DEBLOCK_FILTER_IDC_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_DISABLE_DEBLOCK_FILTER_IDC_ABOVE2_MASK           (0x00003000)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_DISABLE_DEBLOCK_FILTER_IDC_ABOVE2_LSBMASK                (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_DISABLE_DEBLOCK_FILTER_IDC_ABOVE2_SHIFT          (12)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE2_MASK           (0x00000F00)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE2_LSBMASK                (0x0000000F)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_ALPHA_CO_OFFSET_DIV2_ABOVE2_SHIFT          (8)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     SLICE_BETA_OFFSET_DIV2_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_BETA_OFFSET_DIV2_ABOVE2_MASK               (0x000000F0)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_BETA_OFFSET_DIV2_ABOVE2_LSBMASK            (0x0000000F)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_BETA_OFFSET_DIV2_ABOVE2_SHIFT              (4)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     SLICE_FIELD_TYPE_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_FIELD_TYPE_ABOVE2_MASK             (0x0000000C)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_FIELD_TYPE_ABOVE2_LSBMASK          (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_FIELD_TYPE_ABOVE2_SHIFT            (2)

// MSVDX_CMDS     SLICE_PARAMS_ABOVE2     SLICE_CODE_TYPE_ABOVE2
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_CODE_TYPE_ABOVE2_MASK              (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_CODE_TYPE_ABOVE2_LSBMASK           (0x00000003)
#define MSVDX_CMDS_SLICE_PARAMS_ABOVE2_SLICE_CODE_TYPE_ABOVE2_SHIFT             (0)

#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_OFFSET              (0x0808)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_ERROR_FLAG_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_ERROR_FLAG_ABOVE2_MASK           (0x00400000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_ERROR_FLAG_ABOVE2_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_ERROR_FLAG_ABOVE2_SHIFT          (22)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_OVERFLAG_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_OVERFLAG_ABOVE2_MASK             (0x00200000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_OVERFLAG_ABOVE2_LSBMASK          (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_OVERFLAG_ABOVE2_SHIFT            (21)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_FIELD_CODE_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_FIELD_CODE_ABOVE2_MASK           (0x00100000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_FIELD_CODE_ABOVE2_LSBMASK                (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_FIELD_CODE_ABOVE2_SHIFT          (20)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_SLICE_TOP_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_SLICE_TOP_ABOVE2_MASK            (0x00080000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_SLICE_TOP_ABOVE2_LSBMASK         (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_SLICE_TOP_ABOVE2_SHIFT           (19)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_SLICE_LHS_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_SLICE_LHS_ABOVE2_MASK            (0x00040000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_SLICE_LHS_ABOVE2_LSBMASK         (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_SLICE_LHS_ABOVE2_SHIFT           (18)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_CODE_TYPE_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_CODE_TYPE_ABOVE2_MASK            (0x00030000)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_CODE_TYPE_ABOVE2_LSBMASK         (0x00000003)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_CODE_TYPE_ABOVE2_SHIFT           (16)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_NO_Y_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_NO_Y_ABOVE2_MASK         (0x0000FF00)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_NO_Y_ABOVE2_LSBMASK              (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_NO_Y_ABOVE2_SHIFT                (8)

// MSVDX_CMDS     MACROBLOCK_NUMBER_ABOVE2     MB_NO_X_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_NO_X_ABOVE2_MASK         (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_NO_X_ABOVE2_LSBMASK              (0x000000FF)
#define MSVDX_CMDS_MACROBLOCK_NUMBER_ABOVE2_MB_NO_X_ABOVE2_SHIFT                (0)

#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_OFFSET          (0x080C)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE2     TRANSFORM_SIZE_8X8_FLAG_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_TRANSFORM_SIZE_8X8_FLAG_ABOVE2_MASK             (0x01000000)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_TRANSFORM_SIZE_8X8_FLAG_ABOVE2_LSBMASK          (0x00000001)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_TRANSFORM_SIZE_8X8_FLAG_ABOVE2_SHIFT            (24)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE2     MB_QUANT_CHROMA_CR_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_CHROMA_CR_ABOVE2_MASK          (0x003F0000)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_CHROMA_CR_ABOVE2_LSBMASK               (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_CHROMA_CR_ABOVE2_SHIFT         (16)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE2     MB_QUANT_CHROMA_CB_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_CHROMA_CB_ABOVE2_MASK          (0x00003F00)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_CHROMA_CB_ABOVE2_LSBMASK               (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_CHROMA_CB_ABOVE2_SHIFT         (8)

// MSVDX_CMDS     MACROBLOCK_H264_QUANT_ABOVE2     MB_QUANT_LUMA_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_LUMA_ABOVE2_MASK               (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_LUMA_ABOVE2_LSBMASK            (0x0000003F)
#define MSVDX_CMDS_MACROBLOCK_H264_QUANT_ABOVE2_MB_QUANT_LUMA_ABOVE2_SHIFT              (0)

#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE2_OFFSET                (0x0810)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE2     MB_BLOCK_TRANSFORM_SIZE_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE2_MB_BLOCK_TRANSFORM_SIZE_ABOVE2_MASK           (0x00000FFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE2_MB_BLOCK_TRANSFORM_SIZE_ABOVE2_LSBMASK                (0x00000FFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_SIZE_ABOVE2_MB_BLOCK_TRANSFORM_SIZE_ABOVE2_SHIFT          (0)

#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE2_OFFSET                (0x0814)

// MSVDX_CMDS     MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE2     MB_BLOCK_TRANSFORM_ZERO_ABOVE2
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE2_MB_BLOCK_TRANSFORM_ZERO_ABOVE2_MASK           (0x00FFFFFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE2_MB_BLOCK_TRANSFORM_ZERO_ABOVE2_LSBMASK                (0x00FFFFFF)
#define MSVDX_CMDS_MACROBLOCK_BLOCK_TRANSFORM_ZERO_ABOVE2_MB_BLOCK_TRANSFORM_ZERO_ABOVE2_SHIFT          (0)

#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_OFFSET             (0x0854)

// MSVDX_CMDS     VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2     INLOOP_CR_BOUNDARY_ABOVE2
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_INLOOP_CR_BOUNDARY_ABOVE2_MASK             (0x0000FF00)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_INLOOP_CR_BOUNDARY_ABOVE2_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_INLOOP_CR_BOUNDARY_ABOVE2_SHIFT            (8)

// MSVDX_CMDS     VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2     INLOOP_CB_BOUNDARY_ABOVE2
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_INLOOP_CB_BOUNDARY_ABOVE2_MASK             (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_INLOOP_CB_BOUNDARY_ABOVE2_LSBMASK          (0x000000FF)
#define MSVDX_CMDS_VC1_INLOOP_CHROMA_BOUNDARY_ABOVE2_INLOOP_CB_BOUNDARY_ABOVE2_SHIFT            (0)

#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_OFFSET           (0x003C)

// MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION, ROTATION_ROW_STRIDE
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ROTATION_ROW_STRIDE_MASK         (0x00000070)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ROTATION_ROW_STRIDE_LSBMASK              (0x00000007)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ROTATION_ROW_STRIDE_SHIFT                (4)

// MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION, ALT_PICTURE_ENABLE
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ALT_PICTURE_ENABLE_MASK          (0x00000008)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ALT_PICTURE_ENABLE_LSBMASK               (0x00000001)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ALT_PICTURE_ENABLE_SHIFT         (3)

// MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION, RECON_WRITE_DISABLE
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_RECON_WRITE_DISABLE_MASK         (0x00000004)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_RECON_WRITE_DISABLE_LSBMASK              (0x00000001)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_RECON_WRITE_DISABLE_SHIFT                (2)

// MSVDX_CMDS, ALTERNATIVE_OUTPUT_PICTURE_ROTATION, ROTATION_MODE
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ROTATION_MODE_MASK               (0x00000003)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ROTATION_MODE_LSBMASK            (0x00000003)
#define MSVDX_CMDS_ALTERNATIVE_OUTPUT_PICTURE_ROTATION_ROTATION_MODE_SHIFT              (0)

#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_OFFSET           (0x0040)

// MSVDX_CMDS, EXTENDED_ROW_STRIDE, RPR_ROW_STRIDE
#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_RPR_ROW_STRIDE_MASK              (0xFFC00000)
#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_RPR_ROW_STRIDE_LSBMASK           (0x000003FF)
#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_RPR_ROW_STRIDE_SHIFT             (22)

// MSVDX_CMDS, EXTENDED_ROW_STRIDE, EXT_ROW_STRIDE
#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_EXT_ROW_STRIDE_MASK              (0x0000FFC0)
#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_EXT_ROW_STRIDE_LSBMASK           (0x000003FF)
#define MSVDX_CMDS_EXTENDED_ROW_STRIDE_EXT_ROW_STRIDE_SHIFT             (6)

#ifdef __cplusplus
}
#endif

#endif /* __MSVDX_CMDS_IO2_H__ */