Zoom functionality with UHD monitor

Support forum for DGDecNV
User avatar
Britney
Posts: 145
Joined: Sun Aug 09, 2020 3:24 pm

Zoom functionality with UHD monitor

Post by Britney »

I was playing around with the new UHD monitor and I noticed that the Zoom functionality in DGIndexNV is strange. I opened a 1920x1080 stream and it opened showing what looked like 1920x1080 (actually slightly bigger based on the area on the UHD monitor), but the Zoom factor was 1/2. When I changed the Zoom to 1 the display took more than the whole screen of the UHD monitor (3840x2160). Also, when at Zoom=1, trying to resize the window causes it to disappear and there are negative values written to the window position in the INI file. You have to delete or edit the INI file to get things back to normal.

So something seems off for Zoom on higher-definition monitors.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

That's very interesting, Brit. Thank you for reporting it. I'll look into it.

BTW, how are you liking that new Louis Vuitton bag that Balti got you?
User avatar
Britney
Posts: 145
Joined: Sun Aug 09, 2020 3:24 pm

Zoom functionality with UHD monitor

Post by Britney »

It's almost as beautiful as me. :wow:

And it made Wonder Woman jealous, so that is a plus.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

The zoom strangenesses seem to be related to the scale set in the Windows display settings together with a higher DPI on the UHD monitor. Maybe the best we can do is stop it from setting negative window offsets in the INI file and making the window invisible. Investigating...

EDIT: DGIndexNV needs to be DPI aware. Should be doable.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

OK! DPI awareness isn't such a big deal:

https://building.enlyze.com/posts/writi ... 20-part-3/

Should be a walk in the park. Famous last words. ;)
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

I have it working with one pesky little bug that I hope to stomp out tomorrow.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

I had an idea for a new zoom concept. The size of the DGIndexNV window after it opens a 4K video is too big to fit on the physical 4K monitor (due to the title/menu bar at the top and the navigation buttons etc. at the bottom). That means to keep things visible the video cannot be displayed at full resolution. But showing the native resolution is desirable. So I thought, let's just go ahead and resize to full video resolution. Then add a way to move the window by clicking and dragging the client area. Then you can always easily get access to either the menu bar or the navigation stuff with a click-and drag.

The problem is that french toast Windows simply fails to properly render stuff when the window size is bigger than the physical monitor resolution. Attempts to get around that have so far failed but I haven't given up. Worst case, we'll have to disallow zooms that hit that case. That's fine for 1080 stuff on a UHD monitor, but for UHD stuff on a UHD monitor you'll not be able to see the video at full UHD.

A radical solution might be to have a free-floating video window together with the minimal DGIndexNV window. Maybe have a toggle between windowed and free-floating modes.

I'm all ears if anybody has any thoughts or opinions on how to deal with this dilemma.
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Zoom functionality with UHD monitor

Post by Bullwinkle »

Do it like youtube. You have windowed mode and fullscreen mode. In fullscreen, the video fills the physical monitor and the title bar/menu and nav stuff popup over the video on a mouse move, then disappear after an inactivity timeout.
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Zoom functionality with UHD monitor

Post by Curly »

I like that, Bullwinkle, bravo.

Not being able to show UHD video on a UHD monitor is enigmatic.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Well sure guys. But that is a really big design change and implementation challenge. Avoiding that nightmare, I have managed to get my concept working. So here is a test version of the new DPI-aware version that allows native display of UHD content on a UHD monitor.

http://rationalqm.us/misc/DGIndexNV_dpi.rar

Notes:

1. The nav stuff is moved to the top just under the windows title bar. Get used to it!

2. You can resize to Zoom = 1 for UHD content on a UHD display. If you want to see the bottom pixels,
just right click and hold on the frame area and move the window.

3. Free zoom still works and you can actually use the windows edge resizing to zoom to greater than 1 if you like.

4. There may still be warts. Please report any you find.

Hope you like it!
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Zoom functionality with UHD monitor

Post by Bullwinkle »

Me like it.
DAE avatar
Guest

Zoom functionality with UHD monitor

Post by Guest »

This will work fine
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Glad you like it, thank you. Gonna try to pretty it up and make some UI improvements, but this definitely satisfies the minimal DPI awareness needs. Eventually I will support per-monitor scaling.
User avatar
Britney
Posts: 145
Joined: Sun Aug 09, 2020 3:24 pm

Zoom functionality with UHD monitor

Post by Britney »

Mmm Rocky, don't stop! I especially like moving the window by dragging the client area. It's a really creative way to solve the problems without needing to have two modes, windowed and fullscreen. Curly told me always go for modeless designs where possible.

You see, Sherman, this is how to do things. :lol:
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Peeps, play around with this (238 release candidate):

* Cleaner look overall with white buttons and gray navigation bar, also navigation bar now closest to the video.
* Added File/Minimize
* Cleaned up Help/About dialog.
* Video/Zoom and Force Zoom now support x2 zoom.
* Less flashing when dragging the window via the client area.
* Added Video/Center to center the client area on the monitor. For example, load a 1920x1080 video on a 1920x1080 monitor (or UHD on a UHD monitor, etc.), select Zoom = 1, and then Video/Center. It's like fullscreen but you can drag the window down to get the title bar again. This behavior is patented to Rocket J. Squirrel. :lol:

http://rationalqm.us/misc/DGIndexNV_dpi.rar

Hope you like it!
DAE avatar
Guest

Zoom functionality with UHD monitor

Post by Guest »

Working as intended, well done Rocky.
Pay attention Sherm
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Thank you gonca.

More coming. I'm going to have a right-click pop-up menu on the client area, giving access to:

Zoom 2
Zoom 1
Zoom 1/2
Zoom 1/4
Zoom 1/8
Center
Top Left (to get back to the windows title bar quickly)
Minimize
Close
Exit
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Gosh, gals and guys, that was too easy.

Re-download and you will have a wonderful right-click popup menu.

http://rationalqm.us/misc/DGIndexNV_dpi.rar
User avatar
Levi
Posts: 52
Joined: Sat Apr 18, 2020 6:12 pm

Zoom functionality with UHD monitor

Post by Levi »

That's beautiful Rocky. Amazing too.

Maybe less window jumping around on opening and zooming streams. Show current zoom checked on the popup.
User avatar
Curly
Posts: 712
Joined: Sun Mar 15, 2020 11:05 am

Zoom functionality with UHD monitor

Post by Curly »

Move the window menus into the popup and ditch the windows title/menu bar entirely. Rest in peace, in the name of the Curly, so magnificent might be the salutations afforded him by the masses. Balti is showing me. You just wait.
User avatar
Mr. Peabody
Posts: 45
Joined: Tue Dec 24, 2019 9:20 am

Zoom functionality with UHD monitor

Post by Mr. Peabody »

That's insane, but I like it!
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Please re-download. I fixed the window jumping and checked the current zoom on the popup. :salute: Levi

http://rationalqm.us/misc/DGIndexNV_dpi.rar

Curly's idea requires detailed study of the pros/cons and consequences. I reckon that what we have now is just dandy.
User avatar
Rocky
Posts: 3556
Joined: Fri Sep 06, 2019 12:57 pm

Zoom functionality with UHD monitor

Post by Rocky »

Getting ready to release this sucka. Speak now or forever hold your piece.
User avatar
Natasha
Posts: 150
Joined: Wed Nov 20, 2019 11:11 am

Zoom functionality with UHD monitor

Post by Natasha »

You are a bad squirrel. Shame.
User avatar
Bullwinkle
Posts: 338
Joined: Thu Sep 05, 2019 6:37 pm

Zoom functionality with UHD monitor

Post by Bullwinkle »

Great job, Rocky. Swat that mosquito!
Post Reply