[Fixed] [Win] changing CQ granularity option breaks CQ

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
fred_be9300
Posts: 13
Joined: Thu May 07, 2009 10:04 pm

[Fixed] [Win] changing CQ granularity option breaks CQ

Post by fred_be9300 »

Hi

I'm doing my best to abide by forum rules, and I hope this fits here. (was in doubt between bugs forum and here).

I noticed a small problem in the WinGUI, recent SVN build 2432 (the current SVN doesn't build). I realise and respect that you don't want (too many) bug reports on SVN builds (as clearly motivated here), but the problem seems to be in code submitted 3 months ago (changeset 2146), so maybe you want to know.

also, I've never coded in C#, though I do have some software dev background (just not practicing too much nowadays).


The problem, functionally:

about "Options > Advanced/Other > x264: constant quality fractional granularity"

a) tooltip is incorrect (copy paste error, from the CLI/processor cores field)
b) when the CQ granularity is changed, the slider_VideoQuality on "Main Form > Video" (and textlabel SliderValue, and generated query) are messed up until (i) HB is restarted; or (ii) drp_VideoEncoder value is changed.

problem (b) could easily be solved (worked around) by stating in the option's tooltip that this option requires a restart to take effect.


Looking at the underlying code...
I started thinking about a more elegant (and real) solution, but I don't fully see it yet. Part of the (or a related) problem seems to be that the code to convert slider value to actual value is duplicated in both frmMain.cs and QueryGenerator.cs. And the slider's min/max values used in the conversion, are only updated on a drp_VideoEncoder value change. I guess the neatest solution would be to define a method on the slider_VideoQuality to update itself. That could be called by both the Options & drp_VideoEncoder change events (instead of putting the code to change the slider in the drp_VideoEncoder change event, and duplicating it further to the Options/granularity field).

hope this helps
User avatar
s55
HandBrake Team
Posts: 10357
Joined: Sun Dec 24, 2006 1:05 pm

Re: [WinGUI] changing CQ granularity option breaks CQ slider

Post by s55 »

Moved to bugs.

OK, I'll add it to my list of things t fix.
Post Reply