diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-07-30 13:07:08 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-07-30 13:07:08 -0400 |
commit | bbc4722277845fbe190fc997f3a2eb2408f6152e (patch) | |
tree | 98596ca31bee8a28b8e98e6b638640ebe06fe0c9 /src/bootsplash.c | |
parent | 2976dd4204405cd9b1296732a5a7ad6d67d8dd73 (diff) | |
download | seabios-hppa-bbc4722277845fbe190fc997f3a2eb2408f6152e.zip seabios-hppa-bbc4722277845fbe190fc997f3a2eb2408f6152e.tar.gz seabios-hppa-bbc4722277845fbe190fc997f3a2eb2408f6152e.tar.bz2 |
Breakup jpeg_decode into parsing and displaying phases.
Split the screen display code out of the jpeg parsing code.
Allow ability for caller to obtain jpeg dimensions.
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r-- | src/bootsplash.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c index 2c45406..b381935 100644 --- a/src/bootsplash.c +++ b/src/bootsplash.c @@ -187,12 +187,17 @@ void enable_vga_console(void) dprintf(8, "Copying boot splash screen...\n"); cbfs_copyfile(file, jpeg, filesize); dprintf(8, "Decompressing boot splash screen...\n"); - int ret = jpeg_decode(jpeg, picture, CONFIG_BOOTSPLASH_X, - CONFIG_BOOTSPLASH_Y, CONFIG_BOOTSPLASH_DEPTH, decdata); + int ret = jpeg_decode(decdata, jpeg); if (ret) { dprintf(1, "jpeg_decode failed with return code %d...\n", ret); goto gotext; } + ret = jpeg_show(decdata, picture, CONFIG_BOOTSPLASH_X, CONFIG_BOOTSPLASH_Y + , CONFIG_BOOTSPLASH_DEPTH); + if (ret) { + dprintf(1, "jpeg_show failed with return code %d...\n", ret); + goto gotext; + } /* Show the picture */ iomemcpy(framebuffer, picture, imagesize); |