Commit e9fc7c5
Add options to scale canvas relative to video
JSO struggles on complex subtitles and higher resolutions,
scaling the sub-canvas down if the canvas gets larger than a size deemed
good enough can be used to somewhat work around this at the expense of
introducing some blurriness. Scaling up is also possible but probably
less useful.
This was ported from jellyfin's fork and jellyfin-web uses this on at
least some devices. However the option names were changed to better
match their actual function.
[Vasily <just.one.man@yandex.ru>]
Original implementation together with a hard canvas height limit in
jellyfin@345d701
jellyfin@bcf4b5f
[Dmitry Lyzo <ashephard0@gmail.com>]
Rebased for upstream; removed default hardHeightLimit and added docs
[Oneric <oneric@oneric.stub>]
Simplified scaling logic (identical results for positive values);
fixed zero and negativity bugs in scaling logic;
changed option names for clarity;
split prescaling from hard height limit.
Co-Authored-By: Dmitry Lyzo <ashephard0@gmail.com>
Co-Authored-By: Oneric <oneric@oneric.stub>1 parent 29be5f9 commit e9fc7c5
2 files changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
135 | 140 | | |
136 | 141 | | |
137 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
404 | 406 | | |
405 | 407 | | |
406 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
407 | 430 | | |
408 | 431 | | |
409 | 432 | | |
410 | 433 | | |
411 | 434 | | |
412 | 435 | | |
413 | | - | |
414 | | - | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
415 | 439 | | |
416 | 440 | | |
417 | 441 | | |
| |||
0 commit comments