From: Marco Trillo <martri@arantia.com>
To: Nikolay Dimitrov <picmaster@mail.bg>
Cc: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: Video overlay on sabresd
Date: Mon, 25 May 2015 15:22:47 +0200 [thread overview]
Message-ID: <55632227.9000400@arantia.com> (raw)
In-Reply-To: <5562EAEB.7080200@mail.bg>
Hi,
On 05/25/2015 11:27 AM, Nikolay Dimitrov wrote:
> Exactly. Regarding the MXCFB_SET_OVERLAY_POS - I was thinking this
> ioctl is related to X/Y position of the layer and not about the layers'
> Z-order (at least this is the impression I have looking at the mxcfb
> driver and imx lib code). Please correct me if I'm wrong, but I thing
> the Z-order of the BG/FG IPU layers is not programmable.
Issuing the MXCFB_SET_GBL_ALPHA or MXCFB_SET_LOC_ALPHA ioctls() at
/dev/fb0 should cause the `fb0' layer to display atop the `fb1' or video
layer, mixed according to the global or per-pixel alpha value. This is
what the docs say (which is a bit confusing):
3.2.2 DP global alpha combination
To enable DP global alpha combination feature, we need to use fb ioctl
MXCFB_SET_LOC_ALPHA [sic]. [...] By default, /dev/fb0 stands for the
background frame buffer and /dev/fb2 stands for the foreground frame
buffer [...] If the open file descriptor of /dev/fb0 is passed to this
ioctl, the graphics plane of DP is set to the background plane,
otherwise, the graphics plane is set to the foreground plane.
(from Freescale's "Image Processing Unit V3 (IPUV3) Library User's Guide")
After configuring the DP via these ioctls, you can then use the
MXCFB_SET_CLR_KEY if you need to use color keying.
Kind regards
Marco
next prev parent reply other threads:[~2015-05-25 13:22 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-19 16:16 Video overlay on sabresd Nikolay Dimitrov
2015-05-19 16:22 ` Prabhu S
2015-05-20 17:41 ` Nikolay Dimitrov
2015-05-20 23:43 ` Nikolay Dimitrov
2015-05-21 2:01 ` Nikolay Dimitrov
2015-05-22 1:40 ` Nikolay Dimitrov
2015-05-25 7:47 ` Marco Trillo
2015-05-25 9:27 ` Nikolay Dimitrov
2015-05-25 13:22 ` Marco Trillo [this message]
2015-05-25 13:52 ` Nikolay Dimitrov
2015-05-25 14:24 ` Nikolay Dimitrov
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=55632227.9000400@arantia.com \
--to=martri@arantia.com \
--cc=meta-freescale@yoctoproject.org \
--cc=picmaster@mail.bg \
/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.