[{"data":1,"prerenderedAt":718},["ShallowReactive",2],{"$fULzC9Eiw2ynvjola2kkyylw_GUvMdsKsR7FKVIYPk3s":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":717,"_id":4},"VkVideoEncodeRgbModelConversionFlagBitsVALVE","Color model conversions for encode RGB conversion","VK_VALVE_video_encode_rgb_conversion","enums",[],{"type":10,"children":11,"toc":715},"root",[12,38,56,499,655,683,709],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36],{"type":18,"value":19},"text","The range-compressed values are converted between color models, according to\nthe color model conversion specified in the ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":26},"rgbModel",{"type":18,"value":28}," member of the\n",{"type":13,"tag":30,"props":31,"children":33},"a",{"href":32},"/man/VkVideoEncodeSessionRgbConversionCreateInfoVALVE",[34],{"type":18,"value":35},"VkVideoEncodeSessionRgbConversionCreateInfoVALVE",{"type":18,"value":37}," structure.",{"type":13,"tag":14,"props":39,"children":40},{},[41,46,48,54],{"type":13,"tag":30,"props":42,"children":44},{"href":43},"/man/VkVideoEncodeRgbModelConversionFlagBitsVALVE",[45],{"type":18,"value":4},{"type":18,"value":47}," defines the conversion\nfrom the ",{"type":13,"tag":30,"props":49,"children":51},{"href":50},"/404#encode-input-picture-info",[52],{"type":18,"value":53},"encode input picture",{"type":18,"value":55},"'s color model to\nthe encode color model.",{"type":13,"tag":57,"props":58,"children":59},"code-group",{},[60,238],{"type":13,"tag":61,"props":62,"children":68},"pre",{"className":63,"code":64,"filename":65,"language":66,"meta":67,"style":67},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkVideoEncodeRgbModelConversionFlagBitsVALVE {\n VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVE = 0x00000001,\n VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVE = 0x00000002,\n VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVE = 0x00000004,\n VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVE = 0x00000008,\n VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVE = 0x00000010,\n} VkVideoEncodeRgbModelConversionFlagBitsVALVE;\n","C","c","",[69],{"type":13,"tag":21,"props":70,"children":71},{"__ignoreMap":67},[72,95,125,151,177,203,229],{"type":13,"tag":73,"props":74,"children":77},"span",{"class":75,"line":76},"line",1,[78,84,89],{"type":13,"tag":73,"props":79,"children":81},{"style":80},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[82],{"type":18,"value":83},"typedef",{"type":13,"tag":73,"props":85,"children":86},{"style":80},[87],{"type":18,"value":88}," enum",{"type":13,"tag":73,"props":90,"children":92},{"style":91},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[93],{"type":18,"value":94}," VkVideoEncodeRgbModelConversionFlagBitsVALVE {\n",{"type":13,"tag":73,"props":96,"children":98},{"class":75,"line":97},2,[99,104,109,114,120],{"type":13,"tag":73,"props":100,"children":101},{"style":91},[102],{"type":18,"value":103}," VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVE ",{"type":13,"tag":73,"props":105,"children":106},{"style":80},[107],{"type":18,"value":108},"=",{"type":13,"tag":73,"props":110,"children":111},{"style":80},[112],{"type":18,"value":113}," 0x",{"type":13,"tag":73,"props":115,"children":117},{"style":116},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[118],{"type":18,"value":119},"00000001",{"type":13,"tag":73,"props":121,"children":122},{"style":91},[123],{"type":18,"value":124},",\n",{"type":13,"tag":73,"props":126,"children":128},{"class":75,"line":127},3,[129,134,138,142,147],{"type":13,"tag":73,"props":130,"children":131},{"style":91},[132],{"type":18,"value":133}," VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVE ",{"type":13,"tag":73,"props":135,"children":136},{"style":80},[137],{"type":18,"value":108},{"type":13,"tag":73,"props":139,"children":140},{"style":80},[141],{"type":18,"value":113},{"type":13,"tag":73,"props":143,"children":144},{"style":116},[145],{"type":18,"value":146},"00000002",{"type":13,"tag":73,"props":148,"children":149},{"style":91},[150],{"type":18,"value":124},{"type":13,"tag":73,"props":152,"children":154},{"class":75,"line":153},4,[155,160,164,168,173],{"type":13,"tag":73,"props":156,"children":157},{"style":91},[158],{"type":18,"value":159}," VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVE ",{"type":13,"tag":73,"props":161,"children":162},{"style":80},[163],{"type":18,"value":108},{"type":13,"tag":73,"props":165,"children":166},{"style":80},[167],{"type":18,"value":113},{"type":13,"tag":73,"props":169,"children":170},{"style":116},[171],{"type":18,"value":172},"00000004",{"type":13,"tag":73,"props":174,"children":175},{"style":91},[176],{"type":18,"value":124},{"type":13,"tag":73,"props":178,"children":180},{"class":75,"line":179},5,[181,186,190,194,199],{"type":13,"tag":73,"props":182,"children":183},{"style":91},[184],{"type":18,"value":185}," VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVE ",{"type":13,"tag":73,"props":187,"children":188},{"style":80},[189],{"type":18,"value":108},{"type":13,"tag":73,"props":191,"children":192},{"style":80},[193],{"type":18,"value":113},{"type":13,"tag":73,"props":195,"children":196},{"style":116},[197],{"type":18,"value":198},"00000008",{"type":13,"tag":73,"props":200,"children":201},{"style":91},[202],{"type":18,"value":124},{"type":13,"tag":73,"props":204,"children":206},{"class":75,"line":205},6,[207,212,216,220,225],{"type":13,"tag":73,"props":208,"children":209},{"style":91},[210],{"type":18,"value":211}," VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVE ",{"type":13,"tag":73,"props":213,"children":214},{"style":80},[215],{"type":18,"value":108},{"type":13,"tag":73,"props":217,"children":218},{"style":80},[219],{"type":18,"value":113},{"type":13,"tag":73,"props":221,"children":222},{"style":116},[223],{"type":18,"value":224},"00000010",{"type":13,"tag":73,"props":226,"children":227},{"style":91},[228],{"type":18,"value":124},{"type":13,"tag":73,"props":230,"children":232},{"class":75,"line":231},7,[233],{"type":13,"tag":73,"props":234,"children":235},{"style":91},[236],{"type":18,"value":237},"} VkVideoEncodeRgbModelConversionFlagBitsVALVE;\n",{"type":13,"tag":61,"props":239,"children":244},{"className":240,"code":241,"filename":242,"language":243,"meta":67,"style":67},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct VideoEncodeRgbModelConversionFlagBitsVALVE(u32);\nimpl VideoEncodeRgbModelConversionFlagBitsVALVE {\n pub const RGB_IDENTITY: Self = 0x00000001;\n pub const YCBCR_IDENTITY: Self = 0x00000002;\n pub const YCBCR_709: Self = 0x00000004;\n pub const YCBCR_601: Self = 0x00000008;\n pub const YCBCR_2020: Self = 0x00000010;\n}\n","Rust","rs",[245],{"type":13,"tag":21,"props":246,"children":247},{"__ignoreMap":67},[248,282,299,342,379,416,453,490],{"type":13,"tag":73,"props":249,"children":250},{"class":75,"line":76},[251,256,261,267,272,277],{"type":13,"tag":73,"props":252,"children":253},{"style":80},[254],{"type":18,"value":255},"pub",{"type":13,"tag":73,"props":257,"children":258},{"style":80},[259],{"type":18,"value":260}," struct",{"type":13,"tag":73,"props":262,"children":264},{"style":263},"--shiki-default:#953800;--shiki-dark:#FFA657",[265],{"type":18,"value":266}," VideoEncodeRgbModelConversionFlagBitsVALVE",{"type":13,"tag":73,"props":268,"children":269},{"style":91},[270],{"type":18,"value":271},"(",{"type":13,"tag":73,"props":273,"children":274},{"style":263},[275],{"type":18,"value":276},"u32",{"type":13,"tag":73,"props":278,"children":279},{"style":91},[280],{"type":18,"value":281},");\n",{"type":13,"tag":73,"props":283,"children":284},{"class":75,"line":97},[285,290,294],{"type":13,"tag":73,"props":286,"children":287},{"style":80},[288],{"type":18,"value":289},"impl",{"type":13,"tag":73,"props":291,"children":292},{"style":263},[293],{"type":18,"value":266},{"type":13,"tag":73,"props":295,"children":296},{"style":91},[297],{"type":18,"value":298}," {\n",{"type":13,"tag":73,"props":300,"children":301},{"class":75,"line":127},[302,307,312,317,322,327,332,337],{"type":13,"tag":73,"props":303,"children":304},{"style":80},[305],{"type":18,"value":306}," pub",{"type":13,"tag":73,"props":308,"children":309},{"style":80},[310],{"type":18,"value":311}," const",{"type":13,"tag":73,"props":313,"children":314},{"style":116},[315],{"type":18,"value":316}," RGB_IDENTITY",{"type":13,"tag":73,"props":318,"children":319},{"style":80},[320],{"type":18,"value":321},":",{"type":13,"tag":73,"props":323,"children":324},{"style":116},[325],{"type":18,"value":326}," Self",{"type":13,"tag":73,"props":328,"children":329},{"style":80},[330],{"type":18,"value":331}," =",{"type":13,"tag":73,"props":333,"children":334},{"style":116},[335],{"type":18,"value":336}," 0x00000001",{"type":13,"tag":73,"props":338,"children":339},{"style":91},[340],{"type":18,"value":341},";\n",{"type":13,"tag":73,"props":343,"children":344},{"class":75,"line":153},[345,349,353,358,362,366,370,375],{"type":13,"tag":73,"props":346,"children":347},{"style":80},[348],{"type":18,"value":306},{"type":13,"tag":73,"props":350,"children":351},{"style":80},[352],{"type":18,"value":311},{"type":13,"tag":73,"props":354,"children":355},{"style":116},[356],{"type":18,"value":357}," YCBCR_IDENTITY",{"type":13,"tag":73,"props":359,"children":360},{"style":80},[361],{"type":18,"value":321},{"type":13,"tag":73,"props":363,"children":364},{"style":116},[365],{"type":18,"value":326},{"type":13,"tag":73,"props":367,"children":368},{"style":80},[369],{"type":18,"value":331},{"type":13,"tag":73,"props":371,"children":372},{"style":116},[373],{"type":18,"value":374}," 0x00000002",{"type":13,"tag":73,"props":376,"children":377},{"style":91},[378],{"type":18,"value":341},{"type":13,"tag":73,"props":380,"children":381},{"class":75,"line":179},[382,386,390,395,399,403,407,412],{"type":13,"tag":73,"props":383,"children":384},{"style":80},[385],{"type":18,"value":306},{"type":13,"tag":73,"props":387,"children":388},{"style":80},[389],{"type":18,"value":311},{"type":13,"tag":73,"props":391,"children":392},{"style":116},[393],{"type":18,"value":394}," YCBCR_709",{"type":13,"tag":73,"props":396,"children":397},{"style":80},[398],{"type":18,"value":321},{"type":13,"tag":73,"props":400,"children":401},{"style":116},[402],{"type":18,"value":326},{"type":13,"tag":73,"props":404,"children":405},{"style":80},[406],{"type":18,"value":331},{"type":13,"tag":73,"props":408,"children":409},{"style":116},[410],{"type":18,"value":411}," 0x00000004",{"type":13,"tag":73,"props":413,"children":414},{"style":91},[415],{"type":18,"value":341},{"type":13,"tag":73,"props":417,"children":418},{"class":75,"line":205},[419,423,427,432,436,440,444,449],{"type":13,"tag":73,"props":420,"children":421},{"style":80},[422],{"type":18,"value":306},{"type":13,"tag":73,"props":424,"children":425},{"style":80},[426],{"type":18,"value":311},{"type":13,"tag":73,"props":428,"children":429},{"style":116},[430],{"type":18,"value":431}," YCBCR_601",{"type":13,"tag":73,"props":433,"children":434},{"style":80},[435],{"type":18,"value":321},{"type":13,"tag":73,"props":437,"children":438},{"style":116},[439],{"type":18,"value":326},{"type":13,"tag":73,"props":441,"children":442},{"style":80},[443],{"type":18,"value":331},{"type":13,"tag":73,"props":445,"children":446},{"style":116},[447],{"type":18,"value":448}," 0x00000008",{"type":13,"tag":73,"props":450,"children":451},{"style":91},[452],{"type":18,"value":341},{"type":13,"tag":73,"props":454,"children":455},{"class":75,"line":231},[456,460,464,469,473,477,481,486],{"type":13,"tag":73,"props":457,"children":458},{"style":80},[459],{"type":18,"value":306},{"type":13,"tag":73,"props":461,"children":462},{"style":80},[463],{"type":18,"value":311},{"type":13,"tag":73,"props":465,"children":466},{"style":116},[467],{"type":18,"value":468}," YCBCR_2020",{"type":13,"tag":73,"props":470,"children":471},{"style":80},[472],{"type":18,"value":321},{"type":13,"tag":73,"props":474,"children":475},{"style":116},[476],{"type":18,"value":326},{"type":13,"tag":73,"props":478,"children":479},{"style":80},[480],{"type":18,"value":331},{"type":13,"tag":73,"props":482,"children":483},{"style":116},[484],{"type":18,"value":485}," 0x00000010",{"type":13,"tag":73,"props":487,"children":488},{"style":91},[489],{"type":18,"value":341},{"type":13,"tag":73,"props":491,"children":493},{"class":75,"line":492},8,[494],{"type":13,"tag":73,"props":495,"children":496},{"style":91},[497],{"type":18,"value":498},"}\n",{"type":13,"tag":500,"props":501,"children":502},"ul",{},[503,515,540,581,617],{"type":13,"tag":504,"props":505,"children":506},"li",{},[507,513],{"type":13,"tag":21,"props":508,"children":510},{"className":509},[],[511],{"type":18,"value":512},"VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_RGB_IDENTITY_BIT_VALVE",{"type":18,"value":514},"\nspecifies the color components are not modified by the color model\nconversion since they are assumed to represent the desired color model\nfor video coding; R′G′B′ range compression is applied to the\ncomponents.",{"type":13,"tag":504,"props":516,"children":517},{},[518,524,526,532,533,538],{"type":13,"tag":21,"props":519,"children":521},{"className":520},[],[522],{"type":18,"value":523},"VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_IDENTITY_BIT_VALVE",{"type":18,"value":525},"\nspecifies the color components are not modified by the color model\nconversion are assumed to be treated as though in Y′C",{"type":13,"tag":527,"props":528,"children":529},"sub",{},[530],{"type":18,"value":531},"B",{"type":18,"value":65},{"type":13,"tag":527,"props":534,"children":535},{},[536],{"type":18,"value":537},"R",{"type":18,"value":539}," form; video\nencode R′G′B′ range compression and video encode R′G′B′ chroma\nsubsampling is also ignored.",{"type":13,"tag":504,"props":541,"children":542},{},[543,549,551,555,556,560,562,566,567,571,573,579],{"type":13,"tag":21,"props":544,"children":546},{"className":545},[],[547],{"type":18,"value":548},"VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_709_BIT_VALVE",{"type":18,"value":550}," specifies\nthe color components are transformed from an R′G′B′ representation\nto a Y′C",{"type":13,"tag":527,"props":552,"children":553},{},[554],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":557,"children":558},{},[559],{"type":18,"value":537},{"type":18,"value":561}," representation as described in the BT.709 Y′C",{"type":13,"tag":527,"props":563,"children":564},{},[565],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":568,"children":569},{},[570],{"type":18,"value":537},{"type":18,"value":572},"\nconversion section of the ",{"type":13,"tag":30,"props":574,"children":576},{"href":575},"/chapters/introduction#data-format",[577],{"type":18,"value":578},"Khronos Data Format\nSpecification",{"type":18,"value":580},".",{"type":13,"tag":504,"props":582,"children":583},{},[584,590,591,595,596,600,602,606,607,611,612,616],{"type":13,"tag":21,"props":585,"children":587},{"className":586},[],[588],{"type":18,"value":589},"VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_601_BIT_VALVE",{"type":18,"value":550},{"type":13,"tag":527,"props":592,"children":593},{},[594],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":597,"children":598},{},[599],{"type":18,"value":537},{"type":18,"value":601}," representation as described in the BT.601 Y′C",{"type":13,"tag":527,"props":603,"children":604},{},[605],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":608,"children":609},{},[610],{"type":18,"value":537},{"type":18,"value":572},{"type":13,"tag":30,"props":613,"children":614},{"href":575},[615],{"type":18,"value":578},{"type":18,"value":580},{"type":13,"tag":504,"props":618,"children":619},{},[620,626,628,632,633,637,639,643,644,648,650,654],{"type":13,"tag":21,"props":621,"children":623},{"className":622},[],[624],{"type":18,"value":625},"VK_VIDEO_ENCODE_RGB_MODEL_CONVERSION_YCBCR_2020_BIT_VALVE",{"type":18,"value":627},"\nspecifies the color components are transformed from an R′G′B′\nrepresentation to a Y′C",{"type":13,"tag":527,"props":629,"children":630},{},[631],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":634,"children":635},{},[636],{"type":18,"value":537},{"type":18,"value":638}," representation as described in the BT.2020\nY′C",{"type":13,"tag":527,"props":640,"children":641},{},[642],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":645,"children":646},{},[647],{"type":18,"value":537},{"type":18,"value":649}," conversion section of the ",{"type":13,"tag":30,"props":651,"children":652},{"href":575},[653],{"type":18,"value":578},{"type":18,"value":580},{"type":13,"tag":656,"props":657,"children":658},"note",{},[659],{"type":13,"tag":14,"props":660,"children":661},{},[662,664,681],{"type":18,"value":663},"Video encode R′G′B′ model conversion transformations have the inverse\ndefinition of ",{"type":13,"tag":30,"props":665,"children":667},{"href":666},"/chapters/textures#textures-sampler-YCbCr-conversion-modelconversion",[668,670,674,675,679],{"type":18,"value":669},"sampler\nY′C",{"type":13,"tag":527,"props":671,"children":672},{},[673],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":676,"children":677},{},[678],{"type":18,"value":537},{"type":18,"value":680}," model conversion",{"type":18,"value":682}," transformations.",{"type":13,"tag":656,"props":684,"children":685},{},[686],{"type":13,"tag":14,"props":687,"children":688},{},[689,691,695,696,700,702,707],{"type":18,"value":690},"The video encode R′G′B′ model conversion step does not apply any\ntransfer function, only converting from R′G′B′ to Y′C",{"type":13,"tag":527,"props":692,"children":693},{},[694],{"type":18,"value":531},{"type":18,"value":65},{"type":13,"tag":527,"props":697,"children":698},{},[699],{"type":18,"value":537},{"type":18,"value":701}," using the\nprimaries of the specified ",{"type":13,"tag":21,"props":703,"children":705},{"className":704},[],[706],{"type":18,"value":26},{"type":18,"value":708}," color model.",{"type":13,"tag":710,"props":711,"children":712},"style",{},[713],{"type":18,"value":714},"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":67,"searchDepth":97,"depth":97,"links":716},[],"markdown",1773165471717]