public class ContentInformationBox extends AbstractFullBox
aligned(8) class ContentInformationBox extends FullBox(‘cinf’, version=0, flags=0) { string mimeSubtypeName; string profile-level-idc; string codecs; unsigned int(8) protection; string languages; unsigned int(8) brand_entry_count; for( int i=0; i < brand_entry_count; i++) { string iso_brand; string version } unsigned int(8) id_entry_count; for( int i=0; i < id_entry_count; i++) { string namespace; string asset_id; } }
Modifier and Type | Class and Description |
---|---|
static class |
ContentInformationBox.BrandEntry |
Modifier and Type | Field and Description |
---|---|
static String |
TYPE |
type
Constructor and Description |
---|
ContentInformationBox() |
Modifier and Type | Method and Description |
---|---|
protected void |
_parseDetails(ByteBuffer content)
Parse the box's fields and child boxes if any.
|
Map<String,String> |
getBrandEntries() |
String |
getCodecs() |
protected void |
getContent(ByteBuffer byteBuffer)
Write the box's content into the given
ByteBuffer . |
protected long |
getContentSize()
Get the box's content size without its header.
|
Map<String,String> |
getIdEntries() |
String |
getLanguages() |
String |
getMimeSubtypeName() |
String |
getProfileLevelIdc() |
String |
getProtection() |
void |
setBrandEntries(Map<String,String> brandEntries) |
void |
setCodecs(String codecs) |
void |
setIdEntries(Map<String,String> idEntries) |
void |
setLanguages(String languages) |
void |
setMimeSubtypeName(String mimeSubtypeName) |
void |
setProfileLevelIdc(String profileLevelIdc) |
void |
setProtection(String protection) |
getFlags, getVersion, parseVersionAndFlags, setFlags, setVersion, writeVersionAndFlags
getBox, getOffset, getParent, getPath, getSize, getType, getUserType, isParsed, parse, parseDetails, setDeadBytes, setParent
public static final String TYPE
protected long getContentSize()
AbstractBox
getContent(ByteBuffer)
writes.getContentSize
in class AbstractBox
AbstractBox.getContent(java.nio.ByteBuffer)
protected void getContent(ByteBuffer byteBuffer)
AbstractBox
ByteBuffer
. This must include flags
and version in case of a full box. byteBuffer
has been initialized with
getSize()
bytes.getContent
in class AbstractBox
byteBuffer
- the sink for the box's contentprotected void _parseDetails(ByteBuffer content)
AbstractBox
_parseDetails
in class AbstractBox
content
- the box's raw content beginning after the 4-cc field.public String getMimeSubtypeName()
public void setMimeSubtypeName(String mimeSubtypeName)
public String getProfileLevelIdc()
public void setProfileLevelIdc(String profileLevelIdc)
public String getCodecs()
public void setCodecs(String codecs)
public String getProtection()
public void setProtection(String protection)
public String getLanguages()
public void setLanguages(String languages)
Copyright © 2014. All rights reserved.