Fuzev2: use RGB565SWAPPED (pointed out by amiconn) => 91fps

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25478 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-04-05 07:10:01 +00:00
parent 5b8aca84dc
commit 0f951b1de8
4 changed files with 6 additions and 6 deletions

View File

@ -86,7 +86,7 @@
#define LCD_WIDTH 220
#define LCD_HEIGHT 176
#define LCD_DEPTH 16 /* 65536 colours */
#define LCD_PIXELFORMAT RGB565 /* rgb565 */
#define LCD_PIXELFORMAT RGB565SWAPPED /* rgb565 swapped */
/* AS3514 or newer */

View File

@ -133,7 +133,7 @@ static void dbop_write_data(const int16_t* p_bytes, int count)
{ /* need to do a single 16bit write beforehand if the address is
* not word aligned or count is 1, switch to 16bit mode if needed */
dbop_set_mode(16);
DBOP_DOUT16 = swap16(*p_bytes++);
DBOP_DOUT16 = *p_bytes++;
if (!(--count))
return;
}
@ -146,7 +146,7 @@ static void dbop_write_data(const int16_t* p_bytes, int count)
while (count > 1)
{
DBOP_DOUT32 = swap_odd_even32(*data++);
DBOP_DOUT32 = *data++;
count -= 2;
/* Wait if push fifo is full */
@ -179,7 +179,7 @@ static void lcd_write_cmd(unsigned short cmd)
static void lcd_write_reg(int reg, int value)
{
int16_t data = value;
int16_t data = swap16(value);
lcd_write_cmd(reg);
dbop_write_data(&data, 1);
}

View File

@ -581,7 +581,7 @@ void print_usage(void)
"\t 2 Iriver H1x0 4-grey\n"
"\t 3 Canonical 8-bit greyscale\n"
"\t 4 16-bit packed 5-6-5 RGB (iriver H300)\n"
"\t 5 16-bit packed and byte-swapped 5-6-5 RGB (iPod)\n"
"\t 5 16-bit packed and byte-swapped 5-6-5 RGB (iPod, Fuzev2)\n"
"\t 6 Greyscale iPod 4-grey\n"
"\t 7 Greyscale X5 remote 4-grey\n"
"\t 8 16-bit packed 5-6-5 RGB with a vertical stride\n");

2
tools/configure vendored
View File

@ -2100,7 +2100,7 @@ fi
target="-DSANSA_FUZEV2"
memory=8 # not sure
bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
bmp2rb_native="$rootdir/tools/bmp2rb -f 5"
tool="$rootdir/tools/scramble -add=fuz2"
output="rockbox.sansa"
bootoutput="bootloader-fuzev2.sansa"