[RESOLVED] Displaying HDR in DGIndexNV GUI

Support forum for DGDecNV
Post Reply
User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

[RESOLVED] Displaying HDR in DGIndexNV GUI

Post by admin » Wed Aug 28, 2019 8:45 pm

In another thread tormento suggested adding the capability to convert HDR to SDR for display in the DGIndexNV GUI.

So, thanks to some freshly made l. reuteri yoghurt (with fresh blueberries), the divine energy burst again ignited within me and produced a working HDRP016ToSDRRGB24 kernel. Of course, it's based on DGHDRtoSDR().

The decision to make now is how to expose it in the GUI.

A minimal approach just adds a single HDR->SDR menu item under Video. It would toggle the conversion on and off. We can't make it automatic because some streams are missing the HDR SEIs and so cannot be identified as HDR. The defaults for DGHDRtoSDR() would be hard-coded.

A maximal approach would be full support for enabling/disabling and control of the parameters on the Settings page (or a popup dialog accessible from Settings). We could pop up a little dialog box with sliders for the parameters. The main window would update as the sliders are operated.

Your thoughts?

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

Re: Displaying HDR in DGIndexNV GUI

Post by gonca » Thu Aug 29, 2019 4:56 am

Presently, one would test the value of the parameters and loading it into vdub2.
Then, one adjusts the parameters (one by one) until happiness occurs with the results.

DGIndexNV
Maximal
Pop up with sliders for the values so the user just uses the sliders one by one and sees real time effect
Throw in a template for HDRtoSDR() and have these settings auto filled (this would be a bonus)

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Displaying HDR in DGIndexNV GUI

Post by admin » Sat Aug 31, 2019 2:50 pm

Everything is working except the bonus template stuff. May decide to pass on that. Just have to do some regression testing and then make a slipstream. The sliders have 0.01 resolution.

Interestingly, it was not so easy to update the display on a slider change. There was no existing code or entry point in DGIndexNV to just redisplay the current picture with a different conversion. I hacked up something for that. :ugeek:

User avatar
gonca
Distinguished Member
Distinguished Member
Posts: 705
Joined: Sun Apr 08, 2012 6:12 pm

Re: Displaying HDR in DGIndexNV GUI

Post by gonca » Sat Aug 31, 2019 3:14 pm

That is great news, that you got it working so fast. :bravo:
The template, well that was one of those, as long as I am making wishes here is a good one.
With the sliders the users can get the values and manually fill the settings in a script generated by DGDecodeNV

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: Displaying HDR in DGIndexNV GUI

Post by admin » Sun Sep 01, 2019 8:57 am

I released this as slipstream 184. Note that the hue parameter is not supported.

User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 233
Joined: Mon Sep 20, 2010 2:18 pm

Re: [RESOLVED] Displaying HDR in DGIndexNV GUI

Post by tormento » Mon Sep 02, 2019 6:51 am

admin wrote:
Wed Aug 28, 2019 8:45 pm
In another thread tormento suggested adding the capability to convert HDR to SDR for display in the DGIndexNV GUI.
:bow:

I like the separated approach under Video. The important thing, in future iterations, will be to pass all the parameters to AviSynth script.

Or do you prefer to save them into DGI without the need of HDRtoSDR filter in AVS script?

User avatar
admin
Site Admin
Posts: 4382
Joined: Thu Sep 09, 2010 3:08 pm

Re: [RESOLVED] Displaying HDR in DGIndexNV GUI

Post by admin » Mon Sep 02, 2019 7:58 am

We can do gonca's idea of adding a template expansion.

User avatar
tormento
Distinguished Member
Distinguished Member
Posts: 233
Joined: Mon Sep 20, 2010 2:18 pm

Re: [RESOLVED] Displaying HDR in DGIndexNV GUI

Post by tormento » Mon Sep 02, 2019 9:05 am

admin wrote:
Mon Sep 02, 2019 7:58 am
We can do gonca's idea of adding a template expansion.
Ok :)

User avatar
Rocky
Posts: 55
Joined: Fri Sep 06, 2019 12:57 pm

Re: [RESOLVED] Displaying HDR in DGIndexNV GUI

Post by Rocky » Fri Sep 06, 2019 2:13 pm

The HEVC info dialog now shows an HDR field that notifies of specification of PQ or HLG transfer function in the input stream (slipstream 186).

Post Reply