xref: /OK3568_Linux_fs/external/mpp/mpp/common/dxva_syntax.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /*
2 *
3 * Copyright 2015 Rockchip Electronics Co. LTD
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 *      http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17 
18 #ifndef __DXVA_SYNTAX_H__
19 #define __DXVA_SYNTAX_H__
20 
21 #include "rk_type.h"
22 
23 enum __MIDL___MIDL_itf_dxva2api_0000_0000_0012 {
24     DXVA2_PictureParametersBufferType         = 0,
25     DXVA2_MacroBlockControlBufferType         = 1,
26     DXVA2_ResidualDifferenceBufferType        = 2,
27     DXVA2_DeblockingControlBufferType         = 3,
28     DXVA2_InverseQuantizationMatrixBufferType = 4,
29     DXVA2_SliceControlBufferType              = 5,
30     DXVA2_BitStreamDateBufferType             = 6,
31     DXVA2_MotionVectorBuffer                  = 7,
32     DXVA2_FilmGrainBuffer                     = 8
33 };
34 
35 typedef struct _DXVA2_ConfigPictureDecode {
36     //GUID guidConfigBitstreamEncryption;
37     //GUID guidConfigMBcontrolEncryption;
38     //GUID guidConfigResidDiffEncryption;
39     RK_U32 ConfigBitstreamRaw;
40     //UINT ConfigMBcontrolRasterOrder;
41     //UINT ConfigResidDiffHost;
42     //UINT ConfigSpatialResid8;
43     //UINT ConfigResid8Subtraction;
44     //UINT ConfigSpatialHost8or9Clipping;
45     //UINT ConfigSpatialResidInterleaved;
46     //UINT ConfigIntraResidUnsigned;
47     //UINT ConfigResidDiffAccelerator;
48     //UINT ConfigHostInverseScan;
49     //UINT ConfigSpecificIDCT;
50     //UINT Config4GroupedCoefs;
51     //USHORT ConfigMinRenderTargetBuffCount;
52     //USHORT ConfigDecoderSpecific;
53 } DXVA2_ConfigPictureDecode;
54 
55 typedef struct _DXVA2_DecodeBufferDesc {
56     RK_U32 CompressedBufferType;
57     RK_U32 BufferIndex;
58     RK_U32 DataOffset;
59     RK_U32 DataSize;
60     RK_U32 FirstMBaddress;
61     RK_U32 NumMBsInBuffer;
62     RK_U32 Width;
63     RK_U32 Height;
64     RK_U32 Stride;
65     RK_U32 ReservedBits;
66     void   *pvPVPState;
67 }   DXVA2_DecodeBufferDesc;
68 
69 #endif /*__DXVA_SYNTAX_H__*/
70 
71