ascent12 / drm_info

Moved to https://gitlab.freedesktop.org/emersion/drm_info
MIT License
64 stars 13 forks source link

Decode HDR_OUTPUT_METADATA #53

Open codewiz opened 4 years ago

codewiz commented 4 years ago

This was essential in debugging some HDR enablement code I'm working on.

In the pretty-print output, all fields are decoded to integers. If someone deems it useful, I could put in the extra work to show enum names and convert the fixed-point values to floats in the 0.0-1.0 range.

In the JSON output, I deliberately flattened the primaries to separate fields for the B, G and B components because I felt that the array notation is less readable.

ascent12 commented 4 years ago

I'll just point out that I don't merge anything until any Linux and/or libdrm version it depends on is in at least Archlinux stable.

ppaalanen commented 3 years ago

I'll just point out that I don't merge anything until any Linux and/or libdrm version it depends on is in at least Archlinux stable.

Does this mean you want the copy of the struct to be deleted here and just use libdrm 2.4.104 instead?

Do you have libdrm 2.4.104 where you want it yet? There are no other deps.

emersion commented 3 years ago

drm_info pulls the latest libdrm with Meson subprojects automatically if it's not new enough. (drm_info always uses the system dynamic library for libdrm, but may pull recent kernel uapi headers from the subproject.)