From 6a0d931f383259b4b82fcfd1cc87700f53bbcb02 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Fri, 19 Jun 2009 02:56:00 +0000 Subject: Core JPEG decoder improvements: For >8-point vertical IDCT, transpose the coefficients while decoding them, so that the vertical IDCT can read in rows rather than columns. This improves speed a bit for this size even using the C IDCT. Remove inline ARM asm, replacing it with an external file containing pure asm IDCT functions. Add jpeg_ prefix to JPEG IDCT functions since some of them will now be visible globally. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21345 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/lib/SOURCES | 3 +++ apps/plugins/lib/pluginlib_jpeg_idct_arm.S | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 apps/plugins/lib/pluginlib_jpeg_idct_arm.S (limited to 'apps/plugins/lib') diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES index 7211109271..2ed38c4f8b 100644 --- a/apps/plugins/lib/SOURCES +++ b/apps/plugins/lib/SOURCES @@ -27,6 +27,9 @@ playergfx.c profile_plugin.c #endif #ifdef HAVE_LCD_BITMAP +#ifdef CPU_ARM +pluginlib_jpeg_idct_arm.S +#endif pluginlib_jpeg_mem.c pluginlib_resize.c #ifndef HAVE_JPEG diff --git a/apps/plugins/lib/pluginlib_jpeg_idct_arm.S b/apps/plugins/lib/pluginlib_jpeg_idct_arm.S new file mode 100644 index 0000000000..5e6149d59f --- /dev/null +++ b/apps/plugins/lib/pluginlib_jpeg_idct_arm.S @@ -0,0 +1,24 @@ +/*************************************************************************** +* __________ __ ___. +* Open \______ \ ____ ____ | | _\_ |__ _______ ___ +* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / +* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < +* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ +* \/ \/ \/ \/ \/ +* $Id$ +* +* Copyright (C) 2009 by Andrew Mahone +* +* This is a wrapper for the core jpeg_idct_arm.S +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +* KIND, either express or implied. +* +****************************************************************************/ + +#include "recorder/jpeg_idct_arm.S" -- cgit v1.2.3