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
@@ -544,26 +544,34 @@ public sealed partial class H265Decoder
|
||||
{
|
||||
var weighted = slice.Type == SliceType.P ? pps.WeightedPred : pps.WeightedBipred;
|
||||
var picture = cur!;
|
||||
for (var c = 0; c < 3; c++)
|
||||
var components = sps.ChromaArrayType == 0 ? 1 : 3;
|
||||
for (var c = 0; c < components; c++)
|
||||
{
|
||||
int x0 = xPb, y0 = yPb, w = width, h = height;
|
||||
int mx0 = motion.X0, my0 = motion.Y0, mx1 = motion.X1, my1 = motion.Y1;
|
||||
if (c > 0)
|
||||
{
|
||||
x0 >>= 1;
|
||||
y0 >>= 1;
|
||||
w >>= 1;
|
||||
h >>= 1;
|
||||
// Chroma vectors in eighths of a chroma sample (8-228, 8-229): mvCLX = mvLX * 2 / SubWidthC (SubHeightC).
|
||||
int sx = sps.ChromaShiftX, sy = sps.ChromaShiftY;
|
||||
x0 >>= sx;
|
||||
y0 >>= sy;
|
||||
w >>= sx;
|
||||
h >>= sy;
|
||||
mx0 <<= 1 - sx;
|
||||
mx1 <<= 1 - sx;
|
||||
my0 <<= 1 - sy;
|
||||
my1 <<= 1 - sy;
|
||||
}
|
||||
|
||||
var bitDepth = c == 0 ? sps.BitDepthY : sps.BitDepthC;
|
||||
if (motion.Ref0 >= 0)
|
||||
{
|
||||
Interpolate(slice.RefPicList[0][motion.Ref0], c, x0, y0, w, h, motion.X0, motion.Y0, bitDepth, predL0);
|
||||
Interpolate(slice.RefPicList[0][motion.Ref0], c, x0, y0, w, h, mx0, my0, bitDepth, predL0);
|
||||
}
|
||||
|
||||
if (motion.Ref1 >= 0)
|
||||
{
|
||||
Interpolate(slice.RefPicList[1][motion.Ref1], c, x0, y0, w, h, motion.X1, motion.Y1, bitDepth, predL1);
|
||||
Interpolate(slice.RefPicList[1][motion.Ref1], c, x0, y0, w, h, mx1, my1, bitDepth, predL1);
|
||||
}
|
||||
|
||||
var plane = picture.Planes[c];
|
||||
|
||||
Reference in new issue
Block a user