Correzioni dopo la revisione del decodificatore H.264, dei lettori FLV e della CI (#58)
- CI: le due prove MVC di FeaturesStillToDo finivano con «da verificare: …», che riepilogo-prove.sh contava come saltate: ogni verifica del ramo sarebbe fallita. Ora cominciano con «da fare: », e lo script esenta solo le inconclusive di FeaturesStillToDo il cui motivo comincia con «da fare: » subito dopo la cornice di MSTest (prima bastava la parola in qualunque punto di qualunque prova). PipelineTests prova lo script su .trx con le cornici inglese e italiana; processo.md, Sviluppo.md e verifica.yml descrivono la categoria. - Partizionamento dei dati: una partizione B o C sperduta (partizione A persa) sovrascriveva il buffer delle partizioni della slice in attesa. Ora slice_id e redundant_pic_cnt si leggono prima di copiare, e contano l'ordine A, B, C. - MVC: le viste tengono insieme al massimo 2 × MaxDpbMbs di immagini, e il decodificatore di una vista nuova si tiene solo dopo il controllo dell'SPS di sottoinsieme; Wanted vale per ogni vista. - FLV: senza durata nei metadati la durata arriva alla fine dell'ultimo fotogramma, come per MPEG; «solo audio» solo con una prova vera nella testa (un onMetaData grande non fa più scartare un video). - Flussi di conformità: tolti i 48 readme e schede di terzi (decisione di Alberto: nel repository solo flussi e MD5). - Prove nuove: partizioni A perse, limite delle viste e Wanted in MVC, unità di estensione troncate, flussi rovinati 4:2:2, 10 bit, 4:0:0, SVC e MVC. - Commenti sulla provenienza che citano i file di ricostruzione ufficiali e §8.7 invece del decodificatore di riferimento; commento di ImportEnvironment.VideoProbe aggiornato; righe nuove in decisioni.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6c8b228333
commit
cdc3cc11b9
71 files changed
+668
-2223
No files matched your search
@@ -6,8 +6,10 @@
|
|||||||
# .gitea/scripts/riepilogo-prove.sh <cartella dei .trx> [saltate ammesse]
|
# .gitea/scripts/riepilogo-prove.sh <cartella dei .trx> [saltate ammesse]
|
||||||
#
|
#
|
||||||
# Esce con 1 se una prova è fallita, se le saltate sono più di quelle ammesse (predefinito 0: nella CI ci sono
|
# Esce con 1 se una prova è fallita, se le saltate sono più di quelle ammesse (predefinito 0: nella CI ci sono
|
||||||
# Chromium, Xvfb, NSIS e Node, quindi nessuna prova ha motivo di saltarsi) o se non c'è nessun risultato. Le
|
# Chromium, Xvfb, NSIS e Node, quindi nessuna prova ha motivo di saltarsi) o se non c'è nessun risultato. Fa eccezione
|
||||||
# inconclusive con il motivo «da fare: …» (parti non ancora scritte) si elencano e non contano fra le saltate.
|
# solo la categoria «da fare»: le inconclusive di FeaturesStillToDo (flussi di conformità H.264 delle parti che il
|
||||||
|
# decodificatore non gestisce ancora) il cui motivo comincia con «da fare: » si elencano e non contano fra le saltate.
|
||||||
|
# Qualunque altra inconclusiva, anche con «da fare: » nel messaggio, è una saltata.
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
cartella="${1:?Indica la cartella con i file .trx.}"
|
cartella="${1:?Indica la cartella con i file .trx.}"
|
||||||
@@ -27,9 +29,11 @@ trap 'rm -f "$riepilogo"' EXIT
|
|||||||
fallite_totali=0
|
fallite_totali=0
|
||||||
saltate_totali=0
|
saltate_totali=0
|
||||||
dafare_totali=0
|
dafare_totali=0
|
||||||
# Una prova inconclusiva il cui motivo comincia con «da fare:» (dopo la cornice di MSTest, in qualunque lingua) segna una parte non ancora scritta (per esempio i flussi
|
# «Da fare»: una inconclusiva di FeaturesStillToDo il cui motivo comincia con «da fare: » subito dopo la cornice di MSTest
|
||||||
# di conformità H.264 delle parti che il decodificatore non gestisce): non è un ambiente rotto, si conta a parte.
|
# («Assert.Inconclusive. », «Assert.Inconclusive failed. », «Assert.Inconclusive non riuscito. »): segna una parte non
|
||||||
da_fare='$1 != "Passed" && $1 != "Failed" && $1 != "Error" && $1 != "Timeout" && $1 != "Aborted" && $3 ~ /Inconclusive.*da fare: /'
|
# ancora scritta, non un ambiente rotto, e si conta a parte. Il nome della prova e l'inizio del motivo sono entrambi
|
||||||
|
# vincolati: nessun'altra prova può saltarsi in silenzio scrivendo «da fare: » nel messaggio.
|
||||||
|
da_fare='$1 != "Passed" && $1 != "Failed" && $1 != "Error" && $1 != "Timeout" && $1 != "Aborted" && $2 ~ /^FeaturesStillToDo( |\(|$)/ && $3 ~ /^Assert\.Inconclusive[^.]*\. *da fare: /'
|
||||||
{
|
{
|
||||||
echo "### Prove"
|
echo "### Prove"
|
||||||
echo
|
echo
|
||||||
|
|||||||
@@ -4,7 +4,8 @@
|
|||||||
# soluzione, JSON; segreti in tutta la storia con gitleaks (versione e impronta fissate);
|
# soluzione, JSON; segreti in tutta la storia con gitleaks (versione e impronta fissate);
|
||||||
# prove compilazione di tutta la soluzione con gli avvisi come errori e tutte le prove di tests/Febe.Tests
|
# prove compilazione di tutta la soluzione con gli avvisi come errori e tutte le prove di tests/Febe.Tests
|
||||||
# (mai «dotnet test» sulla soluzione intera: tests/Febe.Tests.Windows gira solo su Windows) con
|
# (mai «dotnet test» sulla soluzione intera: tests/Febe.Tests.Windows gira solo su Windows) con
|
||||||
# Chromium, Xvfb, NSIS e Node veri in un contenitore Debian 13: nessuna prova deve saltarsi.
|
# Chromium, Xvfb, NSIS e Node veri in un contenitore Debian 13: nessuna prova deve saltarsi, tranne
|
||||||
|
# le «da fare» di H264ConformanceTests.FeaturesStillToDo (riepilogo-prove.sh le conta a parte).
|
||||||
# Il mondo sintetico del sito di prova ha il seme 13 e, per la categoria SitoDiProva, anche il seme di
|
# Il mondo sintetico del sito di prova ha il seme 13 e, per la categoria SitoDiProva, anche il seme di
|
||||||
# questa esecuzione, scritto nel registro per rifare un errore;
|
# questa esecuzione, scritto nel registro per rifare un errore;
|
||||||
# installatore Febe-Setup-<versione>-ci.<numero>.exe e lo zip portabile, artefatti per 14 giorni;
|
# installatore Febe-Setup-<versione>-ci.<numero>.exe e lo zip portabile, artefatti per 14 giorni;
|
||||||
|
|||||||
@@ -433,3 +433,7 @@ Ogni scelta tecnica presa strada facendo, con data e motivo (specifica §15).
|
|||||||
| 2026-11-18 | Il decodificatore H.264 gestisce i formati dei profili High: 4:2:2 (DC della crominanza 2×4 con qP + 3, tabelle CAVLC di nC −2, contesti CABAC per NumC8x8, predizione intra 8×16, compensazione con il vettore verticale a piena risoluzione, bordi orizzontali della crominanza alle righe 4, 8 e 12 anche con la trasformata 8×8 della luminanza), 4:4:4 con Cb e Cr codificati come la luminanza (solo CAVLC) e con `separate_colour_plane_flag` (tre immagini monocromatiche, una per `colour_plane_id`, ciascuna con i suoi dati di macroblocco e di moto e le matrici di quantizzazione del suo componente), 4:0:0, profondità da 8 a 14 bit (QP da −QpBdOffset, soglie del deblocking e scarti dei pesi scalati) e la codifica senza perdita (`qpprime_y_zero_transform_bypass_flag` a QP′Y 0, con la DPCM della predizione intra orizzontale e verticale). I campioni stanno in piani di byte, uno o due per campione: i nuclei di predizione, trasformata e filtro sono generici su `byte` e `ushort` e il JIT li specializza, così a 8 bit nulla rallenta (stessi tempi di prima sui flussi di conformità). Oltre gli 8 bit `H264Frame` ha due byte little-endian per campione, come i file di riferimento; un 4:0:0 esce con la crominanza 4:2:0 al valore medio, un 4:4:4 a piani separati come 4:4:4 con la profondità della luminanza; la conversione in RGB usa nero, ampiezza e centro della crominanza alla profondità del fotogramma e campiona la crominanza secondo il formato. Il CABAC in 4:4:4 con i piani insieme si rifiuta con un'`H264Exception`, come le slice SP e SI fuori da 4:2:0 a 8 bit | I dieci flussi 4:2:2 (8 e 10 bit, CABAC e CAVLC) e 4:0:0 della serie di conformità coincidono ora fotogramma per fotogramma con la ricostruzione ufficiale. Per il CABAC in 4:4:4 servono i valori iniziali dei contesti 460–1023 (tabelle 9-24–9-33), non ancora trascritti dallo standard: rifiutare è meglio che decodificare male. Senza flussi ufficiali con ricostruzione per 4:4:4, piani separati, senza perdita e 11–14 bit, quelle parti si provano con flussi sintetici di I_PCM e di Intra_16x16 i cui campioni si conoscono. Scelte non verificate su un riferimento: nel 4:4:4 il bS 2 conta anche i coefficienti di Cb e Cr, nel bordo sinistro misto di MBAFF in 4:2:2 e 4:4:4 ogni riga di crominanza prende il bS della riga di luminanza omonima, un macroblocco senza perdita usa per il deblocking della crominanza il QPC di QPY 0 come gli I_PCM |
|
| 2026-11-18 | Il decodificatore H.264 gestisce i formati dei profili High: 4:2:2 (DC della crominanza 2×4 con qP + 3, tabelle CAVLC di nC −2, contesti CABAC per NumC8x8, predizione intra 8×16, compensazione con il vettore verticale a piena risoluzione, bordi orizzontali della crominanza alle righe 4, 8 e 12 anche con la trasformata 8×8 della luminanza), 4:4:4 con Cb e Cr codificati come la luminanza (solo CAVLC) e con `separate_colour_plane_flag` (tre immagini monocromatiche, una per `colour_plane_id`, ciascuna con i suoi dati di macroblocco e di moto e le matrici di quantizzazione del suo componente), 4:0:0, profondità da 8 a 14 bit (QP da −QpBdOffset, soglie del deblocking e scarti dei pesi scalati) e la codifica senza perdita (`qpprime_y_zero_transform_bypass_flag` a QP′Y 0, con la DPCM della predizione intra orizzontale e verticale). I campioni stanno in piani di byte, uno o due per campione: i nuclei di predizione, trasformata e filtro sono generici su `byte` e `ushort` e il JIT li specializza, così a 8 bit nulla rallenta (stessi tempi di prima sui flussi di conformità). Oltre gli 8 bit `H264Frame` ha due byte little-endian per campione, come i file di riferimento; un 4:0:0 esce con la crominanza 4:2:0 al valore medio, un 4:4:4 a piani separati come 4:4:4 con la profondità della luminanza; la conversione in RGB usa nero, ampiezza e centro della crominanza alla profondità del fotogramma e campiona la crominanza secondo il formato. Il CABAC in 4:4:4 con i piani insieme si rifiuta con un'`H264Exception`, come le slice SP e SI fuori da 4:2:0 a 8 bit | I dieci flussi 4:2:2 (8 e 10 bit, CABAC e CAVLC) e 4:0:0 della serie di conformità coincidono ora fotogramma per fotogramma con la ricostruzione ufficiale. Per il CABAC in 4:4:4 servono i valori iniziali dei contesti 460–1023 (tabelle 9-24–9-33), non ancora trascritti dallo standard: rifiutare è meglio che decodificare male. Senza flussi ufficiali con ricostruzione per 4:4:4, piani separati, senza perdita e 11–14 bit, quelle parti si provano con flussi sintetici di I_PCM e di Intra_16x16 i cui campioni si conoscono. Scelte non verificate su un riferimento: nel 4:4:4 il bS 2 conta anche i coefficienti di Cb e Cr, nel bordo sinistro misto di MBAFF in 4:2:2 e 4:4:4 ogni riga di crominanza prende il bS della riga di luminanza omonima, un macroblocco senza perdita usa per il deblocking della crominanza il QPC di QPY 0 come gli I_PCM |
|
||||||
| 2026-11-18 | Il decodificatore H.264 gestisce MVC (Annex H) e la parte di SVC (Annex G) delle qualità MGS. MVC: SPS di sottoinsieme, prefissi NAL 14, slice NAL 20, un decodificatore per vista con stato proprio, predizione fra viste (riferimenti della stessa unità di accesso aggiunti alle liste dopo quelli temporali, modifiche 4 e 5, né a breve né a lungo termine), tutte le viste in uscita con `H264Frame.ViewId`; `VideoFrameDecoder` chiede solo la vista base (`DecodeAllViews = false`), che è il video 2D, per le miniature. SVC: lo strato base sempre; sopra, gli strati di qualità della stessa risoluzione in CAVLC, decodificati uno sull'altro nello stesso fotogramma: un macroblocco intra con `base_mode_flag` non si predice di nuovo, ma somma il residuo accumulato nei coefficienti alla ricostruzione dello strato in cui era intra, e per i vicini conta come I_BL (modo DC); un macroblocco inter riprende il moto e somma i coefficienti dello strato sotto quando `residual_prediction_flag` lo dice. Ciò che non è scritto (spaziale, CGS, CABAC negli strati di miglioramento, immagini chiave, sottoinsiemi di coefficienti) lascia lo strato base e lo dice in `EnhancementLayersSkipped` | `SVCBMT-13` coincide ora con lo strato L2 ufficiale in tutti i 20 fotogrammi; la regola per i macroblocchi intra si è ricavata provando contro il riferimento. Per `SVCBST-19` e `SVCBCT-1` mancano la predizione fra risoluzioni e i contesti CABAC di SVC, non ancora trascritti: lasciare lo strato base esatto è meglio che dare uno strato alto sbagliato. MVC non ha ricostruzioni ufficiali nella serie ITU-T: le viste non base non sono verificate al bit, e la scelta di trattare i riferimenti fra viste come né a breve né a lungo termine (per la diretta temporale e il filtro) segue la lettura di §H.8 senza un riferimento |
|
| 2026-11-18 | Il decodificatore H.264 gestisce MVC (Annex H) e la parte di SVC (Annex G) delle qualità MGS. MVC: SPS di sottoinsieme, prefissi NAL 14, slice NAL 20, un decodificatore per vista con stato proprio, predizione fra viste (riferimenti della stessa unità di accesso aggiunti alle liste dopo quelli temporali, modifiche 4 e 5, né a breve né a lungo termine), tutte le viste in uscita con `H264Frame.ViewId`; `VideoFrameDecoder` chiede solo la vista base (`DecodeAllViews = false`), che è il video 2D, per le miniature. SVC: lo strato base sempre; sopra, gli strati di qualità della stessa risoluzione in CAVLC, decodificati uno sull'altro nello stesso fotogramma: un macroblocco intra con `base_mode_flag` non si predice di nuovo, ma somma il residuo accumulato nei coefficienti alla ricostruzione dello strato in cui era intra, e per i vicini conta come I_BL (modo DC); un macroblocco inter riprende il moto e somma i coefficienti dello strato sotto quando `residual_prediction_flag` lo dice. Ciò che non è scritto (spaziale, CGS, CABAC negli strati di miglioramento, immagini chiave, sottoinsiemi di coefficienti) lascia lo strato base e lo dice in `EnhancementLayersSkipped` | `SVCBMT-13` coincide ora con lo strato L2 ufficiale in tutti i 20 fotogrammi; la regola per i macroblocchi intra si è ricavata provando contro il riferimento. Per `SVCBST-19` e `SVCBCT-1` mancano la predizione fra risoluzioni e i contesti CABAC di SVC, non ancora trascritti: lasciare lo strato base esatto è meglio che dare uno strato alto sbagliato. MVC non ha ricostruzioni ufficiali nella serie ITU-T: le viste non base non sono verificate al bit, e la scelta di trattare i riferimenti fra viste come né a breve né a lungo termine (per la diretta temporale e il filtro) segue la lettura di §H.8 senza un riferimento |
|
||||||
| 2026-11-18 | Lettori in casa di ASF/WMV, FLV e flusso di programma MPEG, scritti dalle specifiche pubbliche (ASF 01.20.03, FLV 10.1 con AMF0, ISO/IEC 11172-1 e 13818-1, H.262 per l'intestazione di sequenza), dietro `ContainerReader` e quindi dietro la sonda dei metadati e `VideoFrameDecoder`. ASF: proprietà del file (data, durata meno il preroll, niente durata per le trasmissioni), proprietà dei flussi anche dentro l'estensione dell'intestazione, titolo, `WM/EncodingTime` se manca la data; nessun campione. FLV: `onMetaData`, dimensioni dall'SPS (che vince sui metadati) o dall'intestazione H.263 di Sorenson, durata dall'ultimo tag quando i metadati non la dicono, i tag H.264 come campioni (così anche gli FLV hanno la miniatura), il codec degli FLV «enhanced» dal FourCC. MPEG: si leggono solo i primi 2 MB e l'ultimo MB; codec e dimensioni dalla mappa del flusso di programma, dall'intestazione di sequenza MPEG-1/MPEG-2 (con l'estensione) o dall'SPS H.264; durata dal primo all'ultimo PTS del video più un'immagine, attraverso il giro dell'orologio a 33 bit; nessun campione, perché quelli di un MPEG stanno spezzati nei pacchetti PES. `MediaSniffer` non tratta più come video un WMA o un FLV di solo audio quando l'intestazione intera nei primi byte lo dimostra | Prima questi formati si riconoscevano ma la sonda non ne sapeva nulla: data, durata e dimensioni venivano solo dal nome e dalla data di modifica. Leggere solo le intestazioni (e per MPEG due finestre fisse) costa poco anche su librerie grandi; elencare i campioni di WMV e MPEG non servirebbe, perché VC-1 e MPEG-2 non si decodificano, e un elenco di pezzi PES chiederebbe un altro modello di campione. Un WMA o un FLV di solo audio non è un video, come l'M4A; nel dubbio (intestazione non intera) il file resta un video |
|
| 2026-11-18 | Lettori in casa di ASF/WMV, FLV e flusso di programma MPEG, scritti dalle specifiche pubbliche (ASF 01.20.03, FLV 10.1 con AMF0, ISO/IEC 11172-1 e 13818-1, H.262 per l'intestazione di sequenza), dietro `ContainerReader` e quindi dietro la sonda dei metadati e `VideoFrameDecoder`. ASF: proprietà del file (data, durata meno il preroll, niente durata per le trasmissioni), proprietà dei flussi anche dentro l'estensione dell'intestazione, titolo, `WM/EncodingTime` se manca la data; nessun campione. FLV: `onMetaData`, dimensioni dall'SPS (che vince sui metadati) o dall'intestazione H.263 di Sorenson, durata dall'ultimo tag quando i metadati non la dicono, i tag H.264 come campioni (così anche gli FLV hanno la miniatura), il codec degli FLV «enhanced» dal FourCC. MPEG: si leggono solo i primi 2 MB e l'ultimo MB; codec e dimensioni dalla mappa del flusso di programma, dall'intestazione di sequenza MPEG-1/MPEG-2 (con l'estensione) o dall'SPS H.264; durata dal primo all'ultimo PTS del video più un'immagine, attraverso il giro dell'orologio a 33 bit; nessun campione, perché quelli di un MPEG stanno spezzati nei pacchetti PES. `MediaSniffer` non tratta più come video un WMA o un FLV di solo audio quando l'intestazione intera nei primi byte lo dimostra | Prima questi formati si riconoscevano ma la sonda non ne sapeva nulla: data, durata e dimensioni venivano solo dal nome e dalla data di modifica. Leggere solo le intestazioni (e per MPEG due finestre fisse) costa poco anche su librerie grandi; elencare i campioni di WMV e MPEG non servirebbe, perché VC-1 e MPEG-2 non si decodificano, e un elenco di pezzi PES chiederebbe un altro modello di campione. Un WMA o un FLV di solo audio non è un video, come l'M4A; nel dubbio (intestazione non intera) il file resta un video |
|
||||||
|
| 2026-11-18 | Flussi di conformità ITU-T nel repository: **solo i flussi e i loro MD5** (`riferimento*.md5`), mai i `readme` degli autori, le schede degli strati SVC o le uscite decodificate; tolti i 48 file `.txt` di terzi aggiunti con i flussi. Ciò che le prove ne usano (profilo, formato, numero di fotogrammi, che cosa prova ogni flusso) sta nelle tabelle di `tests/Febe.Tests/Media/H264/Conformita/LEGGIMI.md`, con la fonte | Risposta di Alberto del 18 novembre 2026 alla domanda sui flussi ITU-T in più: «sì, scaricarli; nel repository solo flussi e MD5». Nessuna prova leggeva i `readme`, ed erano dati di terzi |
|
||||||
|
| 2026-11-18 | Nella CI resta zero il numero di prove saltate ammesse, con una sola eccezione, la categoria «da fare»: le inconclusive di `H264ConformanceTests.FeaturesStillToDo` il cui motivo comincia con «da fare: » subito dopo la cornice di MSTest. `riepilogo-prove.sh` vincola sia il nome della prova sia l'inizio del motivo; i due flussi MVC senza ricostruzione ufficiale passano da «da verificare: …» a «da fare: …» | Con lo schema di prima (`Inconclusive.*da fare: ` in qualunque punto del messaggio) qualunque prova poteva saltarsi in silenzio scrivendo quelle parole, e i due flussi MVC, che non le avevano, contavano come saltate e facevano fallire ogni verifica del ramo. Ora `PipelineTests` prova lo script su file `.trx` con le cornici inglese e italiana |
|
||||||
|
| 2026-11-18 | Provenienza del filtro di deblocking per campi e coppie MBAFF: la riga del 18 novembre che dice «come lo fa il decodificatore di riferimento dell'ITU-T» va letta come «come vuole §8.7 (§8.7.1, `fieldModeInFrameFilteringFlag`, `mixedModeEdgeFlag`), confermato dalla ricostruzione ufficiale dei flussi MBAFF»: il codice cita §8.7 e non nasce da sorgenti di terzi. Le uscite che H.264 non fissa (due byte little-endian oltre gli 8 bit, crominanza al valore medio per il 4:0:0, righe grigie per un campo senza compagno) seguono i file di ricostruzione ufficiali della serie H.264.1 o, per il campo solo, la scelta di non inventare righe; i commenti nel codice ora lo dicono così | Le regole sono «dalle specifiche pubbliche, mai copiando sorgenti di terzi»: citare il decodificatore di riferimento faceva pensare il contrario. Se nelle sessioni precedenti siano stati letti sorgenti di JM, JSVM o JMVC non si ricava dal repository (nessun identificatore di JM nel codice): lo può dire solo chi ha scritto il codice |
|
||||||
|
| 2026-11-18 | Correzioni dopo la revisione del decodificatore H.264 e dei lettori FLV: una partizione B o C si copia solo se `slice_id` e `redundant_pic_cnt` sono quelli della slice in attesa e se arriva nell'ordine A, B, C (una sperduta non tocca più le partizioni già tenute); le viste MVC tengono insieme al massimo due volte `MaxDpbMbs` di immagini (il fattore 2 dell'allegato H) e il decodificatore di una vista nuova si tiene solo dopo il controllo dell'SPS di sottoinsieme; `Wanted` vale per ogni vista, ciascuna con il suo indice di decodifica, e una componente con `inter_view_flag` si ricostruisce sempre; senza durata nei metadati un FLV dura fino alla fine dell'ultimo fotogramma (l'ultimo tag video più l'intervallo dal precedente, l'audio solo senza video), come fa il lettore MPEG; un FLV è di solo audio solo se la testa ha un tag audio intero, nessun tag video e arriva alla fine del file, a cinque secondi d'audio o a 4096 tag | Erano difetti veri: residui di un'altra slice in una slice con la partizione A persa, memoria moltiplicata per il numero di viste da un SPS rovinato, il filtro ignorato dalle viste non base, durate di un fotogramma più corte di quelle dei metadati, e video veri scartati come «Non riconosciuto» quando un `onMetaData` grande riempiva la testa. Ogni correzione ha una prova che fallisce con il codice di prima |
|
||||||
@@ -198,7 +198,9 @@ richieste di unione, protezione di `main`, rilievi di sicurezza, rilasci, correz
|
|||||||
- `controlli`: sintassi degli script, file di testo, versione, progetti della soluzione, JSON, e nessun segreto in
|
- `controlli`: sintassi degli script, file di testo, versione, progetti della soluzione, JSON, e nessun segreto in
|
||||||
tutta la storia (gitleaks);
|
tutta la storia (gitleaks);
|
||||||
- `prove`: compilazione di tutta la soluzione con gli avvisi come errori e tutte le prove di `tests/Febe.Tests` in
|
- `prove`: compilazione di tutta la soluzione con gli avvisi come errori e tutte le prove di `tests/Febe.Tests` in
|
||||||
un contenitore Debian con Chromium, Xvfb, NSIS e Node veri: nessuna prova si salta;
|
un contenitore Debian con Chromium, Xvfb, NSIS e Node veri: nessuna prova si salta. Fa eccezione solo la categoria
|
||||||
|
«da fare»: le inconclusive di `H264ConformanceTests.FeaturesStillToDo` il cui motivo comincia con «da fare: »
|
||||||
|
(flussi di conformità delle parti del decodificatore H.264 non ancora scritte), elencate a parte nel riepilogo;
|
||||||
- `installatore`: `Febe-Setup-<versione>-ci.<numero>.exe` e lo zip portabile, fra gli artefatti per 14 giorni;
|
- `installatore`: `Febe-Setup-<versione>-ci.<numero>.exe` e lo zip portabile, fra gli artefatti per 14 giorni;
|
||||||
- `immagine`, dopo l'installatore: l'immagine Docker, provata senza rete (parte, diventa «healthy», si ferma) e
|
- `immagine`, dopo l'installatore: l'immagine Docker, provata senza rete (parte, diventa «healthy», si ferma) e
|
||||||
scansionata con Trivy; dopo un push su `main` va sul registro come `:main` e `:sha-<commit>`. Alla fine si toglie
|
scansionata con Trivy; dopo un push su `main` va sul registro come `:main` e `:sha-<commit>`. Alla fine si toglie
|
||||||
|
|||||||
+1
-1
@@ -87,7 +87,7 @@ Docker del server, lo stesso che costruisce Encelado, Mimante e gli altri proget
|
|||||||
| Lavoro | Quando | Che cosa garantisce |
|
| Lavoro | Quando | Che cosa garantisce |
|
||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `controlli` | ogni push | sintassi di tutti gli script di shell (`bash -n`, `sh -n`) e righe Unix; flussi senza tabulazioni; nessun segno di conflitto; versione in `Directory.Build.props` valida; ogni progetto di `Febe.slnx` esiste; ogni JSON si legge; nessun segreto in tutta la storia (gitleaks 8.30.1, `--redact`) |
|
| `controlli` | ogni push | sintassi di tutti gli script di shell (`bash -n`, `sh -n`) e righe Unix; flussi senza tabulazioni; nessun segno di conflitto; versione in `Directory.Build.props` valida; ogni progetto di `Febe.slnx` esiste; ogni JSON si legge; nessun segreto in tutta la storia (gitleaks 8.30.1, `--redact`) |
|
||||||
| `prove` | dopo `controlli` | in un contenitore Debian 13 (`node:24-trixie`) con Chromium della distribuzione, Xvfb, NSIS, Node e la lingua italiana: tutta la soluzione compila con gli avvisi come errori e **tutte** le prove di `tests/Febe.Tests` passano senza saltarsi; quelle della categoria `SitoDiProva` passano anche con il seme dell'esecuzione. Risultati `.trx` fra gli artefatti (14 giorni) |
|
| `prove` | dopo `controlli` | in un contenitore Debian 13 (`node:24-trixie`) con Chromium della distribuzione, Xvfb, NSIS, Node e la lingua italiana: tutta la soluzione compila con gli avvisi come errori e **tutte** le prove di `tests/Febe.Tests` passano senza saltarsi (unica eccezione la categoria «da fare»: le inconclusive di `H264ConformanceTests.FeaturesStillToDo` il cui motivo comincia con «da fare: », cioè i flussi di conformità delle parti del decodificatore non ancora scritte, che `riepilogo-prove.sh` elenca a parte e non conta fra le saltate); quelle della categoria `SitoDiProva` passano anche con il seme dell'esecuzione. Risultati `.trx` fra gli artefatti (14 giorni) |
|
||||||
| `installatore` | dopo `prove` | `Febe.exe` in un file solo, `Febe-Setup-<versione>-ci.<numero>.exe` e lo zip portabile si costruiscono, ciascuno sotto i 100 MB; artefatti per 14 giorni |
|
| `installatore` | dopo `prove` | `Febe.exe` in un file solo, `Febe-Setup-<versione>-ci.<numero>.exe` e lo zip portabile si costruiscono, ciascuno sotto i 100 MB; artefatti per 14 giorni |
|
||||||
| `immagine` | dopo `installatore` (così `:main` e `:sha-` escono solo da un commit con tutta la verifica verde) | l'immagine si costruisce con buildx (dentro girano compilazione e prove), il contenitore parte **senza rete** come dice la guida e diventa «healthy», Chromium e la lingua italiana ci sono, si ferma entro 30 secondi; Trivy 0.75.0 non trova vulnerabilità CRITICAL con correzione disponibile. Solo dopo un push su `main`: pubblicazione `:main` e `:sha-<commit>` |
|
| `immagine` | dopo `installatore` (così `:main` e `:sha-` escono solo da un commit con tutta la verifica verde) | l'immagine si costruisce con buildx (dentro girano compilazione e prove), il contenitore parte **senza rete** come dice la guida e diventa «healthy», Chromium e la lingua italiana ci sono, si ferma entro 30 secondi; Trivy 0.75.0 non trova vulnerabilità CRITICAL con correzione disponibile. Solo dopo un push su `main`: pubblicazione `:main` e `:sha-<commit>` |
|
||||||
|
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ public static class FlvReader
|
|||||||
|
|
||||||
private const long HeadBytes = 32L * 1024 * 1024;
|
private const long HeadBytes = 32L * 1024 * 1024;
|
||||||
|
|
||||||
|
/// <summary>Audio without a single video tag that, at the start of a file, proves it has no video.</summary>
|
||||||
|
public const int AudioProofMilliseconds = 5000;
|
||||||
|
|
||||||
/// <summary>Tags looked at back from the end of the file for its last time.</summary>
|
/// <summary>Tags looked at back from the end of the file for its last time.</summary>
|
||||||
private const int TailTags = 64;
|
private const int TailTags = 64;
|
||||||
|
|
||||||
@@ -37,8 +40,11 @@ public static class FlvReader
|
|||||||
start.Length >= 9 && start[..3].SequenceEqual("FLV"u8) && start[3] == 1 && BinaryPrimitives.ReadUInt32BigEndian(start[5..]) >= 9;
|
start.Length >= 9 && start[..3].SequenceEqual("FLV"u8) && start[3] == 1 && BinaryPrimitives.ReadUInt32BigEndian(start[5..]) >= 9;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// True only when the first bytes of a file prove an FLV without video: the header says audio and no video, and no
|
/// True only when the first bytes of a file prove an FLV without video: the header says audio and no video, the tags
|
||||||
/// video tag is among the tags in <paramref name="head"/>.
|
/// in <paramref name="head"/> hold at least one whole audio tag and no video tag, and they reach far enough to rule
|
||||||
|
/// video out — the exact end of <paramref name="head"/> (it is the whole file), <see cref="AudioProofMilliseconds"/>
|
||||||
|
/// of audio, or <see cref="HeadTags"/> tags. Anything less (a head that ends inside a large onMetaData, a few tags, a
|
||||||
|
/// tag that is not one) proves nothing, and the file stays a video: header flags are often wrong.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool IsAudioOnly(ReadOnlySpan<byte> head)
|
public static bool IsAudioOnly(ReadOnlySpan<byte> head)
|
||||||
{
|
{
|
||||||
@@ -48,18 +54,41 @@ public static class FlvReader
|
|||||||
}
|
}
|
||||||
|
|
||||||
var position = (long)BinaryPrimitives.ReadUInt32BigEndian(head[5..]) + 4;
|
var position = (long)BinaryPrimitives.ReadUInt32BigEndian(head[5..]) + 4;
|
||||||
for (var tags = 0; position + 11 <= head.Length && tags < HeadTags; tags++)
|
long? firstAudio = null;
|
||||||
|
long lastAudio = 0;
|
||||||
|
var tags = 0;
|
||||||
|
while (position + 11 <= head.Length && tags < HeadTags)
|
||||||
{
|
{
|
||||||
var type = head[(int)position] & 0x1F;
|
var tag = head.Slice((int)position, 11);
|
||||||
|
var type = tag[0] & 0x1F;
|
||||||
if (type == 9)
|
if (type == 9)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
position += 11 + ((head[(int)position + 1] << 16) | (head[(int)position + 2] << 8) | head[(int)position + 3]) + 4;
|
if ((tag[0] & 0xC0) != 0 || type is not (8 or 18))
|
||||||
|
{
|
||||||
|
return false; // not a tag: what follows proves nothing
|
||||||
|
}
|
||||||
|
|
||||||
|
var next = position + 11 + ((tag[1] << 16) | (tag[2] << 8) | tag[3]) + 4;
|
||||||
|
if (next > head.Length)
|
||||||
|
{
|
||||||
|
break; // a tag cut by the end of the head is not seen whole
|
||||||
|
}
|
||||||
|
|
||||||
|
if (type == 8)
|
||||||
|
{
|
||||||
|
var time = (long)(int)((uint)(tag[7] << 24) | (uint)(tag[4] << 16) | (uint)(tag[5] << 8) | tag[6]);
|
||||||
|
firstAudio ??= time;
|
||||||
|
lastAudio = time;
|
||||||
|
}
|
||||||
|
|
||||||
|
tags++;
|
||||||
|
position = next;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return firstAudio is { } first && (position == head.Length || tags >= HeadTags || lastAudio - first >= AudioProofMilliseconds);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Reads a seekable stream from its start.</summary>
|
/// <summary>Reads a seekable stream from its start.</summary>
|
||||||
@@ -137,9 +166,9 @@ public static class FlvReader
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state.MetadataSeconds is null && state.FirstTime is { } first && LastTime(stream, dataOffset + 4L) is { } last && last > first)
|
if (state.MetadataSeconds is null && state.FirstTime is { } first && EndTime(stream, dataOffset + 4L) is { } end && end > first)
|
||||||
{
|
{
|
||||||
state.LastSeconds = (last - first) / 1000.0;
|
state.LastSeconds = (end - first) / 1000.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
return state.Build();
|
return state.Build();
|
||||||
@@ -281,11 +310,18 @@ public static class FlvReader
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>The time of the last audio or video tag, walking back from the end with the PreviousTagSize fields.</summary>
|
/// <summary>The time of the last audio or video tag, walking back from the end with the PreviousTagSize fields.</summary>
|
||||||
private static long? LastTime(Stream stream, long firstTag)
|
/// <summary>
|
||||||
|
/// The time the file ends, in milliseconds, from the tags at its end (walked back through their PreviousTagSize): the
|
||||||
|
/// last video tag plus the interval from the video tag before it, that is one frame, as the MPEG reader adds one
|
||||||
|
/// frame to the last time of its video; the same for audio when the end of the file holds no video tag. Null when
|
||||||
|
/// the end of the file has no tag to trust.
|
||||||
|
/// </summary>
|
||||||
|
private static long? EndTime(Stream stream, long firstTag)
|
||||||
{
|
{
|
||||||
Span<byte> buffer = stackalloc byte[11];
|
Span<byte> buffer = stackalloc byte[11];
|
||||||
var end = stream.Length;
|
var end = stream.Length;
|
||||||
for (var step = 0; step < TailTags && end - 4 >= firstTag; step++)
|
long? lastVideo = null, previousVideo = null, lastAudio = null, previousAudio = null;
|
||||||
|
for (var step = 0; step < TailTags && end - 4 >= firstTag && previousVideo is null; step++)
|
||||||
{
|
{
|
||||||
stream.Position = end - 4;
|
stream.Position = end - 4;
|
||||||
stream.ReadExactly(buffer[..4]);
|
stream.ReadExactly(buffer[..4]);
|
||||||
@@ -293,7 +329,7 @@ public static class FlvReader
|
|||||||
var start = end - 4 - previous;
|
var start = end - 4 - previous;
|
||||||
if (previous < 11 || start < firstTag)
|
if (previous < 11 || start < firstTag)
|
||||||
{
|
{
|
||||||
return null; // no PreviousTagSize to trust (a file cut short ends inside a tag)
|
break; // no PreviousTagSize to trust (a file cut short ends inside a tag)
|
||||||
}
|
}
|
||||||
|
|
||||||
stream.Position = start;
|
stream.Position = start;
|
||||||
@@ -301,18 +337,40 @@ public static class FlvReader
|
|||||||
var size = (buffer[1] << 16) | (buffer[2] << 8) | buffer[3];
|
var size = (buffer[1] << 16) | (buffer[2] << 8) | buffer[3];
|
||||||
if (size + 11 != previous || (buffer[0] & 0xC0) != 0)
|
if (size + 11 != previous || (buffer[0] & 0xC0) != 0)
|
||||||
{
|
{
|
||||||
return null;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((buffer[0] & 0x1F) is 8 or 9)
|
var time = (long)(int)((uint)(buffer[7] << 24) | (uint)(buffer[4] << 16) | (uint)(buffer[5] << 8) | buffer[6]);
|
||||||
|
switch (buffer[0] & 0x1F)
|
||||||
{
|
{
|
||||||
return (int)((uint)(buffer[7] << 24) | (uint)(buffer[4] << 16) | (uint)(buffer[5] << 8) | buffer[6]);
|
case 9:
|
||||||
|
Note(ref lastVideo, ref previousVideo, time);
|
||||||
|
break;
|
||||||
|
case 8:
|
||||||
|
Note(ref lastAudio, ref previousAudio, time);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
end = start;
|
end = start;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return lastVideo is { } video ? video + (video - (previousVideo ?? video))
|
||||||
|
: lastAudio is { } audio ? audio + (audio - (previousAudio ?? audio))
|
||||||
|
: null;
|
||||||
|
|
||||||
|
// The first time seen walking back is the last of the track, the first earlier one the tag before it (a tag at the
|
||||||
|
// same time, such as the end of an AVC sequence, is no frame of its own).
|
||||||
|
static void Note(ref long? last, ref long? before, long time)
|
||||||
|
{
|
||||||
|
if (last is null)
|
||||||
|
{
|
||||||
|
last = time;
|
||||||
|
}
|
||||||
|
else if (before is null && time < last)
|
||||||
|
{
|
||||||
|
before = time;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static byte[] Read(Stream stream, long offset, int count)
|
private static byte[] Read(Stream stream, long offset, int count)
|
||||||
|
|||||||
@@ -40,6 +40,13 @@ public sealed partial class H264Decoder
|
|||||||
/// <summary>A subset SPS with the multiview extension was read: the stream is MVC.</summary>
|
/// <summary>A subset SPS with the multiview extension was read: the stream is MVC.</summary>
|
||||||
private bool multiview;
|
private bool multiview;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The frame stores of all views together are kept within twice the largest buffer of any level (MaxDpbMbs of level
|
||||||
|
/// 6.2, table A-1, times the mvcScaleFactor 2 that Annex H applies to the buffer of a multiview stream): a damaged
|
||||||
|
/// subset SPS that lists up to 1,024 views cannot make the decoder allocate one buffer per view beyond it.
|
||||||
|
/// </summary>
|
||||||
|
internal const long MaxAllViewsMbs = 2L * Sps.MaxDpbMbs;
|
||||||
|
|
||||||
public H264Decoder()
|
public H264Decoder()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@@ -52,6 +59,7 @@ public sealed partial class H264Decoder
|
|||||||
sequences = root.subsetSequences;
|
sequences = root.subsetSequences;
|
||||||
pictures = root.pictures;
|
pictures = root.pictures;
|
||||||
FrameDecoded += frame => root.FrameDecoded?.Invoke(frame);
|
FrameDecoded += frame => root.FrameDecoded?.Invoke(frame);
|
||||||
|
// Wanted is read from the root decoder (see Wanted): a filter set there applies to every view.
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -102,6 +110,9 @@ public sealed partial class H264Decoder
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A view seen for the first time gets a decoder of its own, kept only once its first slice has shown that the
|
||||||
|
// subset SPS lists the view and that the buffers of all views fit (RegisterView): until then it holds nothing.
|
||||||
|
var seen = decoder is not null;
|
||||||
if (decoder is null)
|
if (decoder is null)
|
||||||
{
|
{
|
||||||
if (viewDecoders.Count >= 1023)
|
if (viewDecoders.Count >= 1023)
|
||||||
@@ -110,16 +121,35 @@ public sealed partial class H264Decoder
|
|||||||
}
|
}
|
||||||
|
|
||||||
decoder = new H264Decoder(this, id);
|
decoder = new H264Decoder(this, id);
|
||||||
viewDecoders.Add(decoder);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
decoder.anchorPicture = (nal.Rbsp[3] & 4) != 0;
|
decoder.anchorPicture = (nal.Rbsp[3] & 4) != 0;
|
||||||
decoder.pendingInterView = (nal.Rbsp[3] & 2) != 0;
|
decoder.pendingInterView = (nal.Rbsp[3] & 2) != 0;
|
||||||
decoder.DecodeViewComponentSlice(nal, idr: !nonIdr);
|
decoder.DecodeViewComponentSlice(nal, idr: !nonIdr, register: !seen);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>One slice of the view of this decoder: parsed with the subset SPS, decoded like a slice of the base view.</summary>
|
/// <summary>
|
||||||
private void DecodeViewComponentSlice(NalUnit nal, bool idr)
|
/// Keeps the decoder of a new view, when the frame stores of the base view and of every view decoded so far, this one
|
||||||
|
/// included, stay within <see cref="MaxAllViewsMbs"/>: each view holds at most max_num_ref_frames reference frames
|
||||||
|
/// and the picture being decoded.
|
||||||
|
/// </summary>
|
||||||
|
private void RegisterView(H264Decoder decoder, Sps sps)
|
||||||
|
{
|
||||||
|
var views = viewDecoders.Count + 2L;
|
||||||
|
var perView = (long)(Math.Max(1, sps.MaxNumRefFrames) + 1) * sps.WidthInMbs * sps.HeightInMbs;
|
||||||
|
if (views * perView > MaxAllViewsMbs)
|
||||||
|
{
|
||||||
|
throw new H264Exception("Troppe viste per la memoria di ogni livello H.264.");
|
||||||
|
}
|
||||||
|
|
||||||
|
viewDecoders.Add(decoder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// One slice of the view of this decoder: parsed with the subset SPS, decoded like a slice of the base view. The first
|
||||||
|
/// slice of a new view (<paramref name="register"/>) also has the root decoder keep this decoder.
|
||||||
|
/// </summary>
|
||||||
|
private void DecodeViewComponentSlice(NalUnit nal, bool idr, bool register)
|
||||||
{
|
{
|
||||||
var reader = nal.Reader();
|
var reader = nal.Reader();
|
||||||
|
|
||||||
@@ -131,6 +161,11 @@ public sealed partial class H264Decoder
|
|||||||
throw new H264Exception("Vista assente dall'SPS di sottoinsieme.");
|
throw new H264Exception("Vista assente dall'SPS di sottoinsieme.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (register)
|
||||||
|
{
|
||||||
|
root!.RegisterView(this, sps);
|
||||||
|
}
|
||||||
|
|
||||||
if (header.RedundantPicCnt > 0)
|
if (header.RedundantPicCnt > 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@@ -171,10 +206,10 @@ public sealed partial class H264Decoder
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A picture of the base view that nobody refers to in time may still be needed by the other views of its access
|
/// A view component that nobody refers to in time may still be needed by the views after it in the same access unit
|
||||||
/// unit (inter_view_flag): it is then always reconstructed.
|
/// (inter_view_flag): it is then always reconstructed, whatever <see cref="Wanted"/> says.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool NeededByOtherViews => root is null && multiview && DecodeAllViews && pendingInterView;
|
private bool NeededByOtherViews => (root ?? this) is { multiview: true, DecodeAllViews: true } && pendingInterView;
|
||||||
|
|
||||||
/// <summary>The view_ids of the inter-view references of list <paramref name="list"/> of the current view component.</summary>
|
/// <summary>The view_ids of the inter-view references of list <paramref name="list"/> of the current view component.</summary>
|
||||||
private int[] InterViewRefs(int list)
|
private int[] InterViewRefs(int list)
|
||||||
|
|||||||
@@ -65,21 +65,34 @@ public sealed partial class H264Decoder
|
|||||||
partitionPending = true;
|
partitionPending = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Partition B or C (§7.3.2.10) of the slice waiting in partition A; one of another slice is ignored.</summary>
|
/// <summary>
|
||||||
|
/// Partition B or C (§7.3.2.10) of the slice waiting in partition A. One of another slice (its partition A lost),
|
||||||
|
/// of a redundant picture, a second B or C, or a B after the C (§7.4.1.2.5 puts them in the order A, B, C) is
|
||||||
|
/// ignored, and never touches the partitions already kept for the waiting slice.
|
||||||
|
/// </summary>
|
||||||
private void StorePartition(NalUnit nal)
|
private void StorePartition(NalUnit nal)
|
||||||
{
|
{
|
||||||
if (!partitionPending)
|
if (!partitionPending || pendingC is not null || (nal.Type == 3 && pendingB is not null))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// slice_id and redundant_pic_cnt are read from the unit as it came: only a partition of the waiting slice is
|
||||||
|
// copied, so a stray one cannot overwrite the buffer the reader of an earlier partition still reads.
|
||||||
|
var probe = nal.Reader();
|
||||||
|
var sliceId = probe.ReadUe(Sps.MaxFrameMbs - 1);
|
||||||
|
var redundant = pendingPps!.RedundantPicCntPresent ? probe.ReadUe(127) : 0;
|
||||||
|
if (sliceId != pendingSliceId || redundant != 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var copy = nal.Type == 3 ? Keep(nal, ref partitionB) : Keep(nal, ref partitionC);
|
var copy = nal.Type == 3 ? Keep(nal, ref partitionB) : Keep(nal, ref partitionC);
|
||||||
var reader = copy.Reader();
|
var reader = copy.Reader();
|
||||||
var sliceId = reader.ReadUe(Sps.MaxFrameMbs - 1);
|
reader.ReadUe(Sps.MaxFrameMbs - 1);
|
||||||
var redundant = pendingPps!.RedundantPicCntPresent ? reader.ReadUe(127) : 0;
|
if (pendingPps.RedundantPicCntPresent)
|
||||||
if (sliceId != pendingSliceId || redundant != 0)
|
|
||||||
{
|
{
|
||||||
return;
|
reader.ReadUe(127);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nal.Type == 3)
|
if (nal.Type == 3)
|
||||||
|
|||||||
@@ -81,9 +81,18 @@ public sealed partial class H264Decoder
|
|||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Which frames to hand out, by decoding index; null hands out all of them. A picture that is not used for reference
|
/// Which frames to hand out, by decoding index; null hands out all of them. A picture that is not used for reference
|
||||||
/// and is not wanted is not reconstructed at all: only its header counts.
|
/// and is not wanted is not reconstructed at all: only its header counts. In an MVC stream decoded with
|
||||||
|
/// <see cref="DecodeAllViews"/> the same filter applies to every view, each with its own decoding index
|
||||||
|
/// (<see cref="H264Frame.DecodeIndex"/> counts the view components of a view): when every access unit has all the
|
||||||
|
/// views, index n of each view is the n-th access unit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Func<long, bool>? Wanted { get; set; }
|
public Func<long, bool>? Wanted
|
||||||
|
{
|
||||||
|
get => root is null ? wanted : root.Wanted;
|
||||||
|
set => wanted = value;
|
||||||
|
}
|
||||||
|
|
||||||
|
private Func<long, bool>? wanted;
|
||||||
|
|
||||||
/// <summary>Raised for each decoded frame that <see cref="Wanted"/> accepts, in decoding order.</summary>
|
/// <summary>Raised for each decoded frame that <see cref="Wanted"/> accepts, in decoding order.</summary>
|
||||||
public event Action<H264Frame>? FrameDecoded;
|
public event Action<H264Frame>? FrameDecoded;
|
||||||
@@ -890,7 +899,8 @@ public sealed partial class H264Decoder
|
|||||||
|
|
||||||
if (p.Decoded != 3)
|
if (p.Decoded != 3)
|
||||||
{
|
{
|
||||||
// A field without its pair: the rows of the missing field are grey, as the reference decoder writes them.
|
// A field without its pair: the rows of the missing field are grey (the middle value), since the stream has none
|
||||||
|
// for them and the decoder does not invent any; H.264 leaves the output of an unpaired field open.
|
||||||
var missing = p.Decoded == 1 ? 1 : 0;
|
var missing = p.Decoded == 1 ? 1 : 0;
|
||||||
var rowY = width * bps;
|
var rowY = width * bps;
|
||||||
for (var r = 0; r < height; r++)
|
for (var r = 0; r < height; r++)
|
||||||
|
|||||||
@@ -207,9 +207,10 @@ internal readonly record struct RefEntry(Picture? Pic, int Parity, bool InterVie
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A decoded frame, cropped, in planar YUV. Up to 8 bits each sample is a byte; above, two bytes, little-endian (as the
|
/// A decoded frame, cropped, in planar YUV. Up to 8 bits each sample is a byte; above, two bytes, little-endian (the
|
||||||
/// reference decoders write their files). A monochrome frame (4:0:0) comes with Cb and Cr planes of 4:2:0 size at the
|
/// layout of the official reconstruction files of the ITU-T H.264.1 series). A monochrome frame (4:0:0) comes with Cb and
|
||||||
/// middle value 2^(BitDepthChroma − 1), as reference decoders write it too.
|
/// Cr planes of 4:2:0 size at the middle value 2^(BitDepthChroma − 1), as the official reconstructions of the monochrome
|
||||||
|
/// conformance streams hold them. H.264 itself specifies neither layout.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="Width">Luma width after cropping.</param>
|
/// <param name="Width">Luma width after cropping.</param>
|
||||||
/// <param name="Height">Luma height after cropping.</param>
|
/// <param name="Height">Luma height after cropping.</param>
|
||||||
@@ -244,7 +245,7 @@ public sealed record H264Frame(
|
|||||||
/// <summary>Sample <paramref name="index"/> of a chroma plane (row × ChromaWidth + column), whatever the bit depth.</summary>
|
/// <summary>Sample <paramref name="index"/> of a chroma plane (row × ChromaWidth + column), whatever the bit depth.</summary>
|
||||||
public int ChromaAt(byte[] plane, int index) => BytesPerSample == 2 ? plane[2 * index] | (plane[(2 * index) + 1] << 8) : plane[index];
|
public int ChromaAt(byte[] plane, int index) => BytesPerSample == 2 ? plane[2 * index] | (plane[(2 * index) + 1] << 8) : plane[index];
|
||||||
|
|
||||||
/// <summary>The frame as one planar buffer (Y, then Cb, then Cr), as reference decoders write it.</summary>
|
/// <summary>The frame as one planar buffer (Y, then Cb, then Cr), as the official reconstruction files lay it out.</summary>
|
||||||
public byte[] ToPlanar()
|
public byte[] ToPlanar()
|
||||||
{
|
{
|
||||||
var buffer = new byte[Y.Length + Cb.Length + Cr.Length];
|
var buffer = new byte[Y.Length + Cb.Length + Cr.Length];
|
||||||
|
|||||||
@@ -37,8 +37,9 @@ public sealed record ImportEnvironment
|
|||||||
public VideoFrameDecoder? Frames { get; init; }
|
public VideoFrameDecoder? Frames { get; init; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Reader of the metadata of videos the MP4 header reader does not cover (WebM, Matroska, AVI). Null: the in-house
|
/// Reader of the metadata of videos the MP4 header reader does not cover (WebM/Matroska, AVI, WMV/ASF, FLV and MPEG
|
||||||
/// <see cref="ContainerVideoMetadataProbe"/> on the clock of this environment.
|
/// program streams: see <see cref="IVideoMetadataProbe"/>). Null: the in-house <see cref="ContainerVideoMetadataProbe"/>
|
||||||
|
/// on the clock of this environment.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IVideoMetadataProbe? VideoProbe { get; init; }
|
public IVideoMetadataProbe? VideoProbe { get; init; }
|
||||||
|
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ partenza (`DuplicateDecision.Pending`); «Fai lo stesso per gli altri» è `Deci
|
|||||||
|
|
||||||
Per ogni file, senza scrivere nulla nella sorgente: tipo dal contenuto (`MediaSniffer`: JPEG, PNG, GIF, WebP, HEIC/HEIF,
|
Per ogni file, senza scrivere nulla nella sorgente: tipo dal contenuto (`MediaSniffer`: JPEG, PNG, GIF, WebP, HEIC/HEIF,
|
||||||
AVIF, BMP, TIFF e raw, MP4, MOV anche senza `ftyp`, 3GP, WebM/Matroska, AVI, WMV, FLV, MPEG; l'audio M4A non è un
|
AVIF, BMP, TIFF e raw, MP4, MOV anche senza `ftyp`, 3GP, WebM/Matroska, AVI, WMV, FLV, MPEG; l'audio M4A non è un
|
||||||
video, e nemmeno un WMA o un FLV di solo audio quando i primi 512 kB lo dimostrano), byte, SHA-256, dimensioni, impronta visiva a 64 bit per le foto, data, identificativo o codice, account
|
video, e nemmeno un WMA o un FLV di solo audio quando i primi 512 kB lo dimostrano: per l'FLV almeno un tag audio intero, nessun tag video e cinque secondi di audio o la fine del file), byte, SHA-256, dimensioni, impronta visiva a 64 bit per le foto, data, identificativo o codice, account
|
||||||
probabile, tipo probabile e titolo della raccolta.
|
probabile, tipo probabile e titolo della raccolta.
|
||||||
|
|
||||||
- **Data**, nell'ordine: nome del file (o `_febe.jsonl` di una libreria di Febe, data esatta), metadati (EXIF
|
- **Data**, nell'ordine: nome del file (o `_febe.jsonl` di una libreria di Febe, data esatta), metadati (EXIF
|
||||||
@@ -163,7 +163,7 @@ virgolette quando serve, apostrofo davanti a un testo che Excel prenderebbe per
|
|||||||
specifiche): di un WMV si leggono le proprietà del file (data, durata senza il preroll; niente durata se è una
|
specifiche): di un WMV si leggono le proprietà del file (data, durata senza il preroll; niente durata se è una
|
||||||
trasmissione), dei flussi (codec, dimensioni, audio, anche dentro l'estensione dell'intestazione), il titolo e
|
trasmissione), dei flussi (codec, dimensioni, audio, anche dentro l'estensione dell'intestazione), il titolo e
|
||||||
`WM/EncodingTime` quando manca la data; di un FLV `onMetaData` (durata, dimensioni, `creationdate`), le dimensioni
|
`WM/EncodingTime` quando manca la data; di un FLV `onMetaData` (durata, dimensioni, `creationdate`), le dimensioni
|
||||||
dall'SPS dell'H.264 o dall'intestazione dell'H.263 di Sorenson, e senza metadati la durata dall'ultimo tag; di un MPEG
|
dall'SPS dell'H.264 o dall'intestazione dell'H.263 di Sorenson, e senza durata nei metadati quella fino alla fine dell'ultimo fotogramma (l'ultimo tag video più l'intervallo dal precedente; l'audio solo se non c'è video); di un MPEG
|
||||||
(MPEG-1 e MPEG-2, anche VOB) codec e dimensioni dall'intestazione di sequenza o dall'SPS dell'H.264 e la durata dal
|
(MPEG-1 e MPEG-2, anche VOB) codec e dimensioni dall'intestazione di sequenza o dall'SPS dell'H.264 e la durata dal
|
||||||
primo all'ultimo tempo di presentazione, leggendo solo i primi 2 MB e l'ultimo MB. Un MPEG non ha data. La
|
primo all'ultimo tempo di presentazione, leggendo solo i primi 2 MB e l'ultimo MB. Un MPEG non ha data. La
|
||||||
miniatura viene solo dagli FLV H.264: WMV (VC-1) e MPEG-2 non si decodificano, e i campioni di un MPEG, spezzati nei
|
miniatura viene solo dagli FLV H.264: WMV (VC-1) e MPEG-2 non si decodificano, e i campioni di un MPEG, spezzati nei
|
||||||
|
|||||||
@@ -125,7 +125,13 @@ public sealed class LegacyContainerTests
|
|||||||
{
|
{
|
||||||
var es = ElementaryStream.Load("BA1_Sony_D");
|
var es = ElementaryStream.Load("BA1_Sony_D");
|
||||||
var file = LegacyTestVideos.Flv(es, metadata: false, audio: true);
|
var file = LegacyTestVideos.Flv(es, metadata: false, audio: true);
|
||||||
var expected = Math.Round((es.Count - 1) * 1000.0 / 30) / 1000;
|
|
||||||
|
// The last video tag plus one frame (the interval from the tag before it), as the MPEG reader counts the last
|
||||||
|
// frame and as the metadata of the same stream say: es.Count frames at 30 per second, to the millisecond of the
|
||||||
|
// tag times.
|
||||||
|
static double Dts(int i) => Math.Round(i * 1000.0 / 30);
|
||||||
|
var expected = ((2 * Dts(es.Count - 1)) - Dts(es.Count - 2)) / 1000;
|
||||||
|
Assert.AreEqual(expected, es.Count / 30.0, 0.002, "the metadata of the same stream");
|
||||||
foreach (var samples in new[] { false, true })
|
foreach (var samples in new[] { false, true })
|
||||||
{
|
{
|
||||||
var container = Read(file, samples);
|
var container = Read(file, samples);
|
||||||
@@ -162,7 +168,7 @@ public sealed class LegacyContainerTests
|
|||||||
var container = Read(LegacyTestVideos.SorensonFlv(code, width, height));
|
var container = Read(LegacyTestVideos.SorensonFlv(code, width, height));
|
||||||
Assert.AreEqual(VideoCodec.H263, container.Video!.Codec);
|
Assert.AreEqual(VideoCodec.H263, container.Video!.Codec);
|
||||||
Assert.AreEqual((width, height), (container.Video.Width, container.Video.Height));
|
Assert.AreEqual((width, height), (container.Video.Width, container.Video.Height));
|
||||||
Assert.AreEqual(0.36, container.Duration!.Value.TotalSeconds, 1e-6, "dal primo all'ultimo tag");
|
Assert.AreEqual(0.4, container.Duration!.Value.TotalSeconds, 1e-6, "dal primo tag alla fine dell'ultimo fotogramma: dieci da 40 ms");
|
||||||
Assert.IsEmpty(container.Video.Samples, "solo H.264 si decodifica");
|
Assert.IsEmpty(container.Video.Samples, "solo H.264 si decodifica");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,6 +192,45 @@ public sealed class LegacyContainerTests
|
|||||||
Assert.AreEqual(MediaKind.Video, MediaSniffer.Detect(hevc)?.Kind);
|
Assert.AreEqual(MediaKind.Video, MediaSniffer.Detect(hevc)?.Kind);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void AnFlvIsAudioOnlyOnlyWithProofInItsHead()
|
||||||
|
{
|
||||||
|
using var temp = new TempFolder("flv-solo-audio");
|
||||||
|
|
||||||
|
// A header that says audio without video, an onMetaData larger than the 512 bytes of MediaSniffer.HeadLength and
|
||||||
|
// video tags after it: the head ends inside the metadata, which proves nothing, so it stays a video.
|
||||||
|
var video = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 4000, seconds: 3, videoFromMs: 500);
|
||||||
|
Assert.IsGreaterThan(MediaSniffer.HeadLength, video.Length);
|
||||||
|
Assert.IsFalse(FlvReader.IsAudioOnly(video.AsSpan(0, MediaSniffer.HeadLength)));
|
||||||
|
Assert.AreEqual(MediaKind.Video, MediaSniffer.DetectFile(TestVideos.Write(temp, "video.flv", video))?.Kind);
|
||||||
|
Assert.AreEqual(MediaKind.Video, MediaSniffer.Detect(Head(video))?.Kind);
|
||||||
|
Assert.IsNotNull(Read(video).Video, "il video c'è");
|
||||||
|
|
||||||
|
// The same with audio only: a whole file, or a head with five seconds of audio and no video tag, proves it; the
|
||||||
|
// first 512 bytes, or a head that holds only a little audio after the metadata, do not.
|
||||||
|
var audio = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 4000, seconds: 8);
|
||||||
|
Assert.IsTrue(FlvReader.IsAudioOnly(audio));
|
||||||
|
Assert.IsNull(MediaSniffer.Detect(Head(audio)));
|
||||||
|
Assert.IsTrue(FlvReader.IsAudioOnly(audio.AsSpan(0, audio.Length - 100)), "più di cinque secondi di solo audio");
|
||||||
|
Assert.AreEqual(MediaKind.Video, MediaSniffer.DetectFile(TestVideos.Write(temp, "audio.flv", audio))?.Kind);
|
||||||
|
var audioStart = 13 + 11 + ((audio[14] << 16) | (audio[15] << 8) | audio[16]) + 4; // after onMetaData
|
||||||
|
Assert.IsFalse(FlvReader.IsAudioOnly(audio.AsSpan(0, audioStart + (20 * 23) + 7)), "venti tag d'audio, mezzo secondo");
|
||||||
|
Assert.IsFalse(FlvReader.IsAudioOnly(audio.AsSpan(0, 13 + 11 + 3000)), "la testa finisce dentro i metadati");
|
||||||
|
|
||||||
|
// Video after five seconds of audio alone: a head that holds it sees the video tag.
|
||||||
|
var late = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 100, seconds: 8, videoFromMs: 6000);
|
||||||
|
Assert.IsFalse(FlvReader.IsAudioOnly(late));
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void WithoutADurationAnAudioFlvLastsUntilItsLastFrameEnds()
|
||||||
|
{
|
||||||
|
// onMetaData without a duration and no video: the last audio tag plus the interval from the one before it.
|
||||||
|
var audio = LegacyTestVideos.AudioFlaggedFlv(metadataBytes: 0, seconds: 2);
|
||||||
|
var last = (2000 - 1) / 26 * 26;
|
||||||
|
Assert.AreEqual((last + 26) / 1000.0, Read(audio, samples: false).Duration!.Value.TotalSeconds, 1e-6);
|
||||||
|
}
|
||||||
|
|
||||||
// ----- MPEG program stream -----
|
// ----- MPEG program stream -----
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
|
|||||||
@@ -289,6 +289,32 @@ internal static class LegacyTestVideos
|
|||||||
return output.ToArray();
|
return output.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An FLV whose header says audio and no video, opened by an onMetaData tag of about <paramref name="metadataBytes"/>
|
||||||
|
/// bytes (a keyframe index), then MP3 tags every 26 ms for <paramref name="seconds"/>, and from
|
||||||
|
/// <paramref name="videoFromMs"/> on (when given) H.263 video tags among them every 40 ms.
|
||||||
|
/// </summary>
|
||||||
|
public static byte[] AudioFlaggedFlv(int metadataBytes, double seconds, int? videoFromMs = null)
|
||||||
|
{
|
||||||
|
using var output = new MemoryStream();
|
||||||
|
FlvHeader(output, audio: true, video: false);
|
||||||
|
var times = Enumerable.Range(0, Math.Max(1, metadataBytes / 9)).Select(i => i * 0.04);
|
||||||
|
FlvTag(output, 18, 0, [.. AmfString("onMetaData"), 8, .. U32(1), .. AmfProperty("times", AmfArray(times)), 0, 0, 9]);
|
||||||
|
var nextVideo = videoFromMs ?? int.MaxValue;
|
||||||
|
for (var time = 0; time < seconds * 1000; time += 26)
|
||||||
|
{
|
||||||
|
while (nextVideo <= time)
|
||||||
|
{
|
||||||
|
FlvTag(output, 9, nextVideo, [0x22, 0, 0, 0x80, 0, 0x0A, 0x00, 0x00, 0x00, 0x00]);
|
||||||
|
nextVideo += 40;
|
||||||
|
}
|
||||||
|
|
||||||
|
FlvTag(output, 8, time, [0x2F, 0xFF, 0xFB, 0x90, 0x64, 0, 0, 0]); // MP3, 44 kHz, stereo
|
||||||
|
}
|
||||||
|
|
||||||
|
return output.ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
private static void FlvHeader(MemoryStream output, bool audio, bool video)
|
private static void FlvHeader(MemoryStream output, bool audio, bool video)
|
||||||
{
|
{
|
||||||
output.Write("FLV"u8);
|
output.Write("FLV"u8);
|
||||||
|
|||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: BA1_Sony_D
|
|
||||||
Stream Source: Sony
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: I
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050 (2003/4/02)
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 1
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Slices per Picture: 1
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: BA3_SVA_C
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 33
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IPB
|
|
||||||
Intra Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: No
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: Spatial
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: BASQP1_Sony_C
|
|
||||||
Stream Source: Sony
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 4
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: I
|
|
||||||
I Period: 1
|
|
||||||
Slices per Picture: 20
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
|
|
||||||
POC Type: 0
|
|
||||||
Number Reference Frames: 1
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: No
|
|
||||||
Adaptive Ref Pic Marking Mode: Off
|
|
||||||
Constrained Intra Prediction: Off (Unconstrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: ON
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Slices per Picture: 20
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
|
|
||||||
|
|
||||||
Test variable slice QP delta.
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CABA1_SVA_B
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: I
|
|
||||||
Intra Period: 1
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: Yes
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CABA2_SVA_B
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IP
|
|
||||||
Intra Period: 10
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: Yes
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CABA3_SVA_B
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 33
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPB
|
|
||||||
Intra Period: 10
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: Yes
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: Temporal
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CAFI1_SVA_C
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Stefan
|
|
||||||
Video Resolution: 720x480
|
|
||||||
Video Frames: 33
|
|
||||||
Frame/Field Coding: Field
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPB
|
|
||||||
Intra Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: Yes
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: Spatial
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CAMACI3_Sony_C
|
|
||||||
Stream Source: Sony
|
|
||||||
Video Sequence: cheer_tiny
|
|
||||||
Video Resolution: 192x128
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame MB AFF
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPB
|
|
||||||
I Period: 15
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1 (2003/6/02)
|
|
||||||
|
|
||||||
POC Type: 0
|
|
||||||
Number Reference Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: No
|
|
||||||
Adaptive Ref Pic Marking Mode: Off
|
|
||||||
Constrained Intra Prediction: On (Constrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CAMASL3_Sony_B
|
|
||||||
Stream Source: Sony
|
|
||||||
Video Sequence: cheer_tiny
|
|
||||||
Video Resolution: 192x128
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame MB AFF
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPB
|
|
||||||
I Period: 15
|
|
||||||
Slices per Picture: 4
|
|
||||||
Conformance Point: JVT-G050r1 (2003/6/02)
|
|
||||||
|
|
||||||
POC Type: 0
|
|
||||||
Number Reference Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: No
|
|
||||||
Adaptive Ref Pic Marking Mode: Off
|
|
||||||
Constrained Intra Prediction: Off (Unconstrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CANL1_SVA_B
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: I
|
|
||||||
Intra Period: 1
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 2
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: Off
|
|
||||||
delta_QP always zero: Yes
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
Files in the folder
|
|
||||||
CAPAMA3_Sand_F_Readme.txt This file
|
|
||||||
CAPAMA3_Sand_F.264 Bitstream
|
|
||||||
CAPAMA3_Sand_F.yuv Reconstructed YUV file
|
|
||||||
CAPAMA3_Sand_F.trc Decoder trace file
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
Encoder configuration:
|
|
||||||
Stream Name: CAPAMA3_Sand_F
|
|
||||||
Stream Source: Sand Video
|
|
||||||
Video Sequence: Mobile
|
|
||||||
Video Resolution: CIF
|
|
||||||
Video Frames: 30
|
|
||||||
Frame/Field Coding: Picture-level adaptive and MB-level Adaptive
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
GOP Structure: IDR B B P...
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 4
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: No
|
|
||||||
Constrained Intra Pred: No
|
|
||||||
Weighted Pred (P): No
|
|
||||||
Weighted Bipred (B): No
|
|
||||||
Direct Prediction: Temporal
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Bitstream source Mcubeworks Inc.
|
|
||||||
Bitstream CI_MW_D
|
|
||||||
Conformance Point JVT-G050r1
|
|
||||||
Profile Baseline
|
|
||||||
Video Sequence Foreman
|
|
||||||
Video Resolution/FPS QCIF / 15fps
|
|
||||||
Video Coded num. of frames 100
|
|
||||||
Entropy coding CAVLC
|
|
||||||
Slice type IPPIPP...
|
|
||||||
Picture structure Frame only
|
|
||||||
Slice structure 1 slice / picture
|
|
||||||
Intra period 30 ( = 2 sec.)
|
|
||||||
POC Type 0
|
|
||||||
Loop filter ON
|
|
||||||
Ref Pic List Reorder NO
|
|
||||||
Adapt Ref Pic Mark OFF
|
|
||||||
Weighted Pred (P) OFF
|
|
||||||
Weighted Bipred (B) OFF
|
|
||||||
Direct Prediction NO
|
|
||||||
Direct 8x8 Inference OFF
|
|
||||||
SEI NO
|
|
||||||
VUI NO
|
|
||||||
Number Slice Groups 1
|
|
||||||
Long-term Ref Frames NO
|
|
||||||
MMCO NO
|
|
||||||
Arbitrary Slice Order NO
|
|
||||||
Redundant Slices No
|
|
||||||
|
|
||||||
############ Changing Parameters ################
|
|
||||||
Num. of ref-frames 4
|
|
||||||
IDR all-I
|
|
||||||
Constrained intra ON
|
|
||||||
Non-reference frame use NO
|
|
||||||
Access unit delimiter OFF
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: CVFI1_SVA_C
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Stefan
|
|
||||||
Video Resolution: 720x480
|
|
||||||
Video Frames: 7
|
|
||||||
Frame/Field Coding: Field
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IP
|
|
||||||
Intra Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: No
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
Stream Name: CVMAQP3_Sony_D
|
|
||||||
Stream Source: Sony
|
|
||||||
Video Sequence: cheer_tiny
|
|
||||||
Video Resolution: 192x128
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame MB AFF
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IPB
|
|
||||||
I Period: 15
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1 (2003/6/02)
|
|
||||||
|
|
||||||
POC Type: 0
|
|
||||||
Number Reference Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: No
|
|
||||||
Adaptive Ref Pic Marking Mode: Off
|
|
||||||
Constrained Intra Prediction: Off (Unconstrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: on
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: Yes
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
|
|
||||||
The QP is changed for each MB based on MB encoding order.
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: FI1_Sony_E
|
|
||||||
Stream Source: Sony
|
|
||||||
Video Sequence: Cheer
|
|
||||||
Video Resolution: 192x128
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Field
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: I
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1 (2003/6/2)
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 1
|
|
||||||
IDR: No
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Slices per Picture: 1
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
FRANCE TELECOM R&D
|
|
||||||
-------------------
|
|
||||||
|
|
||||||
|
|
||||||
Stream Name : FM1_FT_E
|
|
||||||
Stream Source : France Telecom R&D
|
|
||||||
Video Sequence : Foreman
|
|
||||||
Video Resolution : QCIF
|
|
||||||
Video Frames : 298
|
|
||||||
FrameRate : 25 fps
|
|
||||||
Frame/Field Coding : Frame
|
|
||||||
Entropy Coding : CAVLC
|
|
||||||
POC Type : 2
|
|
||||||
Number Ref Frames : 1
|
|
||||||
IDR : Every I
|
|
||||||
Ref Pic List Reorder : No
|
|
||||||
Adapt Ref Pic Mark : No
|
|
||||||
Constrained Intra Pred : Yes
|
|
||||||
Inter Type : 16x16 8x16 16x8 8x8
|
|
||||||
Deblocking Filter : Yes
|
|
||||||
FMO : Used
|
|
||||||
SEI : Used (Gradual Recovery Procedure)
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: FM2_SVA_C
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IP
|
|
||||||
Intra Period: 0
|
|
||||||
Slices per Picture: 3
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 1
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: No
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 3
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
Bitsteam Name :FREXT01_JVC_D
|
|
||||||
Profile :High Profile
|
|
||||||
Level :3.1
|
|
||||||
Chroma Format :4:2:0
|
|
||||||
Bit Depth :8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
Num of Frames :16
|
|
||||||
|
|
||||||
Entropy Coding :CABAC
|
|
||||||
Coding Type :MBAFF
|
|
||||||
IDR Intervals :1st I picture only
|
|
||||||
POC type :0
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :OFF
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Num of Ref Frms :2
|
|
||||||
Ref Pic List Reordering :OFF
|
|
||||||
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
|
|
||||||
Loop Filter :ON
|
|
||||||
Constrained Intra Flag :OFF
|
|
||||||
|
|
||||||
Transform Mode :Adaptive 8x8/4x4
|
|
||||||
Sequence Qmatrix :OFF
|
|
||||||
Picture Qmatrix :OFF
|
|
||||||
|
|
||||||
Weighted Pred(P) :OFF
|
|
||||||
Weighted Pred(B) :OFF
|
|
||||||
Chroma Qp Offset :OFF
|
|
||||||
MMCO :OFF
|
|
||||||
VUI :OFF
|
|
||||||
SEI :OFF
|
|
||||||
HRD Parameters :OFF
|
|
||||||
|
|
||||||
Conformance Point :AVC 3rd Edition(w6540)
|
|
||||||
Test Point :mb_type=0 and CBP=0 at MBAFF
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
Bitsteam Name :FREXT02_JVC_C
|
|
||||||
Profile :High Profile
|
|
||||||
Level :3.1
|
|
||||||
Chroma Format :4:2:0
|
|
||||||
Bit Depth :8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
Num of Frames :16
|
|
||||||
|
|
||||||
Entropy Coding :CAVLC
|
|
||||||
Coding Type :MBAFF
|
|
||||||
IDR Intervals :1st I picture only
|
|
||||||
POC type :0
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :OFF
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Num of Ref Frms :2
|
|
||||||
Ref Pic List Reordering :OFF
|
|
||||||
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
|
|
||||||
Loop Filter :ON
|
|
||||||
Constrained Intra Flag :OFF
|
|
||||||
|
|
||||||
Transform Mode :Adaptive 8x8/4x4
|
|
||||||
Sequence Qmatrix :OFF
|
|
||||||
Picture Qmatrix :OFF
|
|
||||||
|
|
||||||
Weighted Pred(P) :OFF
|
|
||||||
Weighted Pred(B) :OFF
|
|
||||||
Chroma Qp Offset :OFF
|
|
||||||
MMCO :OFF
|
|
||||||
VUI :OFF
|
|
||||||
SEI :OFF
|
|
||||||
HRD Parameters :OFF
|
|
||||||
|
|
||||||
Conformance Point :AVC 3rd Edition(w6540)
|
|
||||||
Test Point :mb_type=0 and CBP=0 at MBAFF
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: FREXT2_TANDBERG_A
|
|
||||||
Stream Source: TANDBERG
|
|
||||||
Video Sequence: F1
|
|
||||||
Video Resolution: CIF - 4:2:2/8
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IPPPP
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-L012d2
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 1
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: FREXT3_TANDBERG_A
|
|
||||||
Stream Source: TANDBERG
|
|
||||||
Video Sequence: F1
|
|
||||||
Video Resolution: CIF - 4:2:2/8
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IBPBP
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-L012d2
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 1
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
Bitsteam Name :FRExt1_Panasonic
|
|
||||||
Profile :Hi
|
|
||||||
Level :2.1
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :8
|
|
||||||
Entropy Coding :CAVLC
|
|
||||||
IDR Intervals :All I pictures
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :Frame only
|
|
||||||
Num of Ref Frms :2
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:0
|
|
||||||
Stored B Pic :No
|
|
||||||
|
|
||||||
Transform Mode :8x8 only
|
|
||||||
Sequence Qmatrix :On
|
|
||||||
Picture Qmatrix :On
|
|
||||||
|
|
||||||
MMCO :Off
|
|
||||||
RPSL :Off
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L047d5
|
|
||||||
Comments :I - B - B - P
|
|
||||||
|
|
||||||
:Display Order ->
|
|
||||||
: 1st IDR - SPS all
|
|
||||||
: 2nd B - PPS fall-back rule
|
|
||||||
: 3rd B - PPS all - default
|
|
||||||
: 4th P - PPS all
|
|
||||||
: 5th B - PPS all - max_min
|
|
||||||
: 6th B - PPS all - delta_scale
|
|
||||||
: 7th IDR - SPS fall-back rule
|
|
||||||
: 8th P - PPS fall-back rule
|
|
||||||
@@ -1,62 +0,0 @@
|
|||||||
Bitsteam Name :FRExt2_Panasonic
|
|
||||||
Profile :Hi
|
|
||||||
Level :2.1
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Mobile
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :15
|
|
||||||
Entropy Coding :CAVLC
|
|
||||||
IDR Intervals :All I pictures
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :MBAFF/AFF
|
|
||||||
Num of Ref Frms :5
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Temporal
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
Stored B Pic :Yes
|
|
||||||
|
|
||||||
Transform Mode :Adaptive 8x8/4x4
|
|
||||||
Sequence Qmatrix :On
|
|
||||||
Picture Qmatrix :On
|
|
||||||
|
|
||||||
MMCO :On
|
|
||||||
RPSL :On
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L047d5
|
|
||||||
Comments :I - Bs - B - P
|
|
||||||
|
|
||||||
:Display Order ->
|
|
||||||
: 1st IDR - FLD SPS all
|
|
||||||
: 2nd Bs - MBAFF PPS all - delta_scale
|
|
||||||
: 3rd B - MBAFF PPS fall-back rule
|
|
||||||
: 4th P - FLD PPS all - default
|
|
||||||
: 5th Bs - FLD PPS fall-back rule
|
|
||||||
: 6th B - MBAFF PPS all - max_min
|
|
||||||
: 7th p - MBAFF PPS fall-back rule
|
|
||||||
: 8th Bs - MBAFF PPS fall-back rule
|
|
||||||
: 9th B - FLD PPS fall-back rule
|
|
||||||
:10th IDR - MBAFF SPS fall-back rule
|
|
||||||
:11th Bs - MBAFF PPS fall-back rule
|
|
||||||
:12th B - FLD PPS fall-back rule
|
|
||||||
:13th P - FLD
|
|
||||||
:14th P - MBAFF PPS all - delta_scale
|
|
||||||
:15th P - FLD PPS all - max_min
|
|
||||||
@@ -1,58 +0,0 @@
|
|||||||
Bitsteam Name :FRExt3_Panasonic
|
|
||||||
Profile :Hi
|
|
||||||
Level :2.1
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :11
|
|
||||||
Entropy Coding :CABAC
|
|
||||||
IDR Intervals :1st I picture only
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :FRM only
|
|
||||||
Num of Ref Frms :4
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Temporal
|
|
||||||
Direct8x8 Inference Flag:0
|
|
||||||
Stored B Pic :No
|
|
||||||
|
|
||||||
Transform Mode :Adaptive 8x8/4x4
|
|
||||||
Sequence Qmatrix :On
|
|
||||||
Picture Qmatrix :On
|
|
||||||
|
|
||||||
MMCO :Off
|
|
||||||
RPSL :Off
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L047d10
|
|
||||||
Comments :I - B - B - P
|
|
||||||
|
|
||||||
:Display Order ->
|
|
||||||
: 1st IDR - SPS all
|
|
||||||
: 2nd B - PPS fall-back rule
|
|
||||||
: 3rd B - PPS fall-back rule
|
|
||||||
: 4th P - PPS all - max_min
|
|
||||||
: 5th B - PPS all - default
|
|
||||||
: 6th B - PPS all - delta_scale
|
|
||||||
: 7th I - PPS fall-back rule
|
|
||||||
: 8th B - PPS all - default
|
|
||||||
: 9th B - PPS all - delta_scale
|
|
||||||
:10th P -
|
|
||||||
:11th P - PPS fall-back rule
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
Bitsteam Name :FRExt4_Panasonic
|
|
||||||
Profile :Hi
|
|
||||||
Level :2.1
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Mobile
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :10
|
|
||||||
Entropy Coding :CABAC
|
|
||||||
IDR Intervals :1st I picture only
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :MBAFF/AFF
|
|
||||||
Num of Ref Frms :3
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
Stored B Pic :No
|
|
||||||
|
|
||||||
Transform Mode :8x8 only
|
|
||||||
Sequence Qmatrix :On
|
|
||||||
Picture Qmatrix :On
|
|
||||||
|
|
||||||
MMCO :Off
|
|
||||||
RPSL :Off
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L047d10
|
|
||||||
Comments :I - B - B - P
|
|
||||||
|
|
||||||
:Display Order ->
|
|
||||||
: 1st IDR - MBAFF SPS all
|
|
||||||
: 2nd B - FLD PPS fall-back rule
|
|
||||||
: 3rd B - MBAFF PPS all - default
|
|
||||||
: 4th P - FLD PPS all - max_min
|
|
||||||
: 5th B - MBAFF PPS fall-back rule
|
|
||||||
: 6th B - FLD PPS all - delta_scale
|
|
||||||
: 7th I - FLD PPS fall-back rule
|
|
||||||
: 8th B - FLD PPS all - default
|
|
||||||
: 9th B - MBAFF PPS all - delta_scale
|
|
||||||
:10th P - MBAFF
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
Bitsteam Name :HCAFF1_HHI
|
|
||||||
Profile :Hi
|
|
||||||
Level :3.0
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :10
|
|
||||||
Entropy Coding :CABAC (adaptive initilaization)
|
|
||||||
IDR Intervals :Only first pic
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :picture AFF only
|
|
||||||
Num of Ref Frms :5
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
Stored B Pic :No
|
|
||||||
|
|
||||||
Transform Mode :rd-based including 8x8
|
|
||||||
Sequence Qmatrix :default flag
|
|
||||||
Picture Qmatrix :Off
|
|
||||||
|
|
||||||
MMCO :Off
|
|
||||||
RPSL :Off
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L050d3
|
|
||||||
Comments :I - B - B - P
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
Bitsteam Name :HCAFR1_HHI
|
|
||||||
Profile :Hi
|
|
||||||
Level :3.0
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :10
|
|
||||||
Entropy Coding :CABAC (adaptive initilaization)
|
|
||||||
IDR Intervals :Only first pic
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :Frame only
|
|
||||||
Num of Ref Frms :5
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
Stored B Pic :No
|
|
||||||
|
|
||||||
Transform Mode :rd-based including 8x8
|
|
||||||
Sequence Qmatrix :default flag
|
|
||||||
Picture Qmatrix :Off
|
|
||||||
|
|
||||||
MMCO :Off
|
|
||||||
RPSL :Off
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L050d3
|
|
||||||
Comments :I - B - B - P
|
|
||||||
@@ -1,45 +0,0 @@
|
|||||||
Bitsteam Name :HCAMFF1_HHI
|
|
||||||
Profile :Hi
|
|
||||||
Level :3.0
|
|
||||||
Category :4:2:0 8
|
|
||||||
Sequence :Foreman
|
|
||||||
Width :352
|
|
||||||
Height :288
|
|
||||||
|
|
||||||
Num of Frms :10
|
|
||||||
Entropy Coding :CABAC (adaptive initilaization)
|
|
||||||
IDR Intervals :Only first pic
|
|
||||||
Slice per Pic :1
|
|
||||||
Mixed Slice Type :No
|
|
||||||
POC type :0
|
|
||||||
|
|
||||||
Coding Type :macroblock AFF only
|
|
||||||
Num of Ref Frms :5
|
|
||||||
|
|
||||||
Loop Filter :On
|
|
||||||
Constrained Intra Flag :Off
|
|
||||||
|
|
||||||
No of B Frms :2
|
|
||||||
Direct Type :Spatial
|
|
||||||
Direct8x8 Inference Flag:1
|
|
||||||
Stored B Pic :No
|
|
||||||
|
|
||||||
Transform Mode :rd-based including 8x8
|
|
||||||
Sequence Qmatrix :default flag
|
|
||||||
Picture Qmatrix :Off
|
|
||||||
|
|
||||||
MMCO :Off
|
|
||||||
RPSL :Off
|
|
||||||
|
|
||||||
Weighted Pred :Off
|
|
||||||
PCM Mode :No
|
|
||||||
Chroma Offset :No
|
|
||||||
|
|
||||||
SP Pic Periodicity :No
|
|
||||||
VUI :No
|
|
||||||
SEI :No
|
|
||||||
HRD Parameters :No
|
|
||||||
Partition Mode :0
|
|
||||||
|
|
||||||
Conformance Point :L050d3
|
|
||||||
Comments :I - B - B - P
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
Files in the folder
|
|
||||||
HPCAMOLQ_BRCM_B_Readme.txt This file
|
|
||||||
HPCAMOLQ_BRCM_B.264 Bitstream
|
|
||||||
HPCAMOLQ_BRCM_B.YUV Reconstructed YUV file
|
|
||||||
HPCAMOLQ_BRCM_B.trc Decoder trace file
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
Encoder configuration:
|
|
||||||
Stream Name: HPCAMOLQ_BRCM_B
|
|
||||||
Stream Source: Broadcom
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: CIF
|
|
||||||
Video Frames: 100
|
|
||||||
Profile: High
|
|
||||||
Frame/Field Coding: Frame Coded
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
GOP Structure: I B B P B B P...
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-L047d11
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 1
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: No
|
|
||||||
Constrained Intra Pred: No
|
|
||||||
Weighted Pred (P): No
|
|
||||||
Weighted Bipred (B): No
|
|
||||||
Direct Prediction: Temporal
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
PCM Coded MB: No
|
|
||||||
Quantization Matrices: Loaded
|
|
||||||
Chroma Mode: Monochrome
|
|
||||||
@@ -1,39 +0,0 @@
|
|||||||
Files in the folder
|
|
||||||
HPCVMOLQ_BRCM_B_Readme.txt This file
|
|
||||||
HPCVMOLQ_BRCM_B.264 Bitstream
|
|
||||||
HPCVMOLQ_BRCM_B.YUV Reconstructed YUV file
|
|
||||||
HPCVMOLQ_BRCM_B.trc Decoder trace file
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
Encoder configuration:
|
|
||||||
Stream Name: HPCVMOLQ_BRCM_B
|
|
||||||
Stream Source: Broadcom
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: CIF
|
|
||||||
Video Frames: 100
|
|
||||||
Profile: High
|
|
||||||
Frame/Field Coding: Frame Coded
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
GOP Structure: I B B P B B P...
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-L047d11
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 1
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: No
|
|
||||||
Constrained Intra Pred: No
|
|
||||||
Weighted Pred (P): No
|
|
||||||
Weighted Bipred (B): No
|
|
||||||
Direct Prediction: Temporal
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
PCM Coded MB: No
|
|
||||||
Quantization Matrices: Loaded
|
|
||||||
Chroma Mode: Monochrome
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: Hi422FR10_SONY_B
|
|
||||||
Stream Source: SONY
|
|
||||||
Video Sequence: mobile
|
|
||||||
Video Resolution: CIF - 4:2:2
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IIIII
|
|
||||||
I Period: 1
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point:
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 0
|
|
||||||
IDR: 1
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
Bit Depth Luma: 8
|
|
||||||
Bit Depth Chroma: 8
|
|
||||||
Transform 8x8 Mode On
|
|
||||||
Weighting Matrix On
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: Hi422FR11_SONY_B
|
|
||||||
Stream Source: SONY
|
|
||||||
Video Sequence: mobile
|
|
||||||
Video Resolution: CIF - 4:2:2
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPPPP
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point:
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 0
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
Bit Depth Luma: 8
|
|
||||||
Bit Depth Chroma: 8
|
|
||||||
Transform 8x8 Mode On
|
|
||||||
Weighting Matrix On
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: Hi422FR12_SONY_B
|
|
||||||
Stream Source: SONY
|
|
||||||
Video Sequence: mobile
|
|
||||||
Video Resolution: CIF - 4:2:2
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPBPB
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point:
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 0
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
Bit Depth Luma: 8
|
|
||||||
Bit Depth Chroma: 8
|
|
||||||
Transform 8x8 Mode On
|
|
||||||
Weighting Matrix On
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: Hi422FR13_SONY_B
|
|
||||||
Stream Source: SONY
|
|
||||||
Video Sequence: tomatoes
|
|
||||||
Video Resolution: CIF - 4:2:2
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IIIII
|
|
||||||
I Period: 1
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point:
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 0
|
|
||||||
IDR: 1
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
Bit Depth Luma: 10
|
|
||||||
Bit Depth Chroma: 10
|
|
||||||
Transform 8x8 Mode On
|
|
||||||
Weighting Matrix On
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: Hi422FR14_SONY_B
|
|
||||||
Stream Source: SONY
|
|
||||||
Video Sequence: tomatoes
|
|
||||||
Video Resolution: CIF - 4:2:2
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPPPP
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point:
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 0
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
Bit Depth Luma: 10
|
|
||||||
Bit Depth Chroma: 10
|
|
||||||
Transform 8x8 Mode On
|
|
||||||
Weighting Matrix On
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
Stream Name: Hi422FR15_SONY_B
|
|
||||||
Stream Source: SONY
|
|
||||||
Video Sequence: tomatoes
|
|
||||||
Video Resolution: CIF - 4:2:2
|
|
||||||
Video Frames: 5
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPBPB
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point:
|
|
||||||
POC Type: 0
|
|
||||||
Number Ref Frames: 0
|
|
||||||
IDR: First only
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: Off
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
Gaps in frame_num: No
|
|
||||||
Bit Depth Luma: 10
|
|
||||||
Bit Depth Chroma: 10
|
|
||||||
Transform 8x8 Mode On
|
|
||||||
Weighting Matrix On
|
|
||||||
@@ -9,9 +9,11 @@ scrittore MP4.
|
|||||||
Sono flussi della serie di conformità ufficiale **ITU-T H.264.1** («Conformance specification for ITU-T H.264
|
Sono flussi della serie di conformità ufficiale **ITU-T H.264.1** («Conformance specification for ITU-T H.264
|
||||||
advanced video coding»), pubblicata dall'ITU-T con i flussi di bit, i file `readme` dei loro autori e la ricostruzione
|
advanced video coding»), pubblicata dall'ITU-T con i flussi di bit, i file `readme` dei loro autori e la ricostruzione
|
||||||
di riferimento di ogni flusso, in https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/ (cartelle `AVCv1`,
|
di riferimento di ogni flusso, in https://www.itu.int/wftp3/av-arch/jvt-site/draft_conformance/ (cartelle `AVCv1`,
|
||||||
`FRExt`, `Professional_profiles`, `MVC`, `SVC`). Ogni cartella qui contiene il flusso così com'è (Annex B: `.264`,
|
`FRExt`, `Professional_profiles`, `MVC`, `SVC`). Nel repository stanno **solo i flussi e gli MD5** (decisione di
|
||||||
`.jsv`, `.avc`, `.h264` o `.jvt`, come l'hanno chiamato gli autori) e il suo `readme` originale, quando lo zip ne ha
|
Alberto del 18 novembre 2026): ogni cartella contiene il flusso così com'è (Annex B: `.264`, `.jsv`, `.avc`, `.h264` o
|
||||||
uno; per SVC i `readme` sono le schede `<flusso>-L<n>.txt`, una per strato. La cartella prende il nome dello zip.
|
`.jvt`, come l'hanno chiamato gli autori) e i suoi `riferimento*.md5`; mai i `readme` degli autori, le schede degli
|
||||||
|
strati SVC o le uscite decodificate. Ciò che le prove ne usano (profilo, formato, numero di fotogrammi, che cosa prova
|
||||||
|
ogni flusso) è nelle tabelle qui sotto. La cartella prende il nome dello zip.
|
||||||
|
|
||||||
I flussi aggiunti il 18 novembre 2026 sono stati scaricati quel giorno; di ogni zip si è controllato il CRC-32 con
|
I flussi aggiunti il 18 novembre 2026 sono stati scaricati quel giorno; di ogni zip si è controllato il CRC-32 con
|
||||||
l'elenco dell'indice `00readme_H.264.1(2010).html` della stessa cartella, o, per gli zip letti a pezzi, il CRC-32 di
|
l'elenco dell'indice `00readme_H.264.1(2010).html` della stessa cartella, o, per gli zip letti a pezzi, il CRC-32 di
|
||||||
@@ -75,7 +77,7 @@ rimasto senza il suo compagno esce da solo, con le righe dell'altro campo grigie
|
|||||||
| `CAMASL3_Sony_B` | Main, 192×128, 17 | MBAFF, CABAC, 4 slice per immagine, diretta spaziale |
|
| `CAMASL3_Sony_B` | Main, 192×128, 17 | MBAFF, CABAC, 4 slice per immagine, diretta spaziale |
|
||||||
| `HCAMFF1_HHI_B` | High, CIF, 10 | MBAFF, CABAC adattivo, trasformata 8×8, slice B |
|
| `HCAMFF1_HHI_B` | High, CIF, 10 | MBAFF, CABAC adattivo, trasformata 8×8, slice B |
|
||||||
| `FREXT01_JVC_D` | High, CIF, 16 | MBAFF, CABAC, 8×8 adattiva, `mb_type` 0 con CBP 0 |
|
| `FREXT01_JVC_D` | High, CIF, 16 | MBAFF, CABAC, 8×8 adattiva, `mb_type` 0 con CBP 0 |
|
||||||
| `CAPAMA3_Sand_F` | Main, CIF, 50 (il `readme` dice 30) | PAFF e MBAFF insieme, CABAC, diretta temporale |
|
| `CAPAMA3_Sand_F` | Main, CIF, 50 (il `readme` dell'ITU-T dice 30) | PAFF e MBAFF insieme, CABAC, diretta temporale |
|
||||||
| `cama1_vtc_c` | Main, 720×480, 4 | primo fotogramma a campi con il campo inferiore per primo, poi MBAFF, CABAC |
|
| `cama1_vtc_c` | Main, 720×480, 4 | primo fotogramma a campi con il campo inferiore per primo, poi MBAFF, CABAC |
|
||||||
| `FRExt2_Panasonic_C` | High, CIF, 15 | campi e MBAFF alternati, CAVLC, matrici con le regole di ripiego, MMCO, riordino, B di riferimento |
|
| `FRExt2_Panasonic_C` | High, CIF, 15 | campi e MBAFF alternati, CAVLC, matrici con le regole di ripiego, MMCO, riordino, B di riferimento |
|
||||||
| `FRExt4_Panasonic_B` | High, CIF, 10 | campi e MBAFF alternati, CABAC, solo 8×8, matrici con le regole di ripiego |
|
| `FRExt4_Panasonic_B` | High, CIF, 10 | campi e MBAFF alternati, CABAC, solo 8×8, matrici con le regole di ripiego |
|
||||||
@@ -88,9 +90,9 @@ Strumenti di Baseline ed Extended, QCIF 4:2:0 a 8 bit:
|
|||||||
|---|---|---|
|
|---|---|---|
|
||||||
| `FM2_SVA_C` | Baseline, 17 | FMO con 3 gruppi di slice di tipo 0, ASO, POC di tipo 1 |
|
| `FM2_SVA_C` | Baseline, 17 | FMO con 3 gruppi di slice di tipo 0, ASO, POC di tipo 1 |
|
||||||
| `FM1_FT_E` | Baseline, 300 | FMO di tipo 1, 2, 3 e 4 che cambiano lungo il flusso (11 PPS), POC di tipo 2, SEI di recupero graduale |
|
| `FM1_FT_E` | Baseline, 300 | FMO di tipo 1, 2, 3 e 4 che cambiano lungo il flusso (11 PPS), POC di tipo 2, SEI di recupero graduale |
|
||||||
| `FM1_BT_B` | Baseline, 400 | FMO di tutti i tipi da 0 a 6, ASO (lo zip non ha `readme`) |
|
| `FM1_BT_B` | Baseline, 400 | FMO di tutti i tipi da 0 a 6, ASO |
|
||||||
| `sp1_bt_a` | Extended, 400 | slice SP (39 immagini) con QS diverso da QP e deblocking spento, POC di tipo 1 (lo zip non ha `readme`) |
|
| `sp1_bt_a` | Extended, 400 | slice SP (39 immagini) con QS diverso da QP e deblocking spento, POC di tipo 1 |
|
||||||
| `sp2_bt_b` | Extended, 400 | slice SP con deblocking attivo (lo zip non ha `readme`) |
|
| `sp2_bt_b` | Extended, 400 | slice SP con deblocking attivo |
|
||||||
|
|
||||||
Nessuno di questi flussi usa la predizione pesata, i salti di `frame_num` o gli I_PCM: quelle parti del decodificatore
|
Nessuno di questi flussi usa la predizione pesata, i salti di `frame_num` o gli I_PCM: quelle parti del decodificatore
|
||||||
non hanno qui un riferimento ufficiale. Le slice SP dei due flussi hanno tutte `sp_for_switch_flag` a 0.
|
non hanno qui un riferimento ufficiale. Le slice SP dei due flussi hanno tutte `sp_for_switch_flag` a 0.
|
||||||
@@ -142,8 +144,10 @@ strato base dei tre flussi qui sotto, con `riferimento-base.md5`, chiesto al dec
|
|||||||
|
|
||||||
## I flussi delle parti ancora da fare
|
## I flussi delle parti ancora da fare
|
||||||
|
|
||||||
`H264ConformanceTests.FeaturesStillToDo`: la prova è **inconclusiva** con il messaggio «da fare: …» (o «da
|
`H264ConformanceTests.FeaturesStillToDo`: la prova è **inconclusiva** con un messaggio che comincia sempre con «da
|
||||||
verificare: …» quando manca il riferimento), così la serie resta verde e il vuoto si vede. Quando uno di questi flussi
|
fare: …» (anche quando manca il riferimento, come per MVC), così la serie resta verde e il vuoto si vede. Nella CI
|
||||||
|
`.gitea/scripts/riepilogo-prove.sh` conta a parte, come «da fare», solo le inconclusive di `FeaturesStillToDo` il cui
|
||||||
|
motivo comincia con «da fare: »; ogni altra inconclusiva è una prova saltata, e la CI non ne ammette. Quando uno di questi flussi
|
||||||
coincide con il riferimento la prova **fallisce** apposta, per ricordare di spostarlo fra i flussi verificati.
|
coincide con il riferimento la prova **fallisce** apposta, per ricordare di spostarlo fra i flussi verificati.
|
||||||
|
|
||||||
**SVC**: per questi due il decodificatore dà lo strato base e dice perché non va oltre
|
**SVC**: per questi due il decodificatore dà lo strato base e dice perché non va oltre
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
Stream Name: MR6_BT_A
|
|
||||||
Stream Source: BT
|
|
||||||
Video Sequence: Foreman, Cheer and Bus
|
|
||||||
Video Resolution: 192x128
|
|
||||||
Video Frames: 60
|
|
||||||
Frame/Field Coding: Field
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IPPP
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: variable
|
|
||||||
|
|
||||||
POC Type: 1
|
|
||||||
Number Reference Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: Yes
|
|
||||||
Adaptive Ref Pic Marking Mode: Yes
|
|
||||||
Constrained Intra Prediction: Off (Unconstrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: Yes
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: 2
|
|
||||||
MMCO: Yes
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
|
|
||||||
Fixed QP.
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
Stream Name: MR8_BT_A
|
|
||||||
Stream Source: BT
|
|
||||||
Video Sequence: Foreman, Cheer and Bus
|
|
||||||
Video Resolution: 192x128
|
|
||||||
Video Frames: 58
|
|
||||||
Frame/Field Coding: Macroblock and Picture Frame/Field Adaptive
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IBBP
|
|
||||||
I Period: 0
|
|
||||||
Slices per Picture: variable
|
|
||||||
|
|
||||||
POC Type: 1
|
|
||||||
Number Reference Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: Yes
|
|
||||||
Adaptive Ref Pic Marking Mode: Yes
|
|
||||||
Constrained Intra Prediction: Off (Unconstrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: Yes
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
Loop Filter: On
|
|
||||||
SEI: No
|
|
||||||
VUI: Yes
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: 2
|
|
||||||
MMCO: Yes
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
|
|
||||||
Fixed QP.
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
Stream Name: SVA_BA1_B
|
|
||||||
Stream Source: SVA & Tsinghua
|
|
||||||
Video Sequence: Foreman
|
|
||||||
Video Resolution: QCIF
|
|
||||||
Video Frames: 17
|
|
||||||
Frame/Field Coding: Frame
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: I
|
|
||||||
Intra Period: 0
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050r1
|
|
||||||
POC Type: 2
|
|
||||||
Number Ref Frames: 5
|
|
||||||
Constrained Intra Pred: Off (Unconstrained)
|
|
||||||
Loop Filter: On
|
|
||||||
delta_QP always zero: No
|
|
||||||
IDR: First Frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: None
|
|
||||||
Direct 8x8 Inference: On
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer HHI
|
|
||||||
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
|
|
||||||
Scalability Type CGS/Temporal
|
|
||||||
Bitstream SVCBCT-1
|
|
||||||
Bitstream Number 0
|
|
||||||
Width 320
|
|
||||||
Height 240
|
|
||||||
Frame rate 15.00
|
|
||||||
Number of frames 150
|
|
||||||
chroma_format_idc -
|
|
||||||
bit_depth_luma_minus8 -
|
|
||||||
bit_depth_chroma_minus8 -
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 66
|
|
||||||
level_idc 12
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 1
|
|
||||||
constraint_set2_flag 1
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag -
|
|
||||||
transform_8x8_mode_flag 0
|
|
||||||
pic_scaling_matrix_present_flag 0
|
|
||||||
qpprime_y_zero_transform_bypass_flag 0
|
|
||||||
slice_qp_delta == 0 0
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 0
|
|
||||||
disable_deblocking_filter_idc -
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 0
|
|
||||||
I_PCM ?
|
|
||||||
direct_spatial_mv_pred_flag 1
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 7
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 1
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI -
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 0
|
|
||||||
quality_id 0
|
|
||||||
ref_layer_dq_id -1
|
|
||||||
DependencyIdMax 0
|
|
||||||
TemporalIdMax 3
|
|
||||||
DQIdMax 0
|
|
||||||
DependentDId 1
|
|
||||||
Number of EIDR slices -
|
|
||||||
extended_spatial_scalability -
|
|
||||||
SpatialResolutionChangeFlag -
|
|
||||||
chroma_phase_x_plus1_flag -
|
|
||||||
chroma_phase_y_plus1 -
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 -
|
|
||||||
seq_scaled_ref_layer_left_offset -
|
|
||||||
seq_scaled_ref_layer_top_offset -
|
|
||||||
seq_scaled_ref_layer_right_offset -
|
|
||||||
seq_scaled_ref_layer_bottom_offset -
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag
|
|
||||||
ref_layer_chroma_phase_y_plus1
|
|
||||||
constrained_intra_resampling_flag -
|
|
||||||
no_inter_layer_pred_flag -
|
|
||||||
use_ref_base_pic_flag -
|
|
||||||
store_ref_base_pic_flag -
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag -
|
|
||||||
slice_header_restriction_flag -
|
|
||||||
scan_idx_start -
|
|
||||||
scan_idx_end -
|
|
||||||
seq_tcoeff_level_prediction_flag -
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag -
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag -
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag -
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag -
|
|
||||||
default_residual_prediction_flag
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag -
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer HHI
|
|
||||||
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
|
|
||||||
Scalability Type CGS/Temporal
|
|
||||||
Bitstream SVCBCT-1
|
|
||||||
Bitstream Number 1
|
|
||||||
Width 320
|
|
||||||
Height 240
|
|
||||||
Frame rate 30.00
|
|
||||||
Number of frames 300
|
|
||||||
chroma_format_idc 1
|
|
||||||
bit_depth_luma_minus8 0
|
|
||||||
bit_depth_chroma_minus8 0
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 83
|
|
||||||
level_idc 21
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 1
|
|
||||||
constraint_set2_flag 0
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag 0
|
|
||||||
transform_8x8_mode_flag 1
|
|
||||||
pic_scaling_matrix_present_flag 0
|
|
||||||
qpprime_y_zero_transform_bypass_flag 0
|
|
||||||
slice_qp_delta == 0 0
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 0
|
|
||||||
disable_deblocking_filter_idc -
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 1
|
|
||||||
I_PCM ?
|
|
||||||
direct_spatial_mv_pred_flag 1
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 12
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 1
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI -
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 1
|
|
||||||
quality_id 0
|
|
||||||
ref_layer_dq_id 0
|
|
||||||
DependencyIdMax 1
|
|
||||||
TemporalIdMax 4
|
|
||||||
DQIdMax 16
|
|
||||||
DependentDId 1
|
|
||||||
Number of EIDR slices 1
|
|
||||||
extended_spatial_scalability 0
|
|
||||||
SpatialResolutionChangeFlag 0
|
|
||||||
chroma_phase_x_plus1_flag 1
|
|
||||||
chroma_phase_y_plus1 1
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 -
|
|
||||||
seq_scaled_ref_layer_left_offset -
|
|
||||||
seq_scaled_ref_layer_top_offset -
|
|
||||||
seq_scaled_ref_layer_right_offset -
|
|
||||||
seq_scaled_ref_layer_bottom_offset -
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag
|
|
||||||
ref_layer_chroma_phase_y_plus1
|
|
||||||
constrained_intra_resampling_flag 0
|
|
||||||
no_inter_layer_pred_flag 0
|
|
||||||
use_ref_base_pic_flag 0
|
|
||||||
store_ref_base_pic_flag 0
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag 0
|
|
||||||
slice_header_restriction_flag 0
|
|
||||||
scan_idx_start 0
|
|
||||||
scan_idx_end 15
|
|
||||||
seq_tcoeff_level_prediction_flag 0
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag 0
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag 1
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag 1
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag 1
|
|
||||||
default_residual_prediction_flag
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag 0
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer Vidyo
|
|
||||||
Description MT-1 + 1M, SEI, adaptive_base_mode_flag=1, adaptive_motion_prediction_flag=1
|
|
||||||
Scalability Type MGS/Temporal
|
|
||||||
Bitstream SVCBMT-13
|
|
||||||
Bitstream Number 0
|
|
||||||
Width 352
|
|
||||||
Height 240
|
|
||||||
Frame rate 30.00
|
|
||||||
Number of frames 20
|
|
||||||
chroma_format_idc -
|
|
||||||
bit_depth_luma_minus8 -
|
|
||||||
bit_depth_chroma_minus8 -
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 66
|
|
||||||
level_idc 13
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 1
|
|
||||||
constraint_set2_flag 1
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag -
|
|
||||||
transform_8x8_mode_flag -
|
|
||||||
pic_scaling_matrix_present_flag -
|
|
||||||
qpprime_y_zero_transform_bypass_flag -
|
|
||||||
slice_qp_delta == 0 1
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 1
|
|
||||||
disable_deblocking_filter_idc 1
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 0
|
|
||||||
I_PCM -
|
|
||||||
direct_spatial_mv_pred_flag -
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 4
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 0
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI 1
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 0
|
|
||||||
quality_id 0
|
|
||||||
ref_layer_dq_id -1
|
|
||||||
DependencyIdMax 0
|
|
||||||
TemporalIdMax 2
|
|
||||||
DQIdMax 0
|
|
||||||
DependentDId
|
|
||||||
Number of EIDR slices -
|
|
||||||
extended_spatial_scalability -
|
|
||||||
SpatialResolutionChangeFlag -
|
|
||||||
chroma_phase_x_plus1_flag -
|
|
||||||
chroma_phase_y_plus1 -
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 -
|
|
||||||
seq_scaled_ref_layer_left_offset -
|
|
||||||
seq_scaled_ref_layer_top_offset -
|
|
||||||
seq_scaled_ref_layer_right_offset -
|
|
||||||
seq_scaled_ref_layer_bottom_offset -
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag
|
|
||||||
ref_layer_chroma_phase_y_plus1
|
|
||||||
constrained_intra_resampling_flag -
|
|
||||||
no_inter_layer_pred_flag -
|
|
||||||
use_ref_base_pic_flag 0
|
|
||||||
store_ref_base_pic_flag 0
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag 0
|
|
||||||
slice_header_restriction_flag -
|
|
||||||
scan_idx_start -
|
|
||||||
scan_idx_end -
|
|
||||||
seq_tcoeff_level_prediction_flag -
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag -
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag -
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag -
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag -
|
|
||||||
default_residual_prediction_flag -
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag -
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer Vidyo
|
|
||||||
Description MT-1 + 1M, SEI, adaptive_base_mode_flag=1, adaptive_motion_prediction_flag=1
|
|
||||||
Scalability Type MGS/Temporal
|
|
||||||
Bitstream SVCBMT-13
|
|
||||||
Bitstream Number 1
|
|
||||||
Width 352
|
|
||||||
Height 240
|
|
||||||
Frame rate 30.00
|
|
||||||
Number of frames 20
|
|
||||||
chroma_format_idc 1
|
|
||||||
bit_depth_luma_minus8 0
|
|
||||||
bit_depth_chroma_minus8 0
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 83
|
|
||||||
level_idc 13
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 0
|
|
||||||
constraint_set2_flag 0
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag 0
|
|
||||||
transform_8x8_mode_flag 0
|
|
||||||
pic_scaling_matrix_present_flag 0
|
|
||||||
qpprime_y_zero_transform_bypass_flag 0
|
|
||||||
slice_qp_delta == 0 1
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 1
|
|
||||||
disable_deblocking_filter_idc 1
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 0
|
|
||||||
I_PCM -
|
|
||||||
direct_spatial_mv_pred_flag -
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 4
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 0
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI 1
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 0
|
|
||||||
quality_id 1
|
|
||||||
ref_layer_dq_id 0
|
|
||||||
DependencyIdMax 0
|
|
||||||
TemporalIdMax 2
|
|
||||||
DQIdMax 1
|
|
||||||
DependentDId
|
|
||||||
Number of EIDR slices 1
|
|
||||||
extended_spatial_scalability 0
|
|
||||||
SpatialResolutionChangeFlag 0
|
|
||||||
chroma_phase_x_plus1_flag 1
|
|
||||||
chroma_phase_y_plus1 1
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 -
|
|
||||||
seq_scaled_ref_layer_left_offset -
|
|
||||||
seq_scaled_ref_layer_top_offset -
|
|
||||||
seq_scaled_ref_layer_right_offset -
|
|
||||||
seq_scaled_ref_layer_bottom_offset -
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag
|
|
||||||
ref_layer_chroma_phase_y_plus1
|
|
||||||
constrained_intra_resampling_flag -
|
|
||||||
no_inter_layer_pred_flag 0
|
|
||||||
use_ref_base_pic_flag 0
|
|
||||||
store_ref_base_pic_flag 0
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag 0
|
|
||||||
slice_header_restriction_flag 0
|
|
||||||
scan_idx_start 0
|
|
||||||
scan_idx_end 15
|
|
||||||
seq_tcoeff_level_prediction_flag 0
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag 0
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag 1
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag 1
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag 1
|
|
||||||
default_residual_prediction_flag -
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag -
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer Vidyo
|
|
||||||
Description MT-1 + 1M, SEI, adaptive_base_mode_flag=1, adaptive_motion_prediction_flag=1
|
|
||||||
Scalability Type MGS/Temporal
|
|
||||||
Bitstream SVCBMT-13
|
|
||||||
Bitstream Number 1
|
|
||||||
Width 352
|
|
||||||
Height 240
|
|
||||||
Frame rate 30.00
|
|
||||||
Number of frames 20
|
|
||||||
chroma_format_idc 1
|
|
||||||
bit_depth_luma_minus8 0
|
|
||||||
bit_depth_chroma_minus8 0
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 83
|
|
||||||
level_idc 13
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 0
|
|
||||||
constraint_set2_flag 0
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag 0
|
|
||||||
transform_8x8_mode_flag 0
|
|
||||||
pic_scaling_matrix_present_flag 0
|
|
||||||
qpprime_y_zero_transform_bypass_flag 0
|
|
||||||
slice_qp_delta == 0 1
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 1
|
|
||||||
disable_deblocking_filter_idc 1
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 0
|
|
||||||
I_PCM -
|
|
||||||
direct_spatial_mv_pred_flag -
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 4
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 0
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI 1
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 0
|
|
||||||
quality_id 2
|
|
||||||
ref_layer_dq_id 1
|
|
||||||
DependencyIdMax 0
|
|
||||||
TemporalIdMax 2
|
|
||||||
DQIdMax 2
|
|
||||||
DependentDId
|
|
||||||
Number of EIDR slices 1
|
|
||||||
extended_spatial_scalability 0
|
|
||||||
SpatialResolutionChangeFlag 0
|
|
||||||
chroma_phase_x_plus1_flag 1
|
|
||||||
chroma_phase_y_plus1 1
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 -
|
|
||||||
seq_scaled_ref_layer_left_offset -
|
|
||||||
seq_scaled_ref_layer_top_offset -
|
|
||||||
seq_scaled_ref_layer_right_offset -
|
|
||||||
seq_scaled_ref_layer_bottom_offset -
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag
|
|
||||||
ref_layer_chroma_phase_y_plus1
|
|
||||||
constrained_intra_resampling_flag -
|
|
||||||
no_inter_layer_pred_flag 0
|
|
||||||
use_ref_base_pic_flag 0
|
|
||||||
store_ref_base_pic_flag 0
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag 1
|
|
||||||
slice_header_restriction_flag 0
|
|
||||||
scan_idx_start 0
|
|
||||||
scan_idx_end 15
|
|
||||||
seq_tcoeff_level_prediction_flag 0
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag 0
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag 1
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag 1
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag 1
|
|
||||||
default_residual_prediction_flag -
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag -
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer HHI
|
|
||||||
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
|
|
||||||
Scalability Type Spatial/Temporal
|
|
||||||
Bitstream SVCBST-19
|
|
||||||
Bitstream Number 0
|
|
||||||
Width 320
|
|
||||||
Height 240
|
|
||||||
Frame rate 15.00
|
|
||||||
Number of frames 30
|
|
||||||
chroma_format_idc -
|
|
||||||
bit_depth_luma_minus8 -
|
|
||||||
bit_depth_chroma_minus8 -
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 66
|
|
||||||
level_idc 12
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 1
|
|
||||||
constraint_set2_flag 1
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag -
|
|
||||||
transform_8x8_mode_flag 0
|
|
||||||
pic_scaling_matrix_present_flag 0
|
|
||||||
qpprime_y_zero_transform_bypass_flag 0
|
|
||||||
slice_qp_delta == 0 0
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 0
|
|
||||||
disable_deblocking_filter_idc -
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 0
|
|
||||||
I_PCM ?
|
|
||||||
direct_spatial_mv_pred_flag 1
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 7
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 1
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI -
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 0
|
|
||||||
quality_id 0
|
|
||||||
ref_layer_dq_id -1
|
|
||||||
DependencyIdMax 0
|
|
||||||
TemporalIdMax 3
|
|
||||||
DQIdMax 0
|
|
||||||
DependentDId 1
|
|
||||||
Number of EIDR slices -
|
|
||||||
extended_spatial_scalability -
|
|
||||||
SpatialResolutionChangeFlag -
|
|
||||||
chroma_phase_x_plus1_flag -
|
|
||||||
chroma_phase_y_plus1 -
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 -
|
|
||||||
seq_scaled_ref_layer_left_offset -
|
|
||||||
seq_scaled_ref_layer_top_offset -
|
|
||||||
seq_scaled_ref_layer_right_offset -
|
|
||||||
seq_scaled_ref_layer_bottom_offset -
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag
|
|
||||||
ref_layer_chroma_phase_y_plus1
|
|
||||||
constrained_intra_resampling_flag -
|
|
||||||
no_inter_layer_pred_flag -
|
|
||||||
use_ref_base_pic_flag -
|
|
||||||
store_ref_base_pic_flag -
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag -
|
|
||||||
slice_header_restriction_flag -
|
|
||||||
scan_idx_start -
|
|
||||||
scan_idx_end -
|
|
||||||
seq_tcoeff_level_prediction_flag -
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag -
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag -
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag -
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag -
|
|
||||||
default_residual_prediction_flag
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag -
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,98 +0,0 @@
|
|||||||
Volunteer HHI
|
|
||||||
Description hierarchical P pictures in base layer and hierarchical B pictures in enhancement layer
|
|
||||||
Scalability Type Spatial/Temporal
|
|
||||||
Bitstream SVCBST-19
|
|
||||||
Bitstream Number 1
|
|
||||||
Width 640
|
|
||||||
Height 480
|
|
||||||
Frame rate 30.00
|
|
||||||
Number of frames 60
|
|
||||||
chroma_format_idc 1
|
|
||||||
bit_depth_luma_minus8 0
|
|
||||||
bit_depth_chroma_minus8 0
|
|
||||||
residual_color_transform_flag -
|
|
||||||
separate_colour_plane_flag -
|
|
||||||
profile_idc 83
|
|
||||||
level_idc 31
|
|
||||||
constraint_set0_flag 1
|
|
||||||
constraint_set1_flag 1
|
|
||||||
constraint_set2_flag 0
|
|
||||||
constraint_set3_flag 0
|
|
||||||
Number of IDR access units 1
|
|
||||||
Number of slices per picture 1
|
|
||||||
seq_scaling_matrix_present_flag 0
|
|
||||||
transform_8x8_mode_flag 1
|
|
||||||
pic_scaling_matrix_present_flag 0
|
|
||||||
qpprime_y_zero_transform_bypass_flag 0
|
|
||||||
slice_qp_delta == 0 0
|
|
||||||
mb_qp_delta == 0 1
|
|
||||||
chroma_qp_index_offset 0
|
|
||||||
frame_mbs_only_flag 1
|
|
||||||
mb_adaptive_frame_field_flag -
|
|
||||||
field_pic_flag -
|
|
||||||
deblocking_filter_control_present_flag 0
|
|
||||||
disable_deblocking_filter_idc -
|
|
||||||
slice_alpha_c0_offset_div2 -
|
|
||||||
slice_beta_offset_div2 -
|
|
||||||
entropy_coding_mode_flag 1
|
|
||||||
I_PCM ?
|
|
||||||
direct_spatial_mv_pred_flag 1
|
|
||||||
direct_8x8_inference_flag 1
|
|
||||||
weighted_pred_flag 0
|
|
||||||
weighted_bipred_idc 0
|
|
||||||
num_ref_frames 12
|
|
||||||
gaps_in_frame_num_value_allowed_flag 1
|
|
||||||
ref_pic_list_reordering_flag 1
|
|
||||||
adaptive_ref_pic_marking_mode_flag 1
|
|
||||||
num_slice_groups_minus1 0
|
|
||||||
slice_group_map_type -
|
|
||||||
pic_order_cnt_type 0
|
|
||||||
frame_cropping_flag 0
|
|
||||||
VUI -
|
|
||||||
HRD -
|
|
||||||
SEI -
|
|
||||||
priority_id 0
|
|
||||||
dependency_id 1
|
|
||||||
quality_id 0
|
|
||||||
ref_layer_dq_id 0
|
|
||||||
DependencyIdMax 1
|
|
||||||
TemporalIdMax 4
|
|
||||||
DQIdMax 16
|
|
||||||
DependentDId 2
|
|
||||||
Number of EIDR slices 1
|
|
||||||
extended_spatial_scalability 1
|
|
||||||
SpatialResolutionChangeFlag 1
|
|
||||||
chroma_phase_x_plus1_flag 1
|
|
||||||
chroma_phase_y_plus1 1
|
|
||||||
seq_ref_layer_chroma_phase_x_plus1_flag 1
|
|
||||||
seq_ref_layer_chroma_phase_y_plus1 1
|
|
||||||
seq_scaled_ref_layer_left_offset 0
|
|
||||||
seq_scaled_ref_layer_top_offset 0
|
|
||||||
seq_scaled_ref_layer_right_offset 0
|
|
||||||
seq_scaled_ref_layer_bottom_offset 0
|
|
||||||
ref_layer_chroma_phase_x_plus1_flag -
|
|
||||||
ref_layer_chroma_phase_y_plus1 -
|
|
||||||
constrained_intra_resampling_flag 0
|
|
||||||
no_inter_layer_pred_flag 0
|
|
||||||
use_ref_base_pic_flag -
|
|
||||||
store_ref_base_pic_flag -
|
|
||||||
output_flag 1
|
|
||||||
discardable_flag 0
|
|
||||||
slice_header_restriction_flag 0
|
|
||||||
scan_idx_start -
|
|
||||||
scan_idx_end -
|
|
||||||
seq_tcoeff_level_prediction_flag 0
|
|
||||||
adaptive_tcoeff_level_prediction_flag -
|
|
||||||
slice_skip_flag 0
|
|
||||||
num_mbs_in_slice_minus1 -
|
|
||||||
adaptive_base_mode_flag 1
|
|
||||||
default_base_mode_flag -
|
|
||||||
adaptive_motion_prediction_flag 1
|
|
||||||
default_motion_prediction_flag -
|
|
||||||
adaptive_residual_prediction_flag 1
|
|
||||||
default_residual_prediction_flag
|
|
||||||
base_pred_weight_table_flag -
|
|
||||||
inter_layer_deblocking_filter_control_present_flag 0
|
|
||||||
disable_inter_layer_deblocking_filter_idc -
|
|
||||||
inter_layer_slice_alpha_c0_offset_div2 -
|
|
||||||
inter_layer_slice_beta_offset_div2 -
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
Files in the folder
|
|
||||||
|
|
||||||
1. Sharp_MP_PAFF_1r2_Readme.txt the file you are reading
|
|
||||||
2. Sharp_MP_PAFF_1r2.jvt bitstream file
|
|
||||||
3. Sharp_MP_PAFF_1r2_rec.yuv reconstructed YUV file
|
|
||||||
4. Sharp_MP_PAFF_1r2_trace_dec.txt decoder trace file, generated by JM6.2 decoder
|
|
||||||
|
|
||||||
Encoder configuration:
|
|
||||||
Stream Name: Sharp_MP_PAFF_1
|
|
||||||
Stream Source: Sharp
|
|
||||||
Video Sequence: Bus
|
|
||||||
Video Resolution: 720x480
|
|
||||||
Video Frames: 15
|
|
||||||
Frame/Field Coding: Picture-level Adaptive-Frame-Field Coding
|
|
||||||
Entropy Coding: CAVLC
|
|
||||||
Slice Types: IP
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-G050
|
|
||||||
POC Type: 1
|
|
||||||
Number Ref Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reorder: No
|
|
||||||
Adapt Ref Pic Mark: Off
|
|
||||||
Constrained Intra Pred: Off
|
|
||||||
Weighted Pred (P): Off
|
|
||||||
Weighted Bipred (B): Off
|
|
||||||
Direct Prediction: Spatial
|
|
||||||
Direct 8x8 Inference: Yes
|
|
||||||
Loop Filter: Off
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
@@ -1,32 +0,0 @@
|
|||||||
Stream Name: CAMA1_VTC_C
|
|
||||||
Stream Source: Tut_VideoTele.com
|
|
||||||
Video Sequence: Football
|
|
||||||
Video Resolution: 720x480 bottom field first
|
|
||||||
Video Frames: 4
|
|
||||||
Frame/Field Coding: First frame IP field bottom field first, the rest are MBAFF
|
|
||||||
Entropy Coding: CABAC
|
|
||||||
Slice Types: IPB
|
|
||||||
I Period: First only
|
|
||||||
Slices per Picture: 1
|
|
||||||
Conformance Point: JVT-I050
|
|
||||||
|
|
||||||
POC Type: 0
|
|
||||||
Number Reference Frames: 5
|
|
||||||
IDR: First frame
|
|
||||||
Ref Pic List Reordering: No
|
|
||||||
Adaptive Ref Pic Marking Mode: Off
|
|
||||||
Constrained Intra Prediction: Off (Unconstrained)
|
|
||||||
Weighted Prediction (P): Off
|
|
||||||
Weighted Biprediction (B): Off
|
|
||||||
Direct Prediction: Spatial
|
|
||||||
Direct 8x8 Inference: 1
|
|
||||||
Loop Filter: on
|
|
||||||
SEI: No
|
|
||||||
VUI: No
|
|
||||||
Number Slice Groups: 1
|
|
||||||
Long-term Ref Frames: No
|
|
||||||
MMCO: No
|
|
||||||
Slices per Picture: 1
|
|
||||||
Arbitrary Slice Order: No
|
|
||||||
Redundant Slices: No
|
|
||||||
|
|
||||||
@@ -169,7 +169,9 @@ public sealed class H264ConformanceTests
|
|||||||
|
|
||||||
if (expected.Count == 0)
|
if (expected.Count == 0)
|
||||||
{
|
{
|
||||||
Assert.Inconclusive($"da verificare: {feature}; manca la ricostruzione ufficiale (oggi escono {actual.Count} fotogrammi di tutte le viste, vedi {nameof(MvcDecodesEveryView)})");
|
// The CI counts as «da fare» only messages that start with it (.gitea/scripts/riepilogo-prove.sh): any other
|
||||||
|
// inconclusive result is a skipped test, and the CI allows none.
|
||||||
|
Assert.Inconclusive($"da fare: {feature}, confronto bit per bit; manca la ricostruzione ufficiale (oggi escono {actual.Count} fotogrammi di tutte le viste, vedi {nameof(MvcDecodesEveryView)})");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (skipped is not null)
|
if (skipped is not null)
|
||||||
|
|||||||
@@ -78,6 +78,24 @@ public sealed class H264ExtendedToolsTests
|
|||||||
H264ConformanceTests.AssertStreamMatches(name, stream);
|
H264ConformanceTests.AssertStreamMatches(name, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
[DataRow("FM1_FT_E")] // several slices per picture: the stray partitions have a slice_id of their own
|
||||||
|
[DataRow("BASQP1_Sony_C")] // twenty slices per picture
|
||||||
|
[DataRow("BA3_SVA_C")] // one slice per picture: the stray partitions come after both B and C of the slice before
|
||||||
|
public void PartitionsBAndCWithoutTheirPartitionAAreIgnored(string name)
|
||||||
|
{
|
||||||
|
// A lost partition A leaves its B and C right after the partitions of the slice before, which is still waiting
|
||||||
|
// to be decoded: they must change nothing, as if the whole slice had been lost, and above all not the residual
|
||||||
|
// of the waiting slice.
|
||||||
|
var partitioned = StreamRewriter.Partition(Original(name));
|
||||||
|
var strays = StreamRewriter.DropPartitionsA(partitioned, alsoBAndC: false, out var dropped);
|
||||||
|
var lost = StreamRewriter.DropPartitionsA(partitioned, alsoBAndC: true, out var droppedWhole);
|
||||||
|
Assert.AreEqual(dropped, droppedWhole);
|
||||||
|
Assert.IsGreaterThanOrEqualTo(5, dropped, "slice senza partizione A");
|
||||||
|
Assert.IsGreaterThan(StreamRewriter.Units(lost).Count, StreamRewriter.Units(strays).Count, "restano le partizioni B e C");
|
||||||
|
CollectionAssert.AreEqual(H264ConformanceTests.FrameMd5s(lost), H264ConformanceTests.FrameMd5s(strays));
|
||||||
|
}
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
[DataRow("FM1_FT_E", 4201)]
|
[DataRow("FM1_FT_E", 4201)]
|
||||||
[DataRow("sp2_bt_b", 4202)]
|
[DataRow("sp2_bt_b", 4202)]
|
||||||
|
|||||||
@@ -37,7 +37,8 @@ public sealed class H264FormatTests
|
|||||||
Assert.AreEqual(chromaFormat, f.ChromaFormat);
|
Assert.AreEqual(chromaFormat, f.ChromaFormat);
|
||||||
Assert.AreEqual(bitDepthLuma, f.BitDepthLuma);
|
Assert.AreEqual(bitDepthLuma, f.BitDepthLuma);
|
||||||
|
|
||||||
// Monochrome comes out with 4:2:0 chroma at the middle value, at the luma bit depth (as the reference decoder writes it).
|
// Monochrome comes out with 4:2:0 chroma at the middle value, at the luma bit depth (as the official reconstructions
|
||||||
|
// of HPCAMOLQ_BRCM_B and HPCVMOLQ_BRCM_B hold it).
|
||||||
var depthC = chromaFormat == 0 ? bitDepthLuma : bitDepthChroma;
|
var depthC = chromaFormat == 0 ? bitDepthLuma : bitDepthChroma;
|
||||||
Assert.AreEqual(depthC, f.BitDepthChroma);
|
Assert.AreEqual(depthC, f.BitDepthChroma);
|
||||||
var bytes = Math.Max(bitDepthLuma, depthC) > 8 ? 2 : 1;
|
var bytes = Math.Max(bitDepthLuma, depthC) > 8 ? 2 : 1;
|
||||||
|
|||||||
@@ -0,0 +1,124 @@
|
|||||||
|
using Febe.Core.Codecs.H264;
|
||||||
|
using static Febe.Tests.Codecs.H264.SyntheticStreams;
|
||||||
|
|
||||||
|
namespace Febe.Tests.Codecs.H264;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The decoders of the non-base views of an MVC stream (Annex H): what a damaged subset SPS may make them allocate, and
|
||||||
|
/// the <see cref="H264Decoder.Wanted"/> filter, which holds for every view.
|
||||||
|
/// </summary>
|
||||||
|
[TestClass]
|
||||||
|
public sealed class H264MultiviewLimitsTests
|
||||||
|
{
|
||||||
|
[TestMethod]
|
||||||
|
public void TheViewsOfAStreamShareOneBoundForTheirBuffers()
|
||||||
|
{
|
||||||
|
// A subset SPS may list up to 1,024 views, and each view has a decoder and frame stores of its own: together they
|
||||||
|
// stay within H264Decoder.MaxAllViewsMbs, here sixteen reference frames of 1920×1088 per view.
|
||||||
|
var s = new SequenceSettings(WidthInMbs: 120, HeightInMbs: 68, MaxNumRefFrames: 16);
|
||||||
|
var decoder = new H264Decoder();
|
||||||
|
var frames = new List<H264Frame>();
|
||||||
|
decoder.FrameDecoded += frames.Add;
|
||||||
|
decoder.DecodeUnit(MvcSubsetSps(s, views: 64)[4..]);
|
||||||
|
decoder.DecodeUnit(Pps()[4..]);
|
||||||
|
|
||||||
|
// Views the subset SPS does not list are refused, and leave nothing behind that would count against the bound.
|
||||||
|
for (var id = 100; id < 140; id++)
|
||||||
|
{
|
||||||
|
var absent = Assert.ThrowsExactly<H264Exception>(() => decoder.DecodeUnit(ViewIdr(s, id)[4..]));
|
||||||
|
StringAssert.Contains(absent.Message, "Vista assente");
|
||||||
|
}
|
||||||
|
|
||||||
|
var perView = (s.MaxNumRefFrames + 1L) * s.WidthInMbs * s.HeightInMbs;
|
||||||
|
var allowed = (int)(H264Decoder.MaxAllViewsMbs / perView) - 1; // besides the base view
|
||||||
|
Assert.AreEqual(9, allowed);
|
||||||
|
for (var id = 1; id <= allowed; id++)
|
||||||
|
{
|
||||||
|
decoder.DecodeUnit(ViewIdr(s, id)[4..]);
|
||||||
|
}
|
||||||
|
|
||||||
|
var refused = Assert.ThrowsExactly<H264Exception>(() => decoder.DecodeUnit(ViewIdr(s, allowed + 1)[4..]));
|
||||||
|
StringAssert.Contains(refused.Message, "Troppe viste");
|
||||||
|
|
||||||
|
// The views kept still decode: one frame each, grey (Intra_16x16 DC with nothing around gives 128).
|
||||||
|
decoder.Flush();
|
||||||
|
CollectionAssert.AreEqual(Enumerable.Range(1, allowed).ToArray(), frames.Select(f => f.ViewId).ToArray());
|
||||||
|
foreach (var frame in frames)
|
||||||
|
{
|
||||||
|
Assert.IsTrue(frame.Y.All(v => v == 128), $"vista {frame.ViewId}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
public void ExtensionUnitsCutShortGiveNothingOrAnH264Exception()
|
||||||
|
{
|
||||||
|
// NAL units 14, 15 and 20 whose header is read byte by byte (svc_extension_flag, view_id, dependency_id), from one
|
||||||
|
// byte to a few, SVC and MVC, after an MVC subset SPS and a PPS or without them.
|
||||||
|
var s = new SequenceSettings(WidthInMbs: 2, HeightInMbs: 2);
|
||||||
|
foreach (var withParameters in new[] { false, true })
|
||||||
|
{
|
||||||
|
foreach (var type in new[] { 14, 15, 20 })
|
||||||
|
{
|
||||||
|
for (var length = 1; length <= 8; length++)
|
||||||
|
{
|
||||||
|
foreach (var second in new byte[] { 0x00, 0x40, 0x80, 0xC0, 0xFF })
|
||||||
|
{
|
||||||
|
var decoder = new H264Decoder();
|
||||||
|
decoder.FrameDecoded += _ => { };
|
||||||
|
var unit = new byte[length];
|
||||||
|
unit[0] = (byte)(0x60 | type);
|
||||||
|
for (var i = 1; i < length; i++)
|
||||||
|
{
|
||||||
|
unit[i] = i == 1 ? second : (byte)(0x35 * i);
|
||||||
|
}
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
|
if (withParameters)
|
||||||
|
{
|
||||||
|
decoder.DecodeUnit(MvcSubsetSps(s, views: 2)[4..]);
|
||||||
|
decoder.DecodeUnit(Pps()[4..]);
|
||||||
|
}
|
||||||
|
|
||||||
|
decoder.DecodeUnit(unit);
|
||||||
|
decoder.Flush();
|
||||||
|
}
|
||||||
|
catch (H264Exception)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
[DataRow("MVCDS-4")]
|
||||||
|
[DataRow("MVCNV-3")]
|
||||||
|
public void WantedHoldsForEveryView(string name)
|
||||||
|
{
|
||||||
|
// The filter of the root decoder applies to the decoders of the other views too, each with its own decoding
|
||||||
|
// index; the frames handed out are those of the full decoding, and the view components the views after them
|
||||||
|
// refer to are still reconstructed.
|
||||||
|
var data = File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name)));
|
||||||
|
var all = new List<H264Frame>();
|
||||||
|
var full = new H264Decoder();
|
||||||
|
full.FrameDecoded += all.Add;
|
||||||
|
full.DecodeAnnexB(data);
|
||||||
|
|
||||||
|
var some = new List<H264Frame>();
|
||||||
|
var partial = new H264Decoder { Wanted = index => index % 3 == 2 };
|
||||||
|
partial.FrameDecoded += some.Add;
|
||||||
|
partial.DecodeAnnexB(data);
|
||||||
|
|
||||||
|
Assert.IsGreaterThan(1, all.Select(f => f.ViewId).Distinct().Count(), "più viste");
|
||||||
|
CollectionAssert.AreEqual(
|
||||||
|
all.Where(f => f.DecodeIndex % 3 == 2).Select(f => (f.ViewId, f.DecodeIndex)).ToArray(),
|
||||||
|
some.Select(f => (f.ViewId, f.DecodeIndex)).ToArray());
|
||||||
|
foreach (var frame in some)
|
||||||
|
{
|
||||||
|
var expected = all.Single(f => f.ViewId == frame.ViewId && f.DecodeIndex == frame.DecodeIndex);
|
||||||
|
CollectionAssert.AreEqual(expected.ToPlanar(), frame.ToPlanar(), $"{name}: vista {frame.ViewId}, fotogramma {frame.DecodeIndex}");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -37,6 +37,26 @@ public sealed class H264RobustnessTests
|
|||||||
public void DamagedStreamsGiveFramesOrAnH264Exception(string name, int seed) =>
|
public void DamagedStreamsGiveFramesOrAnH264Exception(string name, int seed) =>
|
||||||
AssertDamagedCopiesDecode(name, File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name))), seed, trials: 60);
|
AssertDamagedCopiesDecode(name, File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name))), seed, trials: 60);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The same for the formats of the High profiles beyond 4:2:0 at 8 bits (samples of two bytes, 4:2:2 and 4:0:0
|
||||||
|
/// layouts) and for the extensions, whose NAL units 14, 15 and 20 have headers of their own and whose layers or
|
||||||
|
/// views have arrays and decoders of their own; fewer copies each, since these streams are larger or decode twice.
|
||||||
|
/// </summary>
|
||||||
|
[TestMethod]
|
||||||
|
[DataRow("Hi422FR12_SONY_A", 2665)] // 4:2:2, 8 bit, slice B
|
||||||
|
[DataRow("Hi422FR13_SONY_A", 2666)] // 4:2:2, 10 bit: two bytes per sample
|
||||||
|
[DataRow("Hi422FR15_SONY_A", 2667)] // 4:2:2, 10 bit, slices P and B
|
||||||
|
[DataRow("FREXT2_TANDBERG_A", 2668)] // 4:2:2, CAVLC
|
||||||
|
[DataRow("HPCAMOLQ_BRCM_B", 2669)] // 4:0:0, CABAC
|
||||||
|
[DataRow("HPCVMOLQ_BRCM_B", 2670)] // 4:0:0, CAVLC
|
||||||
|
[DataRow("SVCBMT-13", 2671)] // SVC: MGS quality layers, NAL units 14 and 20
|
||||||
|
[DataRow("SVCBST-19", 2672)] // SVC: spatial layer left to the base
|
||||||
|
[DataRow("SVCBCT-1", 2673)] // SVC: CGS layer left to the base
|
||||||
|
[DataRow("MVCDS-4", 2674)] // MVC: two views, subset SPS, NAL units 14, 15 and 20
|
||||||
|
[DataRow("MVCNV-3", 2675)] // MVC: three views, inter-view prediction
|
||||||
|
public void DamagedStreamsOfOtherFormatsAndExtensionsGiveFramesOrAnH264Exception(string name, int seed) =>
|
||||||
|
AssertDamagedCopiesDecode(name, File.ReadAllBytes(H264ConformanceTests.StreamFile(H264ConformanceTests.Folder(name))), seed, trials: 20);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Copies of <paramref name="data"/> with a few bytes changed (and some cut short), from a fixed seed: each must give
|
/// Copies of <paramref name="data"/> with a few bytes changed (and some cut short), from a fixed seed: each must give
|
||||||
/// frames or an <see cref="H264Exception"/>, never another exception.
|
/// frames or an <see cref="H264Exception"/>, never another exception.
|
||||||
|
|||||||
@@ -76,6 +76,71 @@ internal static class StreamRewriter
|
|||||||
return Join(output);
|
return Join(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A partitioned stream (<see cref="Partition"/>) with the partition A of some slices lost: of every other slice
|
||||||
|
/// whose partitions B or C come right after those of the slice before, when that slice is still waiting for nothing
|
||||||
|
/// a decoder could take them for (a slice_id of its own, or the slice before already has both B and C). With
|
||||||
|
/// <paramref name="alsoBAndC"/> the whole slice is lost instead, its B and C with it. <paramref name="dropped"/> is the
|
||||||
|
/// number of slices that lost their partition A.
|
||||||
|
/// </summary>
|
||||||
|
internal static byte[] DropPartitionsA(byte[] partitioned, bool alsoBAndC, out int dropped)
|
||||||
|
{
|
||||||
|
var units = Units(partitioned);
|
||||||
|
var output = new List<byte[]>();
|
||||||
|
dropped = 0;
|
||||||
|
var candidates = 0;
|
||||||
|
(int Start, int End)? previous = null;
|
||||||
|
var i = 0;
|
||||||
|
while (i < units.Count)
|
||||||
|
{
|
||||||
|
if ((units[i][0] & 0x1F) != 2)
|
||||||
|
{
|
||||||
|
output.Add(units[i]);
|
||||||
|
previous = null;
|
||||||
|
i++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
var end = i + 1;
|
||||||
|
while (end < units.Count && (units[end][0] & 0x1F) is 3 or 4)
|
||||||
|
{
|
||||||
|
end++;
|
||||||
|
}
|
||||||
|
|
||||||
|
var drop = false;
|
||||||
|
if (previous is { } before && end > i + 1 && end - i - 1 <= 2)
|
||||||
|
{
|
||||||
|
var full = before.End - before.Start == 3;
|
||||||
|
var id = SliceIdOf(units[i + 1]);
|
||||||
|
var beforeId = before.End > before.Start + 1 ? SliceIdOf(units[before.Start + 1]) : id;
|
||||||
|
drop = (full || id != beforeId) && candidates++ % 2 == 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (drop)
|
||||||
|
{
|
||||||
|
dropped++;
|
||||||
|
if (!alsoBAndC)
|
||||||
|
{
|
||||||
|
output.AddRange(units.GetRange(i + 1, end - i - 1));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
output.AddRange(units.GetRange(i, end - i));
|
||||||
|
}
|
||||||
|
|
||||||
|
// A slice that lost its partition A is no slice the next one can follow: the decoder still waits for the
|
||||||
|
// one before it.
|
||||||
|
previous = drop ? null : (i, end);
|
||||||
|
i = end;
|
||||||
|
}
|
||||||
|
|
||||||
|
return Join(output);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>slice_id, the first syntax element of a partition B or C.</summary>
|
||||||
|
private static int SliceIdOf(byte[] unit) => NalUnits.Parse(unit).Reader().ReadUe(Sps.MaxFrameMbs - 1);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The same stream with redundant_pic_cnt_present_flag set in every PPS (§7.3.2.2) and, after the slices of each
|
/// The same stream with redundant_pic_cnt_present_flag set in every PPS (§7.3.2.2) and, after the slices of each
|
||||||
/// picture, a redundant copy of them (redundant_pic_cnt 1) whose header is the primary one and whose data are random
|
/// picture, a redundant copy of them (redundant_pic_cnt 1) whose header is the primary one and whose data are random
|
||||||
|
|||||||
@@ -380,6 +380,92 @@ internal static class SyntheticStreams
|
|||||||
// No chroma residual: the mb_type says coded_block_pattern chroma 0.
|
// No chroma residual: the mb_type says coded_block_pattern chroma 0.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A subset sequence parameter set (NAL unit 15, §7.3.2.1.3) of the Multiview High profile: the sequence of
|
||||||
|
/// <paramref name="s"/> in 8-bit 4:2:0, then seq_parameter_set_mvc_extension() (§H.7.3.2.1.4) with
|
||||||
|
/// <paramref name="views"/> views, view_id 0 to views − 1, none of them referring to another.
|
||||||
|
/// </summary>
|
||||||
|
internal static byte[] MvcSubsetSps(SequenceSettings s, int views)
|
||||||
|
{
|
||||||
|
var bits = new BitWriter();
|
||||||
|
bits.Bits(118, 8); // profile_idc: Multiview High
|
||||||
|
bits.Bits(0, 8); // constraint flags
|
||||||
|
bits.Bits(51, 8); // level_idc
|
||||||
|
bits.Ue(0); // seq_parameter_set_id
|
||||||
|
bits.Ue(1); // chroma_format_idc: 4:2:0
|
||||||
|
bits.Ue(0); // bit_depth_luma_minus8
|
||||||
|
bits.Ue(0); // bit_depth_chroma_minus8
|
||||||
|
bits.Bits(0, 1); // qpprime_y_zero_transform_bypass_flag
|
||||||
|
bits.Bits(0, 1); // seq_scaling_matrix_present_flag
|
||||||
|
bits.Ue((uint)s.Log2MaxFrameNum - 4);
|
||||||
|
bits.Ue(2); // pic_order_cnt_type
|
||||||
|
bits.Ue((uint)s.MaxNumRefFrames);
|
||||||
|
bits.Bits(0, 1); // gaps_in_frame_num_value_allowed_flag
|
||||||
|
bits.Ue((uint)s.WidthInMbs - 1);
|
||||||
|
bits.Ue((uint)s.HeightInMbs - 1);
|
||||||
|
bits.Bits(1, 1); // frame_mbs_only_flag
|
||||||
|
bits.Bits(1, 1); // direct_8x8_inference_flag
|
||||||
|
bits.Bits(0, 1); // frame_cropping_flag
|
||||||
|
bits.Bits(0, 1); // vui_parameters_present_flag
|
||||||
|
bits.Bits(1, 1); // bit_equal_to_one
|
||||||
|
bits.Ue((uint)views - 1); // num_views_minus1
|
||||||
|
for (var i = 0; i < views; i++)
|
||||||
|
{
|
||||||
|
bits.Ue((uint)i); // view_id
|
||||||
|
}
|
||||||
|
|
||||||
|
for (var pass = 0; pass < 2; pass++)
|
||||||
|
{
|
||||||
|
for (var i = 1; i < views; i++)
|
||||||
|
{
|
||||||
|
bits.Ue(0); // num_anchor_refs_l0 (then num_non_anchor_refs_l0)
|
||||||
|
bits.Ue(0); // num_anchor_refs_l1 (then num_non_anchor_refs_l1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
bits.Ue(0); // num_level_values_signalled_minus1
|
||||||
|
bits.Bits(51, 8); // level_idc
|
||||||
|
bits.Ue(0); // num_applicable_ops_minus1
|
||||||
|
bits.Bits(0, 3); // applicable_op_temporal_id
|
||||||
|
bits.Ue(0); // applicable_op_num_target_views_minus1
|
||||||
|
bits.Ue(0); // applicable_op_target_view_id
|
||||||
|
bits.Ue((uint)views - 1); // applicable_op_num_views_minus1
|
||||||
|
bits.Bits(0, 1); // mvc_vui_parameters_present_flag
|
||||||
|
bits.Bits(0, 1); // additional_extension2_flag
|
||||||
|
return Nal(0x6F, bits);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// An IDR view component of view <paramref name="viewId"/> (NAL unit 20 with the MVC header, §H.7.3.1.1), as one I
|
||||||
|
/// slice whose macroblocks are all Intra_16x16 DC without residual: one byte each.
|
||||||
|
/// </summary>
|
||||||
|
internal static byte[] ViewIdr(SequenceSettings s, int viewId)
|
||||||
|
{
|
||||||
|
var bits = new BitWriter();
|
||||||
|
bits.Ue(0); // first_mb_in_slice
|
||||||
|
bits.Ue(7); // slice_type: I
|
||||||
|
bits.Ue(0); // pic_parameter_set_id
|
||||||
|
bits.Bits(0, s.Log2MaxFrameNum); // frame_num
|
||||||
|
bits.Ue(0); // idr_pic_id
|
||||||
|
bits.Bits(0, 1); // no_output_of_prior_pics_flag
|
||||||
|
bits.Bits(0, 1); // long_term_reference_flag
|
||||||
|
bits.Se(0); // slice_qp_delta
|
||||||
|
bits.Ue(1); // disable_deblocking_filter_idc: off
|
||||||
|
for (var m = 0; m < s.WidthInMbs * s.HeightInMbs; m++)
|
||||||
|
{
|
||||||
|
bits.Ue(3); // mb_type: I_16x16_2_0_0 (DC, no coded block)
|
||||||
|
bits.Ue(0); // intra_chroma_pred_mode: DC
|
||||||
|
bits.Se(0); // mb_qp_delta
|
||||||
|
bits.Bits(1, 1); // coeff_token of Intra16x16DCLevel, nC 0: TotalCoeff 0
|
||||||
|
}
|
||||||
|
|
||||||
|
bits.Bits(1, 1); // rbsp_stop_one_bit
|
||||||
|
|
||||||
|
// nal_unit_header_mvc_extension(), outside emulation prevention: svc_extension_flag 0, non_idr_flag 0,
|
||||||
|
// priority_id 1, view_id, temporal_id 0, anchor_pic_flag 1, inter_view_flag 1, reserved_one_bit.
|
||||||
|
return [0, 0, 0, 1, 0x74, 0x01, (byte)(viewId >> 2), (byte)(((viewId & 3) << 6) | 0x07), .. bits.ToArray()];
|
||||||
|
}
|
||||||
|
|
||||||
private static byte[] Nal(byte header, BitWriter bits)
|
private static byte[] Nal(byte header, BitWriter bits)
|
||||||
{
|
{
|
||||||
bits.Bits(1, 1); // rbsp_stop_one_bit
|
bits.Bits(1, 1); // rbsp_stop_one_bit
|
||||||
|
|||||||
@@ -0,0 +1,88 @@
|
|||||||
|
using System.Security;
|
||||||
|
using Febe.Tests.Desktop.Support;
|
||||||
|
using Febe.Tests.Support;
|
||||||
|
|
||||||
|
namespace Febe.Tests.Packaging;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The summary of the test results (.gitea/scripts/riepilogo-prove.sh), run on .trx files written here: the CI allows no
|
||||||
|
/// skipped test, and the only inconclusive results that do not count as skipped are the «da fare» ones of
|
||||||
|
/// H264ConformanceTests.FeaturesStillToDo, whose reason starts with «da fare: » right after the frame MSTest puts around
|
||||||
|
/// it (in English or in Italian).
|
||||||
|
/// </summary>
|
||||||
|
public sealed partial class PipelineTests
|
||||||
|
{
|
||||||
|
private const string FeaturesStillToDo = "FeaturesStillToDo (\"SVCBST-19\",\"SVC, scalabilità spaziale\")";
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
[Timeout(120_000, CooperativeCancellation = true)]
|
||||||
|
public async Task OnlyTheToDoConformanceStreamsMaySkipInTheCi()
|
||||||
|
{
|
||||||
|
var bash = RequireBash();
|
||||||
|
|
||||||
|
// The frames of MSTest, old and new, English and Italian: all «da fare», none skipped.
|
||||||
|
var toDo = await RunSummaryAsync(bash,
|
||||||
|
("Passed", "AnythingElse", null),
|
||||||
|
("NotExecuted", FeaturesStillToDo, "Assert.Inconclusive. da fare: SVC, scalabilità spaziale"),
|
||||||
|
("NotExecuted", FeaturesStillToDo, "Assert.Inconclusive failed. da fare: MVC, due viste, confronto bit per bit"),
|
||||||
|
("NotExecuted", FeaturesStillToDo, "Assert.Inconclusive non riuscito. da fare: MVC, tre viste"),
|
||||||
|
("Inconclusive", FeaturesStillToDo, "Assert.Inconclusive. da fare: SVC & <CGS>"));
|
||||||
|
Assert.AreEqual(0, toDo.Code, toDo.Report);
|
||||||
|
StringAssert.Contains(toDo.Output, "totale 5 · superate 1 · fallite 0 · saltate 0 · da fare 4", toDo.Report);
|
||||||
|
StringAssert.Contains(toDo.Output, " - da fare: SVC & <CGS>", toDo.Report);
|
||||||
|
|
||||||
|
// Anything else inconclusive is a skipped test, and turns the verification red: another reason in
|
||||||
|
// FeaturesStillToDo, «da fare: » not at the start of the reason, the same reason in another test.
|
||||||
|
(string Name, string Message)[] skipped =
|
||||||
|
[
|
||||||
|
(FeaturesStillToDo, "Assert.Inconclusive. da verificare: MVC, due viste"),
|
||||||
|
(FeaturesStillToDo, "Assert.Inconclusive. Manca Chromium; da fare: installarlo"),
|
||||||
|
("ChromiumStartsInTheSandbox", "Assert.Inconclusive. da fare: niente"),
|
||||||
|
("FeaturesStillToDoLater", "Assert.Inconclusive. da fare: niente"),
|
||||||
|
];
|
||||||
|
foreach (var (name, message) in skipped)
|
||||||
|
{
|
||||||
|
var run = await RunSummaryAsync(bash, ("Passed", "AnythingElse", null), ("NotExecuted", name, message));
|
||||||
|
Assert.AreEqual(1, run.Code, $"{name}: {message}\n{run.Report}");
|
||||||
|
StringAssert.Contains(run.Output, "totale 2 · superate 1 · fallite 0 · saltate 1 · da fare 0", run.Report);
|
||||||
|
StringAssert.Contains(run.Errors, "Prove saltate: 1, più delle 0 ammesse.", run.Report);
|
||||||
|
}
|
||||||
|
|
||||||
|
// The H.264 conformance tests write no other inconclusive reason: every Assert.Inconclusive there starts with it.
|
||||||
|
var source = Read(Repository.PathOf("tests", "Febe.Tests", "Media", "H264", "H264ConformanceTests.cs"));
|
||||||
|
var reasons = System.Text.RegularExpressions.Regex.Matches(source, @"Assert\.Inconclusive\(\$?""(?<reason>[^""]*)""");
|
||||||
|
Assert.IsGreaterThanOrEqualTo(3, reasons.Count);
|
||||||
|
foreach (System.Text.RegularExpressions.Match reason in reasons)
|
||||||
|
{
|
||||||
|
StringAssert.StartsWith(reason.Groups["reason"].Value, "da fare: ", reason.Value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>riepilogo-prove.sh with no skipped test allowed, on one .trx file of the given results.</summary>
|
||||||
|
private async Task<(int Code, string Output, string Errors, string Report)> RunSummaryAsync(string bash, params (string Outcome, string Name, string? Message)[] results)
|
||||||
|
{
|
||||||
|
using var folder = new TempFolder("febe-riepilogo");
|
||||||
|
var trx = new System.Text.StringBuilder("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<TestRun xmlns=\"http://microsoft.com/schemas/VisualStudio/TeamTest/2010\">\n <Results>\n");
|
||||||
|
var id = 0;
|
||||||
|
foreach (var (outcome, name, message) in results)
|
||||||
|
{
|
||||||
|
trx.Append($" <UnitTestResult executionId=\"e{id}\" testId=\"t{id}\" testName=\"{SecurityElement.Escape(name)}\" computerName=\"prova\" duration=\"00:00:00.0100000\" outcome=\"{outcome}\">");
|
||||||
|
if (message is not null)
|
||||||
|
{
|
||||||
|
trx.Append($"\n <Output>\n <ErrorInfo>\n <Message>{SecurityElement.Escape(message)}</Message>\n </ErrorInfo>\n </Output>\n ");
|
||||||
|
}
|
||||||
|
|
||||||
|
trx.Append("</UnitTestResult>\n");
|
||||||
|
id++;
|
||||||
|
}
|
||||||
|
|
||||||
|
trx.Append(" </Results>\n</TestRun>\n");
|
||||||
|
await File.WriteAllTextAsync(folder.Combine("prove.trx"), trx.ToString(), TestContext.CancellationToken);
|
||||||
|
var run = await RunProcessAsync(bash, ["--noprofile", "--norc", ".gitea/scripts/riepilogo-prove.sh", folder.Path.Replace('\\', '/'), "0"], start =>
|
||||||
|
{
|
||||||
|
start.Environment.Remove("GITHUB_STEP_SUMMARY");
|
||||||
|
start.Environment.Remove("PROVE_SALTATE_AMMESSE");
|
||||||
|
});
|
||||||
|
return (run.Code, run.Output, run.Errors, $"codice {run.Code}\n{run.Output}\n{run.Errors}");
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user