summaryrefslogtreecommitdiff
path: root/apps/recorder/resize.c
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-13 13:48:26 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-13 13:48:26 +0000
commit2fbf09752d385af861279af195d68f920859202d (patch)
tree98bf09ebc24217d122b61c2a079337b793c35d9b /apps/recorder/resize.c
parentc0d9084d6a5182460da0472a4e88d6d078adb86e (diff)
downloadrockbox-2fbf09752d385af861279af195d68f920859202d.tar.gz
rockbox-2fbf09752d385af861279af195d68f920859202d.zip
remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api,
and remove wrapper for it from plugin.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/resize.c')
-rw-r--r--apps/recorder/resize.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/recorder/resize.c b/apps/recorder/resize.c
index 99ccc84d55..2e6c3ff266 100644
--- a/apps/recorder/resize.c
+++ b/apps/recorder/resize.c
@@ -31,6 +31,7 @@
31 * 31 *
32 ****************************************************************************/ 32 ****************************************************************************/
33 33
34#include <system.h>
34#include <stdio.h> 35#include <stdio.h>
35#include <stdlib.h> 36#include <stdlib.h>
36#include <string.h> 37#include <string.h>
@@ -616,10 +617,7 @@ int resize_on_load(struct bitmap *bm, bool dither, struct dim *src,
616 uint8_t sc_buf[(needed <= len || needed > MAX_SC_STACK_ALLOC) ? 617 uint8_t sc_buf[(needed <= len || needed > MAX_SC_STACK_ALLOC) ?
617 0 : needed]; 618 0 : needed];
618#endif 619#endif
619#if CONFIG_CODEC == SWCODEC 620 ALIGN_BUFFER(buf, len, sizeof(uint32_t));
620 len = (unsigned int)align_buffer(PUN_PTR(void**, &buf), len,
621 sizeof(uint32_t));
622#endif
623 if (needed > len) 621 if (needed > len)
624 { 622 {
625#if MAX_SC_STACK_ALLOC 623#if MAX_SC_STACK_ALLOC