From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41013) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYffD-0008Gj-RK for qemu-devel@nongnu.org; Mon, 29 Sep 2014 14:27:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XYffC-0007Yj-TL for qemu-devel@nongnu.org; Mon, 29 Sep 2014 14:27:11 -0400 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54082) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XYffC-0007L2-ND for qemu-devel@nongnu.org; Mon, 29 Sep 2014 14:27:10 -0400 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.80) (envelope-from ) id 1XYfev-0005nw-Rv for qemu-devel@nongnu.org; Mon, 29 Sep 2014 19:26:53 +0100 From: Peter Maydell Date: Mon, 29 Sep 2014 19:26:38 +0100 Message-Id: <1412015213-22268-5-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1412015213-22268-1-git-send-email-peter.maydell@linaro.org> References: <1412015213-22268-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PULL 04/19] hw/display/blizzard.c: Delete unused function blizzard_rgb2yuv List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The function blizzard_rgb2yuv() is unused; delete it. Signed-off-by: Peter Maydell Message-id: 1410723223-17711-2-git-send-email-peter.maydell@linaro.org --- hw/display/blizzard.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/hw/display/blizzard.c b/hw/display/blizzard.c index 55c0ddf..92b1fac 100644 --- a/hw/display/blizzard.c +++ b/hw/display/blizzard.c @@ -134,14 +134,6 @@ static const int blizzard_iformat_bpp[0x10] = { 0, 0, 0, 0, 0, 0, }; -static inline void blizzard_rgb2yuv(int r, int g, int b, - int *y, int *u, int *v) -{ - *y = 0x10 + ((0x838 * r + 0x1022 * g + 0x322 * b) >> 13); - *u = 0x80 + ((0xe0e * b - 0x04c1 * r - 0x94e * g) >> 13); - *v = 0x80 + ((0xe0e * r - 0x0bc7 * g - 0x247 * b) >> 13); -} - static void blizzard_window(BlizzardState *s) { DisplaySurface *surface = qemu_console_surface(s->con); -- 1.9.1