linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Linux  PPC" <linuxppc@rediffmail.com>
To: Antonino Daplas <adaplas@pol.net>
Cc: fbdev <linux-fbdev-devel@lists.sourceforge.net>
Subject: Re: Re: bits_per_pixel query
Date: 11 Sep 2002 12:37:18 -0000	[thread overview]
Message-ID: <20020911123718.28335.qmail@webmail26.rediffmail.com> (raw)

On Mon, 09 Sep 2002 Antonino Daplas wrote :
>Just pad the pitch/line_length/stride of the buffer to the next 
>byte
>alignment your hardware is capable of.  It is acceptable to have 
>excess
>bits/bytes which theoretically your hardware will ignore.

The padding is at the end of the line_length, or
at the end of the pixel data? I tried both ways,
but I'm getting a skewed square, which I draw
using a user space application.

>For static pseudocolor and truecolor, that is true, since 0 is 
>hardwired
>to black.  For pseudocolor and directcolor, that depends on how 
>the
>DAC/palette is loaded. In most cases, it will produce a black 
>screen.

For psuedocolor and direct color, does the pixel
data, have the index into the colormap or does it
have actual colors? If it has the index, then the size of the 
buffer would be lesser: right?

Thanks,

- navin.

__________________________________________________________
Give your Company an email address like
ravi @ ravi-exports.com.  Sign up for Rediffmail Pro today!
Know more. http://www.rediffmailpro.com/signup/



-------------------------------------------------------
In remembrance
www.osdn.com/911/

             reply	other threads:[~2002-09-11 12:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-11 12:37 Linux  PPC [this message]
2002-09-11 12:43 ` Re: bits_per_pixel query Geert Uytterhoeven

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=20020911123718.28335.qmail@webmail26.rediffmail.com \
    --to=linuxppc@rediffmail.com \
    --cc=adaplas@pol.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).