-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(core/lua/shmif) wire up image_metadata
This should provide most of the missing pieces for ensuring both a path from a shmif consumer signalling HDR capability, annotating frame with metadata and having that persist across the stack. What is mainly missing for testing this for real is accessing the metadata from Lua space (only really needed if you manually need to composite / tone-map different metadata- sourced images in the same pipeline. The rest would be to simply add the properties to the atomic modeset when a vstore with metadata set is mapped to an output.
- Loading branch information
Showing
9 changed files
with
186 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
-- image_metadata | ||
-- @short: Set / update image contents metadata | ||
-- @inargs: vid:tgt, string:model=drmv1, numtbl[8]:coords, number:mmin, number:mmax, number:cll, number:fll, string:eotf | ||
-- @outargs: bool:ok | ||
-- @longdescr: | ||
-- HDR rendering, computer vision, compression and similar processes all can | ||
-- benefit about added information about what the pixels represents or other | ||
-- kind of contextual detail such as motion vectors. | ||
-- | ||
-- This function is used to attach/update/define a metadata model for the | ||
-- target vid. The currently support model is "drmv1" used for HDR scanout | ||
-- if the *tgt* is mapped to a display supporting it, the metadata will be | ||
-- be forwarded to that screen accordingly. | ||
-- | ||
-- The arguments for *model=drmv1* are 8 coordinates for red, green, blue | ||
-- chromacities and whitepoint. These coordinates will be clamped to range from | ||
-- 0 to 1.3107. | ||
-- | ||
-- *mmin* sets the master minimum luminance, in cd/m2 from 1 to 65535. | ||
-- *mmax* sets the master max luminance, in cd/m2 from 1 to 65535. | ||
-- *cll* sets the max content light level and *fll* the frame average light | ||
-- level, both in cd/m2 from 1 to 65535. | ||
-- | ||
-- The *eotf* (electro-optical transfer function) should be one out of 'sdr' | ||
-- (sRGB), 'hdr' (linear), 'pq', 'pq-inv' or 'bt709'. | ||
-- | ||
-- @group: image | ||
-- @cfunction: imagemetadata | ||
-- @flags: debugbuild | ||
function main() | ||
#ifdef MAIN | ||
#endif | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters