1d722e3fbSopenharmony_ci/* 2d722e3fbSopenharmony_ci * Copyright © 2018 NVIDIA Corporation 3d722e3fbSopenharmony_ci * 4d722e3fbSopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a 5d722e3fbSopenharmony_ci * copy of this software and associated documentation files (the "Software"), 6d722e3fbSopenharmony_ci * to deal in the Software without restriction, including without limitation 7d722e3fbSopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8d722e3fbSopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the 9d722e3fbSopenharmony_ci * Software is furnished to do so, subject to the following conditions: 10d722e3fbSopenharmony_ci * 11d722e3fbSopenharmony_ci * The above copyright notice and this permission notice shall be included in 12d722e3fbSopenharmony_ci * all copies or substantial portions of the Software. 13d722e3fbSopenharmony_ci * 14d722e3fbSopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15d722e3fbSopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16d722e3fbSopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17d722e3fbSopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18d722e3fbSopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19d722e3fbSopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20d722e3fbSopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE. 21d722e3fbSopenharmony_ci */ 22d722e3fbSopenharmony_ci 23d722e3fbSopenharmony_ci#ifndef VIC42_H 24d722e3fbSopenharmony_ci#define VIC42_H 25d722e3fbSopenharmony_ci 26d722e3fbSopenharmony_ci#include <stdint.h> 27d722e3fbSopenharmony_ci 28d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID 0x00000200 29d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_EXECUTE 0x00000300 30d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS 0x00000704 31d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET 0x00000708 32d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_FILTER_STRUCT_OFFSET 0x0000070c 33d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_HIST_OFFSET 0x00000714 34d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET 0x00000720 35d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE0_LUMA_OFFSET(slot) (0x00001200 + (slot) * 0x00000060) 36d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE0_CHROMA_U_OFFSET(slot) (0x00001204 + (slot) * 0x00000060) 37d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE0_CHROMA_V_OFFSET(slot) (0x00001208 + (slot) * 0x00000060) 38d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE1_LUMA_OFFSET(slot) (0x0000120c + (slot) * 0x00000060) 39d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE1_CHROMA_U_OFFSET(slot) (0x00001210 + (slot) * 0x00000060) 40d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE1_CHROMA_V_OFFSET(slot) (0x00001214 + (slot) * 0x00000060) 41d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE2_LUMA_OFFSET(slot) (0x00001218 + (slot) * 0x00000060) 42d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE2_CHROMA_U_OFFSET(slot) (0x0000121c + (slot) * 0x00000060) 43d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE2_CHROMA_V_OFFSET(slot) (0x00001220 + (slot) * 0x00000060) 44d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE3_LUMA_OFFSET(slot) (0x00001224 + (slot) * 0x00000060) 45d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE3_CHROMA_U_OFFSET(slot) (0x00001228 + (slot) * 0x00000060) 46d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE3_CHROMA_V_OFFSET(slot) (0x0000122c + (slot) * 0x00000060) 47d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE4_LUMA_OFFSET(slot) (0x00001230 + (slot) * 0x00000060) 48d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE4_CHROMA_U_OFFSET(slot) (0x00001234 + (slot) * 0x00000060) 49d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE4_CHROMA_V_OFFSET(slot) (0x00001238 + (slot) * 0x00000060) 50d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE5_LUMA_OFFSET(slot) (0x0000123c + (slot) * 0x00000060) 51d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE5_CHROMA_U_OFFSET(slot) (0x00001240 + (slot) * 0x00000060) 52d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE5_CHROMA_V_OFFSET(slot) (0x00001244 + (slot) * 0x00000060) 53d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE6_LUMA_OFFSET(slot) (0x00001248 + (slot) * 0x00000060) 54d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE6_CHROMA_U_OFFSET(slot) (0x0000124c + (slot) * 0x00000060) 55d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE6_CHROMA_V_OFFSET(slot) (0x00001250 + (slot) * 0x00000060) 56d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE7_LUMA_OFFSET(slot) (0x00001254 + (slot) * 0x00000060) 57d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE7_CHROMA_U_OFFSET(slot) (0x00001258 + (slot) * 0x00000060) 58d722e3fbSopenharmony_ci#define NVC5B6_VIDEO_COMPOSITOR_SET_SURFACE7_CHROMA_V_OFFSET(slot) (0x0000125c + (slot) * 0x00000060) 59d722e3fbSopenharmony_ci 60d722e3fbSopenharmony_citypedef struct { 61d722e3fbSopenharmony_ci uint64_t SlotEnable : 1; /* 0 */ 62d722e3fbSopenharmony_ci uint64_t DeNoise : 1; /* 1 */ 63d722e3fbSopenharmony_ci uint64_t AdvancedDenoise : 1; /* 2 */ 64d722e3fbSopenharmony_ci uint64_t CadenceDetect : 1; /* 3 */ 65d722e3fbSopenharmony_ci uint64_t MotionMap : 1; /* 4 */ 66d722e3fbSopenharmony_ci uint64_t MMapCombine : 1; /* 5 */ 67d722e3fbSopenharmony_ci uint64_t IsEven : 1; /* 6 */ 68d722e3fbSopenharmony_ci uint64_t ChromaEven : 1; /* 7 */ 69d722e3fbSopenharmony_ci uint64_t CurrentFieldEnable : 1; /* 8 */ 70d722e3fbSopenharmony_ci uint64_t PrevFieldEnable : 1; /* 9 */ 71d722e3fbSopenharmony_ci uint64_t NextFieldEnable : 1; /* 10 */ 72d722e3fbSopenharmony_ci uint64_t NextNrFieldEnable : 1; /* 11 */ 73d722e3fbSopenharmony_ci uint64_t CurMotionFieldEnable : 1; /* 12 */ 74d722e3fbSopenharmony_ci uint64_t PrevMotionFieldEnable : 1; /* 13 */ 75d722e3fbSopenharmony_ci uint64_t PpMotionFieldEnable : 1; /* 14 */ 76d722e3fbSopenharmony_ci uint64_t CombMotionFieldEnable : 1; /* 15 */ 77d722e3fbSopenharmony_ci uint64_t FrameFormat : 4; /* 19..16 */ 78d722e3fbSopenharmony_ci uint64_t FilterLengthY : 2; /* 21..20 */ 79d722e3fbSopenharmony_ci uint64_t FilterLengthX : 2; /* 23..22 */ 80d722e3fbSopenharmony_ci uint64_t Panoramic : 12; /* 35..24 */ 81d722e3fbSopenharmony_ci uint64_t ChromaUpLengthY : 2; /* 37..36 */ 82d722e3fbSopenharmony_ci uint64_t ChromaUpLengthX : 2; /* 39..38 */ 83d722e3fbSopenharmony_ci uint64_t reserved1 : 18; /* 57..40 */ 84d722e3fbSopenharmony_ci uint64_t DetailFltClamp : 6; /* 63..58 */ 85d722e3fbSopenharmony_ci uint64_t FilterNoise : 10; /* 73..64 */ 86d722e3fbSopenharmony_ci uint64_t FilterDetail : 10; /* 83..74 */ 87d722e3fbSopenharmony_ci uint64_t ChromaNoise : 10; /* 93..84 */ 88d722e3fbSopenharmony_ci uint64_t ChromaDetail : 10; /* 103..94 */ 89d722e3fbSopenharmony_ci uint64_t DeinterlaceMode : 4; /* 107..104 */ 90d722e3fbSopenharmony_ci uint64_t MotionAccumWeight : 3; /* 110..108 */ 91d722e3fbSopenharmony_ci uint64_t NoiseIir : 11; /* 121..111 */ 92d722e3fbSopenharmony_ci uint64_t LightLevel : 4; /* 125..122 */ 93d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 127..126 */ 94d722e3fbSopenharmony_ci /* 128 */ 95d722e3fbSopenharmony_ci uint64_t SoftClampLow : 10; /* 9..0 */ 96d722e3fbSopenharmony_ci uint64_t SoftClampHigh : 10; /* 19..10 */ 97d722e3fbSopenharmony_ci uint64_t reserved5 : 12; /* 31..20 */ 98d722e3fbSopenharmony_ci uint64_t reserved6 : 2; /* 33..32 */ 99d722e3fbSopenharmony_ci uint64_t PlanarAlpha : 8; /* 41..34 */ 100d722e3fbSopenharmony_ci uint64_t ConstantAlpha : 1; /* 42 */ 101d722e3fbSopenharmony_ci uint64_t StereoInterleave : 3; /* 45..43 */ 102d722e3fbSopenharmony_ci uint64_t ClipEnabled : 1; /* 46 */ 103d722e3fbSopenharmony_ci uint64_t ClearRectMask : 8; /* 54..47 */ 104d722e3fbSopenharmony_ci uint64_t DegammaMode : 2; /* 56..55 */ 105d722e3fbSopenharmony_ci uint64_t reserved7 : 1; /* 57 */ 106d722e3fbSopenharmony_ci uint64_t DecompressEnable : 1; /* 58 */ 107d722e3fbSopenharmony_ci uint64_t DecompressKind : 4; /* 62..59 */ 108d722e3fbSopenharmony_ci uint64_t reserved9 : 1; /* 63 */ 109d722e3fbSopenharmony_ci uint64_t DecompressCtbCount : 8; /* 71..64 */ 110d722e3fbSopenharmony_ci uint64_t DecompressZbcColor : 32; /* 103..72 */ 111d722e3fbSopenharmony_ci uint64_t reserved12 : 24; /* 127..104 */ 112d722e3fbSopenharmony_ci /* 256 */ 113d722e3fbSopenharmony_ci uint64_t SourceRectLeft : 30; /* 29..0 */ 114d722e3fbSopenharmony_ci uint64_t reserved14 : 2; /* 31..30 */ 115d722e3fbSopenharmony_ci uint64_t SourceRectRight : 30; /* 61..32 */ 116d722e3fbSopenharmony_ci uint64_t reserved15 : 2; /* 63..62 */ 117d722e3fbSopenharmony_ci uint64_t SourceRectTop : 30; /* 93..64 */ 118d722e3fbSopenharmony_ci uint64_t reserved16 : 2; /* 95..94 */ 119d722e3fbSopenharmony_ci uint64_t SourceRectBottom : 30; /* 125..96 */ 120d722e3fbSopenharmony_ci uint64_t reserved17 : 2; /* 127..126 */ 121d722e3fbSopenharmony_ci /* 384 */ 122d722e3fbSopenharmony_ci uint64_t DestRectLeft : 14; /* 13..0 */ 123d722e3fbSopenharmony_ci uint64_t reserved18 : 2; /* 15..14 */ 124d722e3fbSopenharmony_ci uint64_t DestRectRight : 14; /* 29..16 */ 125d722e3fbSopenharmony_ci uint64_t reserved19 : 2; /* 31..30 */ 126d722e3fbSopenharmony_ci uint64_t DestRectTop : 14; /* 45..32 */ 127d722e3fbSopenharmony_ci uint64_t reserved20 : 2; /* 47..46 */ 128d722e3fbSopenharmony_ci uint64_t DestRectBottom : 14; /* 61..48 */ 129d722e3fbSopenharmony_ci uint64_t reserved21 : 2; /* 63..62 */ 130d722e3fbSopenharmony_ci uint64_t B16ScalerEnable : 1; /* 64 */ 131d722e3fbSopenharmony_ci uint64_t reserved22 : 31; /* 95..65 */ 132d722e3fbSopenharmony_ci uint64_t reserved23 : 32; /* 127..96 */ 133d722e3fbSopenharmony_ci} SlotConfig; 134d722e3fbSopenharmony_ci 135d722e3fbSopenharmony_citypedef struct { 136d722e3fbSopenharmony_ci uint64_t SlotPixelFormat : 7; /* 6..0 */ 137d722e3fbSopenharmony_ci uint64_t SlotChromaLocHORIZ : 2; /* 8..7 */ 138d722e3fbSopenharmony_ci uint64_t SlotChromaLocVert : 2; /* 10..9 */ 139d722e3fbSopenharmony_ci uint64_t SlotBlkKind : 4; /* 14..11 */ 140d722e3fbSopenharmony_ci uint64_t SlotBlkHeight : 4; /* 18..15 */ 141d722e3fbSopenharmony_ci uint64_t SlotCacheWidth : 3; /* 21..19 */ 142d722e3fbSopenharmony_ci uint64_t reserved0 : 10; /* 31..22 */ 143d722e3fbSopenharmony_ci uint64_t SlotSurfaceWidth : 14; /* 45..32 */ 144d722e3fbSopenharmony_ci uint64_t SlotSurfaceHeight : 14; /* 59..46 */ 145d722e3fbSopenharmony_ci uint64_t reserved1 : 4; /* 63..60 */ 146d722e3fbSopenharmony_ci uint64_t SlotLumaWidth : 14; /* 77..64 */ 147d722e3fbSopenharmony_ci uint64_t SlotLumaHeight : 14; /* 91..78 */ 148d722e3fbSopenharmony_ci uint64_t reserved2 : 4; /* 95..92 */ 149d722e3fbSopenharmony_ci uint64_t SlotChromaWidth : 14; /* 109..96 */ 150d722e3fbSopenharmony_ci uint64_t SlotChromaHeight : 14; /* 123..110 */ 151d722e3fbSopenharmony_ci uint64_t reserved3 : 4; /* 127..124 */ 152d722e3fbSopenharmony_ci} SlotSurfaceConfig; 153d722e3fbSopenharmony_ci 154d722e3fbSopenharmony_citypedef struct { 155d722e3fbSopenharmony_ci uint64_t luma_coeff0 : 20; /* 19..0 */ 156d722e3fbSopenharmony_ci uint64_t luma_coeff1 : 20; /* 39..20 */ 157d722e3fbSopenharmony_ci uint64_t luma_coeff2 : 20; /* 59..40 */ 158d722e3fbSopenharmony_ci uint64_t luma_r_shift : 4; /* 63..60 */ 159d722e3fbSopenharmony_ci uint64_t luma_coeff3 : 20; /* 83..64 */ 160d722e3fbSopenharmony_ci uint64_t LumaKeyLower : 10; /* 93..84 */ 161d722e3fbSopenharmony_ci uint64_t LumaKeyUpper : 10; /* 103..94 */ 162d722e3fbSopenharmony_ci uint64_t LumaKeyEnabled : 1; /* 104 */ 163d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 106..105 */ 164d722e3fbSopenharmony_ci uint64_t reserved1 : 21; /* 127..107 */ 165d722e3fbSopenharmony_ci} LumaKeyStruct; 166d722e3fbSopenharmony_ci 167d722e3fbSopenharmony_citypedef struct { 168d722e3fbSopenharmony_ci uint64_t matrix_coeff00 : 20; /* 19..0 */ 169d722e3fbSopenharmony_ci uint64_t matrix_coeff10 : 20; /* 39..20 */ 170d722e3fbSopenharmony_ci uint64_t matrix_coeff20 : 20; /* 59..40 */ 171d722e3fbSopenharmony_ci uint64_t matrix_r_shift : 4; /* 63..60 */ 172d722e3fbSopenharmony_ci uint64_t matrix_coeff01 : 20; /* 83..64 */ 173d722e3fbSopenharmony_ci uint64_t matrix_coeff11 : 20; /* 103..84 */ 174d722e3fbSopenharmony_ci uint64_t matrix_coeff21 : 20; /* 123..104 */ 175d722e3fbSopenharmony_ci uint64_t reserved0 : 3; /* 126..124 */ 176d722e3fbSopenharmony_ci uint64_t matrix_enable : 1; /* 127 */ 177d722e3fbSopenharmony_ci /* 128 */ 178d722e3fbSopenharmony_ci uint64_t matrix_coeff02 : 20; /* 19..0 */ 179d722e3fbSopenharmony_ci uint64_t matrix_coeff12 : 20; /* 39..20 */ 180d722e3fbSopenharmony_ci uint64_t matrix_coeff22 : 20; /* 59..40 */ 181d722e3fbSopenharmony_ci uint64_t reserved1 : 4; /* 63..60 */ 182d722e3fbSopenharmony_ci uint64_t matrix_coeff03 : 20; /* 83..64 */ 183d722e3fbSopenharmony_ci uint64_t matrix_coeff13 : 20; /* 103..84 */ 184d722e3fbSopenharmony_ci uint64_t matrix_coeff23 : 20; /* 123..104 */ 185d722e3fbSopenharmony_ci uint64_t reserved2 : 4; /* 127..124 */ 186d722e3fbSopenharmony_ci} MatrixStruct; 187d722e3fbSopenharmony_ci 188d722e3fbSopenharmony_citypedef struct { 189d722e3fbSopenharmony_ci uint64_t ClearRect0Left : 14; /* 13..0 */ 190d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 15..14 */ 191d722e3fbSopenharmony_ci uint64_t ClearRect0Right : 14; /* 29..16 */ 192d722e3fbSopenharmony_ci uint64_t reserved1 : 2; /* 31..30 */ 193d722e3fbSopenharmony_ci uint64_t ClearRect0Top : 14; /* 45..32 */ 194d722e3fbSopenharmony_ci uint64_t reserved2 : 2; /* 47..46 */ 195d722e3fbSopenharmony_ci uint64_t ClearRect0Bottom : 14; /* 61..48 */ 196d722e3fbSopenharmony_ci uint64_t reserved3 : 2; /* 63..62 */ 197d722e3fbSopenharmony_ci uint64_t ClearRect1Left : 14; /* 77..64 */ 198d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 79..78 */ 199d722e3fbSopenharmony_ci uint64_t ClearRect1Right : 14; /* 93..80 */ 200d722e3fbSopenharmony_ci uint64_t reserved5 : 2; /* 95..94 */ 201d722e3fbSopenharmony_ci uint64_t ClearRect1Top : 14; /* 109..96 */ 202d722e3fbSopenharmony_ci uint64_t reserved6 : 2; /* 111..110 */ 203d722e3fbSopenharmony_ci uint64_t ClearRect1Bottom : 14; /* 125..112 */ 204d722e3fbSopenharmony_ci uint64_t reserved7 : 2; /* 127..126 */ 205d722e3fbSopenharmony_ci} ClearRectStruct; 206d722e3fbSopenharmony_ci 207d722e3fbSopenharmony_citypedef struct { 208d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 1..0 */ 209d722e3fbSopenharmony_ci uint64_t AlphaK1 : 8; /* 9..2 */ 210d722e3fbSopenharmony_ci uint64_t reserved1 : 6; /* 17..10 */ 211d722e3fbSopenharmony_ci uint64_t AlphaK2 : 8; /* 25..18 */ 212d722e3fbSopenharmony_ci uint64_t reserved2 : 6; /* 31..26 */ 213d722e3fbSopenharmony_ci uint64_t SrcFactCMatchSelect : 3; /* 34..32 */ 214d722e3fbSopenharmony_ci uint64_t reserved3 : 1; /* 35 */ 215d722e3fbSopenharmony_ci uint64_t DstFactCMatchSelect : 3; /* 38..36 */ 216d722e3fbSopenharmony_ci uint64_t reserved4 : 1; /* 39 */ 217d722e3fbSopenharmony_ci uint64_t SrcFactAMatchSelect : 3; /* 42..40 */ 218d722e3fbSopenharmony_ci uint64_t reserved5 : 1; /* 43 */ 219d722e3fbSopenharmony_ci uint64_t DstFactAMatchSelect : 3; /* 46..44 */ 220d722e3fbSopenharmony_ci uint64_t reserved6 : 1; /* 47 */ 221d722e3fbSopenharmony_ci uint64_t reserved7 : 4; /* 51..48 */ 222d722e3fbSopenharmony_ci uint64_t reserved8 : 4; /* 55..52 */ 223d722e3fbSopenharmony_ci uint64_t reserved9 : 4; /* 59..56 */ 224d722e3fbSopenharmony_ci uint64_t reserved10 : 4; /* 63..60 */ 225d722e3fbSopenharmony_ci uint64_t reserved11 : 2; /* 65..64 */ 226d722e3fbSopenharmony_ci uint64_t OverrideR : 10; /* 75..66 */ 227d722e3fbSopenharmony_ci uint64_t OverrideG : 10; /* 85..76 */ 228d722e3fbSopenharmony_ci uint64_t OverrideB : 10; /* 95..86 */ 229d722e3fbSopenharmony_ci uint64_t reserved12 : 2; /* 97..96 */ 230d722e3fbSopenharmony_ci uint64_t OverrideA : 8; /* 105..98 */ 231d722e3fbSopenharmony_ci uint64_t reserved13 : 2; /* 107..106 */ 232d722e3fbSopenharmony_ci uint64_t UseOverrideR : 1; /* 108 */ 233d722e3fbSopenharmony_ci uint64_t UseOverrideG : 1; /* 109 */ 234d722e3fbSopenharmony_ci uint64_t UseOverrideB : 1; /* 110 */ 235d722e3fbSopenharmony_ci uint64_t UseOverrideA : 1; /* 111 */ 236d722e3fbSopenharmony_ci uint64_t MaskR : 1; /* 112 */ 237d722e3fbSopenharmony_ci uint64_t MaskG : 1; /* 113 */ 238d722e3fbSopenharmony_ci uint64_t MaskB : 1; /* 114 */ 239d722e3fbSopenharmony_ci uint64_t MaskA : 1; /* 115 */ 240d722e3fbSopenharmony_ci uint64_t reserved14 : 12; /* 127..116 */ 241d722e3fbSopenharmony_ci} BlendingSlotStruct; 242d722e3fbSopenharmony_ci 243d722e3fbSopenharmony_citypedef struct { 244d722e3fbSopenharmony_ci uint64_t AlphaFillMode : 3; /* 2..0 */ 245d722e3fbSopenharmony_ci uint64_t AlphaFillSlot : 3; /* 5..3 */ 246d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 6..5 */ 247d722e3fbSopenharmony_ci uint64_t BackgroundAlpha : 8; /* 15..7 */ 248d722e3fbSopenharmony_ci uint64_t BackgroundR : 10; /* 25..16 */ 249d722e3fbSopenharmony_ci uint64_t BackgroundG : 10; /* 35..26 */ 250d722e3fbSopenharmony_ci uint64_t BackgroundB : 10; /* 45..36 */ 251d722e3fbSopenharmony_ci uint64_t RegammaMode : 2; /* 47..46 */ 252d722e3fbSopenharmony_ci uint64_t OutputFlipX : 1; /* 48 */ 253d722e3fbSopenharmony_ci uint64_t OutputFlipY : 1; /* 49 */ 254d722e3fbSopenharmony_ci uint64_t OutputTranspose : 1; /* 50 */ 255d722e3fbSopenharmony_ci uint64_t reserved1 : 1; /* 51 */ 256d722e3fbSopenharmony_ci uint64_t reserved2 : 12; /* 63..52 */ 257d722e3fbSopenharmony_ci uint64_t TargetRectLeft : 14; /* 77..64 */ 258d722e3fbSopenharmony_ci uint64_t reserved3 : 2; /* 79..78 */ 259d722e3fbSopenharmony_ci uint64_t TargetRectRight : 14; /* 93..80 */ 260d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 95..94 */ 261d722e3fbSopenharmony_ci uint64_t TargetRectTop : 14; /* 109..96 */ 262d722e3fbSopenharmony_ci uint64_t reserved5 : 2; /* 111..110 */ 263d722e3fbSopenharmony_ci uint64_t TargetRectBottom : 14; /* 125..112 */ 264d722e3fbSopenharmony_ci uint64_t reserved6 : 2; /* 127..126 */ 265d722e3fbSopenharmony_ci} OutputConfig; 266d722e3fbSopenharmony_ci 267d722e3fbSopenharmony_citypedef struct { 268d722e3fbSopenharmony_ci uint64_t OutPixelFormat : 7; /* 6..0 */ 269d722e3fbSopenharmony_ci uint64_t OutChromaLocHoriz : 2; /* 8..7 */ 270d722e3fbSopenharmony_ci uint64_t OutChromaLocVert : 2; /* 10..9 */ 271d722e3fbSopenharmony_ci uint64_t OutBlkKind : 4; /* 14..11 */ 272d722e3fbSopenharmony_ci uint64_t OutBlkHeight : 4; /* 18..15 */ 273d722e3fbSopenharmony_ci uint64_t reserved0 : 3; /* 21..19 */ 274d722e3fbSopenharmony_ci uint64_t reserved1 : 10; /* 31..22 */ 275d722e3fbSopenharmony_ci uint64_t OutSurfaceWidth : 14; /* 45..32 */ 276d722e3fbSopenharmony_ci uint64_t OutSurfaceHeight : 14; /* 59..46 */ 277d722e3fbSopenharmony_ci uint64_t reserved2 : 4; /* 63..60 */ 278d722e3fbSopenharmony_ci uint64_t OutLumaWidth : 14; /* 77..64 */ 279d722e3fbSopenharmony_ci uint64_t OutLumaHeight : 14; /* 91..78 */ 280d722e3fbSopenharmony_ci uint64_t reserved3 : 4; /* 95..92 */ 281d722e3fbSopenharmony_ci uint64_t OutChromaWidth : 14; /* 109..96 */ 282d722e3fbSopenharmony_ci uint64_t OutChromaHeight : 14; /* 123..110 */ 283d722e3fbSopenharmony_ci uint64_t reserved4 : 4; /* 127..124 */ 284d722e3fbSopenharmony_ci} OutputSurfaceConfig; 285d722e3fbSopenharmony_ci 286d722e3fbSopenharmony_citypedef struct { 287d722e3fbSopenharmony_ci uint64_t f00 : 10; /* 9..0 */ 288d722e3fbSopenharmony_ci uint64_t f10 : 10; /* 19..10 */ 289d722e3fbSopenharmony_ci uint64_t f20 : 10; /* 29..20 */ 290d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 31..30 */ 291d722e3fbSopenharmony_ci uint64_t f01 : 10; /* 41..32 */ 292d722e3fbSopenharmony_ci uint64_t f11 : 10; /* 51..42 */ 293d722e3fbSopenharmony_ci uint64_t f21 : 10; /* 61..52 */ 294d722e3fbSopenharmony_ci uint64_t reserved1 : 2; /* 63..62 */ 295d722e3fbSopenharmony_ci uint64_t f02 : 10; /* 73..64 */ 296d722e3fbSopenharmony_ci uint64_t f12 : 10; /* 83..74 */ 297d722e3fbSopenharmony_ci uint64_t f22 : 10; /* 93..84 */ 298d722e3fbSopenharmony_ci uint64_t reserved2 : 2; /* 95..94 */ 299d722e3fbSopenharmony_ci uint64_t f03 : 10; /* 105..96 */ 300d722e3fbSopenharmony_ci uint64_t f13 : 10; /* 115..106 */ 301d722e3fbSopenharmony_ci uint64_t f23 : 10; /* 125..116 */ 302d722e3fbSopenharmony_ci uint64_t reserved3 : 2; /* 127..126 */ 303d722e3fbSopenharmony_ci} FilterCoeffStruct; 304d722e3fbSopenharmony_ci 305d722e3fbSopenharmony_citypedef struct { 306d722e3fbSopenharmony_ci uint64_t DownsampleHoriz : 11; /* 10..0 */ 307d722e3fbSopenharmony_ci uint64_t reserved0 : 5; /* 15..11 */ 308d722e3fbSopenharmony_ci uint64_t DownsampleVert : 11; /* 26..16 */ 309d722e3fbSopenharmony_ci uint64_t reserved1 : 5; /* 31..27 */ 310d722e3fbSopenharmony_ci uint64_t reserved2 : 32; /* 63..32 */ 311d722e3fbSopenharmony_ci uint64_t reserved3 : 32; /* 95..64 */ 312d722e3fbSopenharmony_ci uint64_t reserved4 : 32; /* 127..96 */ 313d722e3fbSopenharmony_ci} PipeConfig; 314d722e3fbSopenharmony_ci 315d722e3fbSopenharmony_citypedef struct { 316d722e3fbSopenharmony_ci uint64_t OldCadence : 32; /* 31..0 */ 317d722e3fbSopenharmony_ci uint64_t OldDiff : 32; /* 63..32 */ 318d722e3fbSopenharmony_ci uint64_t OldWeave : 32; /* 95..64 */ 319d722e3fbSopenharmony_ci uint64_t OlderWeave : 32; /* 127..96 */ 320d722e3fbSopenharmony_ci} SlotHistoryBuffer; 321d722e3fbSopenharmony_ci 322d722e3fbSopenharmony_citypedef struct { 323d722e3fbSopenharmony_ci uint64_t crc0 : 32; /* 31..0 */ 324d722e3fbSopenharmony_ci uint64_t crc1 : 32; /* 63..32 */ 325d722e3fbSopenharmony_ci uint64_t crc2 : 32; /* 95..64 */ 326d722e3fbSopenharmony_ci uint64_t crc3 : 32; /* 127..96 */ 327d722e3fbSopenharmony_ci} PartitionCrcStruct; 328d722e3fbSopenharmony_ci 329d722e3fbSopenharmony_citypedef struct { 330d722e3fbSopenharmony_ci uint64_t crc0 : 32; /* 31..0 */ 331d722e3fbSopenharmony_ci uint64_t crc1 : 32; /* 63..32 */ 332d722e3fbSopenharmony_ci} SlotCrcStruct; 333d722e3fbSopenharmony_ci 334d722e3fbSopenharmony_citypedef struct { 335d722e3fbSopenharmony_ci uint64_t ErrorStatus : 32; /* 31..0 */ 336d722e3fbSopenharmony_ci uint64_t CycleCount : 32; /* 63..32 */ 337d722e3fbSopenharmony_ci uint64_t reserved0 : 32; /* 95..64 */ 338d722e3fbSopenharmony_ci uint64_t reserved1 : 32; /* 127..96 */ 339d722e3fbSopenharmony_ci} StatusStruct; 340d722e3fbSopenharmony_ci 341d722e3fbSopenharmony_citypedef struct { 342d722e3fbSopenharmony_ci uint64_t coeff_0 : 10; /* 9..0 */ 343d722e3fbSopenharmony_ci uint64_t reserved0 : 6; /* 15..10 */ 344d722e3fbSopenharmony_ci uint64_t coeff_1 : 10; /* 25..16 */ 345d722e3fbSopenharmony_ci uint64_t reserved1 : 6; /* 31..26 */ 346d722e3fbSopenharmony_ci uint64_t coeff_2 : 10; /* 41..32 */ 347d722e3fbSopenharmony_ci uint64_t reserved2 : 6; /* 47..42 */ 348d722e3fbSopenharmony_ci uint64_t coeff_3 : 10; /* 57..48 */ 349d722e3fbSopenharmony_ci uint64_t reserved3 : 6; /* 63..58 */ 350d722e3fbSopenharmony_ci} CoeffPhaseParamStruct; 351d722e3fbSopenharmony_ci 352d722e3fbSopenharmony_citypedef struct { 353d722e3fbSopenharmony_ci uint64_t GeoTranEn : 1; /* 0 */ 354d722e3fbSopenharmony_ci uint64_t GeoTranMode : 2; /* 2..1 */ 355d722e3fbSopenharmony_ci uint64_t IPTMode : 1; /* 3 */ 356d722e3fbSopenharmony_ci uint64_t PixelFilterType : 2; /* 5..4 */ 357d722e3fbSopenharmony_ci uint64_t PixelFormat : 7; /* 12..6 */ 358d722e3fbSopenharmony_ci uint64_t CacheWidth : 3; /* 15..13 */ 359d722e3fbSopenharmony_ci uint64_t SrcBlkKind : 4; /* 19..16 */ 360d722e3fbSopenharmony_ci uint64_t SrcBlkHeight : 4; /* 23..20 */ 361d722e3fbSopenharmony_ci uint64_t DestBlkKind : 4; /* 27..24 */ 362d722e3fbSopenharmony_ci uint64_t DestBlkHeight : 4; /* 31..28 */ 363d722e3fbSopenharmony_ci uint64_t MskBitMapEn : 1; /* 32 */ 364d722e3fbSopenharmony_ci uint64_t MaskedPixelFillMode : 1; /* 33 */ 365d722e3fbSopenharmony_ci uint64_t XSobelMode : 2; /* 35..34 */ 366d722e3fbSopenharmony_ci uint64_t SubFrameEn : 1; /* 36 */ 367d722e3fbSopenharmony_ci uint64_t reserved0 : 3; /* 39..37 */ 368d722e3fbSopenharmony_ci uint64_t XSobelBlkKind : 4; /* 43..40 */ 369d722e3fbSopenharmony_ci uint64_t XSobelBlkHeight : 4; /* 47..44 */ 370d722e3fbSopenharmony_ci uint64_t XSobelDSBlkKind : 4; /* 51..48 */ 371d722e3fbSopenharmony_ci uint64_t XSobelDSBlkHeight : 4; /* 55..52 */ 372d722e3fbSopenharmony_ci uint64_t reserved1 : 8; /* 63..56 */ 373d722e3fbSopenharmony_ci uint64_t NonFixedPatchEn : 1; /* 64 */ 374d722e3fbSopenharmony_ci uint64_t HorRegionNum : 2; /* 66..65 */ 375d722e3fbSopenharmony_ci uint64_t VerRegionNum : 2; /* 68..67 */ 376d722e3fbSopenharmony_ci uint64_t reserved2 : 3; /* 71..69 */ 377d722e3fbSopenharmony_ci uint64_t log2HorSpace_0 : 3; /* 74..72 */ 378d722e3fbSopenharmony_ci uint64_t log2VerSpace_0 : 3; /* 77..75 */ 379d722e3fbSopenharmony_ci uint64_t log2HorSpace_1 : 3; /* 80..78 */ 380d722e3fbSopenharmony_ci uint64_t log2VerSpace_1 : 3; /* 83..81 */ 381d722e3fbSopenharmony_ci uint64_t log2HorSpace_2 : 3; /* 86..84 */ 382d722e3fbSopenharmony_ci uint64_t log2VerSpace_2 : 3; /* 89..87 */ 383d722e3fbSopenharmony_ci uint64_t log2HorSpace_3 : 3; /* 92..90 */ 384d722e3fbSopenharmony_ci uint64_t log2VerSpace_3 : 3; /* 95..93 */ 385d722e3fbSopenharmony_ci uint64_t horRegionWidth_0 : 14; /* 109..96 */ 386d722e3fbSopenharmony_ci uint64_t reserved3 : 2; /* 111..110 */ 387d722e3fbSopenharmony_ci uint64_t horRegionWidth_1 : 14; /* 125..112 */ 388d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 127..126 */ 389d722e3fbSopenharmony_ci uint64_t horRegionWidth_2 : 14; /* 141..128 */ 390d722e3fbSopenharmony_ci uint64_t reserved5 : 2; /* 143..142 */ 391d722e3fbSopenharmony_ci uint64_t horRegionWidth_3 : 14; /* 157..144 */ 392d722e3fbSopenharmony_ci uint64_t reserved6 : 2; /* 159..158 */ 393d722e3fbSopenharmony_ci uint64_t verRegionHeight_0 : 14; /* 173..160 */ 394d722e3fbSopenharmony_ci uint64_t reserved7 : 2; /* 175..174 */ 395d722e3fbSopenharmony_ci uint64_t verRegionHeight_1 : 14; /* 189..176 */ 396d722e3fbSopenharmony_ci uint64_t reserved8 : 2; /* 191..190 */ 397d722e3fbSopenharmony_ci uint64_t verRegionHeight_2 : 14; /* 205..192 */ 398d722e3fbSopenharmony_ci uint64_t reserved9 : 2; /* 207..206 */ 399d722e3fbSopenharmony_ci uint64_t verRegionHeight_3 : 14; /* 221..208 */ 400d722e3fbSopenharmony_ci uint64_t reserved10 : 2; /* 223..222 */ 401d722e3fbSopenharmony_ci uint64_t IPT_M11 : 32; /* 255..224 */ 402d722e3fbSopenharmony_ci uint64_t IPT_M12 : 32; /* 287..256 */ 403d722e3fbSopenharmony_ci uint64_t IPT_M13 : 32; /* 319..288 */ 404d722e3fbSopenharmony_ci uint64_t IPT_M21 : 32; /* 351..320 */ 405d722e3fbSopenharmony_ci uint64_t IPT_M22 : 32; /* 383..352 */ 406d722e3fbSopenharmony_ci uint64_t IPT_M23 : 32; /* 415..384 */ 407d722e3fbSopenharmony_ci uint64_t IPT_M31 : 32; /* 447..416 */ 408d722e3fbSopenharmony_ci uint64_t IPT_M32 : 32; /* 479..448 */ 409d722e3fbSopenharmony_ci uint64_t IPT_M33 : 32; /* 511..480 */ 410d722e3fbSopenharmony_ci uint64_t SourceRectLeft : 14; /* 525..512 */ 411d722e3fbSopenharmony_ci uint64_t reserved11 : 2; /* 527..526 */ 412d722e3fbSopenharmony_ci uint64_t SourceRectRight : 14; /* 541..528 */ 413d722e3fbSopenharmony_ci uint64_t reserved12 : 2; /* 543..542 */ 414d722e3fbSopenharmony_ci uint64_t SourceRectTop : 14; /* 557..544 */ 415d722e3fbSopenharmony_ci uint64_t reserved13 : 2; /* 559..558 */ 416d722e3fbSopenharmony_ci uint64_t SourceRectBottom : 14; /* 573..560 */ 417d722e3fbSopenharmony_ci uint64_t reserved14; /* 575..574 */ 418d722e3fbSopenharmony_ci uint64_t SrcImgWidth : 14; /* 589..576 */ 419d722e3fbSopenharmony_ci uint64_t reserved15 : 2; /* 591..590 */ 420d722e3fbSopenharmony_ci uint64_t SrcImgHeight : 14; /* 605..592 */ 421d722e3fbSopenharmony_ci uint64_t reserved16 : 2; /* 607..606 */ 422d722e3fbSopenharmony_ci uint64_t SrcSfcLumaWidth : 14; /* 621..608 */ 423d722e3fbSopenharmony_ci uint64_t reserved17 : 2; /* 623..622 */ 424d722e3fbSopenharmony_ci uint64_t SrcSfcLumaHeight : 14; /* 637..624 */ 425d722e3fbSopenharmony_ci uint64_t reserved18 : 2; /* 639..638 */ 426d722e3fbSopenharmony_ci uint64_t SrcSfcChromaWidth : 14; /* 653..640 */ 427d722e3fbSopenharmony_ci uint64_t reserved19 : 2; /* 655..654 */ 428d722e3fbSopenharmony_ci uint64_t SrcSfcChromaHeight : 14; /* 669..656 */ 429d722e3fbSopenharmony_ci uint64_t reserved20 : 2; /* 671..670 */ 430d722e3fbSopenharmony_ci uint64_t DestRectLeft : 14; /* 685..672 */ 431d722e3fbSopenharmony_ci uint64_t reserved21 : 2; /* 687..686 */ 432d722e3fbSopenharmony_ci uint64_t DestRectRight : 14; /* 701..688 */ 433d722e3fbSopenharmony_ci uint64_t reserved22 : 2; /* 703..702 */ 434d722e3fbSopenharmony_ci uint64_t DestRectTop : 14; /* 717..704 */ 435d722e3fbSopenharmony_ci uint64_t reserved23 : 2; /* 719..718 */ 436d722e3fbSopenharmony_ci uint64_t DestRectBottom : 14; /* 733..720 */ 437d722e3fbSopenharmony_ci uint64_t reserved24 : 2; /* 735..734 */ 438d722e3fbSopenharmony_ci uint64_t SubFrameRectTop : 14; /* 749..736 */ 439d722e3fbSopenharmony_ci uint64_t reserved25 : 2; /* 751..750 */ 440d722e3fbSopenharmony_ci uint64_t SubFrameRectBottom : 14; /* 765..752 */ 441d722e3fbSopenharmony_ci uint64_t reserved26 : 2; /* 767..766 */ 442d722e3fbSopenharmony_ci uint64_t DestSfcLumaWidth : 14; /* 781..768 */ 443d722e3fbSopenharmony_ci uint64_t reserved27 : 2; /* 783..782 */ 444d722e3fbSopenharmony_ci uint64_t DestSfcLumaHeight : 14; /* 797..784 */ 445d722e3fbSopenharmony_ci uint64_t reserved28 : 2; /* 799..798 */ 446d722e3fbSopenharmony_ci uint64_t DestSfcChromaWidth : 14; /* 813..800 */ 447d722e3fbSopenharmony_ci uint64_t reserved29 : 2; /* 815..814 */ 448d722e3fbSopenharmony_ci uint64_t DestSfcChromaHeight : 14; /* 829..816 */ 449d722e3fbSopenharmony_ci uint64_t reserved30 : 2; /* 831..830 */ 450d722e3fbSopenharmony_ci uint64_t SparseWarpMapWidth : 14; /* 845..832 */ 451d722e3fbSopenharmony_ci uint64_t reserved31 : 2; /* 847..846 */ 452d722e3fbSopenharmony_ci uint64_t SparseWarpMapHeight : 14; /* 861..848 */ 453d722e3fbSopenharmony_ci uint64_t reserved32 : 2; /* 863..862 */ 454d722e3fbSopenharmony_ci uint64_t SparseWarpMapStride : 14; /* 877..864 */ 455d722e3fbSopenharmony_ci uint64_t reserved33 : 2; /* 879..878 */ 456d722e3fbSopenharmony_ci uint64_t MaskBitMapWidth : 14; /* 893..880 */ 457d722e3fbSopenharmony_ci uint64_t reserved34 : 2; /* 895..894 */ 458d722e3fbSopenharmony_ci uint64_t MaskBitMapHeight : 14; /* 909..896 */ 459d722e3fbSopenharmony_ci uint64_t reserved35 : 2; /* 911..910 */ 460d722e3fbSopenharmony_ci uint64_t MaskBitMapStride : 14; /* 925..912 */ 461d722e3fbSopenharmony_ci uint64_t reserved36 : 2; /* 927..926 */ 462d722e3fbSopenharmony_ci uint64_t XSobelWidth : 14; /* 941..928 */ 463d722e3fbSopenharmony_ci uint64_t reserved37 : 2; /* 943..942 */ 464d722e3fbSopenharmony_ci uint64_t XSobelHeight : 14; /* 957..944 */ 465d722e3fbSopenharmony_ci uint64_t reserved38 : 2; /* 959..958 */ 466d722e3fbSopenharmony_ci uint64_t XSobelStride : 14; /* 973..960 */ 467d722e3fbSopenharmony_ci uint64_t reserved39 : 2; /* 975..974 */ 468d722e3fbSopenharmony_ci uint64_t DSStride : 14; /* 989..976 */ 469d722e3fbSopenharmony_ci uint64_t reserved40 : 2; /* 991..990 */ 470d722e3fbSopenharmony_ci uint64_t XSobelTopOffset : 32; /* 1023..992 */ 471d722e3fbSopenharmony_ci uint64_t reserved41 : 32; /* 1055..1024 */ 472d722e3fbSopenharmony_ci uint64_t maskY : 16; /* 1071..1056 */ 473d722e3fbSopenharmony_ci uint64_t maskU : 16; /* 1087..1072 */ 474d722e3fbSopenharmony_ci uint64_t maskV : 16; /* 1103..1088 */ 475d722e3fbSopenharmony_ci uint64_t reserved42 : 16; /* 1119..1104 */ 476d722e3fbSopenharmony_ci} GeoTranConfigParamStruct; 477d722e3fbSopenharmony_ci 478d722e3fbSopenharmony_citypedef struct { 479d722e3fbSopenharmony_ci uint64_t TNR3En : 1; /* 0 */ 480d722e3fbSopenharmony_ci uint64_t BetaBlendingEn : 1; /* 1 */ 481d722e3fbSopenharmony_ci uint64_t AlphaBlendingEn : 1; /* 2 */ 482d722e3fbSopenharmony_ci uint64_t AlphaSmoothEn : 1; /* 3 */ 483d722e3fbSopenharmony_ci uint64_t TempAlphaRestrictEn : 1; /* 4 */ 484d722e3fbSopenharmony_ci uint64_t AlphaClipEn : 1; /* 5 */ 485d722e3fbSopenharmony_ci uint64_t BFRangeEn : 1; /* 6 */ 486d722e3fbSopenharmony_ci uint64_t BFDomainEn : 1; /* 7 */ 487d722e3fbSopenharmony_ci uint64_t BFRangeLumaShift : 4; /* 11..8 */ 488d722e3fbSopenharmony_ci uint64_t BFRangeChromaShift : 4; /* 15..12 */ 489d722e3fbSopenharmony_ci uint64_t SADMultiplier : 6; /* 21..16 */ 490d722e3fbSopenharmony_ci uint64_t reserved1 : 2; /* 23..22 */ 491d722e3fbSopenharmony_ci uint64_t SADWeightLuma : 6; /* 29..24 */ 492d722e3fbSopenharmony_ci uint64_t reserved2 : 2; /* 31..30 */ 493d722e3fbSopenharmony_ci uint64_t TempAlphaRestrictIncCap : 11; /* 42..32 */ 494d722e3fbSopenharmony_ci uint64_t reserved3 : 5; /* 47..43 */ 495d722e3fbSopenharmony_ci uint64_t AlphaScaleIIR : 11; /* 58..48 */ 496d722e3fbSopenharmony_ci uint64_t reserved4 : 5; /* 63..59 */ 497d722e3fbSopenharmony_ci uint64_t AlphaClipMaxLuma : 11; /* 74..64 */ 498d722e3fbSopenharmony_ci uint64_t reserved5 : 5; /* 79..75 */ 499d722e3fbSopenharmony_ci uint64_t AlphaClipMinLuma : 11; /* 90..80 */ 500d722e3fbSopenharmony_ci uint64_t reserved6 : 5; /* 95..91 */ 501d722e3fbSopenharmony_ci uint64_t AlphaClipMaxChroma : 11; /* 106..96 */ 502d722e3fbSopenharmony_ci uint64_t reserved7 : 5; /* 111..107 */ 503d722e3fbSopenharmony_ci uint64_t AlphaClipMinChroma : 11; /* 122..112 */ 504d722e3fbSopenharmony_ci uint64_t reserved8 : 5; /* 127..123 */ 505d722e3fbSopenharmony_ci uint64_t BetaCalcMaxBeta : 11; /* 138..128 */ 506d722e3fbSopenharmony_ci uint64_t reserved9 : 5; /* 143..139 */ 507d722e3fbSopenharmony_ci uint64_t BetaCalcMinBeta : 11; /* 154..144 */ 508d722e3fbSopenharmony_ci uint64_t reserved10 : 5; /* 159..155 */ 509d722e3fbSopenharmony_ci uint64_t BetaCalcBetaX1 : 11; /* 170..160 */ 510d722e3fbSopenharmony_ci uint64_t reserved11 : 5; /* 175..171 */ 511d722e3fbSopenharmony_ci uint64_t BetaCalcBetaX2 : 11; /* 186..176 */ 512d722e3fbSopenharmony_ci uint64_t reserved12 : 5; /* 191..187 */ 513d722e3fbSopenharmony_ci uint64_t BetaCalcStepBeta : 11; /* 202..192 */ 514d722e3fbSopenharmony_ci uint64_t reserved13 : 5; /* 207..203 */ 515d722e3fbSopenharmony_ci uint64_t reserved14 : 16; /* 223..208 */ 516d722e3fbSopenharmony_ci uint64_t BFDomainLumaCoeffC00 : 7; /* 230..224 */ 517d722e3fbSopenharmony_ci uint64_t reserved15 : 1; /* 231 */ 518d722e3fbSopenharmony_ci uint64_t BFDomainLumaCoeffC01 : 7; /* 238..232 */ 519d722e3fbSopenharmony_ci uint64_t reserved16 : 1; /* 239 */ 520d722e3fbSopenharmony_ci uint64_t BFDomainLumaCoeffC02 : 7; /* 246..240 */ 521d722e3fbSopenharmony_ci uint64_t reserved17 : 1; /* 247 */ 522d722e3fbSopenharmony_ci uint64_t BFDomainLumaCoeffC11 : 7; /* 254..248 */ 523d722e3fbSopenharmony_ci uint64_t reserved18 : 1; /* 255 */ 524d722e3fbSopenharmony_ci uint64_t BFDomainLumaCoeffC12 : 7; /* 262..256 */ 525d722e3fbSopenharmony_ci uint64_t reserved19 : 1; /* 263 */ 526d722e3fbSopenharmony_ci uint64_t BFDomainLumaCoeffC22 : 7; /* 270..264 */ 527d722e3fbSopenharmony_ci uint64_t reserved20 : 1; /* 271 */ 528d722e3fbSopenharmony_ci uint64_t reserved21 : 16; /* 287..272 */ 529d722e3fbSopenharmony_ci uint64_t BFDomainChromaCoeffC00 : 7; /* 294..288 */ 530d722e3fbSopenharmony_ci uint64_t reserved22 : 1; /* 295 */ 531d722e3fbSopenharmony_ci uint64_t BFDomainChromaCoeffC01 : 7; /* 302..296 */ 532d722e3fbSopenharmony_ci uint64_t reserved23 : 1; /* 303 */ 533d722e3fbSopenharmony_ci uint64_t BFDomainChromaCoeffC02 : 7; /* 310..304 */ 534d722e3fbSopenharmony_ci uint64_t reserved24 : 1; /* 311 */ 535d722e3fbSopenharmony_ci uint64_t BFDomainChromaCoeffC11 : 7; /* 318..312 */ 536d722e3fbSopenharmony_ci uint64_t reserved25 : 1; /* 319 */ 537d722e3fbSopenharmony_ci uint64_t BFDomainChromaCoeffC12 : 7; /* 326..320 */ 538d722e3fbSopenharmony_ci uint64_t reserved26 : 1; /* 327 */ 539d722e3fbSopenharmony_ci uint64_t BFDomainChromaCoeffC22 : 7; /* 334..328 */ 540d722e3fbSopenharmony_ci uint64_t reserved27 : 1; /* 335 */ 541d722e3fbSopenharmony_ci uint64_t reserved28 : 16; /* 351..336 */ 542d722e3fbSopenharmony_ci uint64_t LeftBufSize : 32; /* 383..352 */ 543d722e3fbSopenharmony_ci uint64_t TopBufSize : 32; /* 415..384 */ 544d722e3fbSopenharmony_ci uint64_t AlphaSufStride : 14; /* 429..416 */ 545d722e3fbSopenharmony_ci uint64_t reserved29 : 18; /* 447..430 */ 546d722e3fbSopenharmony_ci} TNR3ConfigParamStruct; 547d722e3fbSopenharmony_ci 548d722e3fbSopenharmony_citypedef struct { 549d722e3fbSopenharmony_ci uint64_t item0 : 7; /* 6..0 */ 550d722e3fbSopenharmony_ci uint64_t reserved0 : 9; /* 15..7 */ 551d722e3fbSopenharmony_ci uint64_t item1 : 7; /* 22..16 */ 552d722e3fbSopenharmony_ci uint64_t reserved1 : 9; /* 31..23 */ 553d722e3fbSopenharmony_ci uint64_t item2 : 7; /* 38..32 */ 554d722e3fbSopenharmony_ci uint64_t reserved2 : 9; /* 47..39 */ 555d722e3fbSopenharmony_ci uint64_t item3 : 7; /* 54..48 */ 556d722e3fbSopenharmony_ci uint64_t reserved3 : 9; /* 63..55 */ 557d722e3fbSopenharmony_ci} BFRangeTableItems; 558d722e3fbSopenharmony_ci 559d722e3fbSopenharmony_citypedef struct { 560d722e3fbSopenharmony_ci SlotConfig slotConfig; 561d722e3fbSopenharmony_ci SlotSurfaceConfig slotSurfaceConfig; 562d722e3fbSopenharmony_ci LumaKeyStruct lumaKeyStruct; 563d722e3fbSopenharmony_ci MatrixStruct colorMatrixStruct; 564d722e3fbSopenharmony_ci MatrixStruct gamutMatrixStruct; 565d722e3fbSopenharmony_ci BlendingSlotStruct blendingSlotStruct; 566d722e3fbSopenharmony_ci} SlotStruct; 567d722e3fbSopenharmony_ci 568d722e3fbSopenharmony_citypedef struct { 569d722e3fbSopenharmony_ci FilterCoeffStruct filterCoeffStruct[520]; 570d722e3fbSopenharmony_ci} FilterStruct; 571d722e3fbSopenharmony_ci 572d722e3fbSopenharmony_citypedef struct { 573d722e3fbSopenharmony_ci PipeConfig pipeConfig; 574d722e3fbSopenharmony_ci OutputConfig outputConfig; 575d722e3fbSopenharmony_ci OutputSurfaceConfig outputSurfaceConfig; 576d722e3fbSopenharmony_ci MatrixStruct outColorMatrixStruct; 577d722e3fbSopenharmony_ci ClearRectStruct clearRectStruct[4]; 578d722e3fbSopenharmony_ci SlotStruct slotStruct[16]; 579d722e3fbSopenharmony_ci} ConfigStruct; 580d722e3fbSopenharmony_ci 581d722e3fbSopenharmony_citypedef struct { 582d722e3fbSopenharmony_ci PartitionCrcStruct partitionCrcStruct[2]; 583d722e3fbSopenharmony_ci} InterfaceCrcStruct; 584d722e3fbSopenharmony_ci 585d722e3fbSopenharmony_citypedef struct { 586d722e3fbSopenharmony_ci SlotCrcStruct slotCrcStruct[16]; 587d722e3fbSopenharmony_ci} InputCrcStruct; 588d722e3fbSopenharmony_ci 589d722e3fbSopenharmony_citypedef struct { 590d722e3fbSopenharmony_ci GeoTranConfigParamStruct paramConfig; 591d722e3fbSopenharmony_ci CoeffPhaseParamStruct FilterCoeff[17]; 592d722e3fbSopenharmony_ci TNR3ConfigParamStruct tnr3Config; 593d722e3fbSopenharmony_ci BFRangeTableItems BFRangeTableLuma[16]; 594d722e3fbSopenharmony_ci BFRangeTableItems BFRangeTableChroma[16]; 595d722e3fbSopenharmony_ci} GeoTranConfigStruct; 596d722e3fbSopenharmony_ci 597d722e3fbSopenharmony_ci#endif 598