Static HDR/HLG is supported in 4k but only @30FPS until some problems will be solved in rockchip kernel code (no documentation available for this). I do not known application that fulfill your exact needs. Probably you can write some code Check this and continue here. You need only DRM part and not MPP part.
Happy hacking !
- initialize and check parameters of DRM
- choose size and position manually (not from mpp decoded frame)
- allocate one (or more) DRM buffer and register as framebuffer (fb_id) (choose 10-bit format)
- map DRM buffer to memory and render your test pattern
- set manually (not from mpp decoded frame) static HDR or HDR/HLG metadata (EOTF+COLOR_SPACE+HDR_SOURCE_METADATA) and switch DRM buffer (fb_id) to output
Happy hacking !
I left this community in Aug 2019 due to PINE64 refusal to produce/deliver ROCK64-1G version 3 after more than one year of changing statuses to "planning", "evaluating", "releasing", "availability", "estimated availability" and finally "no schedule" . ROCK64 is dead platform without any advantage. Buy Raspberry PI 4 !