Upload
lamnhan
View
242
Download
0
Embed Size (px)
Citation preview
ABNT 2007
BRAZILIAN STANDARD
ABNT NBR15606-1
First edition 2007.11.30
Valid from 2007.12.01
Digital terrestrial television Data coding and transmission specification for digital broadcasting Part 1: Data coding specification
Descriptors: Digital terrestrial television. Digital broadcasting. Data coding. ICS 33.160.01 ISBN 978-85-07-00614-5
Reference number
ABNT NBR 15606-1:200724 pages
ABNT NBR 15606-1:2007
ii ABNT 2007 All rights reserved
ABNT office All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from either ABNT. ABNT office Av.Treze de Maio, 13 - 28 andar 20031-901 - Rio de Janeiro - RJ Tel.: + 55 21 3974-2300 Fax: + 55 21 2220-1762 [email protected] www.abnt.org.br Published in Brazil
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved iii
Contents Pages
Foreword......................................................................................................................................................................v 1 Scope ..............................................................................................................................................................1 2 Normative references....................................................................................................................................1 3 Terms and definitions ...................................................................................................................................2 4 Abbreviations.................................................................................................................................................3 5 Basic architecture..........................................................................................................................................3 5.1 System architecture ......................................................................................................................................3 5.1.1 Reference model............................................................................................................................................3 5.1.2 Interface specification...................................................................................................................................4 5.2 Middleware architecture................................................................................................................................5 5.2.1 Application environment structure..............................................................................................................5 5.2.2 Application environment description..........................................................................................................5 6 Protocol ..........................................................................................................................................................6 6.1 Protocol stack ................................................................................................................................................6 6.2 Data transmission modes.............................................................................................................................6 7 Receiver..........................................................................................................................................................7 7.1 Reference model for receiver .......................................................................................................................7 7.2 Receiving and storing function ...................................................................................................................7 7.2.1 Data storage ...................................................................................................................................................7 7.2.2 Data and video storage .................................................................................................................................7 7.3 Presentation function....................................................................................................................................7 7.4 Decoding process and display.....................................................................................................................7 7.5 Plug-in.............................................................................................................................................................8 8 Presentation process ....................................................................................................................................9 8.1 Logical coordinate.........................................................................................................................................9 8.1.1 Logical coordinate and display coordinate in square pixel format..........................................................9 8.1.2 Logical coordinate and display coordinate in non-square pixel format..................................................9 8.2 Colorimetry.....................................................................................................................................................9 8.3 Composition between planes.......................................................................................................................9 9 Profiles specification...................................................................................................................................10 10 Requirements for data broadcasting and available services..................................................................14 10.1 Requirements of data broadcasting for digital broadcasting system ...................................................14 10.2 Data service for digital broadcasting ........................................................................................................17 11 Monomedia...................................................................................................................................................19 11.1 Video coding ................................................................................................................................................19 11.1.1 MPEG-1 video...............................................................................................................................................19 11.1.2 MPEG-2 video...............................................................................................................................................19 11.1.3 MPEG-4 video...............................................................................................................................................19 11.1.4 H.264|MPEG-4 AVC......................................................................................................................................19 11.2 Still pictures and graphics coding.............................................................................................................19 11.2.1 I-frames.........................................................................................................................................................19 11.2.2 JPEG .............................................................................................................................................................20 11.2.3 PNG ...............................................................................................................................................................20 11.2.4 MNG...............................................................................................................................................................20 11.2.5 MPEG-2 video drips .................................................................................................................................20 11.2.6 GIF .................................................................................................................................................................20 11.2.7 MPEG-4 video clips .....................................................................................................................................20 11.2.8 H.264|MPEG-4 AVC clips.............................................................................................................................20
ABNT NBR 15606-1:2007
iv ABNT 2007 All rights reserved
11.3 Audio coding................................................................................................................................................20 11.3.1 MPEG-2 audio ..............................................................................................................................................20 11.3.2 PCM (AIFF) ...................................................................................................................................................20 11.3.3 MPEG-4 audio ..............................................................................................................................................20 11.3.4 Coding of synthesized sound ....................................................................................................................21 11.3.5 Monomedia format for audio clips (GEM) .................................................................................................21 11.3.6 MPEG-1 audio layer 3 (MP3) .......................................................................................................................21 11.3.7 Audio AC3 ....................................................................................................................................................21 11.4 Character coding .........................................................................................................................................21 11.4.1 8 bits character coding ...............................................................................................................................21 11.4.2 Universal multi-octet coded character set (UCS).....................................................................................23 11.4.3 Shift-JIS coding ...........................................................................................................................................24 11.4.4 EUC-JP..........................................................................................................................................................24 11.5 Geometric description of commands coding ...........................................................................................24 11.6 Subtitles and superimposed characters ...................................................................................................24
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved v
Foreword
Associao Brasileira de Normas Tcnicas (ABNT) is the Brazilian Standardization Forum. Brazilian Standards, which content is responsability of the Brazilian Committees (Comits Brasileiros ABNT/CB), Sectorial Standardization Bodies (Organismos de Normalizao Setorial ABNT/ONS) and Special Studies Committees (Comisses de Estudo Especiais ABNT/CEE), are prepared by Study Committees (Comisses de Estudo CE), made up of representants from the sectors involved including: producers, consumers and neutral entities (universities, laboratories and others).
Brazilian Standards are drafted in accordance with the rules given in the ABNT Directives (Diretivas), Part 2.
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ABNT shall not be held responsible for identifying any or all such patent rights.
ABNT NBR 15606-1 was prepared within the purview of the Special Studies Committees of Digital Television (ABNT/CEE-00:001.85). The Draft Standard was circulated for National Consultation in accordance with ABNT Notice (Edital) n 09, from September 06, 2007 to November 05, 2007, with the number Draft 00:001.85-006/1.
Should any doubts arise regarding the interpretation of the English version, the provisions in the original text in Portuguese shall prevail at all time.
This standard is based on the work of the Brazilian Digital Television Forum as established by the Presidential Decree number 5.820 of June, 29th 2006.
ABNT NBR 15606 consists of the following parts, under the general title Digital terrestrial television Data coding and transmission specifications for digital broadcasting:
Part 1: Data coding specification;
Part 2: Ginga-NCL for fixed and mobile receivers XML application language for application coding;
Part 3: Data transmission specification;
Part 4: Ginga-J The environment for the execution of procedural applications;
Part 5: Ginga-NCL for portable receivers XML application language for application coding.
This Standard is the English version of the corrected version dated 2008.04.07 of ABNT NBR 15606-1:2007.
BRAZILIAN STANDARD ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 1
Digital terrestrial television Data coding and transmission specification for digital broadcasting Part 1: Data coding specification
1 Scope
This part of ABNT NBR 15606 specifies the reference model enabling data broadcasting, which is part of the digital broadcasting system specified as Brazilian system digital television (SBTVD), besides the monomedia supported by the data broadcasting system and code of caption e superimpose characters.
2 Normative references
The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.
ABNT NBR 15602-1:2007, Digital terrestrial television Video coding, audio coding and multiplexing Part 1: Video coding
ABNT NBR 15602-2, Digital terrestrial television Video coding, audio coding and multiplexing Part 2: Audio coding
ABNT NBR 15606-2, Digital terrestrial television Data coding and transmission specification for digital broadcasting Part 2: Ginga-NCL for fixed and mobile receivers XML application language for application coding
ABNT NBR 15606-3, Digital terrestrial television Data coding and transmission specification for digital broadcasting Part 3: Data transmission specification
ISO/IEC 8859-15, Information technology 8-bit single-byte coded graphic character sets Part 15: Latin alphabet No. 9
ISO/IEC 10646-1, Universal multiple-octet coded character set (UCS) Part 1: Architecture and basic multilingual plane (BMP)
ISO/IEC 10918-1, Information technology Digital compression and coding of continuous Tone still images: Requirements and guidelines
ISO/IEC 11172-2, Information technology Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s - Part 2: Video
ISO/IEC 11172-3, Information technology Coding of moving pictures and associated audio for digital storage media at up to about 1,5 Mbit/s Part 3: Audio
ISO/IEC 13818-1, Information technology Generic coding of moving pictures and associated audio information: Systems
ISO/IEC 13818-2, Information technology Generic coding of moving pictures and associated audio information Part 2: Video
ABNT NBR 15606-1:2007
2 ABNT 2007 All rights reserved
ISO/IEC 13818-3, Information technology Generic coding of moving pictures and associated audio information Part 3: Audio
ISO/IEC 13818-7, Information technology Generic coding of moving pictures and associated audio information Part 7: Advanced Audio Coding (AAC)
ISO/IEC 14496-2, Information technology Coding of audio-visual objects Part 2: Visual
ISO/IEC 14496-3, Information technology Coding of audio-visual objects - Part 3: Audio
ISO/IEC 14496-10, Information technology Coding of audio-visual objects Part 10: Advanced video coding
ITU Recommendation BT.470-7, Conventional television systems
ITU Recommendation BT.709, Parameter values for the HDTV standards for production and internacional programmer exchange
ITU Recommendation J.200:2001, Worldwide common core Application environment for digital interactive television services
ITU Recommendation H.222.0, Information technology Generic coding of moving pictures and associated audio information: Systems
ITU Recommendation H.262, Information technology Generic coding of moving pictures and associated audio information: Systems
ITU Recommendation H.264, Advanced video coding for generic audiovisual services
ARIB STD-B24:2007, Data coding and transmission specifications for digital broadcasting
ARIB STD-B23:2004, Application execution engine platform for digital broadcasting
ARIB STD-B5, Standard television data multiplex broadcasting by transmission method using vertical blanking interval
ATSC A52B, Digital audio compression standard
MHP 1.0:2003, Multimedia home platform MHP specification 1.03
GEM 1.0:2005, Globally executable MHP
W3C Recommendation PNG:2003, Portable network graphics specification
W3C Recommendation GIF89a, Graphics interchance format (sm)
3 Terms and definitions
For the purposes of this part of ABNT NBR 15606, the following terms and definitions apply.
3.1 monomedia individual media font to presentation
EXAMPLE Video, audio, text, image, etc.
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 3
3.2 stream type of continuous communications that values time factor
3.3 transport stream TS communication protocol for audio, video and data broadcasting
4 Abbreviations
For the purposes of this part of ABNT NBR 15606, the following abbreviations apply.
AAC Advanced Audio Coding
AIFF Audio Interchange File Format
CATV Cable Television
DSM-CC Digital Storage Media Command and Control
EPG Eletronic Program Guide
GEM Globally Executable MHP
GIF Graphics Interchange Format
HDTV High Definition Television
JPEG Joint Picture coding Experts Group
MHP Multimedia Home Platform
MNG Multiple-image Network Graphics
MPEG Moving Picture Expert Group
PCM Pulse Code Modulation
PES Packetized Elementary Stream
PNG Portable Network Graphics
SBTVD Brazilian system digital television
UCS Universal multi-octet coded Character Set
5 Basic architecture
5.1 System architecture
5.1.1 Reference model
In order to the viewer receive and present such services properly, some receivers' characteristics specification is also necessary.
NOTE This Standard shows the reference model for the data broadcasting system, which extend the model defined by ARIB STD-B24:2007, volume 1, part 1, clause 4, including applications coding and objects carrousel. The suitable presentation of a data service refers to the service presentation as planned by the diffusion service operator.
The system that implements data broadcasting service in digital broadcasting shall be according to Figure 1.
ABNT NBR 15606-1:2007
4 ABNT 2007 All rights reserved
Figure 1 System structure
5.1.2 Interface specification
Detailed specification shall be according to each interface:
monomedia coding: coding system for character string, bit map etc., that shall be used in multimedia coding according to 11.1,11.2 e 11.3;
coding of subtitle and superimpose: coding system of subtitle and superimpose on bitmap according to 11.6;
multimedia coding: coding system of XML adopted as multimedia coding system and its profile according to ABNT NBR 15606-2;
content transmission format: content transmission format of objects and data carousel transmission method according to ABNT NBR 15606-3;
subtitle and superimpose transmission format: independent PES transmission format to transmit subtitles and superimpose according to 11.6;
applications coding: coding system of Java adopted as applications coding system and its profile, in accordance with the procedural environment.
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 5
5.2 Middleware architecture
5.2.1 Application environment structure
Middleware architecture for interactive television of SBTVD shall be according to ITU Recommendation J.200:2001, subclause 4.1, and it can be basically represented by two important components: execution engine and presentation engine. Such components can not be independent being necessary to establish proper bridges between the engines. Additionally to these basic components, native applications, or other specific and content software may exist.
The applications environment structure shall be according to Figure 2.
Figure 2 Application environment structure
5.2.2 Application environment description
Applications environment shall be composed by the following architectural elements:
presentation and execution engine according to ABNT NBR 15606-2 and procedural environment respectively;
bridge: applications mechanism which allows bidirectional mapping among the API Java and DOM, ECMAScript and LUAScript objects and methods according to ABNT NBR 15606-2 and procedural environment;
application life cycle monitor: application or resource of the operating system for control of the state of the software. Its function includes management of the entire application life cycle, including initialization, end and control. Applications life cycle monitor shall be according to procedural environment;
applications: may be written for presentation engine, execution engine, or both;
ABNT NBR 15606-1:2007
6 ABNT 2007 All rights reserved
other media: include media streams like audio and data or mono-media as still pictures and characters string (see 11.1, 11.2 and 11.3);
native software: includes legacy software or written software using additional API with functionalities.
NOTE Legacy software or software written using API with additional functionality are not specified in the standard.
6 Protocol
6.1 Protocol stack
In the digital broadcasting system, video, audio as well as all the data services shall be multiplexed in the TS specified by MPEG2 (see ITU Recommendation H.222.0 and ISO/IEC 13818-1) system, which shall be transmitted over a radio wave. Interaction channel shall be provided through independent network of this protocol stack.
The protocol stack used in digital broadcasting is in accordance with ARIB STD-B24:2007, volume 1, clause 5.
The system stack protocol stack shall be according to Figure 3.
Figure 3 System protocol stack
6.2 Data transmission modes
The data transmission supported by the data diffusion system shall be one of the following modes:
data transmission system through PES packet stream: this system shall be used for real time services. It shall be used with information that need time control, such as video, audio, subtitles and data synchronised with other streams, like the main video. This system shall be specified as data stream;
data transmission system using section: this system shall be used for stored services. The data shall be transmitted repeatedly until it is completed your download at the receiver side. This system shall be specified as data carousel (DC) and as object carousel (OC).
NOTE The system of data transmission using the transport stream packages is specified in ABNT NBR 15606-3.
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 7
7 Receiver
7.1 Reference model for receiverReference model for the receiver shall be in accordance with ARIB STD-B24:2007, volume 1, part 1, clause 6.
Some basic functions are specified to enable several multimedia services offer. The receivers shall have functions to receive, display, store and communicate with the data broadcasting service, in addition to keeping basic functions to view normal television programs.
7.2 Receiving and storing function
7.2.1 Data storage
The data storage consists in the reception and storing of data received by the data broadcasting system. This function shall be available in all the receivers.
7.2.2 Data and video storage
Both the video and data received by the receiver can be stored. The storage of video can be held in secondary devices such as disk or tape. And the data storage will be made in flash memory.
Video storage can also be made available by primary storage device such as flash memory, when some restriction is set to data broadcasting volume. During normal view, receiving and storing functions shall be performed in background mode. Video storing shall be optional in the receivers.
7.3 Presentation function
Presentation function shall ensure the multimedia services are reproduced according to the content producers specification, in all the receivers. The presentation function shall be designed based on the logical structure of television screen, which is composed of five planes: video plane, still picture plane, selection plane switching video/still picture, text and graphic plane and subtitle plane. This logical planes structure is in accordance with sub ARIB STD-B24:2007, volume 1, part 1, subclause 6.2. The planes structure for services presentation shall be in accordance with Figure 4.
Figure 4 Planes structure for services presentation
7.4 Decoding process and display
The model structure of decoding function in receiver is indicated in Figure 5, showing how data is processed.
ABNT NBR 15606-1:2007
8 ABNT 2007 All rights reserved
Figure 5 Model decoder in receiver showed with data processing flow
The decoding process in receiver can be divided in the following steps:
a) data broadcasting decoding process: mono-media such as character figure, still pictures, videos, audio, are transmitted in data stream or object and data carousel. These data are decoded and divided so that they are individually processed as coded mono-media;
b) mono-media decoding process: coded mono-media data is decoded by an appropriate decoder. Generally, video and audio are decoded by exclusive hardware decoder, but it may be optionally made by software for interactive applications use such as still picture, mpeg2-I frame;
c) execution and presentation process: mono-media shall be presented in video, still pictures, text and graphic and subtitles planes. In multimedia service control and transmitted applications is made as the specified in multimedia coding and application coding, respectively; and the subtitle and superimpose service control is made as specified in 11.6.
7.5 Plug-in
A plug-in is a functionality which may be added to a generic platform intended to extend the execution capacities of mono-media and multimedia application and format decoding which can not be required in the terminals for access.
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 9
8 Presentation process
8.1 Logical coordinate
8.1.1 Logical coordinate and display coordinate in square pixel format
8.1.1.1 Logical coordinate of video plane and still picture plane
The logical coordinate of video plane and still image plane shall be according to ARIB STD-B24:2007, volume 1, part 1, subclause 7.1.1.1.
8.1.1.2 Text and graphic plane
The text and graphic plane shall be in accordance with ARIB STD-B24:2007, volume 1, part 1, subclause 7.1.1.2.
8.1.1.3 Subtitle plane
The subtitle plane shall be in accordance with ARIB STD-B24 :2007, volume 1, part 1, subclause 7.1.1.3.
8.1.1.4 Video and still picture switching plane
The video and still picture plane shall be in accordance with ARIB STD-B24:2007, volume 1, part 1, subclause 7.1.1.4.
8.1.2 Logical coordinate and display coordinate in non-square pixel format
The logical coordinate and display coordinate in non-square pixel format shall be in accordance with ARIB STD-B24:2007, volume 1, part 1, subclause 7.1.2.
8.2 Colorimetry
The colorimetry shall be in accordance with ITU Recommendation BT.470-7, ITU Recommendation BT.709 and ABNT NBR 15602-1:2007, subclause 6.1.11.
8.3 Composition between planes
The composition between planes shall be in accordance with ARIB STD-B24:2007, volume 1, part 1, subclause 7.3.
The composition between planes function shall be according to Table 1.
Table 1 Composition control function between planes
Planes Specification range
Between video and still picture plane and another plane Switching in 2-pixel unit
Between text and graphic plane and other plane -blending in pixel unit 1/256 steps
Between subtitle plane and other plane -blending in pixel unit 1/256 steps
ABNT NBR 15606-1:2007
10 ABNT 2007 All rights reserved
9 Profiles specification
Products in accordance with profiles shall provide all the marked resources as mandatory in the corresponding column of Table 2. In some cases this implies that further hardware shall be added to the device.
Table 2 Profiles especification
Parameters for full-seg and one-seg receivers
Type of receptor
Area Features specified
Full-seg One-seg
Coments
Static Format (monomedias) PNG with restrictions Required Required PNG unrestricted Optional Optional GIF Optional Optional MPEG-2 "I - Frame" Optional Optional MPEG-4 "I VOP" Optional Optional H.264 / MPEG-4 AVC "I - Picture" Required Required JPEG with restrictions Required Required JPEG unrestricted Optional Optional MNG with restrictions Required Optional
Bitm
ap p
ictu
res
MNG unrestricted Optional Optional MPEG-2 audio AAC LC/BC Optional Optional PCM (AIFF-C) Optional Not applicable
MPEG-4 audio AAC-LC Required Required Encoding of synthesized sounds Optional Optional udio monomedia format-clips MPEG-1 udio (Layers 1 e 2) Required Required
MPEG-1 audio layer 3 (MP3) Optional Optional
Audio
Audio AC-3 Not applicable
Not applicable
MPEG-2 video drips Optional Optional MPEG-4 video clips Optional Optional Vdeo clips H.264 / MPEG-4 AVC clips Required Optional Codes character of 8 bits Required Optional Universal multi-octect coded character set
Required Optional
Codes character Shift-JIS Not applicable
Not applicable
Text
Cod
inbg
Monomedia - format for text Required Required Color Minimum number of colors Required Required 65 536 colors
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 11
Table 2 (continuation)
Parameters for full-seg and one-seg receivers
Type of receptor
Area Features specified
Full-seg One-seg
Coments
Media Streaming Format
Video Main program video Required Required
Audio Main program audio Required Required
Sub
title
Subtitles and caracteres
Superimposed Optional Optional
Closed-
caption
Caracteres
superimposed Optional Optional Hide language
LIBRAS Signs language Optional Optional Brazilian Signs language
Parental Rating
Locked events Required Required
Par
enta
l
ratin
g
Indicated rating Required Required
Source
Tirsias Required Optional
Res
iden
t
Verdana Optional Required
Downloadable Required Optional
PFR (Portable Fonts Resource) Optional Optional
Dow
nloa
dabl
e
Open types Optional Optional
ABNT NBR 15606-1:2007
12 ABNT 2007 All rights reserved
Table 2 (continuation)
Parameters for full-seg and one-seg receivers
Type of receptor
Area Features specified Full-seg One-seg
Comments
Broadcast Channel Protocol
MPEG-2 section Required Required
Object carousel DSM-CC Required Required
Data carousel DSM-CC Optional Optional
o Receiver software update Optional Optional
o Broadcast parameter update Optional Optional
Pilha IP multicast:
o Protocolo IP multicast via broadcast channel Optional Optional
o Encapsulated multiprotocol DVB Not applicable
Not applicable
o Internet Protocol IP Optional Required (RX Full seg) Required, only with return channel
o User Datagram Protocol (UDP) Optional Required (RX Full seg) Required, only with return channel
IP M
ultic
ast
o IP signalling Optional Required (RX Full seg) Required, only with return channel
Interactive Channel Protocol
Transmission Control Protocol (TCP) Optional Required (RX Full seg) Required, only with return channel TCP
/ IP Internet Protocol (IP) Optional Required (RX Full seg) Required, only with return channel
Internet Protocol (IP) Optional Required (RX Full seg) Required, only with return channel UDP
/ IP User Datagram Protocol (UDP) Optional Required (RX Full seg) Required, only with return channel
UNO-RPC Optional Optional
UNO-CDR Optional Optional
DS
M-C
C
U-U
RPC
DCM-CC User to User Optional Optional
HTTP 1.1 Optional Required (RX Full seg) Required, only with return channel HTTP
MHP profile de HTTP 1.0 Not applicable Not
applicable
DNS DNS Optional Required (RX Full seg) Required, only with return channel
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 13
Table 2 (continuation)
Parameters for full-seg and one-seg receivers
Type of receptor
Area Features specified
Full-seg One-seg
Comments
HTTPS HTTPS Optional Optional
Inte
ract
ion
Cha
nnel
file
sy
stem
File system implemented only via the interaction channel Optional Optional
DS
M-C
C /
HTT
P
Hyb
rid
Hybrid between broadcast stream and interaction channel Optional Optional
Required, only with external device return channel
Interactivity security channel Optional Optional
External devices autentication Optional Optional Required, only with return channel in external device
Conditional access Not applicable
Not applicable
DRM Not applicable
Not applicable
Module common interface Not applicable
Not applicable
Autentication for applications Required Required
Security politics for applications Required Required
Sec
urity
Certificate management Required Required
IPv4 e IPv6 Optional Optional
Port ethernet Optional Not applicable
Port USB Optional Not applicable
External devices management Optional Not applicable
Autentication management Optional Not applicable
Modem configuration Optional Not applicable
Mandatory for receivers with interactivity channel and external devices connection
Mod
em
Modem selection Optional Not applicable
ABNT NBR 15606-1:2007
14 ABNT 2007 All rights reserved
Table 2 (continuation)
Parameters for full-seg and one-seg receivers
Type of receptor
Area Features specified
Full-seg One-seg
Comments
Program Language
NCL Required Required Ginga
Java Required Optional Full-seg receivers - Ginga-J is mandatory
Bridge linkage between languages
LUA Required Optional One-seg receivers is mandatory if there is Java implemented. Bridge
ECMAScript Optional Optional
Execution Machine
Java virtual machine Required Optional Engine
LUA Required Required
Exclusive Ginga APIs
Software adaptation Optional Optional
Complex graphics elements Optional Optional
Aplication development Optional Optional
Messages pr-programed Optional Optional
Yel
low
AP
Is
Residential media center control and distribution. Optional Optional
Middleware dinamic reconfiguration Optional Not applicable
Device control and audio import Optional Not applicable
Resident aplication remote instalation Optional Not applicable
Multi device Optional Not applicable
Red
AP
Is
Multi user Optional Not applicable
10 Requirements for data broadcasting and available services
NOTE About available services, it is possible to assume that the multimedia services include: subtitles, interactive applications, etc. It is possible to consider multimedia services as the interactive presentation of multiple integrated mono-media through digital features.
10.1 Requirements of data broadcasting for digital broadcasting system
The digital broadcasting system shall be according to Tables 3 to 6.
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 15
Table 3 System overview
Service contents
- Enable to display subtitles and superimpose overlapped on HDTV and SDTV
- Enable to view HDTV, SDTV and audio services or independent multimedia information a
- It shall be possibilities of service not only other broadcast service, but also combination with various services such as communication, traditional package services, etc.
- It shall be considered interactive services utilizing public communication services such as telephone, networks, etc.
- It shall be considered services corresponding to various viewers such as elderly or handicapped people
Accessibility
- EPG, functions for automatic indexing and recording etc. shall be made available to facilitate the selection of programmes.
- It shall be considered time range for smooth program switching not to be annoying to viewers actual operations. (avoid expectancy break)
Service
Extensibility
- It shall be considered extensibilities of service styles, coding specification, conditional access system and receivers
- It shall be considered possibilities to correspond the new services in the future
Inter-operability
- Enable receiving, even in the ordinary receivers, similar services to existing HDTV or SDTV broadcasting
- Broadcasting media such as broadcasting station satellite, terrestrial or cable, shall be as most similar as possible
- Common receiver shall be able to use the various specified media types
Control ability of system
- Consider flexible system control by using transmission capacity effectively, by transmission control of HDTV, SDTV and audio in the digital broadcasting
- Consider control function for appropriate copyright protection
- Consider automatic reception control function such as emergency broadcasting
Display timing
- In services related to HDTV, SDTV and audio services, timing errors when displaying subtitles, superimpose and multimedia information should be operated within the range so that viewers would not feel uncomfortable or notice that the system has problems
a Multimedia information means information that enables the integrated interactive view of multiple media such as text,still pictures, video and audio etc.
ABNT NBR 15606-1:2007
16 ABNT 2007 All rights reserved
Table 4 Broadcasting service quality
Presentation (display) - Display quality of data services shall be able to reproduce programs with good quality of picture and sound of HDTV, SDTV and audio services
Transmission characteristics
- Quality balance of picture, sound and data shall be considered because transmission trouble, such as ray attenuation etc.
- In case of temporary disconnection, it shall be considered countermeasures in order to not display error information, as far as possible, like keeping the last picture
- In case of transmission trouble, it shall be considered time to reestablish signal as short as possible
Table 5 Technical specification
Data coding
- It shall be considered existing data coding formats
- It shall be considered future extensions
- It shall be considered possibility of software downloading (update) and data interface for secure extendibility
Data multiplexing specification
- It shall be considered multiplexing for various and flexible services
- It shall be considered multiplexing service by multiple service providers
- It shall be considered transmission features and efficient multiplexing
General technical specification
Data conditional access system
- It shall be enabled conditional access system for flexible operation of content service
- It shall be enabled suitable security and safety services for service contents
- It shall be considered secure and independent operations for multiple service providers
Subtitle and superimpose coding
- It shall be enabled the program production, according to the intention of the program producer
- Standardized multimedia type service of digital broadcasting should be maintained as far as possible to coordinate with existing broadcast service
- International standardization should be considered whenever possible
Multimedia coding service
- Enable realizing program production, according to the intention of the program producer
- On the condition of displaying the multimedia information such as HDTV, SDTV, audio services, or independent multimedia information, it should enable to realize multimedia-displaying function such as displaying or linking presentation object for the specific duration on the specified position (media timing)
- Consider the development of various services such as storage-based and interactive type services
- Consider the standardization among digital broadcasting of other media such as communication and packages
- International standardization should be considered
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 17
Table 6 Receiver (set-top box)
Operability
- Operation method of basic function shall be unique and easy to learn
- Settings which release advanced operations should only be enabled according to the users or service providers request
- Selection of service should be considered so that it can be made by one operation
- Operation settings appropriate for elderly or handicapped people shall be also considered
Interoperability
- It shall be made possible the implementation of a adapters to receive new services by connecting to existing broadcasting receiver
- Consider the inter-operability between medias of other broadcasting systems such as satellite broadcasting, terrestrial broadcasting and CATV
- Coordination with communication systems and media package should be considered as far as possible
Implementation
- Consumers shall have access to a cheap receiver, which has functions and characteristics appropriate for service contents to be implemented
- Implementation of several terminals (monofunction, advanced function, etc.) should be considered
Extendibility - It shall be considered the extension corresponding to new services in the future
- It shall be considered the possibility to connect the receiver to multiple devices
10.2 Data service for digital broadcasting
Table 7 shows examples about advanced data broadcasting services added to some technical demands.
ABNT NBR 15606-1:2007
18 ABNT 2007 All rights reserved
Table 7 Examples of advanced data broadcasting service
Necessary media
Presentation timing
Cla
ssifi
catio
n
Example of service Example of contents Function
Text
and
gra
phic
s
Still
pic
ture
Vide
o A
udio
Met
adat
a
Up-
line
need
Asy
nchr
onou
s Pr
ogra
m
sync
hron
ous
Tim
e sy
nchr
onou
s
Stud
y of
cod
ing
EPG Program guide, program content
Program selection, program scheduling, category search X X X X X X X X X
Index Program title,
Category of each item Program selection, item
selection X X X X X
Subtitle For hearing handicapped
person For foreigner Subtitle, multilingual display X X X X
Audio with commentary
For visually handicapped person
Audio with comments X X X X
Addtional program
information
Cast, program, product information, news from the
station, etc.
Additional information of the program, detailed information
of the program X X X X X X X X X
Multiview television
Multiview television Display and control of
program using plural camera angle
X X X X X
Rel
ated
Participation program
Shopping, questionnaires, etc.
Access from the viewers to the program X X X X X X X X X X
Independent information
News, weather forecast, traffic information, market
information, disaster, election, etc.
Information service selectable X X X X X X X X
Users inquiry Inquiries Corresponding to Access
from the viewer X X X X X
Bro
adca
stin
g se
rvic
e
Inde
pend
ent
Software distribution
PC software, data, game software and general software downloading
Application distribution X X X X
Automatic reception
Emergency information Automatic power on, automatic reception
Mail function Individual mail, sending information for all the
users Individual information X X
Download IRD (Integrated Receiver
Decoder), error correction, version upgrade
Decoding software downloading X X Fu
nctio
n se
rvic
e
Data distribution
Several data Data download
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 19
When the services showed in Table 7 are received, data shall be stored in the receiver memory and displayed interactively according to the viewers operation.
In order to program television by using functions such as automatic recording, scheduled recording, digest playback etc. of television program by use of storage function of video and audio. Furthermore, resources for program recording in different channels and advanced data acquisition by use of multiple tuner units (decoders) can be made available.
11 Monomedia
11.1 Video coding
11.1.1 MPEG-1 video
MPEG-1 video coding shall be in accordance with ISO/IEC 11172-2 and shall be according to the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 4.1.
11.1.2 MPEG-2 video
MPEG-2 video coding shall be in accordance with ISO/IEC 13818-2 and ITU Recommendation H.262 and shall be according to the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 4.2.
11.1.3 MPEG-4 video
MPEG-4 video coding shall be in accordance with ISO/IEC 14496-2 and shall be according to the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 4.3.
11.1.4 H.264|MPEG-4 AVC
H.264|MPEG-4 AVC video coding shall be in accordance with ITU Recommendation H.264 and ISO/IEC 14496-10 and with the methods described in ABNT NBR 15602-1 and ARIB STD-B24:2007, volume 1, part 2, subclause 4.4.
11.2 Still pictures and graphics coding
11.2.1 I-frames
11.2.1.1 MPEG-2 I-frames
MPEG-2 I-Frame coding shall be in accordance with ISO/IEC 13818-2 and ITU Recommendation H.262 and with the method described in GEM 1.0:2005, subclause 7.1.2.
11.2.1.2 MPEG-4 I-VOP
MPEG-4 I-VOP coding shall be in accordance with ISO/IEC 14496-2.
The payload of a file containing a MPEG-4 I-VOP frame shall have one coded picture as frame I between visual_object_sequence_start_code and visual_object_sequence_end_code.
11.2.1.3 H.264|MPEG-4 AVC I-picture
H.264|MPEG-4 AVC I-picture coding shall be in accordance with ITU Recommendation H.264 and ISO/IEC 14496-10.
ABNT NBR 15606-1:2007
20 ABNT 2007 All rights reserved
11.2.2 JPEG
JPEG coding shall be in accordance with ISO/IEC 10918-1.
11.2.3 PNG
PNG coding shall be in accordance with W3C Recommended PNG and methods described in ARIB STD-24:2007, volume 1, part 2, subclause 5.3 in GEM 1.0:2005, clause 15. The PNG constraints shall be in accordance with ARIB STD-B24:2007, volume 1, part 2, subclause 5.3 and in GEM 1.0:2005, clause 15.
11.2.4 MNG
MNG (multiple-image network graphics) coding shall be in accordance with MNG and with the methods described in ARIB STD-B24:2007, volume 1, part 2, subclause 5.4.
The MNG constraints shall be in accordance with ARIB STD-B24:2007, volume 1, part 2, subclause 5.3.
11.2.5 MPEG-2 video drips
MPEG-2 video drips is a graphic animation format which uses I-frames and P-frames of MPEG-2 coding.
MPEG-2 video drips graphic animation format shall be in accordance with GEM 1.0:2005, clause 15.
11.2.6 GIF
GIF is a coding format for bit maps specified in W3C Recommendation GIF 89a.
Bits maping coding by GIF shall be in accordance with the method described in GEM 1.0:2005, clause 15.
11.2.7 MPEG-4 video clips
Video clips coding in MPEG-4 format used in the graphic layer shall be in accordance with ISO/IEC 14496-2.
11.2.8 H.264|MPEG-4 AVC clips
Video clips coding in H.264 | MPEG-4 format used in the graphic layer shall be in accordance with ITU Recommendation H.264 and ISO/IEC 14496-10.
11.3 Audio coding
11.3.1 MPEG-2 audio
MPEG-2 audio coding shall be in accordance with the AAC method LC and BC profile specified in ISO/IEC 13818-7 and shall be according to the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 6.1.
11.3.2 PCM (AIFF)
PCM (AIFF) audio coding shall be in accordance with the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 6.2.
11.3.3 MPEG-4 audio
MPEG-4 audio coding shall be in accordance with the method described in ISO/IEC 14496-3 and ABNT NBR 15602-2.
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 21
11.3.4 Coding of synthesized sound
For coding of synthesized sound, a method specified in transmission standard related to television data multiplex broadcasting (ARIB STD-B5) shall be used.
The coding of synthesized sound shall be in accordance with ARIB STD-B24:2007, volume 1, subclause 6.4.
11.3.5 Monomedia format for audio clips (GEM)
Monomedia formats for audio clips using MPEG-1 (layers 1 and 2) defined in ISO/11172-3 shall be in accordance with of MHP 1.0:2003, subclause 15.
11.3.6 MPEG-1 audio layer 3 (MP3)
MPEG-1 Layer 3 audio coding shall be in accordance with the method described in ISO/IEC 11172-3 and ISO/IEC 13818-3.
11.3.7 Audio AC3
AC3 audio coding shall be in accordance with the method described in ATSC A52B.
11.4 Character coding
11.4.1 8 bits character coding
8 bits characters coding shall be in accordance with ARIB STD-B5 and shall be meet the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 7.1, with the adaptations related to the Latin characters inclusion, shown below.
Coding structure used specified in SBTVD shall be in accordance with the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 7.1.1.1 with the following changes:
a) inclusion of latin extension characters set to the Gp characters code. The Table 8 shows latin extension" codes, and inclusion of special characters set Table 9 to the Gp characters code;
b) GL page initial state change to alphanumeric and GR page initial state change to latin extension, as shown in Figure 6; They can not be used the methods of invocation and heading in the Brazilian system of dissemination;
c) classification of code set and final byte in accordance with Table 10;
d) inclusion of the entire graph of Latin characters (latin extension) and special characters in accordance with the Table 10.
NOTE 1 Table 8 was adapted from the ISO / IEC 8859-15:1999.
NOTE 2 A Table 10 presents the words changed in Table 7-3 of the ARIB STD-B24: 2007 to SBTVD.
ABNT NBR 15606-1:2007
22 ABNT 2007 All rights reserved
Table 8 Latin characters set (latin extension)
0x 1x 2x 3x 4x 5x 6x 7x 8x 9x Ax Bx Cx Dx Ex Fx x0 NUL SP 0 @ P ` p BKF COL 10/0 x1 ! 1 A Q a q RDF FLC x2 " 2 B R b r GRF CDC x3 # 3 C S c s YLF POL x4 $ 4 D T d t BLF WMM x5 % 5 E U e u MGF MACRO x6 PAPF & 6 F V f v CNF x7 BEL ' 7 G W g w WHF HLC x8 APB CAN ( 8 H X h x SSZ RPC x9 APF SS2 ) 9 I Y i y MSZ SPL
xA APD : J Z j z NSZ STL xB APU ESC + ; K [ k { SZX CSI xC CS APS , < L \ l | xD APR SS3 - = M ] m } TIME xE LS1 RS . > N ^ n ~ xF LSO US / ? O o DEL 15/15
Table 9 Special Characters set as G3
0x 1x 2x 3x 4x 5x 6x 7x x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
ABNT NBR 15606-1:2007
ABNT 2007 All rights reserved 23
b8 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 b7 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 b6 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 b5 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 b3 b3 b2 b1 0x 1x 2x 3x 4x 5x 6x 7x 8x 9x Ax Bx Cx Dx Ex Fx 0 0 0 0 x0 SP 10/0 0 0 0 0 x1 0 0 1 0 x2 0 0 1 0 x3 0 1 0 0 x4 0 1 0 1 x5 0 1 1 0 x6 0 1 1 1 x7 1 0 0 0 x8 1 0 0 1 x9 1 0 1 0 xA 1 0 1 1 xB 1 1 0 0 xC 1 1 0 1 xD 1 1 1 0 xE
GL area (Standard
Alphanumeric Gp.)
GR area (Default
latin extension Gp.)
1 1 1 1 xF
C0 A
rea
DEL
C1 A
rea
15/15
Figure 6 8-bit code structure
Table 10 Classification of code set and final byte
Classification Graphic set Final byte (F) Remarks Kanji c 04/02 2-byte code Alphanumeric a 04/10 1-byte code Latin extension b 04/11 1-byte code Special character b 04/12 1-byte code Hiragana c 03/0 1-byte code
G set
Katakana c 03/1 1-byte code a Set in use by the system. b Set added and in use by the system. c Sets not used by the system.
11.4.2 Universal multi-octet coded character set (UCS)
11.4.2.1 Character coding UCS
Character coding using the Universal multi-octet coded character set (UCS) shall be in accordance with ISO/IEC 10646-1, ISO 8859-15, GEM 1.0:2005, subclause 7.1.5, MHP1.0:2003, subclause 11.2.11 and ARIB STD-B23:2007, part 1, subclause 5.2.
ABNT NBR 15606-1:2007
24 ABNT 2007 All rights reserved
11.4.2.2 Resident fonts
The resident fonts shall include the font selection described in MHP1.0:2003, subclause 7.3.
11.4.2.3 Downloadable fonts
Shal be used the method described in MHP1.0:2003, subclause 7.4.
11.4.3 Shift-JIS coding
Shift-JIS characters coding shall be in accordance with the method described in ARIB STD-B24:2007, volume 1, part 2, subclause 7.3.
11.4.4 EUC-JP
EUC-JP characters coding shall be in accordance with the method described in ARIB-B24:2007, volume 2, subclause 4.1.
11.5 Geometric description of commands coding
Description of geometric commands for graphic coding shall be in accordance with ARIB STD-B5 and with the method described in ARIB STD-B24:2007, volume 1, subclause 8.1.
11.6 Subtitles and superimposed characters
Subtitles and superimposed characters coding shall be in accordance with the method described in ARIB STD-B24:2007, volume 1, part 3, with the following change:
changing of the systems initial state (shown in Table 8-2, part 3, volume 1 of ARIB STD-B24:2007) according to values shown in Table 11;
usage of G0 and G2 is as initial state;
G3 is used by means of SS3 (0x1D). SS3 means to invoke one G3 code following to it in the GL area temporary.
Table 11 Initial State
Item Initial state
Invocation and designation of
code
Character coding
Designation G0 Alphanumeric set
G1 Alphanumeric set
G2 Latin Extension set
G3 Special character set
Invocation GL LS0 (G0)
GR LS2R (G2)
State Character coding Character size x 1 (middle size) (= MSZ)
ABNT 2007
NORMA BRASILEA
ABNT NBR15606-2
Primera edicin 30.11.2007
Vlida a partir de 01.12.2007
Versin Corregida 19.11.2009
Televisin digital terrestre Codificacin de datos y especificaciones de transmisin para radiodifusin digital Parte 2: Ginga-NCL para receptores fijos y mviles Lenguaje de aplicacin XML para codificacin de aplicacione
Palabras clave: Televisin digital terrestre. Middleware. Ginga. NCL. Receptores mviles y fijos. Perfil full-seg. ICS 33.160.01 ISBN 978-85-07-00916-0
Nmero de referenciaABNT NBR 15606-2:2007
294 pginas
ABNT NBR 15606-2:2007
ii ABNT 2007 - Todos los derechos reservados
ABNT 2007 Todos los derechos reservados. A menos que se especifique de otro modo, ninguna parte de esta publicacin puede ser reproducida o utilizada por cualquier medio, electrnico o mecnico, incluyendo fotocopia y microfilm, sin permiso por escrito de la ABNT. ABNT Av.Treze de Maio, 13 - 28 andar 20031-901 - Rio de Janeiro - RJ Tel.: + 55 21 3974-2300 Fax: + 55 21 2220-1762 [email protected] www.abnt.org.br Impreso en Brasil
ABNT NBR 15606-2:2007
ABNT 2007 - Todos los derechos reservados iii
ndice Pgina
Prefacio......................................................................................................................................................................vii Introduccin .............................................................................................................................................................viii 1 Alcance ...........................................................................................................................................................1 2 Referencias normativas ................................................................................................................................1 3 Trminos y definiciones................................................................................................................................2 4 Abreviaturas...................................................................................................................................................8 5 Arquitectura Ginga ........................................................................................................................................8 5.1 Ginga main modules .....................................................................................................................................8 5.2 Interaccin con el ambiente nativo..............................................................................................................9 6 Interoperabilidad con ambientes declarativos definidos en otros sistemas de televisin digital -
Objetos XHTML incorporados en presentaciones NCL...........................................................................10 6.1 NCL como lenguaje cola.............................................................................................................................10 6.2 Formato de contenido XHTML ...................................................................................................................11 6.3 Armonizacin del formato de contenido XHTML .....................................................................................12 6.3.1 Marcaciones XML ........................................................................................................................................12 6.3.2 Hojas de estilo .............................................................................................................................................17 6.3.3 ECMAScript ..................................................................................................................................................22 6.3.4 API DOM .......................................................................................................................................................26 7 NCL - Lenguaje declarativo XML para especificacin de presentaciones multimedia interactivas...28 7.1 Lenguajes modulares y perfiles de lenguajes..........................................................................................28 7.1.1 Mdulos NCL................................................................................................................................................28 7.1.2 Identificadores para mdulos y perfiles de lenguaje de la NCL 3.0.......................................................30 7.1.3 Informaciones sobre versiones de la NCL................................................................................................32 7.2 Mdulos NCL................................................................................................................................................32 7.2.1 Observaciones generales ...........................................................................................................................32 7.2.2 rea funcional Structure.............................................................................................................................33 7.2.3 rea funcional Layout .................................................................................................................................33 7.2.4 rea funcional Components.......................................................................................................................35 7.2.5 rea funcional Interfaces............................................................................................................................42 7.2.6 rea funcional Presentation Specification ...............................................................................................45 7.2.7 rea funcional Linking ................................................................................................................................47 7.2.8 Area funcional Connectors.........................................................................................................................48 7.2.9 rea funcional Presentation Control .........................................................................................................55 7.2.10 rea funcional Timing .................................................................................................................................57 7.2.11 rea funcional Reuse ..................................................................................................................................57 7.2.12 rea funcional Navigational Key................................................................................................................60 7.2.13 rea funcional Animation ...........................................................................................................................61 7.2.14 rea funcional SMIL Transition Effects.....................................................................................................61 7.2.15 rea funcional Metainformation.................................................................................................................64 7.3 Perfiles del lenguaje NCL para el SBTVD..................................................................................................64 7.3.1 Mdulos de perfiles .....................................................................................................................................64 7.3.2 Esquema del perfil NCL 3.0 DTV avanzado...............................................................................................65 7.3.3 Esquema del perfil NCL 3.0 CausalConnector .........................................................................................74 7.3.4 Atributos y elementos del perfil NCL 3.0 DTV bsico..............................................................................76 7.3.5 Esquema del perfil NCL 3.0 DTV Bsico ...................................................................................................81 8 Objetos de media en presentaciones NCL................................................................................................89 8.1 Implementacin modular de Ginga-NCL...................................................................................................89 8.2 Comportamiento esperado de los exhibidores de media .......................................................................90 8.2.1 Instruccin start para eventos de presentacin ......................................................................................90
ABNT NBR 15606-2:2007
iv ABNT 2007 - Todos los derechos reservados
8.2.2 Instruccin stop...........................................................................................................................................91 8.2.3 Instruccin abort .........................................................................................................................................92 8.2.4 Instruccin pause ........................................................................................................................................92 8.2.5 Instruccin resume......................................................................................................................................92 8.2.6 Instruccin start para eventos de atribucin ...........................................................................................93 8.2.7 Instruccin addEvent ..................................................................................................................................93 8.2.8 Instruccin removeEvent............................................................................................................................93 8.2.9 Finalizacin natural de una presentacin.................................................................................................93 8.3 Comportamiento esperado de los exhibidores de media despus de instrucciones aplicadas a los
objetos de composicin..............................................................................................................................94 8.3.1 Eslabones refiriendo nudos de composicin...........................................................................................94 8.3.2 Empezando la presentacin de un contexto ............................................................................................94 8.3.3 Parando la presentacin de un contexto ..................................................................................................94 8.3.4 Abortando la presentacin de un contexto ..............................................................................................94 8.3.5 Pausando la presentacin de un contexto ...............................................................................................94 8.3.6 Retomando la presentacin de un contexto.............................................................................................95 8.4 Relacin entre las mquinas de estado de eventos de presentacin de un nudo y la mquina de
estado del evento de presentacin de su nudo de composicin padre................................................95 8.5 Comportamiento esperado de los exhibidores procedurales en aplicaciones NCL............................95 9 Transmisin de contenido y eventos NCL................................................................................................97 9.1 Bases privadas ............................................................................................................................................97 9.2 Esquema XML de los parmetros de comando......................................................................................104 10 Objetos procedurales Lua en presentaciones NCL ...............................................................................114 10.1 Lenguaje Lua - Funciones retiradas de la biblioteca de Lua ................................................................114 10.2 Modelo de ejecucin .................................................................................................................................115 10.3 Mdulos adicionales .................................................................................................................................115 10.3.1 Mdulos obligatorios ................................................................................................................................115 10.3.2 Mdulo canvas...........................................................................................................................................115 10.3.3 Mdulo event..............................................................................................................................................126 10.3.4 Mdulo settings .........................................................................................................................................139 10.3.5 Mdulo persistent......................................................................................................................................139 10.4 Lua-API para Ginga-J ................................................................................................................................140 10.4.1 Mapeo..........................................................................................................................................................140 10.4.2 Paquetes.....................................................................................................................................................140 10.4.3 Tipos bsicos.............................................................................................................................................140 10.4.4 Clases .........................................................................................................................................................141 10.4.5 Objetos........................................................................................................................................................141 10.4.6 Objetos de callback (observadores)........................................................................................................141 10.4.7 Excepciones...............................................................................................................................................141 11 Puente.........................................................................................................................................................141 11.1 Revisin......................................................................................................................................................141 11.2 Puente a travs de los elementos NCL y .....................................................................142 11.3 Puente a travs de las funciones Lua y mtodos del Ginga-J .............................................................142 12 Requisitos de codificacin de media y mtodos de transmisin referidos en documentos NCL....143 12.1 Uso del canal de interactividad................................................................................................................143 12.2 Mtodos de codificacin y transmisin de video Datos de video referidos en elementos
.....................................................................................................................................................................143 12.2.1 Transmisin de video MPEG-1.................................................................................................................143 12.2.2 Transmisin de video MPEG-2.................................................................................................................143 12.2.3 Transmisin de video MPEG-4 y H.264|MPEG-4 AVC............................................................................144 12.3 Mtodos de codificacin y transmisin de audio datos de audio referidos en elementos
.....................................................................................................................................................................144 12.3.1 Transmisin de audio MPEG-1.................................................................................................................144 12.3.2 Transmisin de audio MPEG-2.................................................................................................................144 12.3.3 Transmisin de audio MPEG-4.................................................................................................................145 12.3.4 Transmisin de audio AC3 .......................................................................................................................145 12.3.5 Transmisin de audio PCM (AIFF-C) .......................................................................................................145 12.4 Formato TS para transmisin de video/audio MPEG Especificacin de la codificacin de datos 146 12.4.1 Transmisin de video y audio multiplexados.........................................................................................146
ABNT NBR 15606-2:2007
ABNT 2007 - Todos los derechos reservados v
12.4.2 PSI requerido .............................................................................................................................................146 12.4.3 Transmisin en secciones MPEG-2.........................................................................................................146 12.4.4 Restricciones en la reproduccin............................................................................................................146 12.5 Esquema de codificacin y transmisin de imgenes estticas y grficos de bitmap referidos por
elementos ...................................................................................................................................146 12.5.1 Transmisin de MPEG-2 I-frame, MPEG-4 I-VOP y H.264|MPEG-4 AVC I-picture...............................146 12.5.2 Transmisin de imagen esttica JPEG ...................................................................................................147 12.5.3 Esquema de codificacin y transmisin del bitmap PNG.....................................................................147 12.5.4 Esquema de codificacin y transmisin de la animacin MNG ...........................................................147 12.5.5 Esquema de codificacin y transmisin de datos y animacin de grficos GIF................................147 12.6 Codificacin y transmisin de caracteres - archivos de texto externos referidos por elementos
......................................................................................................................................................147 12.7 Transmisin de documentos XML...........................................................................................................148 12.7.1 Transmisin de documentos NCL y otros documentos XML que se utilizan en los comandos de
edicin ........................................................................................................................................................148 12.7.2 Transmisin en Secciones MPEG-2 ........................................................................................................148 12.7.3 Transmisin de documentos XML externos...........................................................................................156 13 Seguridad ...................................................................................................................................................156 Anexo A (normativo) Esquemas de los mdulos NCL 3.0 que se utilizan en los perfiles TVD Bsico y TVD
Avanzado....................................................................................................................................................157 A.1 Mdulo Structure: NCL30Structure.xsd..................................................................................................157 A.2 Mdulo Layout: NCL30Layout.xsd ..........................................................................................................158 A.3 Mdulo Media: NCL30Media.xsd..............................................................................................................159 A.4 Mdulo Context: NCL30Context.xsd .......................................................................................................160 A.5 Mdulo MediaContentAnchor: NCL30MediaContentAnchor.xsd.........................................................161 A.6 Mdulo CompositeNodeInterface: NC30CompositeNodeInterface.xsd...............................................162 A.7 Mdulo PropertyAnchor: NCL30PropertyAnchor.xsd ...........................................................................163 A.8 Mdulo SwitchInterface: NCL30SwitchInterface.xsd.............................................................................164 A.9 Mdulo Descriptor: NCL30Descriptor.xsd..............................................................................................165 A.10 Mdulo Linking: NCL30Linking.xsd ........................................................................................................166 A.11 Mdulo ConnectorCommonPart: NCL30ConnectorCommonPart.xsd ................................................167 A.12 Mdulo ConnectorAssessmentExpression:...........................................................................................168 NCL30ConnectorAssessmentExpression.xsd ....................................................................................................168 A.13 Mdulo ConnectorCausalExpression: NCL30ConnectorCausalExpression.xsd ...............................170 A.14 Mdulo CausalConnector: NCL30CausalConnector.xsd ......................................................................172 A.15 Mdulo ConnectorBase: NCL30ConnectorBase.xsd.............................................................................173 A.16 NCL30CausalConnectorFunctionality.xsd..............................................................................................174 A.17 Mdulo TestRule: NCL30TestRule.xsd....................................................................................................176 A.18 Mdulo TestRuleUse: NCL30TestRuleUse.xsd ......................................................................................177 A.19 Mdulo ContentControl: NCL30ContentControl.xsd .............................................................................178 A.20 Mdulo DescriptorControl: NCL30DescriptorControl.xsd ....................................................................179 A.21 Mdulo Timing: NCL30Timing.xsd ..........................................................................................................180 A.22 Mdulo Import: NCL30Import.xsd............................................................................................................181 A.23 Mdulo EntityReuse: NCL30EntityReuse.xsd ........................................................................................182 A.24 Mdulo ExtendedEntityReuse: NCL30ExtendedEntityReuse.xsd........................................................183 A.25 Mdulo KeyNavigation: NCL30KeyNavigation.xsd................................................................................184 A.26 Mdulo TransitionBase: NCL30TransitionBase.xsd..............................................................................185 A.27 Mdulo Animation: NCL30Animation.xsd...............................................................................................186 A.28 Transition module: NCL30Transition.xsd....................................................................................................186 A.29 Metainformation module: NCL30Metainformation.xsd ..............................................................................190 Anexo B (informativo) Manual de referencia de Lua 5.1 .....................................................................................192 B.1 Introduccin ...............................................................................................................................................192 B.2 El Lenguaje.................................................................................................................................................192 B.2.1 Notacin utilizada ......................................................................................................................................192 B.2.2 Convenciones lxicas ...............................................................................................................................192 B.2.3 Valores y tipos ...........................................................................................................................................194 B.2.4 Variables.....................................................................................................................................................195 B.2.5 Comandos ..................................................................................................................................................196
ABNT NBR 15606-2:2007
vi ABNT 2007 - Todos los derechos reservados
B.2.6 Expresiones ...............................................................................................................................................200 B.2.7 Reglas de visibilidad .................................................................................................................................207 B.2.8 Tratamiento de errores..............................................................................................................................207 B.2.9 Metatablas ..................................................................................................................................................207 B.2.10 Ambientes ..................................................................................................................................................213 B.2.11 Recolecta de basura..................................................................................................................................213 B.2.12 Co-rutinas...................................................................................................................................................214 B.3 Interfaz de programacin de la aplicacin (API) ....................................................................................216 B.3.1 Conceptos bsicos....................................................................................................................................216 B.3.2 Pila...............................................................................................................................................................216 B.3.3 Tamao de la pila.......................................................................................................................................216 B.3.4 Pseudo-ndices ..........................................................................................................................................217 B.3.5 Cierres C.....................................................................................................................................................217 B.3.6 Registro ......................................................................................................................................................217 B.3.7 Tratamiento de errores en C.....................................................................................................................217 B.3.8 Funciones y tipos ......................................................................................................................................218 B.3.9 Interfaz de depuracin ..............................................................................................................................236 B.4 Biblioteca auxiliar ......................................................................................................................................240 B.4.1 Conceptos bsicos....................................................................................................................................240 B.4.2 Funciones y tipos ......................................................................................................................................240 B.5 Bibliotecas estndar..................................................................................................................................250 B.5.1 Visin general ............................................................................................................................................250 B.5.2 Funciones bsicas.....................................................................................................................................251 B.5.3 Manipulacin de co-rutinas ......................................................................................................................256 B.5.4 Mdulos ......................................................................................................................................................256 B.5.5 Manejo de cadenas de caracteres ...........................................................................................................259 B.5.6 Estndares .................................................................................................................................................262 B.5.7 Manejo de tablas........................................................................................................................................264 B.5.8 Funciones matemticas............................................................................................................................265 B.5.9 Facilidades de entrada y salida................................................................................................................267 B.5.10 Facilidades del sistema operativo ...........................................................................................................271 B.5.11 Biblioteca de depuracin..........................................................................................................................273 B.6 El interpretador Lua autnomo ................................................................................................................275 B.7 Incompatibilidades con la versin 5.0.....................................................................................................277 B.7.1 Cambios en el lenguaje.............................................................................................................................277 B.7.2 Cambios en las bibliotecas ....................................................................................................................