Changes between Version 2 and Version 3 of Specs/STREAM_PARA_USAGE


Ignore:
Timestamp:
07/04/12 17:00:27 (5 years ago)
Author:
ph3-der-loewe
Comment:

Added bitstream draft

Legend:

Unmodified
Added
Removed
Modified
  • Specs/STREAM_PARA_USAGE

    v2 v3  
    55 
    66== Draft for Data structure == 
     7||= Offset =||= Size/Type  =||= Meaning  =|| 
     8||0         ||uint16        ||Flags       || 
     9||2         ||uint16        ||Usage Type  || 
     10||4         ||uint16 option ||Relative Stream ID || 
     11||6         ||uint16 option ||!SubUsage    || 
     12||8         ||uint16 option ||!SubSubUsage || 
     13 
     14Parts marked with 'option' are optional. If they are not in the message they are assumed to be zero except for the ''Relative Stream ID'' which is assumed to be -1 (0xFFFF). 
     15The Relative Stream ID is the ID of the stream this deceleration is relative to. For example in case of an overlay stream this is the ID of the stream ''below'' this stream. 
     16 
     17=== Defined Usages === 
     18The following usages are defined: 
     19||= ID =||= Usage    =||= Used Options                       =||= Meaning =|| 
     20||0     ||Parallel    ||none                                  ||This stream is played in parallel with all other played streams (The default). || 
     21||1     ||Alternative ||!RelStreamID, !SubUsage, !SubSubUsage ||Only one stream of this type and usage is played. Which one is selected based on !SubUsage and !SubSubUsage. If ''Relative Stream ID'' is set (not set to -1, 0xFFFF) it is also considered an overlay stream to the one given. See Usage ''Overlay''. || 
     22||2     ||Overlay     ||!RelStreamID                          ||This is an overlay to the given stream. It is for example used to tell the decoder this stream is the spoken part of some work while the one it overlays is the background music. || 
     23||3     ||Combine     ||!RelStreamID                          ||This stream is to be combined with the stream given in ''Relative Stream ID''. This for example is used for stereographic 3D data. ''Relative Stream ID'' must not be -1 (0xFFFF). || 
     24 
     25 
     26==== !SubUsages used by Usage type ''Alternative'' ==== 
     27The following !SubUsages are defined for the Usage type ''Alternative'': 
     28||= ID =||= !SubUsage =||= Used Options                       =||= Meaning =|| 
     29||0     ||Metadata     ||!SubSubUsage                          ||The stream to play back is selected by the user using the meta data of the streams as key. Which meta data is used is given in !SubSubUsage. A common value for !SubSubUsage is META_TYPE_LANGUAGE (40, 0x0028) to select the stream based on the language. || 
     30||1     ||!StreamInfo  ||none                                  ||The stream is selected based on the Stream Infos (including channel setup). This can be used so the decoder can select a stream matching the output device best. For example an encoder can provide audio streams with 5.1 and 2(.0) channels. The decoder should now use the stereo one if used with a stereo output device (e.g. headphones) and the multichannel one with hardware supporting 5.1 natively. How this process of selecting is done is in application domain. ||