Lines Matching refs:uint32_t

328 static uint32_t SrgbColorToLinear(uint32_t color) {  in SrgbColorToLinear()
332 uint32_t r8 = r * 255.0f; in SrgbColorToLinear()
333 uint32_t g8 = g * 255.0f; in SrgbColorToLinear()
334 uint32_t b8 = b * 255.0f; in SrgbColorToLinear()
335 uint32_t a8 = color >> 24; in SrgbColorToLinear()
339 static uint32_t LinearColorToSrgb(uint32_t color) { in LinearColorToSrgb()
343 uint32_t r8 = r * 255.0f; in LinearColorToSrgb()
344 uint32_t g8 = g * 255.0f; in LinearColorToSrgb()
345 uint32_t b8 = b * 255.0f; in LinearColorToSrgb()
346 uint32_t a8 = color >> 24; in LinearColorToSrgb()
350 static uint32_t LerpColor(uint32_t color0, uint32_t color1, float t) { in LerpColor()
359 uint32_t r8 = (r0 * (1.0f - t) + r1 * t) * 255.0f; in LerpColor()
360 uint32_t g8 = (g0 * (1.0f - t) + g1 * t) * 255.0f; in LerpColor()
361 uint32_t b8 = (b0 * (1.0f - t) + b1 * t) * 255.0f; in LerpColor()
362 uint32_t a8 = (a0 * (1.0f - t) + a1 * t) * 255.0f; in LerpColor()
368 constexpr uint32_t kFramebufferWidth = 31;
372 constexpr uint32_t kTextureData[] = {
376 constexpr uint32_t kTextureWidth = sizeof(kTextureData) / sizeof(kTextureData[0]);
379 const uint32_t kExpectedMiddlePixel_NoSrgb = LerpColor(kTextureData[0], kTextureData[1], 0.5f);
380 const uint32_t kExpectedMiddlePixel_LinearizeAfterFiltering =
382 const uint32_t kExpectedMiddlePixel_LinearizeBeforeFiltering =
386 constexpr uint32_t kBlendDestColor = 0xff000080;
387 constexpr uint32_t kBlendSourceColor = 0x80800000;
388 const uint32_t kExpectedBlendedPixel_NoSrgb = LerpColor(kBlendSourceColor, kBlendDestColor, 0.5f);
389 const uint32_t kExpectedBlendedPixel_Srgb =
394 constexpr uint32_t kHardwareBuffer = 1 << 0;
395 constexpr uint32_t kSrgbFormat = 1 << 1;
396 constexpr uint32_t kEglColorspaceDefault = 1 << 2;
397 constexpr uint32_t kEglColorspaceLinear = 1 << 3;
398 constexpr uint32_t kEglColorspaceSrgb = 1 << 4;
401 static void configureEglColorspace(EGLint attrs[4], uint32_t srgb_flags) { in configureEglColorspace()
419 static void printSrgbFlags(std::ostream& out, uint32_t srgb_flags) { in printSrgbFlags()
438 static void testLinearMagnification(JNIEnv* env, uint32_t flags, uint32_t* middle_pixel) { in testLinearMagnification()
457 uint32_t* pixels = nullptr; in testLinearMagnification()
507 static void testFramebufferBlending(JNIEnv* env, uint32_t flags, uint32_t* final_color) { in testFramebufferBlending()
519 const uint32_t kTextureData[] = { in testFramebufferBlending()
572 uint32_t cleared_color = 0; in testFramebufferBlending()
650 uint32_t middle_pixel; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestSrgbBuffer()
672 uint32_t final_color; in Java_android_vr_cts_VrExtensionBehaviorTest_nativeTestSrgbBuffer()