Decodificatore HEVC, terza parte: anche le estensioni di formato, tutti i 146 flussi di conformità coincidono (#58)
I 10 flussi RExt sono nella serie di conformità, quindi il decodificatore li decodifica invece di lasciarli inconcludenti: 4:0:0, 4:2:2 (due blocchi di croma per unità di trasformata, modi intra della tabella 8-3, QP del croma senza la tabella del 4:2:0), 4:4:4, fino a 12 bit, predizione fra componenti, RDPCM implicito ed esplicito, rotazione e contesto unico del transform skip, smoothing intra spento, adattamento persistente di Rice salvato con i contesti di WPP e dei segmenti dipendenti, chroma_qp_offset_list; deblocking del croma sulla sua griglia e SAO con CTB di croma non quadrati. Precisione estesa e allineamento del CABAC restano rifiutati: nessun flusso li usa. Le prove RExt non sono più inconcludenti, così la CI non trova prove HEVC saltate. Una prova nuova controlla che tile, WPP, segmenti dipendenti, liste di scala, lungo termine, PCM e strumenti RExt siano accesi in almeno un flusso, perché gli hash valgano qualcosa per ciascuno. Il ritaglio dei fotogrammi in uscita usa array non inizializzati. Misurati 160-600 fotogrammi al secondo a 416x240 e 26-27 a 1080p su questa macchina; nei cicli delle CTU non si alloca. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d5e1282261
commit
3cabd87316
14 files changed
+535
-188
No files matched your search
@@ -2,7 +2,7 @@ namespace Febe.Core.Codecs.H265;
|
||||
|
||||
/// <summary>
|
||||
/// Constant tables of ITU-T H.265, transcribed from the text of the Recommendation: scan orders (§6.5.3–6.5.5), default
|
||||
/// scaling lists (table 7-6), intra prediction angles (tables 8-4 and 8-5), the chroma QP mapping (table 8-10), the
|
||||
/// scaling lists (table 7-6), intra prediction angles (tables 8-4 and 8-5), the 4:2:2 chroma intra modes (table 8-3), the chroma QP mapping (table 8-10), the
|
||||
/// thresholds of the deblocking filter (table 8-12) and the transform matrices (§8.6.4.2).
|
||||
/// </summary>
|
||||
internal static class H265Tables
|
||||
@@ -20,6 +20,21 @@ internal static class H265Tables
|
||||
/// <summary>QpC as a function of qPi for ChromaArrayType 1 (table 8-10), for qPi from 30 to 43.</summary>
|
||||
internal static readonly byte[] ChromaQp30To43 = [29, 30, 31, 32, 33, 33, 34, 34, 35, 35, 36, 36, 37, 37];
|
||||
|
||||
/// <summary>
|
||||
/// The 4:2:2 intra prediction mode of chroma (table 8-3) from modeIdc, the mode table 8-2 gives: for chroma samples
|
||||
/// twice as tall as they are wide, the mode whose angle is closest to the luma one with the horizontal displacement
|
||||
/// halved (horizontal modes: the vertical one doubled; past 45° a mode of the other direction).
|
||||
/// </summary>
|
||||
internal static readonly byte[] ChromaMode422 =
|
||||
[
|
||||
0, 1, 2, 2, 2, 2, 3, 5, 7, 8, 10, 12, 13, 15, 17, 18, 19, 20,
|
||||
21, 22, 23, 23, 24, 24, 25, 25, 26, 27, 27, 28, 28, 29, 29, 30, 31,
|
||||
];
|
||||
|
||||
/// <summary>QpC of chroma from qPi (8-258 to 8-261, table 8-10): the table for 4:2:0, Min(qPi, 51) otherwise.</summary>
|
||||
internal static int ChromaQp(int qPi, int chromaArrayType) =>
|
||||
chromaArrayType != 1 ? Math.Min(qPi, 51) : qPi < 30 ? qPi : qPi > 43 ? qPi - 6 : ChromaQp30To43[qPi - 30];
|
||||
|
||||
/// <summary>β′ for Q from 0 to 51 (table 8-12).</summary>
|
||||
internal static readonly byte[] Beta =
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user