Home
last modified time | relevance | path

Searched refs:rgb565 (Results 1 - 2 of 2) sorted by relevance

/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/
H A Dtest_common.cpp98 uint16_t rgb565 = r | g | b; in color_to_565() local
101 unsigned r1 = ((unsigned)rgb565 >> 11) & 0x1F; in color_to_565()
102 unsigned g1 = ((unsigned)rgb565 >> 5) & 0x3F; in color_to_565()
103 unsigned b1 = (unsigned)rgb565 & 0x1F; in color_to_565()
/foundation/window/window_manager/snapshot/src/
H A Dsnapshot_utils.cpp212 const uint16_t* rgb565 = reinterpret_cast<const uint16_t*>(rgb565Buf); in RGB565ToRGB888() local
214 rgb888Buf[i * RGB888_PIXEL_BYTES + R_INDEX] = (rgb565[i] & RGB565_MASK_RED); in RGB565ToRGB888()
215 rgb888Buf[i * RGB888_PIXEL_BYTES + G_INDEX] = (rgb565[i] & RGB565_MASK_GREEN) >> SHIFT_5_BIT; in RGB565ToRGB888()
216 rgb888Buf[i * RGB888_PIXEL_BYTES + B_INDEX] = (rgb565[i] & RGB565_MASK_BLUE) >> SHIFT_11_BIT; in RGB565ToRGB888()
302 std::cout << "snapshot: convert rgb565 to rgb888 successfully." << std::endl; in WriteToJpeg()
345 std::cout << "snapshot: convert rgb565 to rgb888 successfully." << std::endl; in WriteToJpeg()

Completed in 2 milliseconds