public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Stefano Sabatini <stefano.sabatini-lala@poste.it>
To: video4linux-list Mailing List <video4linux-list@redhat.com>
Subject: V4L1: what's the meaning of video_window.chromakey?
Date: Wed, 24 Dec 2008 15:07:06 +0100	[thread overview]
Message-ID: <20081224140706.GA475@geppetto> (raw)

Hi all,

I'm reading/studying the code of a V4L1 application and I need to
understand the meaning of the video_window.chromakey field.

Official docs:
http://www.linuxtv.org/downloads/video4linux/API/V4L1_API.html

are not particularly exhaustive, so I'm falling back to request your
help here.

As far as I understood it, the video_window.chromakey field is used
only if video_capability.type & VID_TYPE_CHROMAKEY is true, and the
video_window.chromakey value (an RGB32 value, with the first byte set
to an undefined value) is set with the VIDIOCSWIN ioctl.

My guess is that V4L is using the simplest possible chromakeying
algorithm, so that it copies each pixel from the capture buffer to
the destination buffer with a value different from
video_window.chromakey.

Setting:
video_window.chromakey = -1; // the same as 0xffffffff

for example should copy all the pixels with a value different from
0xXXffffff to the destination buffer.

I wonder if this is the correct interpretation, and if the
chromakeying capability (if supported) can be disabled.

Many thanks in advance.

Regards.

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

             reply	other threads:[~2008-12-24 14:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-24 14:07 Stefano Sabatini [this message]
2008-12-24 19:56 ` V4L1: what's the meaning of video_window.chromakey? Alan Cox

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=20081224140706.GA475@geppetto \
    --to=stefano.sabatini-lala@poste.it \
    --cc=video4linux-list@redhat.com \
    /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