Caps for CIE 1931 XYZ color space for HDR processing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Caps for CIE 1931 XYZ color space for HDR processing

Josh Doe
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

Thanks,
-Josh
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Caps for CIE 1931 XYZ color space for HDR processing

Tim-Philipp Müller-2
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

 Cheers
  -Tim

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Caps for CIE 1931 XYZ color space for HDR processing

Josh Doe
On Sun, Nov 6, 2011 at 9:00 AM, Tim-Philipp Müller <[hidden email]> 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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel