Home
last modified time | relevance | path

Searched refs:ramp (Results 1 – 25 of 30) sorted by relevance

12

/third_party/glfw/src/
Dmonitor.c198 void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size) in _glfwAllocGammaArrays() argument
200 ramp->red = calloc(size, sizeof(unsigned short)); in _glfwAllocGammaArrays()
201 ramp->green = calloc(size, sizeof(unsigned short)); in _glfwAllocGammaArrays()
202 ramp->blue = calloc(size, sizeof(unsigned short)); in _glfwAllocGammaArrays()
203 ramp->size = size; in _glfwAllocGammaArrays()
206 void _glfwFreeGammaArrays(GLFWgammaramp* ramp) in _glfwFreeGammaArrays() argument
208 free(ramp->red); in _glfwFreeGammaArrays()
209 free(ramp->green); in _glfwFreeGammaArrays()
210 free(ramp->blue); in _glfwFreeGammaArrays()
212 memset(ramp, 0, sizeof(GLFWgammaramp)); in _glfwFreeGammaArrays()
[all …]
Dx11_monitor.c415 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument
424 _glfwAllocGammaArrays(ramp, size); in _glfwPlatformGetGammaRamp()
426 memcpy(ramp->red, gamma->red, size * sizeof(unsigned short)); in _glfwPlatformGetGammaRamp()
427 memcpy(ramp->green, gamma->green, size * sizeof(unsigned short)); in _glfwPlatformGetGammaRamp()
428 memcpy(ramp->blue, gamma->blue, size * sizeof(unsigned short)); in _glfwPlatformGetGammaRamp()
438 _glfwAllocGammaArrays(ramp, size); in _glfwPlatformGetGammaRamp()
442 ramp->size, ramp->red, ramp->green, ramp->blue); in _glfwPlatformGetGammaRamp()
447 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument
451 XRRCrtcGamma* gamma = XRRAllocGamma(ramp->size); in _glfwPlatformSetGammaRamp()
453 memcpy(gamma->red, ramp->red, ramp->size * sizeof(unsigned short)); in _glfwPlatformSetGammaRamp()
[all …]
Dcocoa_monitor.m357 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp)
369 _glfwAllocGammaArrays(ramp, size);
373 ramp->red[i] = (unsigned short) (values[i] * 65535);
374 ramp->green[i] = (unsigned short) (values[i + size] * 65535);
375 ramp->blue[i] = (unsigned short) (values[i + size * 2] * 65535);
381 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp)
384 CGGammaValue* values = calloc(ramp->size * 3, sizeof(CGGammaValue));
386 for (i = 0; i < ramp->size; i++)
388 values[i] = ramp->red[i] / 65535.f;
389 values[i + ramp->size] = ramp->green[i] / 65535.f;
[all …]
Dwin32_monitor.c346 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument
355 _glfwAllocGammaArrays(ramp, 256); in _glfwPlatformGetGammaRamp()
357 memcpy(ramp->red, values + 0, 256 * sizeof(unsigned short)); in _glfwPlatformGetGammaRamp()
358 memcpy(ramp->green, values + 256, 256 * sizeof(unsigned short)); in _glfwPlatformGetGammaRamp()
359 memcpy(ramp->blue, values + 512, 256 * sizeof(unsigned short)); in _glfwPlatformGetGammaRamp()
362 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument
367 if (ramp->size != 256) in _glfwPlatformSetGammaRamp()
374 memcpy(values + 0, ramp->red, 256 * sizeof(unsigned short)); in _glfwPlatformSetGammaRamp()
375 memcpy(values + 256, ramp->green, 256 * sizeof(unsigned short)); in _glfwPlatformSetGammaRamp()
376 memcpy(values + 512, ramp->blue, 256 * sizeof(unsigned short)); in _glfwPlatformSetGammaRamp()
Dinternal.h578 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp);
583 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp);
1014 void _glfwAllocGammaArrays(GLFWgammaramp* ramp, unsigned int size);
1018 void _glfwFreeGammaArrays(GLFWgammaramp* ramp);
Dmir_monitor.c159 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument
165 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument
Dwl_monitor.c244 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument
251 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument
/third_party/glfw/docs/
Dmonitor.dox28 a gamma ramp. One of the monitors is the primary monitor.
96 a gamma ramp.
173 @subsection monitor_gamma Gamma ramp
175 The gamma ramp of a monitor can be set with @ref glfwSetGammaRamp, which accepts
179 GLFWgammaramp ramp;
182 ramp.size = 256;
183 ramp.red = red;
184 ramp.green = green;
185 ramp.blue = blue;
187 for (i = 0; i < ramp.size; i++)
[all …]
Dnews.dox257 @subsection news_30_gamma Gamma ramp support
259 GLFW now supports setting and reading back the gamma ramp of monitors, with the
261 glfwSetGamma, which generates a ramp from a gamma value and then sets it.
Dcompat.dox71 GLFW uses the XRandR 1.3 and Xf86vidmode extensions to provide gamma ramp
73 extensions, gamma ramp support will not function.
Dwindow.dox138 is restored, but the gamma ramp is left untouched.
/third_party/skia/third_party/externals/abseil-cpp/absl/types/
Dspan_test.cc293 auto ramp = MakeRamp(10); in TEST() local
294 EXPECT_THAT(absl::MakeSpan(ramp).subspan(), SpanIs(ramp)); in TEST()
295 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 10), SpanIs(ramp)); in TEST()
296 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, absl::Span<const int>::npos), in TEST()
297 SpanIs(ramp)); in TEST()
298 EXPECT_THAT(absl::MakeSpan(ramp).subspan(0, 3), SpanIs(ramp.data(), 3)); in TEST()
299 EXPECT_THAT(absl::MakeSpan(ramp).subspan(5, absl::Span<const int>::npos), in TEST()
300 SpanIs(ramp.data() + 5, 5)); in TEST()
301 EXPECT_THAT(absl::MakeSpan(ramp).subspan(3, 3), SpanIs(ramp.data() + 3, 3)); in TEST()
302 EXPECT_THAT(absl::MakeSpan(ramp).subspan(10, 5), SpanIs(ramp.data() + 10, 0)); in TEST()
[all …]
/third_party/libwebsockets/lib/drivers/led/
DREADME.md84 0 - 65535 that it was given, so it's a sawtooth ramp.
150 lws_pwmseq_linear_wipe|single 0 - 100% ramp over 0.3s
/third_party/skia/tools/skottie_ios_app/
DBUILD.gn35 "../../resources/skottie/skottie-gradient-ramp.json",
/third_party/skia/src/shaders/gradients/
DSk4fLinearGradient.cpp18 void ramp(const Sk4f& c, const Sk4f& dc, SkPMColor dst[], int n, in ramp() function
243 ramp<premul>(proc.currentColor(), proc.currentColorGrad(), dst, n, in shadeSpanInternal()
/third_party/libevdev/include/linux/linux/
Dinput.h457 struct ff_ramp_effect ramp; member
/third_party/libinput/include/linux/freebsd/
Dinput.h453 struct ff_ramp_effect ramp; member
/third_party/libinput/include/linux/linux/
Dinput.h452 struct ff_ramp_effect ramp; member
/third_party/openGLES/extensions/EXT/
DWGL_EXT_display_color_table.txt50 changing their default ramp?
53 default to a linear ramp.
/third_party/skia/third_party/externals/opengl-registry/extensions/EXT/
DWGL_EXT_display_color_table.txt50 changing their default ramp?
53 default to a linear ramp.
/third_party/openGLES/extensions/SGIX/
DSGIX_pixel_texture_bits.txt39 a linear ramp. This means that the texture must be
/third_party/skia/third_party/externals/opengl-registry/extensions/SGIX/
DSGIX_pixel_texture_bits.txt39 a linear ramp. This means that the texture must be
/third_party/glfw/include/GLFW/
Dglfw3.h1667 GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp);
/third_party/skia/third_party/externals/imgui/examples/libs/glfw/include/GLFW/
Dglfw3.h1659 GLFWAPI void glfwSetGammaRamp(GLFWmonitor* monitor, const GLFWgammaramp* ramp);
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fSynchronizationTests.cpp111 void generateShuffledRamp (int numElements, std::vector<int>& ramp) in generateShuffledRamp() argument
116 ramp.resize(numElements); in generateShuffledRamp()
118 ramp[callNdx] = callNdx + 1; in generateShuffledRamp()
120 rng.shuffle(ramp.begin(), ramp.end()); in generateShuffledRamp()

12