From: Mark Jackson <mpfj@mimc.co.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3] Add 16bpp BMP support
Date: Sun, 01 Feb 2009 19:28:34 +0000 [thread overview]
Message-ID: <4985F7E2.6040901@mimc.co.uk> (raw)
In-Reply-To: <20090130221319.CA28C832E416@gemini.denx.de>
Wolfgang Denk wrote:
> Dear Guennadi Liakhovetski,
>
> In message <Pine.LNX.4.64.0901302206180.4617@axis700.grange> you wrote:
>> platform-specific types and code. So, looking at this your patch - do we
>> really need the one more CONFIG_ define for CONFIG_BMP_16BPP? What are the
>> drawbacks of adding your code unconditionally? extra 100 bytes for all
>> configurations using LCD?
>
> Yes.
In fact, there's almost a case for adding *even more* #defines to remove
the 1bpp and 8bpp code when you've #defined your board to use 16bpp.
>
>> Another question - do you really need 16bpp bmp? I saw a discussion on
>> this list, that other picture formats should not be added to U-Boot - you
>> can easily convert any format to bmp. Are 256 colours really not enough
>> for you? I used a real photo today as a test image, converted to an 8-bit
>> bmp. It looked well enough on my qvga. And normally you use this lcd code
>> to display a splashscreen, which is usually a computer-generated image, so
>> 256 colours should suffice? Although, I am not an expert in graphical
>> desing.
>
> I can understand that 8 bpp doe snot satisfy anoybode with more than
> just basic graphics needs.
Exactly ... in my case, I boot up linux which is also using 16bpp. My
aim was to have the bootsplash image displayed by u-boot, and remain
*intact* throughtout the linux boot sequence. Switching from 8bpp (in
u-boot) to 16bpp (in linux) would cause some nasty screen corruption,
and require the image to be re-displayed, which kind of spoils the whole
concept of a boot logo.
>
>> If we really add more bmp formats, we also get more combinations like of
>> bmp / lcd:
>
> Not necessarily. We can always request that bitmap images match the
> "natural" color depth of the display. It makes no sense to send a 16
> bpp image to a 1 bpp display, nor does it vice versa.
As far as I understand, U-boot was not written be some fully-fledged OS
... rather to just allow a smooth transition from power-on to "real" OS.
Thus we only need to support some fairly "simple" combinations of
options, but enough to keep the majority happy.
I guess up till now, 1bpp and 8bpp have been sufficient.
>
>> BMP LCD
>> 1-bit 1-bit
>> 8-bit 1-bit
>> 16-bit 1-bit
>> 1-bit 8-bit
>> ...
>>
>> if we really want to go that way, maybe better break this code into
>> several functions for different format conversions?
>
> We do NOT want to do everything that is possible, but only what is
> reasonable.
Exactly ... otherwise where do you stop ? JPG, GIF, TIFF, PNG, etc ?
We're *only* meant to be showing a simply boot up image (not view lots
of different sized photos or movies !!), in a very controlled
environment (i.e. no "user" options ... just what the designers want /
require).
Regards
Mark
next prev parent reply other threads:[~2009-02-01 19:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-27 14:16 [U-Boot] [PATCH v3] Add 16bpp BMP support Mark Jackson
2009-01-28 21:11 ` Wolfgang Denk
2009-01-29 10:01 ` Mark Jackson
2009-01-29 10:56 ` Wolfgang Denk
2009-01-30 11:57 ` Mark Jackson
2009-01-30 21:23 ` Guennadi Liakhovetski
2009-01-30 22:13 ` Wolfgang Denk
2009-01-30 22:56 ` Guennadi Liakhovetski
2009-02-01 19:28 ` Mark Jackson [this message]
2009-02-02 8:01 ` Haavard Skinnemoen
2009-02-02 14:17 ` Mark Jackson
2009-02-23 10:26 ` Haavard Skinnemoen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4985F7E2.6040901@mimc.co.uk \
--to=mpfj@mimc.co.uk \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.