mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
Update change log + minor clean
This commit is contained in:
parent
08af9eea3b
commit
6d7c1dd645
@ -2,11 +2,11 @@
|
||||
|
||||
3.6.4 BETA (xth December 2021)
|
||||
* NEW:
|
||||
* Allow permanently dismiss of ASSA change res - thx Ricky
|
||||
* Add "image" option for "gen blank video" - thx Thomas
|
||||
* Allow alpha when chosing text color for ASSA in main window
|
||||
* List errors based on current profile (Ctrl+F8)
|
||||
* Add "image" option for "gen blank video" - thx Thomas
|
||||
* Apply SMPTE timing to shot changes - thx kmekme/OmrSi
|
||||
* Allow permanently dismiss of ASSA change res - thx Ricky
|
||||
* Allow alpha when chosing text color for ASSA in main window
|
||||
* Allow add empty waveform for online videos
|
||||
* IMPROVED:
|
||||
* Update Bulgarian translation - thx Калин
|
||||
@ -16,20 +16,21 @@
|
||||
* Add "Count" label in "Go to bookmark" - thx OmrSi
|
||||
* Speed up slow loading mp4 without subs as sub - thx Leon
|
||||
* Auto-load audio file after import plain text - thx Leon
|
||||
* "Remove scene changes" now has overview window w export - thx Marek
|
||||
* "Remove scene changes" now has overview window w export - thx Marek/PM
|
||||
* FIXED:
|
||||
* Fix selected line in "set start and offset the rest" - thx Janusz/Tom
|
||||
* Fix waveform syntax coloring after move - thx Leon
|
||||
* Fix ASSA Importing attachments crash - thx Leon
|
||||
* Fix sometimes bad palette for bdsup - thx Master Yoda
|
||||
* Fix crash when drop wav file on waveform - thx Apocalypse612
|
||||
* Fix issue with "Fix invalid italic tags" - thx Charvelx04
|
||||
* Fix crash in "merge lines with same text" - thx gantangpedia
|
||||
* Minor fix for save as from ASSA to SRT
|
||||
* Fix waveform syntax coloring after move - thx Leon
|
||||
* Another fix for ismt drag'n'drop
|
||||
* Fix crash in nOCR - thx signedout
|
||||
* Fix ASSA Importing attachments crash - thx Leon
|
||||
* Fix error gen waveform when media file delete/renamed - thx Leon
|
||||
* Fix textbox width issue in translation mode - thx Leon
|
||||
* Minor fix for toggle casing for seletion - thx Leon
|
||||
* Fix crash when drop wav file on waveform - thx Apocalypse612
|
||||
* Fix error gen waveform when media file delete/renamed - thx Leon
|
||||
|
||||
|
||||
3.6.3 (11th November 2021)
|
||||
|
@ -67,48 +67,52 @@ namespace Nikse.SubtitleEdit.Core.BluRaySup
|
||||
// by definition, index 0xff is always completely transparent
|
||||
// also all entries must be fully transparent after initialization
|
||||
|
||||
bool fadeOut = false;
|
||||
|
||||
//TODO: always use last palette or is some clear missing?
|
||||
for (int j = Math.Max(0, paletteInfos.Count - 1); j < paletteInfos.Count; j++)
|
||||
if (paletteInfos.Count == 0)
|
||||
{
|
||||
var p = paletteInfos[j];
|
||||
int index = 0;
|
||||
|
||||
for (int i = 0; i < p.PaletteSize; i++)
|
||||
{
|
||||
// each palette entry consists of 5 bytes
|
||||
int palIndex = p.PaletteBuffer[index];
|
||||
int y = p.PaletteBuffer[++index];
|
||||
int cr = p.PaletteBuffer[++index];
|
||||
int cb = p.PaletteBuffer[++index];
|
||||
int alpha = p.PaletteBuffer[++index];
|
||||
|
||||
int alphaOld = palette.GetAlpha(palIndex);
|
||||
// avoid fading out
|
||||
if (alpha >= alphaOld)
|
||||
{
|
||||
if (alpha < AlphaCrop)
|
||||
{// to not mess with scaling algorithms, make transparent color black
|
||||
y = 16;
|
||||
cr = 128;
|
||||
cb = 128;
|
||||
}
|
||||
palette.SetAlpha(palIndex, alpha);
|
||||
}
|
||||
else
|
||||
{
|
||||
fadeOut = true;
|
||||
}
|
||||
|
||||
palette.SetYCbCr(palIndex, y, cb, cr);
|
||||
index++;
|
||||
}
|
||||
return palette;
|
||||
}
|
||||
|
||||
// always use last palette
|
||||
var p = paletteInfos[paletteInfos.Count - 1];
|
||||
|
||||
var fadeOut = false;
|
||||
var index = 0;
|
||||
for (var i = 0; i < p.PaletteSize; i++)
|
||||
{
|
||||
// each palette entry consists of 5 bytes
|
||||
var palIndex = p.PaletteBuffer[index];
|
||||
var y = p.PaletteBuffer[++index];
|
||||
var cr = p.PaletteBuffer[++index];
|
||||
var cb = p.PaletteBuffer[++index];
|
||||
var alpha = p.PaletteBuffer[++index];
|
||||
var alphaOld = palette.GetAlpha(palIndex);
|
||||
|
||||
// avoid fading out
|
||||
if (alpha >= alphaOld)
|
||||
{
|
||||
if (alpha < AlphaCrop)
|
||||
{// to not mess with scaling algorithms, make transparent color black
|
||||
y = 16;
|
||||
cr = 128;
|
||||
cb = 128;
|
||||
}
|
||||
|
||||
palette.SetAlpha(palIndex, alpha);
|
||||
}
|
||||
else
|
||||
{
|
||||
fadeOut = true;
|
||||
}
|
||||
|
||||
palette.SetYCbCr(palIndex, y, cb, cr);
|
||||
index++;
|
||||
}
|
||||
|
||||
if (fadeOut)
|
||||
{
|
||||
System.Diagnostics.Debug.Print("fade out detected -> patched palette\n");
|
||||
}
|
||||
|
||||
return palette;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user