1、Information technology Coding of audio-visual objects Part 5: Reference software AMENDMENT 29: Reference software for LASeR presentation and modification of structured information (PMSI) tools Amendment 29:2013 (IDT) toNational Standard of CanadaCAN/CSA-ISO/IEC 14496-5-06(ISO/IEC 14496-5:2001, IDT)N
2、OT FOR RESALE. / PUBLICATION NON DESTINE LA REVENTE.Standards Update ServiceAmendment 29:2013 toCAN/CSA-ISO/IEC 14496-5-06January 2013Title:Information technology Coding of audio-visual objects Part 5: Reference software AMENDMENT 29: Reference software for LASeR presentation and modification of str
3、uctured information (PMSI) toolsPagination:22 pages (iii preliminary and 19 text)To register for e-mail notification about any updates to this publicationgo to shop.csa.caclick on CSA Update ServiceThe List ID that you will need to register for updates to this publication is 2422250.If you require a
4、ssistance, please e-mail techsupportcsagroup.org or call 416-747-2233.Visit CSA Groups policy on privacy at csagroup.org/legal to find out how we protect your personal information.Reference numberISO/IEC 14496-5:2001/Amd.29:2011(E)ISO/IEC 2011INTERNATIONAL STANDARD ISO/IEC14496-5Second edition2001-1
5、2-15AMENDMENT 292011-11-01Information technology Coding of audio-visual objects Part 5: Reference software AMENDMENT 29: Reference software for LASeR presentation and modification of structured information (PMSI) tools Technologies de linformation Codage des objets audiovisuels Partie 5: Logiciel de
6、 rfrence AMENDEMENT 29: Logiciel de rfrence pour la prsentation LASeR et la modification des outils dinformation structure (PMSI) ISO/IEC 14496-5:2001/Amd.29:2011(E) COPYRIGHT PROTECTED DOCUMENT ISO/IEC 2011 All rights reserved. Unless otherwise specified, no part of this publication may be reproduc
7、ed or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or ISOs member body in the country of the requester. ISO copyright office Case postale 56 CH-1211 Geneva 20 Tel. + 41 22 749
8、01 11 Fax + 41 22 749 09 47 E-mail copyrightiso.org Web www.iso.org ii ISO/IEC 2011 All rights reservedAmendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved iiiForeword ISO (the International Organization for Standardization) and IEC (the
9、 International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particu
10、lar fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have establi
11、shed a joint technical committee, ISO/IEC JTC 1. International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2. The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technica
12、l committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote. Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and I
13、EC shall not be held responsible for identifying any or all such patent rights. Amendment 29 to ISO/IEC 14496-5:2001 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 29, Coding of audio, picture, multimedia and hypermedia information. This Amendment in
14、troduces Reference Software for LASeR PMSI Tools. This Amendment deals with the reference software of ISO/IEC 14496-20:2008/Amd.3. Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 1Infor
15、mation technology Coding of audio-visual objects Part 5: Reference software AMENDMENT 29: Reference software for LASeR presentation and modification of structured information (PMSI) tools At the end of Clause 5, add the following line: Systems/LASeR_RS_v3/src LASeR and SAF decoder for Presentation a
16、nd Modification of Structured Information At the end of B.3, add the following line: Systems/LASeR_RS_v3/M3RP LASeR and SAF renderer for Presentation and Modification of Change Annex F to Annex G. Change Annex G to Annex H. Add the following new Annex F before Annex G: Amendment 29:2013 to CAN/CSA-I
17、SO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 2 ISO/IEC 2011 All rights reservedAnnex (informative) Guidance of reference software for LASeR presentation and modification of structured information tools F.1 Introduction This is the description of the reference software for ISO/IEC 14496-20:20
18、09/Amd.3 (LASeR PMSI: Presentation and Modification of Structured Information). The LASeR AMD3 Reference software is attached to this Part of ISO/IEC 14496. The reference software consists of the following tools: LASeR decoder, which is to generate LASeR XML files from LASeR binary stream. LASeR fil
19、e parser, which is to manage the scene tree and events from LASeR XML files. LASeR renderer, which is to render and play a LASeR scene. The structure of LASeR PMSI reference software is as follows. Figure F.1 Structure of LASeR PMSI Reference Software The LASeR player is linked with two static libra
20、ries such as libLASeR and libbintoxml, and the other dynamic ones such as LASeRDecoder, XML2SceneTree, SceneTreeParser and Render as shown in Figure F.1. By using these libraries, the LASeR player produces SceneTree from different file types such as xml, lsr files, and then, converts the SceneTree i
21、nto a LASeR SceneTree. Finally, the player renders the scene according to the LASeR SceneTree. F.2 Reference Software The PMSI mechanism provides two distinctive functionalities for Structured Information (SI): presentation and modification. Therefore, the LASeR PMSI Reference Software can access SI
22、 from PI (Presentation Information) by two functionalities as follows: READ: Accessing SI from PI to reuse what is already defined in SI. WRITE: Updating SI from PI to reflect what happens in the scene. Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 A
23、ll rights reserved 3Also, the elements provided by the LASeR PMSI Reference Software are as follows: mpeg-pmsi() scheme: Pointing scheme using XPath-based addressing. SVG tref element: Referencing the textual content LASeR externalReference element: Updating enclosed elements and attributes periodic
24、ally. LASeR externalUpdate element: Modifying defined structured information. LASeR xmlUpdate event: Informing the update of structured information F.3 Description of how to compile and run the LASeR PMSI Reference Software F.3.1 How to build the code This program has been developed using Microsofts
25、 Visual studio 2008 under Windows XP or above OS. To build the program, 1) Unzip a LASeR_RS_v3.zip file. 2) Double-click on a M3R.sin file in the build VC9 folder 3) Right button click on the LASeRPlayer in the solution explorer 4) Choose the Set as Start Up menu 5) Click on the solution build menu
26、(F7) 6) Copy the files (libcairo-2.dll, libpng12-0.dll, zlib1.dll) in the dll folder 7) Paste the files (libcairo-2.dll, libpng12-0.dll, zlib1.dll) in the bin w32rel folder 8) Copy the files (libDeSAF.dll, libMP4.dll) in the dll VC9 folder Paste the files (libDeSAF.dll, libMP4.dll) in the bin w32rel
27、 folder F.3.2 How to run the code To run the program, 1) Double-click on the LASeRPlayer.exe 2) Choose the File menu 3) Click on the xml content (.xml) or the binary stream content (.lsr) Figure F.2 shows the graphic user interface of LASeR PMSI Reference Software. Figure F.2 GUI of LASeR PMSI Refer
28、ence Software Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 4 ISO/IEC 2011 All rights reservedF.4 Demonstration F.4.1 externalReference.lsr Figure F.3 shows an example for referencing mechanism using LASeR externalReference element. It presents the local or remot
29、e metadata separately from the scene description in a scene. LASeRML Metadata test_DI.xml Figure F.3 An Example of the LASeR externalReference element Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 5F.4.2 externalUpdate.lsr Figure
30、F.4 shows the modification of the local or remote metadata using LASeR externalUpdate element. If the 1 or 2 keys are pressed, the referenced structured information will be changed to new one assigned to each key press action. If the 3 key is pressed, the referenced structured information will be re
31、moved. LASeR ML (a) LASeRML Metadata - The 1 key is pressed. Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 6 ISO/IEC 2011 All rights reserved(b) An example when the 1 key is pressed Metadata - The 2 key is pressed. Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06I
32、SO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 7(c) An example when the 2 key is pressed Metadata - The 3 key is pressed. Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 8 ISO/IEC 2011 All rights reserved(d) An example when the 3 key is pressed
33、 Figure F.4 An Example of the LASeR externalUpdate element F.4.3 safRSH_image.lsr, safRSH_video.lsr Figure F.5 shows the image or video rendering using the referenced metadata information. LASeR ML Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All ri
34、ghts reserved 9Metadata (a) Image rendering using PMSI LASeR ML Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 10 ISO/IEC 2011 All rights reservedMetadata (b) Video rendering using PMSI Figure F.5 An Example of the pmsi scheme F.4.4 xmlUpdate.lsr Figure F.6 shows
35、the demonstration for the LASeR xmlUpdate event. When the referenced metadata information is changed, the client updates the scene information. LASeR ML (a) LASeRML Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 11Metadata (b) Orgi
36、nal metadata (c) Changed metadata (d) Results when metadata is changed Figure F.6 An Example of the xmlUpdate event Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 12 ISO/IEC 2011 All rights reservedF.4.5 epg.lsr Figure F.7 shows an electronic program guide example
37、 using LASeR PMSI as a scene description and T-DMB metadata as structured information. 1) Click the myTV button for EPG serivces as shown in Figure F.7(c). 2) Select the program that you want in the EPG menu. The detailed information will be displayed as shown in Figure F.7(d). 3) If you click the p
38、lay button, the video will be started as shown in Figure F.7(e). LASeR ML (a) LASeRML Metadata (b) Metadata Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 13(c) Initial screen (d) EPG using LASeR PMSI Amendment 29:2013 to CAN/CSA-I
39、SO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 14 ISO/IEC 2011 All rights reserved(e) Video rendering Figure F.7 An Example of the electronic service guide using LASeR PMSI F.4.6 ETRI_book.lsr Figure F.8 shows an electronic book serivce example using LASeR PMSI. If you press the specific key,
40、the related page can be offered as shown in Figure F.8 (c)-(e). LASeR ML (a) LASeRML Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 15Metadata (b) Metadata Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:
41、2011(E) 16 ISO/IEC 2011 All rights reserved(c) 1 4 keys: page scroll (d) 5 key: start rendering the video, 6 key: end rendering the video Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 17(e) 0 key: return to cover page Figure F.8 A
42、n Example of the electronic book service using LASeR PMSI F.5 The source code repository Table F.1 Directory description of the source code repository Directory Name Description buildVC9 project (.vcproj) files that include the projects necessary for building the applications and solution file (.sln
43、) dll necessary dll files include necessary header files lib necessary object file libraries M3RP code for the renderer M3RPLASeR code for the renderer with LASeR elements sample informative sample conformance files srclibbintoxml code for the decoder srclibLASeR code for the parser srcSceneTreePars
44、er code to parse a scene tree srcXML2SceneTree code to make a scene tree Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) 18 ISO/IEC 2011 All rights reservedF.5.1 libbintoxml Table F.2 Class description of libbintoxml Class Name Description CA CAnimate class to stor
45、e SVG and LASeR elements from the binary stream CBIN2XMLManager class to convert a binary stream file into a XML file CBitReader class to read a bit or byte value CU CDNewscene class to store each command from the binary stream CDecoder CPreDecoder class to prepare each element for decoding CIDManag
46、er CManager class to manage the attribute for color, font, namespace, tag, and ID CSAF_AU_Header CSAFHeader class to store a SAF header information from the binary stream CScene class to start decoding for scene CSDLClasses class of functions for a decoder CURI class to store the URI value informati
47、on CX CXpropElem class to store basic attributes from the binary stream Amendment 29:2013 to CAN/CSA-ISO/IEC 14496-5-06ISO/IEC 14496-5:2001/Amd.29:2011(E) ISO/IEC 2011 All rights reserved 19F.5.2 libLASeR Table F.3 Class description of libLASeR Class Name Description CSVGObject CSVGProperties class
48、to store SVG base properties in a scene tree CActivate CAdd class to store LASeR commands in a scene tree CSVGA CLSRConditional class to store SVG and LASeR elements in a scene tree CLASeRHeader class to store a LASeR Header CESHeader CSAFUnit class to store SAF elements for processing SAF configura
49、tions CLASeR a base LASeR class for all derived classes CSAF a base SAF class for all derived classes F.5.3 SceneTreeParser Table F.4 Class description of SceneTreeParser Class Name Description CSceneTreeManager class to manage a scene tree and provide convenient functions for processing LASeR commands F.5.4 XML2SceneTree Table F.5 Class des