-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'int-issue-119-STLXML2EBU-TT_store_source_STL_file_upon_…
…request' into 'dev' STLXML2EBU-TT: add binary data tunnelling support Closes #119 See merge request zzhd/scf!111
- Loading branch information
Showing
11 changed files
with
561 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+3.61 KB
(100%)
modules/STLXML2EBU-TT/documentation/requirements_stlxml2ebutt.pdf
Binary file not shown.
36 changes: 36 additions & 0 deletions
36
modules/STLXML2EBU-TT/tests/schema/requirement-0447-001.sch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License | ||
at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" | ||
queryBinding="xslt" | ||
schemaVersion="ISO19757-3"> | ||
<ns uri="http://www.w3.org/ns/ttml" prefix="tt"/> | ||
<ns uri="urn:ebu:tt:metadata" prefix="ebuttm"/> | ||
<title>Testing storeSTLSourceFile Parameter without value</title> | ||
<pattern id="storeSTLSourceFile"> | ||
<rule context="/"> | ||
<assert test="tt:tt/tt:head/tt:metadata"> | ||
The tt:metadata element must be present. | ||
</assert> | ||
</rule> | ||
<rule context="tt:tt/tt:head/tt:metadata"> | ||
<assert test="not(ebuttm:binaryData)"> | ||
The ebuttm:binaryData element must not be present. | ||
</assert> | ||
</rule> | ||
</pattern> | ||
</schema> |
46 changes: 46 additions & 0 deletions
46
modules/STLXML2EBU-TT/tests/schema/requirement-0447-002.sch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License | ||
at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" | ||
queryBinding="xslt" | ||
schemaVersion="ISO19757-3"> | ||
<ns uri="http://www.w3.org/ns/ttml" prefix="tt"/> | ||
<ns uri="urn:ebu:tt:metadata" prefix="ebuttm"/> | ||
<title>Testing storeSTLSourceFile Parameter with value 1</title> | ||
<pattern id="storeSTLSourceFile"> | ||
<rule context="/"> | ||
<assert test="tt:tt/tt:head/tt:metadata/ebuttm:binaryData"> | ||
The ebuttm:binaryData element must be present. | ||
</assert> | ||
</rule> | ||
<rule context="tt:tt/tt:head/tt:metadata/ebuttm:binaryData"> | ||
<assert test="@textEncoding = 'BASE64'"> | ||
Expected value: BASE64. Value from test: <value-of select="@textEncoding"/> | ||
</assert> | ||
<assert test="@binaryDataType = 'EBU Tech 3264'"> | ||
Expected value: EBU Tech 3264. Value from test: <value-of select="@binaryDataType"/> | ||
</assert> | ||
<assert test="@fileName = 'input.stl'"> | ||
Expected value: input.stl. Value from test: <value-of select="@fileName"/> | ||
</assert> | ||
<let name="expected" value="'ODUwU1RMMjUuMDExMDAwOFNUTCBUZXN0IERhdGEgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZXNAaXJ0LmRlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAxNDA1MDIxNDA1MDIwMTAwMDA1MDAwMDMwMDE0MDIzMTAwMDAwMDAwMDAwMDAwMDAxMURFVUluc3RpdHV0IGZ1ZXIgUnVuZGZ1bmt0ZWNobmlrICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVEQSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAEBAP8AAAAAAAAAAwAUAgANCwtUZXN0OiB0cmFuc2Zvcm1hdGlvbiBwYXJhbSAtYgoKj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+PAQIA/wAAAAsAAAAPABYBACAgICAgICAgICAgDQsLRW5kIG9mIFRlc3QuCgogICAgICAgICAgICCPj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj48='"/> | ||
<assert test=". = $expected"> | ||
Expected value: "<value-of select="$expected"/>" Value from test: "<value-of select="."/>" | ||
</assert> | ||
</rule> | ||
</pattern> | ||
</schema> |
31 changes: 31 additions & 0 deletions
31
modules/STLXML2EBU-TT/tests/schema/requirement-0448-001.sch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License | ||
at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" | ||
queryBinding="xslt" | ||
schemaVersion="ISO19757-3"> | ||
<ns uri="http://www.w3.org/ns/ttml" prefix="tt"/> | ||
<ns uri="urn:ebu:tt:metadata" prefix="ebuttm"/> | ||
<title>Testing storeSTLSourceFileAtEnd Parameter without value</title> | ||
<pattern id="storeSTLSourceFileAtEnd"> | ||
<rule context="/"> | ||
<assert test="tt:tt/tt:head/tt:metadata/ebuttm:binaryData"> | ||
The ebuttm:binaryData element must be present. | ||
</assert> | ||
</rule> | ||
</pattern> | ||
</schema> |
31 changes: 31 additions & 0 deletions
31
modules/STLXML2EBU-TT/tests/schema/requirement-0448-002.sch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License | ||
at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<schema xmlns="http://purl.oclc.org/dsdl/schematron" | ||
queryBinding="xslt" | ||
schemaVersion="ISO19757-3"> | ||
<ns uri="http://www.w3.org/ns/ttml" prefix="tt"/> | ||
<ns uri="urn:ebu:tt:metadata" prefix="ebuttm"/> | ||
<title>Testing storeSTLSourceFileAtEnd Parameter with value 1</title> | ||
<pattern id="storeSTLSourceFileAtEnd"> | ||
<rule context="/"> | ||
<assert test="tt:tt/tt:body/tt:div[last()]/tt:metadata/ebuttm:binaryData"> | ||
The ebuttm:binaryData element must be present. | ||
</assert> | ||
</rule> | ||
</pattern> | ||
</schema> |
86 changes: 86 additions & 0 deletions
86
modules/STLXML2EBU-TT/tests/test_files/requirement-0447-001.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright 2014 Institut für Rundfunktechnik GmbH, Munich, Germany | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License | ||
at http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, the subject work | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--> | ||
<!-- Testing storeSTLSourceFile Parameter without value --> | ||
<StlXml> | ||
<HEAD> | ||
<GSI> | ||
<CPN>850</CPN> | ||
<DFC>STL25.01</DFC> | ||
<DSC>1</DSC> | ||
<CCT>00</CCT> | ||
<LC>09</LC> | ||
<OPT/> | ||
<OET/> | ||
<TPT/> | ||
<TET/> | ||
<TN/> | ||
<TCD/> | ||
<SLR>String length 16</SLR> | ||
<CD>991231</CD> | ||
<RD>991231</RD> | ||
<RN>0</RN> | ||
<TNB>1</TNB> | ||
<TNS>1</TNS> | ||
<TNG>1</TNG> | ||
<MNC>40</MNC> | ||
<MNR>23</MNR> | ||
<TCS>1</TCS> | ||
<TCP>00000000</TCP> | ||
<TCF>00000000</TCF> | ||
<TND>1</TND> | ||
<DSN>1</DSN> | ||
<CO>GBR</CO> | ||
<PUB/> | ||
<EN/> | ||
<ECD/> | ||
</GSI> | ||
</HEAD> | ||
<BODY> | ||
<TTICONTAINER> | ||
<TTI> | ||
<SGN>1</SGN> | ||
<SN>1</SN> | ||
<EBN>FF</EBN> | ||
<CS>00</CS> | ||
<TCI>00000000</TCI> | ||
<TCO>00000200</TCO> | ||
<VP>1</VP> | ||
<JC>02</JC> | ||
<CF>00</CF> | ||
<TF> | ||
<StartBox/> | ||
<space/> | ||
<space/> | ||
<space/> | ||
<space/> | ||
<space/>Test<space/>Subtitle<space/> | ||
<space/> | ||
<space/> | ||
<space/> | ||
<space/> | ||
<space/> | ||
<EndBox/> | ||
</TF> | ||
</TTI> | ||
</TTICONTAINER> | ||
</BODY> | ||
<StlSource> | ||
<Filename>input.stl</Filename> | ||
<Data>ODUwU1RMMjUuMDExMDAwOFNUTCBUZXN0IERhdGEgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdWJ0aXRsZXNAaXJ0LmRlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAxNDA1MDIxNDA1MDIwMTAwMDA1MDAwMDMwMDE0MDIzMTAwMDAwMDAwMDAwMDAwMDAxMURFVUluc3RpdHV0IGZ1ZXIgUnVuZGZ1bmt0ZWNobmlrICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFVEQSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAEBAP8AAAAAAAAAAwAUAgANCwtUZXN0OiB0cmFuc2Zvcm1hdGlvbiBwYXJhbSAtYgoKj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+PAQIA/wAAAAsAAAAPABYBACAgICAgICAgICAgDQsLRW5kIG9mIFRlc3QuCgogICAgICAgICAgICCPj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj4+Pj48=</Data> | ||
</StlSource> | ||
</StlXml> |
Oops, something went wrong.