Download OpenMAX Application Layer 1.1 Specification

Transcript
Methods
CreateChildNode
XAresult (*CreateChildNode) (
XAMetadataInsertionItf self,
XAint32 parentNodeID,
XAuint32 type,
XAchar * pMimeType,
XAint32 * pChildNodeID
);
Description
Pre-conditions
Parameters
Return value
Comments
Creates a new child node for the given parent. This child can be utilized with
InsertMetadataItem() method. This method does not actually write yet anything on
media object. The actual writing and creation of the node will happen only if the node id is given
to InsertMetadataItem() method as argument.
none
self
[in]
Interface self-reference.
parentNodeID
[in]
ID of the parent node for this new child node.
type
[in]
Type of the new node. See XA_NODETYPE
macros.
pMimeType
[in]
Suggested MIME-type for this new child node. The
given MIME-type is a hint only and the
implementation might override it.
The application is allowed to provide a zero-length
string here if the application doesn’t want to specify
the MIME-type.
pChildNodeID
[out]
ID of the created child node.
The return value can be one of the following:
XA_RESULT_SUCCESS
XA_RESULT_PARAMETER_INVALID
XA_RESULT_CONTENT_UNSUPPORTED
XA_RESULT_FEATURE_UNSUPPORTED is returned if the media object does not support treelike metadata. That is, writing metadata only to the root is supported and therefore creating new
nodes is not supported.
XA_RESULT_CONTENT_UNSUPPORTED is returned if the media object does not support the
given node type.
217