From dd5fb69f421cf157116b0d3bbde51ddb327116ac Mon Sep 17 00:00:00 2001 From: Cyril Concolato Date: Tue, 24 Jan 2023 09:14:58 -0800 Subject: [PATCH] fix identation, syntax and highlights in tables --- index.html | 70 ++++++++++++++++++++++++++++-------------------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/index.html b/index.html index 2f3a591..ae5935b 100644 --- a/index.html +++ b/index.html @@ -80,9 +80,9 @@

Identifying AV1 streams in MPEG-2 TS

| Syntax | No. Of bits | Mnemonic | |:---------------------------------|:-----------:|:----------:| | registration_descriptor() { | | | -| **descriptor_tag** | **8** | **uimsbf** | -| **descriptor_length** | **8** | **uimsbf** | -| **format_identifier** | **32** | **uimsbf** | +|   **descriptor_tag** | 8 | uimsbf | +|   **descriptor_length** | 8 | uimsbf | +|   **format_identifier** | 32 | uimsbf | | } | | | ### Semantics @@ -102,27 +102,27 @@

Identifying AV1 streams in MPEG-2 TS

| Syntax | No. Of bits | Mnemonic | |:---------------------------------|:-----------:|:----------:| | AV1_video_descriptor() { | | | -| **descriptor_tag** | **8** | **uimsbf** | -| **descriptor_length** | **8** | **uimsbf** | -| **marker** | **1** | **bslbf** | -| **version** | **7** | **uimsbf** | -| **seq_profile** | **3** | **uimsbf** | -| **seq_level_idx_0** | **5** | **uimsbf** | -| **seq_tier_0** | **1** | **bslbf** | -| **high_bitdepth** | **1** | **bslbf** | -| **twelve_bit** | **1** | **bslbf** | -| **monochrome** | **1** | **bslbf** | -| **chroma_subsampling_x** | **1** | **bslbf** | -| **chroma_subsampling_y** | **1** | **bslbf** | -| **chroma_sample_position** | **2** | **uimsbf** | -| **hdr_wcg_idc** | **2** | **uimsbf** | -| **reserved_zeros** | **1** | **bslbf** | -| **initial_presentation_delay_present** | **1** | **bslbf** | -| if (initial_presentation_delay_present) { | -| **initial_presentation_delay_minus_one** | **4** | **uimsbf** | -| } else { | | | -| **reserved_zeros** | **4** | **uimsbf** | -| } | | | +|   **descriptor_tag** | **8 | uimsbf | +|   **descriptor_length** | 8 | uimsbf | +|   **marker** | 1 | bslbf | +|   **version** | 7 | uimsbf | +|   **seq_profile** | 3 | uimsbf | +|   **seq_level_idx_0** | 5 | uimsbf | +|   **seq_tier_0** | 1 | bslbf | +|   **high_bitdepth** | 1 | bslbf | +|   **twelve_bit** | 1 | bslbf | +|   **monochrome** | 1 | bslbf | +|   **chroma_subsampling_x** | 1 | bslbf | +|   **chroma_subsampling_y** | 1 | bslbf | +|   **chroma_sample_position** | 2 | uimsbf | +|   **hdr_wcg_idc** | 2 | uimsbf | +|   **reserved_zeros** | 1 | bslbf | +|   **initial_presentation_delay_present** | 1 | bslbf | +|   if (initial_presentation_delay_present) { | +|     **initial_presentation_delay_minus_one** | 4 | uimsbf | +|   } else { | | | +|     **reserved_zeros** | 4 | uimsbf | +|   } | | | | } | | | ### Semantics @@ -178,16 +178,18 @@

Identifying AV1 streams in MPEG-2 TS

| Syntax | No. Of bits | Mnemonic | |:------------------------------------------------------------------|:-----------:|:----------:| | ts_open_bitstream_unit(NumBytesInTsObu) { | | | -| obu_start_code /* equal to 0x01 */ | **24** | **uimsbf** | -| NumBytesInObu = 0 | | | -| for( i = 2; i < NumBytesInTsObu; i++ ) { | | | -| if( i + 2 < NumBytesInTsObu && nextbits(24) == 0x000003 ) { | | | -| open_bitstream_unit[NumBytesInObu++] | **8** | **uimsbf** | -| open_bitstream_unit[NumBytesInObu++] | **8** | **uimsbf** | -| i += 2 | | | -| emulation_prevention_three_byte /* equal to 0x03 */ | **8** | **uimsbf** | -| } else | | | -| open_bitstream_unit[NumBytesInObu++] | **8** | **uimsbf** | +|   obu_start_code /* equal to 0x01 */ | **24** | **uimsbf** | +|   NumBytesInObu = 0 | | | +|   for( i = 2; i < NumBytesInTsObu; i++ ) { | | | +|     if( i + 2 < NumBytesInTsObu && nextbits(24) == 0x000003 ) { | | | +|       open_bitstream_unit[NumBytesInObu++] | **8** | **uimsbf** | +|       open_bitstream_unit[NumBytesInObu++] | **8** | **uimsbf** | +|       i += 2 | | | +|       emulation_prevention_three_byte /* equal to 0x03 */ | **8** | **uimsbf** | +|     } else { | | | +|       open_bitstream_unit[NumBytesInObu++] | **8** | **uimsbf** | +|     } | | | +|   } | | | | } | | | **obu_start_code** - This value shall be set to 0x000001.