Home
last modified time | relevance | path

Searched refs:rgba8888Buf (Results 1 - 3 of 3) sorted by relevance

/foundation/window/window_manager/snapshot/test/unittest/
H A Dsnapshot_utils_test.cpp115 uint8_t rgba8888Buf[RGBA8888BUF_SIZE]; in HWTEST_F() local
117 EXPECT_FALSE(SnapShotUtils::RGBA8888ToRGB888(rgba8888Buf, nullptr, RGBA8888BUF_SIZE)); in HWTEST_F()
119 EXPECT_FALSE(SnapShotUtils::RGBA8888ToRGB888(rgba8888Buf, rgb888Buf, 0)); in HWTEST_F()
120 EXPECT_TRUE(SnapShotUtils::RGBA8888ToRGB888(rgba8888Buf, rgb888Buf, RGBA8888BUF_SIZE)); in HWTEST_F()
/foundation/window/window_manager/snapshot/include/
H A Dsnapshot_utils.h56 static bool RGBA8888ToRGB888(const uint8_t* rgba8888Buf, uint8_t* rgb888Buf, int32_t size);
/foundation/window/window_manager/snapshot/src/
H A Dsnapshot_utils.cpp191 bool SnapShotUtils::RGBA8888ToRGB888(const uint8_t* rgba8888Buf, uint8_t* rgb888Buf, int32_t size) in RGBA8888ToRGB888() argument
193 if (rgba8888Buf == nullptr || rgb888Buf == nullptr || size <= 0) { in RGBA8888ToRGB888()
197 const uint32_t* rgba8888 = reinterpret_cast<const uint32_t*>(rgba8888Buf); in RGBA8888ToRGB888()

Completed in 3 milliseconds