From: Knut Petersen <Knut_Petersen@t-online.de>
To: "Antonino A. Daplas" <adaplas@gmail.com>
Cc: linux-fbdev-devel@lists.sourceforge.net
Subject: Re: RFC: bitmap line alignment
Date: Fri, 25 Nov 2005 15:10:50 +0100 [thread overview]
Message-ID: <43871B6A.8090705@t-online.de> (raw)
In-Reply-To: <43870557.2090005@gmail.com>
Hi Tony,
>If you create your own info->pixmap and an info->pixmap.scan_align = 4, the
>driver will be fed a bitmap that have a scanline that is 32-bit aligned.
>The default if you don't specify anything, of course, will be an 8-bit
>aligned bitmap which, for the sake of code efficiency, is the alignment
>assumed by the cfb_* drawing functions.
>
>(An example usage is in the patch I attached just a few days ago when
>I commented how the cyberblade should be intelligent enough to handle
>bitmaps with variable widths.)
>
>
Well, here is what I did: A quick look at the changes in
cyblafb_imageblit made
it very clear to me that the code could not work as I assumed a totaly
wrong format
for the image data. To me it was obvious from a look at skeletonfb that
the data was
a continous bit field without anything like alignment gaps. Anyway, I
was already
in the process of repeatedly locking up my PC with an accel function
that was based
on that wrong assumption (I sent data until I reached the erroneously
calculated end
of the data buffer, the accel engine waited for more data, got a new
command in
between and locked everything). Yesterday I even attached an old VT 220 for
debugging, and that showed me that the data is byte aligned. Then it was
easy to write
a much too complicated bitblit for that data with 8 bit pixelline alignment.
I assume by now you are ROTFL ;-)
I think a comment in skeletonfb would be a good idea.
cu,
Knut
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
prev parent reply other threads:[~2005-11-25 14:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-25 12:16 RFC: bitmap line alignment Knut Petersen
2005-11-25 12:36 ` Antonino A. Daplas
2005-11-25 14:10 ` Knut Petersen [this message]
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=43871B6A.8090705@t-online.de \
--to=knut_petersen@t-online.de \
--cc=adaplas@gmail.com \
--cc=linux-fbdev-devel@lists.sourceforge.net \
/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.