HomeSort by: relevance | last modified time | path
    Searched refs:srgb (Results 1 - 25 of 66) sorted by relevancy

1 2 3

  /xsrc/external/mit/pixman/dist/pixman/
make-srgb.pl 36 my $srgb = int(linear_to_srgb($linear / 4095.0) * 255.0 + 0.5);
37 push @linear_to_srgb, $srgb;
41 for my $srgb (0 .. 255)
43 my $linear = int(srgb_to_linear($srgb / 255.0) * 65535.0 + 0.5);
47 # Ensure that we have a lossless sRGB and back conversion loop.
50 # least amount of error in the sRGB-to-linear table, and keeps the actual
52 for my $srgb (0 .. $#srgb_to_linear)
57 my $linear = $srgb_to_linear[$srgb];
59 last if $srgb == $srgb_lossy;
62 $srgb_to_linear[$srgb] ++
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/util/tests/format/
srgb.c 30 const enum pipe_format srgb = util_format_srgb(linear); local
31 if (format != srgb) {
32 fprintf(stderr, "%s converted to linear and back to srgb becomes %s\n",
34 util_format_name(srgb));
  /xsrc/external/mit/MesaLib/dist/src/mesa/main/
formats.csv 48 # - color space: rgb, srgb, yub, sz
144 # Packed sRGB formats
145 MESA_FORMAT_A8B8G8R8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
146 MESA_FORMAT_B8G8R8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
147 MESA_FORMAT_A8R8G8B8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
148 MESA_FORMAT_B8G8R8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb
149 MESA_FORMAT_X8R8G8B8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb
150 MESA_FORMAT_R8G8B8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
151 MESA_FORMAT_R8G8B8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , xyz1, srgb
152 MESA_FORMAT_X8B8G8R8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
    [all...]
format_fallback.py 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
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
formats.csv 48 # - color space: rgb, srgb, yub, sz
148 # Packed sRGB formats
149 MESA_FORMAT_A8B8G8R8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
150 MESA_FORMAT_B8G8R8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
151 MESA_FORMAT_A8R8G8B8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , yzwx, srgb
152 MESA_FORMAT_B8G8R8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , zyx1, srgb
153 MESA_FORMAT_X8R8G8B8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , yzw1, srgb
154 MESA_FORMAT_R8G8B8A8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
155 MESA_FORMAT_R8G8B8X8_SRGB , packed, 1, 1, 1, un8 , un8 , un8 , x8 , xyz1, srgb
156 MESA_FORMAT_X8B8G8R8_SRGB , packed, 1, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
    [all...]
format_fallback.py 45 if fmt.colorspace != 'srgb':
49 ('SRGB', 'RGB'),
50 ('SRGB', 'UNORM'),
66 # Every sRGB format MUST have a UNORM equivalent
93 * For an sRGB format, return the corresponding linear color space format.
94 * For non-sRGB formats, return the format as-is.
100 %for unorm, srgb in unorm_to_srgb_map:
101 case ${srgb}:
110 * For a linear format, return the corresponding sRGB color space format.
111 * For an sRGB format, return the format as-is
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/util/format/
u_format.csv 50 # - color space: rgb, srgb, yuv, zs
135 # SRGB formats
136 PIPE_FORMAT_L8_SRGB , plain, 1, 1, 1, un8 , , , , xxx1, srgb
137 PIPE_FORMAT_R8_SRGB , plain, 1, 1, 1, un8 , , , , x001, srgb
138 PIPE_FORMAT_L8A8_SRGB , plain, 1, 1, 1, un8 , un8 , , , xxxy, srgb
139 PIPE_FORMAT_R8G8_SRGB , plain, 1, 1, 1, un8 , un8 , , , xy01, srgb
140 PIPE_FORMAT_R8G8B8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , , xyz1, srgb
141 PIPE_FORMAT_B8G8R8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , , zyx1, srgb
142 PIPE_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
143 PIPE_FORMAT_A8B8G8R8_SRGB , plain, 1, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
    [all...]
u_format_s3tc.c 127 unsigned block_size, boolean srgb)
138 if (srgb) {
204 unsigned block_size, boolean srgb)
215 if (srgb) {
292 unsigned block_size, boolean srgb)
305 if (srgb) {
370 unsigned block_size, boolean srgb)
382 if (srgb) {
443 * SRGB variants.
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/auxiliary/util/
u_format.csv 48 # - color space: rgb, srgb, yuv, zs
115 # SRGB formats
116 PIPE_FORMAT_L8_SRGB , plain, 1, 1, un8 , , , , xxx1, srgb
117 PIPE_FORMAT_R8_SRGB , plain, 1, 1, un8 , , , , x001, srgb
118 PIPE_FORMAT_L8A8_SRGB , plain, 1, 1, un8 , un8 , , , xxxy, srgb
119 PIPE_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb
120 PIPE_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
121 PIPE_FORMAT_A8B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , wzyx, srgb
122 PIPE_FORMAT_X8B8G8R8_SRGB , plain, 1, 1, x8 , un8 , un8 , un8 , wzy1, srgb
123 PIPE_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
    [all...]
u_format_s3tc.c 124 unsigned block_size, boolean srgb)
135 if (srgb) {
201 unsigned block_size, boolean srgb)
212 if (srgb) {
289 unsigned block_size, boolean srgb)
302 if (srgb) {
367 unsigned block_size, boolean srgb)
379 if (srgb) {
440 * SRGB variants.
  /xsrc/external/mit/MesaLib.old/dist/src/amd/vulkan/
vk_format_layout.csv 19 VK_FORMAT_R8_SRGB , plain, 1, 1, un8 , , , , x001, srgb
26 VK_FORMAT_R8G8_SRGB , plain, 1, 1, un8 , un8 , , , xy01, srgb
33 VK_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb
40 VK_FORMAT_B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , , zyx1, srgb
47 VK_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
54 VK_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
61 VK_FORMAT_A8B8G8R8_SRGB_PACK32 , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
148 VK_FORMAT_BC1_RGB_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyz1, srgb
150 VK_FORMAT_BC1_RGBA_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyzw, srgb
152 VK_FORMAT_BC2_SRGB_BLOCK , s3tc, 4, 4, x128, , , , xyzw, srgb
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/freedreno/vulkan/
vk_format_layout.csv 19 VK_FORMAT_R8_SRGB , plain, 1, 1, un8 , , , , x001, srgb
26 VK_FORMAT_R8G8_SRGB , plain, 1, 1, un8 , un8 , , , xy01, srgb
33 VK_FORMAT_R8G8B8_SRGB , plain, 1, 1, un8 , un8 , un8 , , xyz1, srgb
40 VK_FORMAT_B8G8R8_SRGB , plain, 1, 1, un8 , un8 , un8 , , zyx1, srgb
47 VK_FORMAT_R8G8B8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
54 VK_FORMAT_B8G8R8A8_SRGB , plain, 1, 1, un8 , un8 , un8 , un8 , zyxw, srgb
61 VK_FORMAT_A8B8G8R8_SRGB_PACK32 , plain, 1, 1, un8 , un8 , un8 , un8 , xyzw, srgb
136 VK_FORMAT_BC1_RGB_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyz1, srgb
138 VK_FORMAT_BC1_RGBA_SRGB_BLOCK , s3tc, 4, 4, x64 , , , , xyzw, srgb
140 VK_FORMAT_BC2_SRGB_BLOCK , s3tc, 4, 4, x128, , , , xyzw, srgb
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/broadcom/vulkan/
v3dvx_image.c 135 tex.srgb = vk_format_is_srgb(image_view->vk.format);
184 tex.srgb = vk_format_is_srgb(buffer_view->vk_format);
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/zink/
zink_clear.h 39 bool srgb; member in struct:zink_framebuffer_clear_data::__anon2058::__anon2059
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a5xx/
fd5_image.c 48 bool srgb; member in struct:fd5_image
75 img->srgb = util_format_is_srgb(format);
153 COND(img->srgb, A5XX_TEX_CONST_0_SRGB));
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a5xx/
fd5_image.c 49 bool srgb; member in struct:fd5_image
76 img->srgb = util_format_is_srgb(format);
138 COND(img->srgb, A5XX_TEX_CONST_0_SRGB));
  /xsrc/external/mit/MesaLib/dist/src/mesa/drivers/common/
meta_generate_mipmap.c 91 /* The texture format is sRGB but we can't turn off sRGB->linear
96 "glGenerateMipmap() of sRGB texture without "
97 "sRGB decode\n");
230 const bool srgb = _mesa_is_format_srgb(baseImage->TexFormat); local
233 srgb ? GL_DECODE_EXT : GL_SKIP_DECODE_EXT);
234 _mesa_set_framebuffer_srgb(ctx, srgb);
  /xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a6xx/
fd6_image.c 41 bool srgb; member in struct:fd6_image
71 img->srgb = util_format_is_srgb(format);
149 img->srgb = util_format_is_srgb(format);
  /xsrc/external/mit/MesaLib.old/dist/src/mesa/drivers/common/
meta_generate_mipmap.c 91 /* The texture format is sRGB but we can't turn off sRGB->linear
96 "glGenerateMipmap() of sRGB texture without "
97 "sRGB decode\n");
230 const bool srgb = local
234 srgb ? GL_DECODE_EXT : GL_SKIP_DECODE_EXT);
235 _mesa_set_framebuffer_srgb(ctx, srgb);
  /xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/
tu_util.h 270 uint64_t srgb;
325 PACK_F(srgb, r16g16b16a16_float); /* TODO: clamp? */
  /xsrc/external/mit/mesa-demos/dist/src/wgl/
wglinfo.c 64 bool srgb; member in struct:format_info
348 printf(" rgba: cRedBits=%d cGreenBits=%d cBlueBits=%d cAlphaBits=%d float=%c sRGB=%c\n",
352 info->srgb ? 'Y' : 'N');
395 info->srgb ? 's' : '.',
436 info->srgb ? 's' : '.',
537 info->srgb = get_pf_attrib(hdc, pf, WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB);
  /xsrc/external/mit/MesaLib/dist/src/panfrost/lib/
pan_format.c 47 #define BFMT2(pipe, internal, writeback, srgb) \
51 { MALI_BLEND_PU_ ## internal | (srgb ? (1 << 20) : 0) | \
53 MALI_BLEND_AU_ ## internal | (srgb ? (1 << 20) : 0) | \
57 #define BFMT2(pipe, internal, writeback, srgb) \
61 { MALI_BLEND_PU_ ## internal | (srgb ? (1 << 20) : 0), \
62 MALI_BLEND_AU_ ## internal | (srgb ? (1 << 20) : 0) } \
148 #define FMT(pipe, mali, swizzle, srgb, flags) \
152 ((( SRGB_ ## srgb)) << 20), \
163 #define FMT(pipe, mali, swizzle, srgb, flags) \
167 ((( SRGB_ ## srgb)) << 20),
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/
fd6_image.c 44 bool srgb; member in struct:fd6_image
73 img->srgb = util_format_is_srgb(format);
156 img->srgb = util_format_is_srgb(format);
  /xsrc/external/mit/MesaLib/dist/src/intel/isl/
gen_format_layout.py 115 % for srgb, rgb in srgb_to_linear_map:
116 case ISL_FORMAT_${srgb}:
241 """Compute a map from sRGB to linear formats.
244 the conversion. However, we do assert that, if it's SRGB, the munging
249 if fmt.colorspace != 'SRGB':
254 ('SRGB', 'RGB'),
  /xsrc/external/mit/MesaLib/dist/src/panfrost/util/
pan_lower_framebuffer.c 393 /* Wrapper around sRGB conversion */
401 nir_ssa_def *srgb = nir_f2fmp(b, local
405 nir_channel(b, srgb, 0),
406 nir_channel(b, srgb, 1),
407 nir_channel(b, srgb, 2),

Completed in 21 milliseconds

1 2 3