|
27 | 27 | <let name="md_compat" value="$cod[4]"/> |
28 | 28 |
|
29 | 29 | <!-- TS 103190-1, F.1.2.1 --> |
30 | | - <report test="$bs_ver = '00' and @mimeType != ('audio/mp4','video/mp4')">The value of the mimeType attribute shall be set to 'audio/mp4' or 'video/mp4'.</report> |
| 30 | + <assert test="$bs_ver != '00' or @mimeType != ('audio/mp4','video/mp4')">The value of the mimeType attribute shall be set to 'audio/mp4' or 'video/mp4'.</assert> |
31 | 31 | <!-- TS 103190-2, G.2.6 --> |
32 | | - <report test="matches($codecs, 'ac-4\.(01|02)','i') and not(@audioSamplingRate)">@audioSamplingRate shall be set to the sampling frequency derived from the parameters fs_index and |
33 | | - dsi_sf_multiplier, contained in ac4_dsi_v1.</report> |
| 32 | + <assert test="not(matches($codecs, 'ac-4\.(01|02)','i')) or @audioSamplingRate">@audioSamplingRate shall be set to the sampling frequency derived from the parameters fs_index and |
| 33 | + dsi_sf_multiplier, contained in ac4_dsi_v1.</assert> |
34 | 34 | <!-- TS 103190-2, G.2.7 --> |
35 | | - <report test="$bs_ver = ('01','02') and @mimeType != 'audio/mp4'">The value of the mimeType attribute shall be set to 'audio/mp4'.</report> |
| 35 | + <assert test="$bs_ver != ('01','02') or @mimeType = 'audio/mp4'">The value of the mimeType attribute shall be set to 'audio/mp4'.</assert> |
36 | 36 | <!-- TS 103190-2, G.2.8 --> |
37 | | - <report test="$bs_ver = ('01','02') and @startWithSAP != '1'">The @startWithSAP value shall be set to '1'.</report> |
| 37 | + <assert test="$bs_ver != ('01','02') or @startWithSAP = '1'">The @startWithSAP value shall be set to '1'.</assert> |
38 | 38 | </rule> |
39 | 39 | </pattern> |
40 | 40 |
|
|
50 | 50 | <title>Role element for AC-4</title> |
51 | 51 | <rule context="dash:Role[matches(dlb:getNearestCodecString(.), 'ac-4\.00')]"> |
52 | 52 | <!-- TS 103 190-1 F.1.3.1 --> |
53 | | - <report test="@schemeIdUri = 'urn:mpeg:dash:role:2011' and |
54 | | - not(@value = ('main','alternate','commentary','dub'))">The value of Role (role) shall be main, alternate, commentary.</report> |
| 53 | + <assert test="@schemeIdUri != 'urn:mpeg:dash:role:2011' or |
| 54 | + @value = ('main','alternate','commentary','dub')">The value of Role (role) shall be main, alternate, commentary.</assert> |
55 | 55 | </rule> |
56 | 56 | </pattern> |
57 | 57 |
|
|
70 | 70 |
|
71 | 71 | <!-- AC-4 Representations should contain or inherit exactly one AudioChannelConfiguration descriptor --> |
72 | 72 | <!-- TS 103 190-1, F.1.2.3 --> |
73 | | - <report test="count(ancestor::*/dash:AudioChannelConfiguration[@schemeIdUri = ($NSDLB_acc2014,$NSMPEG_acc)]) > 1" role="warn"> |
| 73 | + <assert test="count(ancestor::*/dash:AudioChannelConfiguration[@schemeIdUri = ($NSDLB_acc2014,$NSMPEG_acc)]) <= 1" role="warn"> |
74 | 74 | <xsl:text>It is recommended to use exactly one AudioChannelConfiguration element with a schemeIdURI of </xsl:text> |
75 | 75 | <value-of select="$NSDLB_acc2014"/> or <value-of select="$NSMPEG_acc"/> |
76 | | - </report> |
| 76 | + </assert> |
77 | 77 |
|
78 | 78 | <!-- TS 103 190-1, F.1.4.1 --> |
79 | 79 | <assert test="matches(@value,'^[0-9a-fA-F]{4}$')">The value element shall contain a four-digit hexadecimal representation of the 16-bit field which describes |
80 | 80 | the channel assignment of the referenced AC-4 elementary stream</assert> |
81 | 81 | <let name="val6" value="concat('00',@value)"/> |
82 | 82 | <let name="x" value="dlb:dlb2mpg($val6)"/> |
83 | | - <report test="$x != 0">Use <<name/> schemeIdUri="<value-of select="$NSMPEG_acc"/>" value="<value-of select="$x"/>"/></report> |
| 83 | + <assert test="$x = 0">Use <<name/> schemeIdUri="<value-of select="$NSMPEG_acc"/>" value="<value-of select="$x"/>"/></assert> |
84 | 84 | </rule> |
85 | 85 | </pattern> |
86 | 86 |
|
|
90 | 90 | <!-- check that only specified schemeIdUris are used --> |
91 | 91 | <!-- TS 103 190-2, G.2.5 --> |
92 | 92 | <rule context="dash:AudioChannelConfiguration[matches(dlb:getNearestCodecString(.),'ac-4\.(01|02)')][not(@schemeIdUri = ($NSDLB_acc2015,$NSMPEG_acc))]"> |
93 | | - <report test="true()" role="warn"> |
| 93 | + <assert test="false()" role="warn"> |
94 | 94 | Unspecified schemeIdUri in AudioChannelConfiguration element |
95 | | - </report> |
| 95 | + </assert> |
96 | 96 | </rule> |
97 | 97 |
|
98 | 98 | <rule context="dash:AudioChannelConfiguration[matches(dlb:getNearestCodecString(.),'ac-4\.(01|02)')][@schemeIdUri eq $NSDLB_acc2015]"> |
99 | 99 | <!-- TS 103 190-2, G.2.5 --> |
100 | 100 | <!-- AC-4 Representations should contain or inherit exactly one AudioChannelConfiguration descriptor --> |
101 | | - <report test="count(ancestor::*/dash:AudioChannelConfiguration[@schemeIdUri = ($NSDLB_acc2015,$NSMPEG_acc)]) > 1" role="warn"> |
| 101 | + <assert test="count(ancestor::*/dash:AudioChannelConfiguration[@schemeIdUri = ($NSDLB_acc2015,$NSMPEG_acc)]) <= 1" role="warn"> |
102 | 102 | <xsl:text>It is recommended to use exactly one AudioChannelConfiguration element with a schemeIdURI of </xsl:text> |
103 | 103 | <xsl:text></xsl:text> |
104 | 104 | <value-of select="$NSDLB_acc2015"/> or <value-of select="$NSMPEG_acc"/> |
105 | | - </report> |
| 105 | + </assert> |
106 | 106 |
|
107 | 107 | <!-- TS 103 190-2, G.3.1 --> |
108 | 108 | <!-- AudioChannelConfiguration descriptors with schemeIDUri tag:dolby.com,2014:dash:audio_channel_configuration:2011 shall be of certain format --> |
|
111 | 111 |
|
112 | 112 | <!-- TS 103 190-2, G.2.5 --> |
113 | 113 | <let name="x" value="dlb:dlb2mpg(@value)"/> |
114 | | - <report test="$x != 0">For all AC-4 channel configurations that are mappable to the MPEG channel configuration scheme, the scheme described by |
115 | | - @schemeIdUri="urn:mpeg:mpegB:cicp:ChannelConfiguration" shall be used</report> |
| 114 | + <assert test="$x = 0">For all AC-4 channel configurations that are mappable to the MPEG channel configuration scheme, the scheme described by |
| 115 | + @schemeIdUri="urn:mpeg:mpegB:cicp:ChannelConfiguration" shall be used</assert> |
116 | 116 | </rule> |
117 | 117 |
|
118 | 118 | <rule context="dash:AudioChannelConfiguration[matches(dlb:getNearestCodecString(.),'ac-4\.(01|02)')][@schemeIdUri eq $NSMPEG_acc]"> |
119 | 119 | <!-- TS 103 190-2, G.2.5 --> |
120 | 120 | <!-- AC-4 Representations should contain or inherit exactly one AudioChannelConfiguration descriptor --> |
121 | | - <report test="count(ancestor::*/dash:AudioChannelConfiguration[@schemeIdUri = ($NSDLB_acc2015,$NSMPEG_acc)]) > 1" role="warn"> |
| 121 | + <assert test="count(ancestor::*/dash:AudioChannelConfiguration[@schemeIdUri = ($NSDLB_acc2015,$NSMPEG_acc)]) <= 1" role="warn"> |
122 | 122 | <xsl:text>It is recommended to use exactly one AudioChannelConfiguration element with a schemeIdURI of </xsl:text> |
123 | 123 | <xsl:text></xsl:text> |
124 | 124 | <value-of select="$NSDLB_acc2015"/> or <value-of select="$NSMPEG_acc"/> |
125 | | - </report> |
| 125 | + </assert> |
126 | 126 |
|
127 | 127 | <!-- TS 103 190-2, G.3.2 --> |
128 | 128 | <!-- AudioChannelConfiguration descriptors with schemeIDUri urn:mpeg:mpegB:cicp:ChannelConfiguration shall be of certain format --> |
|
0 commit comments