diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-10-16 22:55:40 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-10-16 22:55:40 +0000 |
| commit | fc43b9df823af80dd1c9cf7dc1b5de6703944043 (patch) | |
| tree | bb17b985d00d13bc6fce61823acbe50ed1e003b0 /apps/plugins/mpegplayer/mpeg2_internal.h | |
| parent | 84f5c5c3e3590cb993f4cf2a7eba5979e3bc825b (diff) | |
| download | rockbox-fc43b9df823af80dd1c9cf7dc1b5de6703944043.zip rockbox-fc43b9df823af80dd1c9cf7dc1b5de6703944043.tar.gz rockbox-fc43b9df823af80dd1c9cf7dc1b5de6703944043.tar.bz2 rockbox-fc43b9df823af80dd1c9cf7dc1b5de6703944043.tar.xz | |
Mpegplayer: Assembler optimised IDCT for coldfire, based on FS #5995 by Karim Boucher. Put the IDCT block buffer in IRAM for better performance. The whole libmpeg2 decoder struct doesn't fit without throwing some libmad buffers out of IRAM, but then doesn't change performance significantly. Mpegplayer is quite usable now on X5; H300 is sort-of usable for widescreen.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15156 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer/mpeg2_internal.h')
| -rw-r--r-- | apps/plugins/mpegplayer/mpeg2_internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/mpegplayer/mpeg2_internal.h b/apps/plugins/mpegplayer/mpeg2_internal.h index 0c552b7..1ec85c6 100644 --- a/apps/plugins/mpegplayer/mpeg2_internal.h +++ b/apps/plugins/mpegplayer/mpeg2_internal.h @@ -20,6 +20,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + +#include "config.h" /* for Rockbox CPU_ #defines */ /* macroblock modes */ #define MACROBLOCK_INTRA 1 @@ -92,7 +94,11 @@ struct mpeg2_decoder_s { int16_t dc_dct_pred[3]; /* DCT coefficients */ +#ifdef CPU_COLDFIRE + int16_t *DCTblock; /* put buffer separately to have it in IRAM */ +#else int16_t DCTblock[64] ATTR_ALIGN(64); +#endif uint8_t * picture_dest[3]; void (* convert) (void * convert_id, uint8_t * const * src, |