Caps for CIE 1931 XYZ color space for HDR processing

Josh Doe josh at joshdoe.com
Mon Nov 7 05:40:21 PST 2011


On Sun, Nov 6, 2011 at 9:00 AM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:
> On Sat, 2011-11-05 at 10:48 -0400, Josh Doe wrote:
>
>> I'm interested in processing HDR images, and a new library libhdr
>> (derived from pfstools) has just started, in order to provide HDR
>> processing including tone mapping. They use the XYZ color space (CIE
>> 1931), so I'd like to define caps for this. I'm not sure if there's
>> interest in this colorspace, but perhaps I could at least get some
>> feedback on this.
>>
>> video/x-raw-xyz
>> width = (int) [1, 2147483647]
>> height = (int) [1, 2147483647]
>> endianness = (int) BIG_ENDIAN, LITTLE_ENDIAN
>> depth = (int) 16, 32, 64, 128
>> luminance = (string) "relative", "absolute", "display"
>> channel_order = (string) "XYZ", "XYZA", "ZYX", "Y", "YA", ...
>>
>> Here's the PFS file format spec:
>> http://www.mpi-inf.mpg.de/resources/pfstools/pfs_format_spec.pdf
>
> Would be great if you could also have a look at how things are done in
> 0.11, to make sure it can accommodate your use case:
>
> http://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/gst-libs/gst/video/video.h?h=0.11

Ah, I'm not too familiar with the 0.11 method. It doesn't seem to
require the use of a single format string, but it appears all formats
are that way so far. Looks like I'd want to add
GST_VIDEO_FORMAT_FLAG_XYZ, but otherwise it seems to be perfectly
sufficient.

Thanks,
-Josh


More information about the gstreamer-devel mailing list