All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Nelson <eric.nelson@boundarydevices.com>
To: Jason Anderson <janderson@disti.com>,  meta-freescale@yoctoproject.org
Subject: Re: Enabling transparency on overlay surface
Date: Fri, 07 Nov 2014 13:03:27 -0700	[thread overview]
Message-ID: <545D258F.1060203@boundarydevices.com> (raw)
In-Reply-To: <b0ea261a-7bc1-4e49-9f72-121d296cf29d@disti.com>

Hi Jason,

On 11/07/2014 12:11 PM, Jason Anderson wrote:
> HI,
> 
> I am working on an OpenGL ES application and trying to use /dev/fb1 as
> an overlay on my i.MX6 (Boundary Devices BD-SL-i.MX6) .  My current
> image is Yocto 1.6 , 3.10.17 kernel.
> 
> I have my app rendering my background to /dev/fb0 and my overlay to
> /dev/fb1, but I can’t get fb1 transparency enabled.  Does any have have
> an example of how to use the overlay with OpenGL ES/EGL?
> 

The fb1 transparency doesn't have anything to do with OpenGL,
but is available using a set of custom ioctls on the frame-buffer
device.

In particular, look at MXCFB_SET_GBL_ALPHA and MXCFB_SET_CLR_KEY:

	https://github.com/boundarydevices/linux-imx6/blob/boundary-imx_3.10.17_1.0.2_ga/drivers/video/mxc/mxc_ipuv3_fb.c#L1029

The MXCFB_SET_OVERLAY_POS ioctl is also very useful for placing
fb1 on top of fb0.

Regards,


Eric


  reply	other threads:[~2014-11-07 20:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 19:11 Enabling transparency on overlay surface Jason Anderson
2014-11-07 20:03 ` Eric Nelson [this message]
2014-11-10 14:30   ` Jason Anderson

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=545D258F.1060203@boundarydevices.com \
    --to=eric.nelson@boundarydevices.com \
    --cc=janderson@disti.com \
    --cc=meta-freescale@yoctoproject.org \
    /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.