[{"data":1,"prerenderedAt":389},["ShallowReactive",2],{"$fFtAF6yIs_yglUjHNbfslSYEWh4qOTavpe2wLRf7i3s8":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":388,"_id":4},"VkVideoEncodeRgbChromaOffsetFlagBitsVALVE","Position of downsampled chroma samples for encode RGB conversion","VK_VALVE_video_encode_rgb_conversion","enums",[],{"type":10,"children":11,"toc":386},"root",[12,45,58,312,339,367,380],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,35,37,43],{"type":18,"value":19},"text","The model-converted values are chroma subsampled and quantized, according to\nthe ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"chromaSubsampling",{"type":18,"value":28},", ",{"type":13,"tag":21,"props":30,"children":32},{"className":31},[],[33],{"type":18,"value":34},"lumaBitDepth",{"type":18,"value":36}," and ",{"type":13,"tag":21,"props":38,"children":40},{"className":39},[],[41],{"type":18,"value":42},"chromaBitDepth",{"type":18,"value":44},"\nvalues specified by the bound video session.",{"type":13,"tag":14,"props":46,"children":47},{},[48,50,56],{"type":18,"value":49},"The ",{"type":13,"tag":51,"props":52,"children":54},"a",{"href":53},"/man/VkVideoEncodeRgbChromaOffsetFlagBitsVALVE",[55],{"type":18,"value":4},{"type":18,"value":57}," enum defines the\nlocation of downsampled chroma component samples relative to the luma\nsamples for video encode R′G′B′ conversion, and is defined as:",{"type":13,"tag":59,"props":60,"children":61},"code-group",{},[62,162],{"type":13,"tag":63,"props":64,"children":70},"pre",{"className":65,"code":66,"filename":67,"language":68,"meta":69,"style":69},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkVideoEncodeRgbChromaOffsetFlagBitsVALVE {\n VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE = 0x00000001,\n VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE = 0x00000002,\n} VkVideoEncodeRgbChromaOffsetFlagBitsVALVE;\n","C","c","",[71],{"type":13,"tag":21,"props":72,"children":73},{"__ignoreMap":69},[74,97,127,153],{"type":13,"tag":75,"props":76,"children":79},"span",{"class":77,"line":78},"line",1,[80,86,91],{"type":13,"tag":75,"props":81,"children":83},{"style":82},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[84],{"type":18,"value":85},"typedef",{"type":13,"tag":75,"props":87,"children":88},{"style":82},[89],{"type":18,"value":90}," enum",{"type":13,"tag":75,"props":92,"children":94},{"style":93},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[95],{"type":18,"value":96}," VkVideoEncodeRgbChromaOffsetFlagBitsVALVE {\n",{"type":13,"tag":75,"props":98,"children":100},{"class":77,"line":99},2,[101,106,111,116,122],{"type":13,"tag":75,"props":102,"children":103},{"style":93},[104],{"type":18,"value":105}," VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE ",{"type":13,"tag":75,"props":107,"children":108},{"style":82},[109],{"type":18,"value":110},"=",{"type":13,"tag":75,"props":112,"children":113},{"style":82},[114],{"type":18,"value":115}," 0x",{"type":13,"tag":75,"props":117,"children":119},{"style":118},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[120],{"type":18,"value":121},"00000001",{"type":13,"tag":75,"props":123,"children":124},{"style":93},[125],{"type":18,"value":126},",\n",{"type":13,"tag":75,"props":128,"children":130},{"class":77,"line":129},3,[131,136,140,144,149],{"type":13,"tag":75,"props":132,"children":133},{"style":93},[134],{"type":18,"value":135}," VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE ",{"type":13,"tag":75,"props":137,"children":138},{"style":82},[139],{"type":18,"value":110},{"type":13,"tag":75,"props":141,"children":142},{"style":82},[143],{"type":18,"value":115},{"type":13,"tag":75,"props":145,"children":146},{"style":118},[147],{"type":18,"value":148},"00000002",{"type":13,"tag":75,"props":150,"children":151},{"style":93},[152],{"type":18,"value":126},{"type":13,"tag":75,"props":154,"children":156},{"class":77,"line":155},4,[157],{"type":13,"tag":75,"props":158,"children":159},{"style":93},[160],{"type":18,"value":161},"} VkVideoEncodeRgbChromaOffsetFlagBitsVALVE;\n",{"type":13,"tag":63,"props":163,"children":168},{"className":164,"code":165,"filename":166,"language":167,"meta":69,"style":69},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct VideoEncodeRgbChromaOffsetFlagBitsVALVE(u32);\nimpl VideoEncodeRgbChromaOffsetFlagBitsVALVE {\n pub const COSITED_EVEN: Self = 0x00000001;\n pub const MIDPOINT: Self = 0x00000002;\n}\n","Rust","rs",[169],{"type":13,"tag":21,"props":170,"children":171},{"__ignoreMap":69},[172,206,223,266,303],{"type":13,"tag":75,"props":173,"children":174},{"class":77,"line":78},[175,180,185,191,196,201],{"type":13,"tag":75,"props":176,"children":177},{"style":82},[178],{"type":18,"value":179},"pub",{"type":13,"tag":75,"props":181,"children":182},{"style":82},[183],{"type":18,"value":184}," struct",{"type":13,"tag":75,"props":186,"children":188},{"style":187},"--shiki-default:#953800;--shiki-dark:#FFA657",[189],{"type":18,"value":190}," VideoEncodeRgbChromaOffsetFlagBitsVALVE",{"type":13,"tag":75,"props":192,"children":193},{"style":93},[194],{"type":18,"value":195},"(",{"type":13,"tag":75,"props":197,"children":198},{"style":187},[199],{"type":18,"value":200},"u32",{"type":13,"tag":75,"props":202,"children":203},{"style":93},[204],{"type":18,"value":205},");\n",{"type":13,"tag":75,"props":207,"children":208},{"class":77,"line":99},[209,214,218],{"type":13,"tag":75,"props":210,"children":211},{"style":82},[212],{"type":18,"value":213},"impl",{"type":13,"tag":75,"props":215,"children":216},{"style":187},[217],{"type":18,"value":190},{"type":13,"tag":75,"props":219,"children":220},{"style":93},[221],{"type":18,"value":222}," {\n",{"type":13,"tag":75,"props":224,"children":225},{"class":77,"line":129},[226,231,236,241,246,251,256,261],{"type":13,"tag":75,"props":227,"children":228},{"style":82},[229],{"type":18,"value":230}," pub",{"type":13,"tag":75,"props":232,"children":233},{"style":82},[234],{"type":18,"value":235}," const",{"type":13,"tag":75,"props":237,"children":238},{"style":118},[239],{"type":18,"value":240}," COSITED_EVEN",{"type":13,"tag":75,"props":242,"children":243},{"style":82},[244],{"type":18,"value":245},":",{"type":13,"tag":75,"props":247,"children":248},{"style":118},[249],{"type":18,"value":250}," Self",{"type":13,"tag":75,"props":252,"children":253},{"style":82},[254],{"type":18,"value":255}," =",{"type":13,"tag":75,"props":257,"children":258},{"style":118},[259],{"type":18,"value":260}," 0x00000001",{"type":13,"tag":75,"props":262,"children":263},{"style":93},[264],{"type":18,"value":265},";\n",{"type":13,"tag":75,"props":267,"children":268},{"class":77,"line":155},[269,273,277,282,286,290,294,299],{"type":13,"tag":75,"props":270,"children":271},{"style":82},[272],{"type":18,"value":230},{"type":13,"tag":75,"props":274,"children":275},{"style":82},[276],{"type":18,"value":235},{"type":13,"tag":75,"props":278,"children":279},{"style":118},[280],{"type":18,"value":281}," MIDPOINT",{"type":13,"tag":75,"props":283,"children":284},{"style":82},[285],{"type":18,"value":245},{"type":13,"tag":75,"props":287,"children":288},{"style":118},[289],{"type":18,"value":250},{"type":13,"tag":75,"props":291,"children":292},{"style":82},[293],{"type":18,"value":255},{"type":13,"tag":75,"props":295,"children":296},{"style":118},[297],{"type":18,"value":298}," 0x00000002",{"type":13,"tag":75,"props":300,"children":301},{"style":93},[302],{"type":18,"value":265},{"type":13,"tag":75,"props":304,"children":306},{"class":77,"line":305},5,[307],{"type":13,"tag":75,"props":308,"children":309},{"style":93},[310],{"type":18,"value":311},"}\n",{"type":13,"tag":313,"props":314,"children":315},"ul",{},[316,328],{"type":13,"tag":317,"props":318,"children":319},"li",{},[320,326],{"type":13,"tag":21,"props":321,"children":323},{"className":322},[],[324],{"type":18,"value":325},"VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_COSITED_EVEN_BIT_VALVE",{"type":18,"value":327}," specifies\nthat downsampled chroma samples are aligned with luma samples with even\ncoordinates.",{"type":13,"tag":317,"props":329,"children":330},{},[331,337],{"type":13,"tag":21,"props":332,"children":334},{"className":333},[],[335],{"type":18,"value":336},"VK_VIDEO_ENCODE_RGB_CHROMA_OFFSET_MIDPOINT_BIT_VALVE",{"type":18,"value":338}," specifies\nthat downsampled chroma samples are located half way between each even\nluma sample and the nearest higher odd luma sample.",{"type":13,"tag":14,"props":340,"children":341},{},[342,344,350,351,357,359,365],{"type":18,"value":343},"The output location of downsampled chroma components are specified by the\n",{"type":13,"tag":21,"props":345,"children":347},{"className":346},[],[348],{"type":18,"value":349},"xChromaOffset",{"type":18,"value":36},{"type":13,"tag":21,"props":352,"children":354},{"className":353},[],[355],{"type":18,"value":356},"yChromaOffset",{"type":18,"value":358}," values of the\n",{"type":13,"tag":51,"props":360,"children":362},{"href":361},"/man/VkVideoEncodeSessionRgbConversionCreateInfoVALVE",[363],{"type":18,"value":364},"VkVideoEncodeSessionRgbConversionCreateInfoVALVE",{"type":18,"value":366}," structure:",{"type":13,"tag":14,"props":368,"children":369},{},[370,372,378],{"type":18,"value":371},"Chroma subsampling is described in more detail in the\n",{"type":13,"tag":51,"props":373,"children":375},{"href":374},"/chapters/textures#textures-chroma-reconstruction",[376],{"type":18,"value":377},"Chroma Reconstruction",{"type":18,"value":379}," section.",{"type":13,"tag":381,"props":382,"children":383},"style",{},[384],{"type":18,"value":385},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":69,"searchDepth":99,"depth":99,"links":387},[],"markdown",1773165471686]