Home
last modified time | relevance | path

Searched refs:clamp_rgb (Results 1 – 3 of 3) sorted by relevance

/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp66 signed clamp_rgb(signed value) { in clamp_rgb() function
106 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb565_to_yv12()
109 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb565_to_yv12()
110 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb565_to_yv12()
144 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb888_to_yv12()
147 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb888_to_yv12()
148 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb888_to_yv12()
180 yv12_y[i] = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgb888_to_yuv420p()
183 yv12_u[i] = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgb888_to_yuv420p()
184 yv12_v[i] = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgb888_to_yuv420p()
[all …]
DFormatConversions.h29 signed clamp_rgb(signed value);
/device/generic/goldfish/camera/
DEmulatedFakeRotatingCameraDevice.cpp62 static signed clamp_rgb(signed value) { in clamp_rgb() function
81 uint8_t Y = clamp_rgb((77 * R + 150 * G + 29 * B) >> 8); in rgba8888_to_nv21()
86 uint8_t V = clamp_rgb((( 128 * R - 107 * G - 21 * B) >> 8) + 128); in rgba8888_to_nv21()
87 uint8_t U = clamp_rgb((( -43 * R - 85 * G + 128 * B) >> 8) + 128); in rgba8888_to_nv21()