Update change log + minor clean

This commit is contained in:
niksedk 2021-11-20 16:06:39 +01:00
parent 08af9eea3b
commit 6d7c1dd645
2 changed files with 49 additions and 44 deletions

View File

@ -2,11 +2,11 @@
3.6.4 BETA (xth December 2021) 3.6.4 BETA (xth December 2021)
* NEW: * 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) * 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 * 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 * Allow add empty waveform for online videos
* IMPROVED: * IMPROVED:
* Update Bulgarian translation - thx Калин * Update Bulgarian translation - thx Калин
@ -16,20 +16,21 @@
* Add "Count" label in "Go to bookmark" - thx OmrSi * Add "Count" label in "Go to bookmark" - thx OmrSi
* Speed up slow loading mp4 without subs as sub - thx Leon * Speed up slow loading mp4 without subs as sub - thx Leon
* Auto-load audio file after import plain text - 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: * FIXED:
* Fix selected line in "set start and offset the rest" - thx Janusz/Tom * 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 issue with "Fix invalid italic tags" - thx Charvelx04
* Fix crash in "merge lines with same text" - thx gantangpedia * Fix crash in "merge lines with same text" - thx gantangpedia
* Minor fix for save as from ASSA to SRT * Minor fix for save as from ASSA to SRT
* Fix waveform syntax coloring after move - thx Leon
* Another fix for ismt drag'n'drop * Another fix for ismt drag'n'drop
* Fix crash in nOCR - thx signedout * 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 * Fix textbox width issue in translation mode - thx Leon
* Minor fix for toggle casing for seletion - 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) 3.6.3 (11th November 2021)

View File

@ -67,48 +67,52 @@ namespace Nikse.SubtitleEdit.Core.BluRaySup
// by definition, index 0xff is always completely transparent // by definition, index 0xff is always completely transparent
// also all entries must be fully transparent after initialization // also all entries must be fully transparent after initialization
bool fadeOut = false; if (paletteInfos.Count == 0)
//TODO: always use last palette or is some clear missing?
for (int j = Math.Max(0, paletteInfos.Count - 1); j < paletteInfos.Count; j++)
{ {
var p = paletteInfos[j]; return palette;
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++;
}
} }
// 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) if (fadeOut)
{ {
System.Diagnostics.Debug.Print("fade out detected -> patched palette\n"); System.Diagnostics.Debug.Print("fade out detected -> patched palette\n");
} }
return palette; return palette;
} }