public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Dufresne <nicolas.dufresne@collabora.com>
To: Hans Verkuil <hverkuil@xs4all.nl>
Cc: Dimitrios Katsaros <patcherwork@gmail.com>, linux-media@vger.kernel.org
Subject: V4L2 Colorspace for RGB formats
Date: Tue, 19 Jan 2016 13:00:43 -0500	[thread overview]
Message-ID: <1453226443.5933.7.camel@collabora.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 731 bytes --]

Hi Hans,

we are having issues in GStreamer with the colorspace in V4L2. The API
does not provide any encoding for RGB formats. The encoding matrix for
those is usually the identity matrix, anything else makes very little
sense to me. For example, vivid will declare a stream with RGB based
pixel format as having the default for sRGB colorspace, which lead to
non-identity syCC encoding.

Shall we simply ignore the encoding set by drivers when the pixel
format is RGB based ? To me it makes very little sense, but the code in
GStreamer is very generic and this wrong information lead to errors
when the data is converted to YUV and back to RGB.

https://bugzilla.gnome.org/show_bug.cgi?id=759624

cheers,
Nicolas

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

             reply	other threads:[~2016-01-19 18:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-19 18:00 Nicolas Dufresne [this message]
2016-01-19 21:47 ` V4L2 Colorspace for RGB formats Hans Verkuil
2016-01-19 23:00   ` Nicolas Dufresne
2016-01-20  7:30     ` Hans Verkuil

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=1453226443.5933.7.camel@collabora.com \
    --to=nicolas.dufresne@collabora.com \
    --cc=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=patcherwork@gmail.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