Lines Matching full:srgb
45 if fmt.colorspace != 'srgb':
49 ('SRGB', 'RGB'),
50 ('SRGB', 'UNORM'),
66 # Every sRGB format MUST have a UNORM equivalent
107 * For an sRGB format, return the corresponding linear color space format.
108 * For non-sRGB formats, return the format as-is.
114 %for unorm, srgb in unorm_to_srgb_map:
115 case ${srgb}:
124 * For a linear format, return the corresponding sRGB color space format.
125 * For an sRGB format, return the format as-is.
126 * Assert-fails if the format is not sRGB and does not have an sRGB equivalent.
132 %for unorm, srgb in unorm_to_srgb_map:
134 return ${srgb};
136 %for unorm, srgb in unorm_to_srgb_map:
137 case ${srgb}:
141 unreachable("Given format does not have an sRGB equivalent");