/third_party/flutter/glfw/src/ |
D | monitor.c | 198 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 …]
|
D | x11_monitor.c | 415 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 …]
|
D | cocoa_monitor.m | 357 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 …]
|
D | win32_monitor.c | 346 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()
|
D | mir_monitor.c | 159 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument 165 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument
|
D | internal.h | 578 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);
|
D | wl_monitor.c | 244 void _glfwPlatformGetGammaRamp(_GLFWmonitor* monitor, GLFWgammaramp* ramp) in _glfwPlatformGetGammaRamp() argument 251 void _glfwPlatformSetGammaRamp(_GLFWmonitor* monitor, const GLFWgammaramp* ramp) in _glfwPlatformSetGammaRamp() argument
|
/third_party/flutter/skia/third_party/externals/sdl/test/ |
D | testautomation_pixels.c | 412 Uint16 *ramp; in pixels_calcGammaRamp() local 419 ramp = (Uint16 *)SDL_malloc(256 * sizeof(Uint16)); in pixels_calcGammaRamp() 420 SDLTest_AssertCheck(ramp != NULL, "Validate temp ramp array could be allocated"); in pixels_calcGammaRamp() 421 if (ramp == NULL) return TEST_ABORTED; in pixels_calcGammaRamp() 445 for (i = 0; i < 256; i++) ramp[i] = magic; in pixels_calcGammaRamp() 446 SDL_CalculateGammaRamp(gamma, ramp); in pixels_calcGammaRamp() 449 for (i = 0; i < 256; i++) if (ramp[i] != magic) changed++; in pixels_calcGammaRamp() 456 …SDLTest_AssertCheck(ramp[i] == 0, "Validate value at position %d; expected: 0, got: %d", i, ramp[i… in pixels_calcGammaRamp() 459 …SDLTest_AssertCheck(ramp[i] == ((i << 8) | i), "Validate value at position %d; expected: %d, got: … in pixels_calcGammaRamp() 463 …SDLTest_AssertCheck(ramp[i] > 0, "Validate value at position %d; expected: >0, got: %d", i, ramp[i… in pixels_calcGammaRamp() [all …]
|
D | testhaptic.c | 249 efx[nefx].ramp.direction.type = SDL_HAPTIC_CARTESIAN; in main() 250 efx[nefx].ramp.direction.dir[0] = 1; /* Force comes from */ in main() 251 efx[nefx].ramp.direction.dir[1] = -1; /* the north-east. */ in main() 252 efx[nefx].ramp.length = 5000; in main() 253 efx[nefx].ramp.start = 0x4000; in main() 254 efx[nefx].ramp.end = -0x4000; in main() 255 efx[nefx].ramp.attack_length = 1000; in main() 256 efx[nefx].ramp.fade_length = 1000; in main()
|
/third_party/flutter/glfw/docs/ |
D | monitor.dox | 28 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 …]
|
/third_party/abseil-cpp/absl/types/ |
D | span_test.cc | 293 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/skia/third_party/externals/abseil-cpp/absl/types/ |
D | span_test.cc | 293 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/flutter/skia/third_party/externals/sdl/src/haptic/linux/ |
D | SDL_syshaptic.c | 729 SDL_HapticRamp *ramp; in SDL_SYS_ToFFEffect() local 865 ramp = &src->ramp; in SDL_SYS_ToFFEffect() 869 if (SDL_SYS_ToDirection(&dest->direction, &ramp->direction) == -1) in SDL_SYS_ToFFEffect() 873 dest->replay.length = (ramp->length == SDL_HAPTIC_INFINITY) ? in SDL_SYS_ToFFEffect() 874 0 : CLAMP(ramp->length); in SDL_SYS_ToFFEffect() 875 dest->replay.delay = CLAMP(ramp->delay); in SDL_SYS_ToFFEffect() 878 dest->trigger.button = SDL_SYS_ToButton(ramp->button); in SDL_SYS_ToFFEffect() 879 dest->trigger.interval = CLAMP(ramp->interval); in SDL_SYS_ToFFEffect() 882 dest->u.ramp.start_level = ramp->start; in SDL_SYS_ToFFEffect() 883 dest->u.ramp.end_level = ramp->end; in SDL_SYS_ToFFEffect() [all …]
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/mir/ |
D | SDL_mirwindow.c | 382 MIR_SetWindowGammaRamp(_THIS, SDL_Window* window, Uint16 const* ramp) in MIR_SetWindowGammaRamp() argument 390 ramp + ramp_size * 0, in MIR_SetWindowGammaRamp() 391 ramp + ramp_size * 1, in MIR_SetWindowGammaRamp() 392 ramp + ramp_size * 2, in MIR_SetWindowGammaRamp() 401 MIR_GetWindowGammaRamp(_THIS, SDL_Window* window, Uint16* ramp) in MIR_GetWindowGammaRamp() argument 409 ramp + ramp_size * 0, in MIR_GetWindowGammaRamp() 410 ramp + ramp_size * 1, in MIR_GetWindowGammaRamp() 411 ramp + ramp_size * 2, in MIR_GetWindowGammaRamp()
|
D | SDL_mirwindow.h | 85 MIR_SetWindowGammaRamp(_THIS, SDL_Window* window, Uint16 const* ramp); 88 MIR_GetWindowGammaRamp(_THIS, SDL_Window* window, Uint16* ramp);
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/haiku/ |
D | SDL_bwindow.h | 44 extern int BE_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp); 45 extern int BE_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp);
|
D | SDL_bwindow.cc | 193 int BE_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp) { in BE_SetWindowGammaRamp() argument 198 int BE_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp) { in BE_GetWindowGammaRamp() argument
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/windows/ |
D | SDL_windowswindow.h | 69 extern int WIN_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp); 70 extern int WIN_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp);
|
D | SDL_windowswindow.c | 616 WIN_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp) in WIN_SetWindowGammaRamp() argument 625 succeeded = SetDeviceGammaRamp(hdc, (LPVOID)ramp); in WIN_SetWindowGammaRamp() 635 WIN_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp) in WIN_GetWindowGammaRamp() argument 644 succeeded = GetDeviceGammaRamp(hdc, (LPVOID)ramp); in WIN_GetWindowGammaRamp()
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/windows/ |
D | SDL_dinputhaptic.c | 622 DIRAMPFORCE *ramp; in SDL_SYS_ToDIEFFECT() local 799 hap_ramp = &src->ramp; in SDL_SYS_ToDIEFFECT() 800 ramp = SDL_malloc(sizeof(DIRAMPFORCE)); in SDL_SYS_ToDIEFFECT() 801 if (ramp == NULL) { in SDL_SYS_ToDIEFFECT() 804 SDL_memset(ramp, 0, sizeof(DIRAMPFORCE)); in SDL_SYS_ToDIEFFECT() 807 ramp->lStart = CONVERT(hap_ramp->start); in SDL_SYS_ToDIEFFECT() 808 ramp->lEnd = CONVERT(hap_ramp->end); in SDL_SYS_ToDIEFFECT() 810 dest->lpvTypeSpecificParams = ramp; in SDL_SYS_ToDIEFFECT()
|
/third_party/flutter/skia/third_party/externals/sdl/src/haptic/darwin/ |
D | SDL_syshaptic.c | 780 FFRAMPFORCE *ramp = NULL; in SDL_SYS_ToFFEFFECT() local 962 hap_ramp = &src->ramp; in SDL_SYS_ToFFEFFECT() 963 ramp = SDL_malloc(sizeof(FFRAMPFORCE)); in SDL_SYS_ToFFEFFECT() 964 if (ramp == NULL) { in SDL_SYS_ToFFEFFECT() 967 SDL_memset(ramp, 0, sizeof(FFRAMPFORCE)); in SDL_SYS_ToFFEFFECT() 970 ramp->lStart = CONVERT(hap_ramp->start); in SDL_SYS_ToFFEFFECT() 971 ramp->lEnd = CONVERT(hap_ramp->end); in SDL_SYS_ToFFEFFECT() 973 dest->lpvTypeSpecificParams = ramp; in SDL_SYS_ToFFEFFECT()
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/cocoa/ |
D | SDL_cocoawindow.h | 138 extern int Cocoa_SetWindowGammaRamp(_THIS, SDL_Window * window, const Uint16 * ramp); 139 extern int Cocoa_GetWindowGammaRamp(_THIS, SDL_Window * window, Uint16 * ramp);
|
/third_party/flutter/skia/third_party/externals/sdl/src/video/ |
D | SDL_pixels.c | 1088 SDL_CalculateGammaRamp(float gamma, Uint16 * ramp) in SDL_CalculateGammaRamp() argument 1097 if (ramp == NULL) { in SDL_CalculateGammaRamp() 1104 SDL_memset(ramp, 0, 256 * sizeof(Uint16)); in SDL_CalculateGammaRamp() 1109 ramp[i] = (i << 8) | i; in SDL_CalculateGammaRamp() 1122 ramp[i] = (Uint16) value; in SDL_CalculateGammaRamp()
|
D | SDL_sysvideo.h | 224 int (*SetWindowGammaRamp) (_THIS, SDL_Window * window, const Uint16 * ramp); 225 int (*GetWindowGammaRamp) (_THIS, SDL_Window * window, Uint16 * ramp);
|
/third_party/gstreamer/gstplugins_base/gst/audiotestsrc/ |
D | gstaudiotestsrc.c | 957 gdouble ramp; \ 959 ramp = \ 963 if (ramp > 1.0) \ 964 ramp = 1.0; \ 965 ramp *= ramp * ramp; \ 967 ramp = 1.0; \ 971 (g##type) volscale * ramp * src->wave_table[(gint) (src->accumulator * scl)]; \
|