Searched refs:srgb (Results 1 - 25 of 71) sorted by relevance

123

/xsrc/external/mit/pixman/dist/pixman/
H A Dmake-srgb.pl36 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);
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] ++;
65 die "Too many adds at $srgb" if $add > 5;
102 for my $srgb (
[all...]
/xsrc/external/mit/MesaLib/dist/src/util/tests/format/
H A Dsrgb.c30 const enum pipe_format srgb = util_format_srgb(linear); local in function:main
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/broadcom/vulkan/
H A Dv3dvx_image.c135 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.old/dist/src/gallium/auxiliary/util/
H A Du_format_s3tc.c124 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) {
120 util_format_dxtn_rgb_unpack_rgba_8unorm(uint8_t * dst_row,unsigned dst_stride,const uint8_t * src_row,unsigned src_stride,unsigned width,unsigned height,util_format_dxtn_fetch_t fetch,unsigned block_size,boolean srgb) argument
197 util_format_dxtn_rgb_unpack_rgba_float(float * dst_row,unsigned dst_stride,const uint8_t * src_row,unsigned src_stride,unsigned width,unsigned height,util_format_dxtn_fetch_t fetch,unsigned block_size,boolean srgb) argument
285 util_format_dxtn_pack_rgba_8unorm(uint8_t * dst_row,unsigned dst_stride,const uint8_t * src,unsigned src_stride,unsigned width,unsigned height,enum util_format_dxtn format,unsigned block_size,boolean srgb) argument
363 util_format_dxtn_pack_rgba_float(uint8_t * dst_row,unsigned dst_stride,const float * src,unsigned src_stride,unsigned width,unsigned height,enum util_format_dxtn format,unsigned block_size,boolean srgb) argument
/xsrc/external/mit/MesaLib/dist/src/util/format/
H A Du_format_s3tc.c127 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) {
123 util_format_dxtn_rgb_unpack_rgba_8unorm(uint8_t * restrict dst_row,unsigned dst_stride,const uint8_t * restrict src_row,unsigned src_stride,unsigned width,unsigned height,util_format_dxtn_fetch_t fetch,unsigned block_size,boolean srgb) argument
200 util_format_dxtn_rgb_unpack_rgba_float(float * restrict dst_row,unsigned dst_stride,const uint8_t * restrict src_row,unsigned src_stride,unsigned width,unsigned height,util_format_dxtn_fetch_t fetch,unsigned block_size,boolean srgb) argument
288 util_format_dxtn_pack_rgba_8unorm(uint8_t * restrict dst_row,unsigned dst_stride,const uint8_t * restrict src,unsigned src_stride,unsigned width,unsigned height,enum util_format_dxtn format,unsigned block_size,boolean srgb) argument
366 util_format_dxtn_pack_rgba_float(uint8_t * restrict dst_row,unsigned dst_stride,const float * restrict src,unsigned src_stride,unsigned width,unsigned height,enum util_format_dxtn format,unsigned block_size,boolean srgb) argument
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/zink/
H A Dzink_clear.h39 bool srgb; member in struct:zink_framebuffer_clear_data::__anon7290fca7010a::__anon7290fca70208
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_image.c49 bool srgb; member in struct:fd5_image
76 img->srgb = util_format_is_srgb(format);
138 COND(img->srgb, A5XX_TEX_CONST_0_SRGB));
H A Dfd5_gmem.c55 bool srgb = false, sint = false, uint = false; local in function:emit_mrt
78 srgb = util_format_is_srgb(pformat);
105 COND(srgb, A5XX_RB_MRT_BUF_INFO_COLOR_SRGB));
120 COND(srgb, A5XX_SP_FS_MRT_REG_COLOR_SRGB));
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a5xx/
H A Dfd5_image.c48 bool srgb; member in struct:fd5_image
75 img->srgb = util_format_is_srgb(format);
153 COND(img->srgb, A5XX_TEX_CONST_0_SRGB));
H A Dfd5_gmem.c55 bool srgb = false, sint = false, uint = false; local in function:emit_mrt
78 srgb = util_format_is_srgb(pformat);
108 COND(srgb, A5XX_RB_MRT_BUF_INFO_COLOR_SRGB));
123 COND(srgb, A5XX_SP_FS_MRT_REG_COLOR_SRGB));
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_image.c41 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/
H A Dmeta_generate_mipmap.c230 const bool srgb = local in function:_mesa_meta_GenerateMipmap
234 srgb ? GL_DECODE_EXT : GL_SKIP_DECODE_EXT);
235 _mesa_set_framebuffer_srgb(ctx, srgb);
/xsrc/external/mit/MesaLib/dist/src/mesa/drivers/common/
H A Dmeta_generate_mipmap.c230 const bool srgb = _mesa_is_format_srgb(baseImage->TexFormat); local in function:_mesa_meta_GenerateMipmap
233 srgb ? GL_DECODE_EXT : GL_SKIP_DECODE_EXT);
234 _mesa_set_framebuffer_srgb(ctx, srgb);
/xsrc/external/mit/MesaLib/dist/src/freedreno/vulkan/
H A Dtu_util.h270 uint64_t srgb; member in struct:bcolor_entry
325 PACK_F(srgb, r16g16b16a16_float); /* TODO: clamp? */
/xsrc/external/mit/mesa-demos/dist/src/wgl/
H A Dwglinfo.c64 bool srgb; member in struct:format_info
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/
H A Dpan_format.c47 #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)) << 2
[all...]
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/freedreno/a6xx/
H A Dfd6_image.c44 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/panfrost/util/
H A Dpan_lower_framebuffer.c401 nir_ssa_def *srgb = nir_f2fmp(b, local in function:pan_linear_to_srgb
405 nir_channel(b, srgb, 0),
406 nir_channel(b, srgb, 1),
407 nir_channel(b, srgb, 2),
/xsrc/external/mit/MesaLib.old/dist/src/mesa/main/
H A Dtexcompress_astc.cpp544 Decoder(int block_w, int block_h, int block_d, bool srgb, bool output_unorm8) argument
545 : block_w(block_w), block_h(block_h), block_d(block_d), srgb(srgb),
551 bool srgb, output_unorm8; member in class:Decoder
662 assert(!srgb); /* srgb must use unorm8 */
1611 assert(!decoder.srgb || decoder.output_unorm8);
1616 if (decoder.srgb) {
1659 if (decoder.srgb) {
1701 if (decoder.srgb) {
1833 bool srgb = _mesa_get_format_color_encoding(format) == GL_SRGB; local in function:_mesa_unpack_astc_2d_ldr
[all...]
/xsrc/external/mit/MesaLib/dist/src/mesa/main/
H A Dtexcompress_astc.cpp545 Decoder(int block_w, int block_h, int block_d, bool srgb, bool output_unorm8) argument
546 : block_w(block_w), block_h(block_h), block_d(block_d), srgb(srgb),
552 bool srgb, output_unorm8; member in class:Decoder
663 assert(!srgb); /* srgb must use unorm8 */
1612 assert(!decoder.srgb || decoder.output_unorm8);
1617 if (decoder.srgb) {
1660 if (decoder.srgb) {
1702 if (decoder.srgb) {
1834 bool srgb = _mesa_is_format_srgb(format); local in function:_mesa_unpack_astc_2d_ldr
[all...]
/xsrc/external/mit/mesa-demos/dist/src/xdemos/
H A Dglxinfo.c102 int srgb; member in struct:visual_attribs
789 glXGetConfig(dpy, vInfo, GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, &attribs->srgb);
905 glXGetFBConfigAttrib(dpy, fbconfig, GLX_FRAMEBUFFER_SRGB_CAPABLE_EXT, &attribs->srgb);
938 attribs->srgb ? 'Y' : 'N');
994 attribs->srgb ? 's' : '.',
1039 attribs->srgb ? 's' : '.',
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/freedreno/a4xx/
H A Dfd4_program.c442 bool srgb = false; local in function:fd4_program_emit
446 srgb = util_format_is_srgb(bufs[i]->format);
450 COND(srgb, A4XX_SP_FS_MRT_REG_COLOR_SRGB) |
/xsrc/external/mit/MesaLib/dist/docs/relnotes/
H A D11.0.9.rst48 - egl/dri2: expose srgb configs when KHR_gl_colorspace is available
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/vc4/
H A Dvc4_nir_lower_blend.c448 bool srgb = util_format_is_srgb(color_format); local in function:vc4_nir_blend_pipeline
463 if (srgb) {
/xsrc/external/mit/MesaLib.old/dist/src/gallium/state_trackers/nine/
H A Dnine_pipe.h299 boolean srgb,
308 if (srgb)
294 d3d9_to_pipe_format_checked(struct pipe_screen * screen,D3DFORMAT format,enum pipe_texture_target target,unsigned sample_count,unsigned bindings,boolean srgb,boolean bypass_check) argument

Completed in 56 milliseconds

123