1d722e3fbSopenharmony_ci/* 2d722e3fbSopenharmony_ci * Copyright © 2016-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 VIC40_H 24d722e3fbSopenharmony_ci#define VIC40_H 25d722e3fbSopenharmony_ci 26d722e3fbSopenharmony_ci#include <stdint.h> 27d722e3fbSopenharmony_ci 28d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_APPLICATION_ID 0x00000200 29d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_EXECUTE 0x00000300 30d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_LUMA_OFFSET 0x00000400 31d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_CHROMA_U_OFFSET 0x00000404 32d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_SURFACE0_SLOT0_CHROMA_V_OFFSET 0x00000408 33d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_CONTROL_PARAMS 0x00000704 34d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_CONFIG_STRUCT_OFFSET 0x00000708 35d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_HIST_OFFSET 0x00000714 36d722e3fbSopenharmony_ci#define NVB0B6_VIDEO_COMPOSITOR_SET_OUTPUT_SURFACE_LUMA_OFFSET 0x00000720 37d722e3fbSopenharmony_ci 38d722e3fbSopenharmony_citypedef struct { 39d722e3fbSopenharmony_ci uint64_t SlotEnable : 1; /* 0 */ 40d722e3fbSopenharmony_ci uint64_t DeNoise : 1; /* 1 */ 41d722e3fbSopenharmony_ci uint64_t AdvancedDenoise : 1; /* 2 */ 42d722e3fbSopenharmony_ci uint64_t CadenceDetect : 1; /* 3 */ 43d722e3fbSopenharmony_ci uint64_t MotionMap : 1; /* 4 */ 44d722e3fbSopenharmony_ci uint64_t MMapCombine : 1; /* 5 */ 45d722e3fbSopenharmony_ci uint64_t IsEven : 1; /* 6 */ 46d722e3fbSopenharmony_ci uint64_t ChromaEven : 1; /* 7 */ 47d722e3fbSopenharmony_ci uint64_t CurrentFieldEnable : 1; /* 8 */ 48d722e3fbSopenharmony_ci uint64_t PrevFieldEnable : 1; /* 9 */ 49d722e3fbSopenharmony_ci uint64_t NextFieldEnable : 1; /* 10 */ 50d722e3fbSopenharmony_ci uint64_t NextNrFieldEnable : 1; /* 11 */ 51d722e3fbSopenharmony_ci uint64_t CurMotionFieldEnable : 1; /* 12 */ 52d722e3fbSopenharmony_ci uint64_t PrevMotionFieldEnable : 1; /* 13 */ 53d722e3fbSopenharmony_ci uint64_t PpMotionFieldEnable : 1; /* 14 */ 54d722e3fbSopenharmony_ci uint64_t CombMotionFieldEnable : 1; /* 15 */ 55d722e3fbSopenharmony_ci uint64_t FrameFormat : 4; /* 19..16 */ 56d722e3fbSopenharmony_ci uint64_t FilterLengthY : 2; /* 21..20 */ 57d722e3fbSopenharmony_ci uint64_t FilterLengthX : 2; /* 23..22 */ 58d722e3fbSopenharmony_ci uint64_t Panoramic : 12; /* 35..24 */ 59d722e3fbSopenharmony_ci uint64_t reserved1 : 22; /* 57..36 */ 60d722e3fbSopenharmony_ci uint64_t DetailFltClamp : 6; /* 63..58 */ 61d722e3fbSopenharmony_ci uint64_t FilterNoise : 10; /* 73..64 */ 62d722e3fbSopenharmony_ci uint64_t FilterDetail : 10; /* 83..74 */ 63d722e3fbSopenharmony_ci uint64_t ChromaNoise : 10; /* 93..84 */ 64d722e3fbSopenharmony_ci uint64_t ChromaDetail : 10; /* 103..94 */ 65d722e3fbSopenharmony_ci uint64_t DeinterlaceMode : 4; /* 107..104 */ 66d722e3fbSopenharmony_ci uint64_t MotionAccumWeight : 3; /* 110..108 */ 67d722e3fbSopenharmony_ci uint64_t NoiseIir : 11; /* 121..111 */ 68d722e3fbSopenharmony_ci uint64_t LightLevel : 4; /* 125..122 */ 69d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 127..126 */ 70d722e3fbSopenharmony_ci /* 128 */ 71d722e3fbSopenharmony_ci uint64_t SoftClampLow : 10; /* 9..0 */ 72d722e3fbSopenharmony_ci uint64_t SoftClampHigh : 10; /* 19..10 */ 73d722e3fbSopenharmony_ci uint64_t reserved5 : 3; /* 22..20 */ 74d722e3fbSopenharmony_ci uint64_t reserved6 : 9; /* 31..23 */ 75d722e3fbSopenharmony_ci uint64_t PlanarAlpha : 10; /* 41..32 */ 76d722e3fbSopenharmony_ci uint64_t ConstantAlpha : 1; /* 42 */ 77d722e3fbSopenharmony_ci uint64_t StereoInterleave : 3; /* 45..43 */ 78d722e3fbSopenharmony_ci uint64_t ClipEnabled : 1; /* 46 */ 79d722e3fbSopenharmony_ci uint64_t ClearRectMask : 8; /* 54..47 */ 80d722e3fbSopenharmony_ci uint64_t DegammaMode : 2; /* 56..55 */ 81d722e3fbSopenharmony_ci uint64_t reserved7 : 1; /* 57 */ 82d722e3fbSopenharmony_ci uint64_t DecompressEnable : 1; /* 58 */ 83d722e3fbSopenharmony_ci uint64_t reserved9 : 5; /* 63..59 */ 84d722e3fbSopenharmony_ci uint64_t DecompressCtbCount : 8; /* 71..64 */ 85d722e3fbSopenharmony_ci uint64_t DecompressZbcColor : 32; /* 103..72 */ 86d722e3fbSopenharmony_ci uint64_t reserved12 : 24; /* 127..104 */ 87d722e3fbSopenharmony_ci /* 256 */ 88d722e3fbSopenharmony_ci uint64_t SourceRectLeft : 30; /* 29..0 */ 89d722e3fbSopenharmony_ci uint64_t reserved14 : 2; /* 31..30 */ 90d722e3fbSopenharmony_ci uint64_t SourceRectRight : 30; /* 61..32 */ 91d722e3fbSopenharmony_ci uint64_t reserved15 : 2; /* 63..62 */ 92d722e3fbSopenharmony_ci uint64_t SourceRectTop : 30; /* 93..64 */ 93d722e3fbSopenharmony_ci uint64_t reserved16 : 2; /* 95..94 */ 94d722e3fbSopenharmony_ci uint64_t SourceRectBottom : 30; /* 125..96 */ 95d722e3fbSopenharmony_ci uint64_t reserved17 : 2; /* 127..126 */ 96d722e3fbSopenharmony_ci /* 384 */ 97d722e3fbSopenharmony_ci uint64_t DestRectLeft : 14; /* 13..0 */ 98d722e3fbSopenharmony_ci uint64_t reserved18 : 2; /* 15..14 */ 99d722e3fbSopenharmony_ci uint64_t DestRectRight : 14; /* 29..16 */ 100d722e3fbSopenharmony_ci uint64_t reserved19 : 2; /* 31..30 */ 101d722e3fbSopenharmony_ci uint64_t DestRectTop : 14; /* 45..32 */ 102d722e3fbSopenharmony_ci uint64_t reserved20 : 2; /* 47..46 */ 103d722e3fbSopenharmony_ci uint64_t DestRectBottom : 14; /* 61..48 */ 104d722e3fbSopenharmony_ci uint64_t reserved21 : 2; /* 63..62 */ 105d722e3fbSopenharmony_ci uint64_t reserved22 : 32; /* 95..64 */ 106d722e3fbSopenharmony_ci uint64_t reserved23 : 32; /* 127..96 */ 107d722e3fbSopenharmony_ci} SlotConfig; 108d722e3fbSopenharmony_ci 109d722e3fbSopenharmony_citypedef struct { 110d722e3fbSopenharmony_ci uint64_t SlotPixelFormat : 7; /* 6..0 */ 111d722e3fbSopenharmony_ci uint64_t SlotChromaLocHoriz : 2; /* 8..7 */ 112d722e3fbSopenharmony_ci uint64_t SlotChromaLocVert : 2; /* 10..9 */ 113d722e3fbSopenharmony_ci uint64_t SlotBlkKind : 4; /* 14..11 */ 114d722e3fbSopenharmony_ci uint64_t SlotBlkHeight : 4; /* 18..15 */ 115d722e3fbSopenharmony_ci uint64_t SlotCacheWidth : 3; /* 21..19 */ 116d722e3fbSopenharmony_ci uint64_t reserved0 : 10; /* 31..22 */ 117d722e3fbSopenharmony_ci uint64_t SlotSurfaceWidth : 14; /* 45..32 */ 118d722e3fbSopenharmony_ci uint64_t SlotSurfaceHeight : 14; /* 59..46 */ 119d722e3fbSopenharmony_ci uint64_t reserved1 : 4; /* 63..60 */ 120d722e3fbSopenharmony_ci uint64_t SlotLumaWidth : 14; /* 77..64 */ 121d722e3fbSopenharmony_ci uint64_t SlotLumaHeight : 14; /* 91..78 */ 122d722e3fbSopenharmony_ci uint64_t reserved2 : 4; /* 95..92 */ 123d722e3fbSopenharmony_ci uint64_t SlotChromaWidth : 14; /* 109..96 */ 124d722e3fbSopenharmony_ci uint64_t SlotChromaHeight : 14; /* 123..110 */ 125d722e3fbSopenharmony_ci uint64_t reserved3 : 4; /* 127..124 */ 126d722e3fbSopenharmony_ci} SlotSurfaceConfig; 127d722e3fbSopenharmony_ci 128d722e3fbSopenharmony_citypedef struct { 129d722e3fbSopenharmony_ci uint64_t luma_coeff0 : 20; /* 19..0 */ 130d722e3fbSopenharmony_ci uint64_t luma_coeff1 : 20; /* 39..20 */ 131d722e3fbSopenharmony_ci uint64_t luma_coeff2 : 20; /* 59..40 */ 132d722e3fbSopenharmony_ci uint64_t luma_r_shift : 4; /* 63..60 */ 133d722e3fbSopenharmony_ci uint64_t luma_coeff3 : 20; /* 83..64 */ 134d722e3fbSopenharmony_ci uint64_t LumaKeyLower : 10; /* 93..84 */ 135d722e3fbSopenharmony_ci uint64_t LumaKeyUpper : 10; /* 103..94 */ 136d722e3fbSopenharmony_ci uint64_t LumaKeyEnabled : 1; /* 104 */ 137d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 106..105 */ 138d722e3fbSopenharmony_ci uint64_t reserved1 : 21; /* 127..107 */ 139d722e3fbSopenharmony_ci} LumaKeyStruct; 140d722e3fbSopenharmony_ci 141d722e3fbSopenharmony_citypedef struct { 142d722e3fbSopenharmony_ci uint64_t matrix_coeff00 : 20; /* 19..0 */ 143d722e3fbSopenharmony_ci uint64_t matrix_coeff10 : 20; /* 39..20 */ 144d722e3fbSopenharmony_ci uint64_t matrix_coeff20 : 20; /* 59..40 */ 145d722e3fbSopenharmony_ci uint64_t matrix_r_shift : 4; /* 63..60 */ 146d722e3fbSopenharmony_ci uint64_t matrix_coeff01 : 20; /* 83..64 */ 147d722e3fbSopenharmony_ci uint64_t matrix_coeff11 : 20; /* 103..84 */ 148d722e3fbSopenharmony_ci uint64_t matrix_coeff21 : 20; /* 123..104 */ 149d722e3fbSopenharmony_ci uint64_t reserved0 : 3; /* 126..124 */ 150d722e3fbSopenharmony_ci uint64_t matrix_enable : 1; /* 127 */ 151d722e3fbSopenharmony_ci /* 128 */ 152d722e3fbSopenharmony_ci uint64_t matrix_coeff02 : 20; /* 19..0 */ 153d722e3fbSopenharmony_ci uint64_t matrix_coeff12 : 20; /* 39..20 */ 154d722e3fbSopenharmony_ci uint64_t matrix_coeff22 : 20; /* 59..40 */ 155d722e3fbSopenharmony_ci uint64_t reserved1 : 4; /* 63..60 */ 156d722e3fbSopenharmony_ci uint64_t matrix_coeff03 : 20; /* 83..64 */ 157d722e3fbSopenharmony_ci uint64_t matrix_coeff13 : 20; /* 103..84 */ 158d722e3fbSopenharmony_ci uint64_t matrix_coeff23 : 20; /* 123..104 */ 159d722e3fbSopenharmony_ci uint64_t reserved2 : 4; /* 127..124 */ 160d722e3fbSopenharmony_ci} MatrixStruct; 161d722e3fbSopenharmony_ci 162d722e3fbSopenharmony_citypedef struct { 163d722e3fbSopenharmony_ci uint64_t ClearRect0Left : 14; /* 13..0 */ 164d722e3fbSopenharmony_ci uint64_t reserved0 : 2; /* 15..14 */ 165d722e3fbSopenharmony_ci uint64_t ClearRect0Right : 14; /* 29..16 */ 166d722e3fbSopenharmony_ci uint64_t reserved1 : 2; /* 31..30 */ 167d722e3fbSopenharmony_ci uint64_t ClearRect0Top : 14; /* 45..32 */ 168d722e3fbSopenharmony_ci uint64_t reserved2 : 2; /* 47..46 */ 169d722e3fbSopenharmony_ci uint64_t ClearRect0Bottom : 14; /* 61..48 */ 170d722e3fbSopenharmony_ci uint64_t reserved3 : 2; /* 63..62 */ 171d722e3fbSopenharmony_ci uint64_t ClearRect1Left : 14; /* 77..64 */ 172d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 79..78 */ 173d722e3fbSopenharmony_ci uint64_t ClearRect1Right : 14; /* 93..80 */ 174d722e3fbSopenharmony_ci uint64_t reserved5 : 2; /* 95..94 */ 175d722e3fbSopenharmony_ci uint64_t ClearRect1Top : 14; /* 109..96 */ 176d722e3fbSopenharmony_ci uint64_t reserved6 : 2; /* 111..110 */ 177d722e3fbSopenharmony_ci uint64_t ClearRect1Bottom : 14; /* 125..112 */ 178d722e3fbSopenharmony_ci uint64_t reserved7 : 2; /* 127..126 */ 179d722e3fbSopenharmony_ci} ClearRectStruct; 180d722e3fbSopenharmony_ci 181d722e3fbSopenharmony_citypedef struct { 182d722e3fbSopenharmony_ci uint64_t AlphaK1 : 10; /* 9..0 */ 183d722e3fbSopenharmony_ci uint64_t reserved0 : 6; /* 15..10 */ 184d722e3fbSopenharmony_ci uint64_t AlphaK2 : 10; /* 25..16 */ 185d722e3fbSopenharmony_ci uint64_t reserved1 : 6; /* 31..26 */ 186d722e3fbSopenharmony_ci uint64_t SrcFactCMatchSelect : 3; /* 34..32 */ 187d722e3fbSopenharmony_ci uint64_t reserved2 : 1; /* 35 */ 188d722e3fbSopenharmony_ci uint64_t DstFactCMatchSelect : 3; /* 38..36 */ 189d722e3fbSopenharmony_ci uint64_t reserved3 : 1; /* 39 */ 190d722e3fbSopenharmony_ci uint64_t SrcFactAMatchSelect : 3; /* 42..40 */ 191d722e3fbSopenharmony_ci uint64_t reserved4 : 1; /* 43 */ 192d722e3fbSopenharmony_ci uint64_t DstFactAMatchSelect : 3; /* 46..44 */ 193d722e3fbSopenharmony_ci uint64_t reserved5 : 1; /* 47 */ 194d722e3fbSopenharmony_ci uint64_t reserved6 : 4; /* 51..48 */ 195d722e3fbSopenharmony_ci uint64_t reserved7 : 4; /* 55..52 */ 196d722e3fbSopenharmony_ci uint64_t reserved8 : 4; /* 59..56 */ 197d722e3fbSopenharmony_ci uint64_t reserved9 : 4; /* 63..60 */ 198d722e3fbSopenharmony_ci uint64_t reserved10 : 2; /* 65..64 */ 199d722e3fbSopenharmony_ci uint64_t OverrideR : 10; /* 75..66 */ 200d722e3fbSopenharmony_ci uint64_t OverrideG : 10; /* 85..76 */ 201d722e3fbSopenharmony_ci uint64_t OverrideB : 10; /* 95..86 */ 202d722e3fbSopenharmony_ci uint64_t OverrideA : 10; /* 105..96 */ 203d722e3fbSopenharmony_ci uint64_t reserved11 : 2; /* 107..106 */ 204d722e3fbSopenharmony_ci uint64_t UseOverrideR : 1; /* 108 */ 205d722e3fbSopenharmony_ci uint64_t UseOverrideG : 1; /* 109 */ 206d722e3fbSopenharmony_ci uint64_t UseOverrideB : 1; /* 110 */ 207d722e3fbSopenharmony_ci uint64_t UseOverrideA : 1; /* 111 */ 208d722e3fbSopenharmony_ci uint64_t MaskR : 1; /* 112 */ 209d722e3fbSopenharmony_ci uint64_t MaskG : 1; /* 113 */ 210d722e3fbSopenharmony_ci uint64_t MaskB : 1; /* 114 */ 211d722e3fbSopenharmony_ci uint64_t MaskA : 1; /* 115 */ 212d722e3fbSopenharmony_ci uint64_t reserved12 : 12; /* 127..116 */ 213d722e3fbSopenharmony_ci} BlendingSlotStruct; 214d722e3fbSopenharmony_ci 215d722e3fbSopenharmony_citypedef struct { 216d722e3fbSopenharmony_ci uint64_t AlphaFillMode : 3; /* 2..0 */ 217d722e3fbSopenharmony_ci uint64_t AlphaFillSlot : 3; /* 5..3 */ 218d722e3fbSopenharmony_ci uint64_t BackgroundAlpha : 10; /* 15..6 */ 219d722e3fbSopenharmony_ci uint64_t BackgroundR : 10; /* 25..16 */ 220d722e3fbSopenharmony_ci uint64_t BackgroundG : 10; /* 35..26 */ 221d722e3fbSopenharmony_ci uint64_t BackgroundB : 10; /* 45..36 */ 222d722e3fbSopenharmony_ci uint64_t RegammaMode : 2; /* 47..46 */ 223d722e3fbSopenharmony_ci uint64_t OutputFlipX : 1; /* 48 */ 224d722e3fbSopenharmony_ci uint64_t OutputFlipY : 1; /* 49 */ 225d722e3fbSopenharmony_ci uint64_t OutputTranspose : 1; /* 50 */ 226d722e3fbSopenharmony_ci uint64_t reserved1 : 1; /* 51 */ 227d722e3fbSopenharmony_ci uint64_t reserved2 : 12; /* 63..52 */ 228d722e3fbSopenharmony_ci uint64_t TargetRectLeft : 14; /* 77..64 */ 229d722e3fbSopenharmony_ci uint64_t reserved3 : 2; /* 79..78 */ 230d722e3fbSopenharmony_ci uint64_t TargetRectRight : 14; /* 93..80 */ 231d722e3fbSopenharmony_ci uint64_t reserved4 : 2; /* 95..94 */ 232d722e3fbSopenharmony_ci uint64_t TargetRectTop : 14; /* 109..96 */ 233d722e3fbSopenharmony_ci uint64_t reserved5 : 2; /* 111..110 */ 234d722e3fbSopenharmony_ci uint64_t TargetRectBottom : 14; /* 125..112 */ 235d722e3fbSopenharmony_ci uint64_t reserved6 : 2; /* 127..126 */ 236d722e3fbSopenharmony_ci} OutputConfig; 237d722e3fbSopenharmony_ci 238d722e3fbSopenharmony_citypedef struct { 239d722e3fbSopenharmony_ci uint64_t OutPixelFormat : 7; /* 6..0 */ 240d722e3fbSopenharmony_ci uint64_t OutChromaLocHoriz : 2; /* 8..7 */ 241d722e3fbSopenharmony_ci uint64_t OutChromaLocVert : 2; /* 10..9 */ 242d722e3fbSopenharmony_ci uint64_t OutBlkKind : 4; /* 14..11 */ 243d722e3fbSopenharmony_ci uint64_t OutBlkHeight : 4; /* 18..15 */ 244d722e3fbSopenharmony_ci uint64_t reserved0 : 3; /* 21..19 */ 245d722e3fbSopenharmony_ci uint64_t reserved1 : 10; /* 31..22 */ 246d722e3fbSopenharmony_ci uint64_t OutSurfaceWidth : 14; /* 45..32 */ 247d722e3fbSopenharmony_ci uint64_t OutSurfaceHeight : 14; /* 59..46 */ 248d722e3fbSopenharmony_ci uint64_t reserved2 : 4; /* 63..60 */ 249d722e3fbSopenharmony_ci uint64_t OutLumaWidth : 14; /* 77..64 */ 250d722e3fbSopenharmony_ci uint64_t OutLumaHeight : 14; /* 91..78 */ 251d722e3fbSopenharmony_ci uint64_t reserved3 : 4; /* 95..92 */ 252d722e3fbSopenharmony_ci uint64_t OutChromaWidth : 14; /* 109..96 */ 253d722e3fbSopenharmony_ci uint64_t OutChromaHeight : 14; /* 123..110 */ 254d722e3fbSopenharmony_ci uint64_t reserved4 : 4; /* 127..124 */ 255d722e3fbSopenharmony_ci} OutputSurfaceConfig; 256d722e3fbSopenharmony_ci 257d722e3fbSopenharmony_citypedef struct { 258d722e3fbSopenharmony_ci uint64_t DownsampleHoriz : 11; /* 10..0 */ 259d722e3fbSopenharmony_ci uint64_t reserved0 : 5; /* 15..11 */ 260d722e3fbSopenharmony_ci uint64_t DownsampleVert : 11; /* 26..16 */ 261d722e3fbSopenharmony_ci uint64_t reserved1 : 5; /* 31..27 */ 262d722e3fbSopenharmony_ci uint64_t reserved2 : 32; /* 63..32 */ 263d722e3fbSopenharmony_ci uint64_t reserved3 : 32; /* 95..64 */ 264d722e3fbSopenharmony_ci uint64_t reserved4 : 32; /* 127..96 */ 265d722e3fbSopenharmony_ci} PipeConfig; 266d722e3fbSopenharmony_ci 267d722e3fbSopenharmony_citypedef struct { 268d722e3fbSopenharmony_ci SlotConfig slotConfig; 269d722e3fbSopenharmony_ci SlotSurfaceConfig slotSurfaceConfig; 270d722e3fbSopenharmony_ci LumaKeyStruct lumaKeyStruct; 271d722e3fbSopenharmony_ci MatrixStruct colorMatrixStruct; 272d722e3fbSopenharmony_ci MatrixStruct gamutMatrixStruct; 273d722e3fbSopenharmony_ci BlendingSlotStruct blendingSlotStruct; 274d722e3fbSopenharmony_ci} SlotStruct; 275d722e3fbSopenharmony_ci 276d722e3fbSopenharmony_citypedef struct { 277d722e3fbSopenharmony_ci PipeConfig pipeConfig; 278d722e3fbSopenharmony_ci OutputConfig outputConfig; 279d722e3fbSopenharmony_ci OutputSurfaceConfig outputSurfaceConfig; 280d722e3fbSopenharmony_ci MatrixStruct outColorMatrixStruct; 281d722e3fbSopenharmony_ci ClearRectStruct clearRectStruct[4]; 282d722e3fbSopenharmony_ci SlotStruct slotStruct[8]; 283d722e3fbSopenharmony_ci} ConfigStruct; 284d722e3fbSopenharmony_ci 285d722e3fbSopenharmony_ci#endif 286