![]() |
MHEG5
18.9.0
MHEG5 Documentation
|
Implementation of the Ingredient class. More...
#include "mh5root.h"
Go to the source code of this file.
Classes | |
struct | sMHEG5ContentBody |
struct | sMHEG5Ingredient |
Macros | |
#define | MHEG5CHOOK_UNDEFINED 0xFFFF |
#define | CP_STATE_INITIAL 0 |
#define | CP_STATE_PRELOAD 1 |
#define | CP_STATE_CHANGED 2 |
Typedefs | |
typedef struct sMHEG5ContentBody | MHEG5ContentBody |
typedef struct sMHEG5Ingredient | MHEG5Ingredient |
Functions | |
void | MHEG5ingredientInit (MHEG5Ingredient *ingredient) |
Initialise a ingredient object with default values. More... | |
void | MHEG5ingredientFree (MHEG5Ingredient *ingredient) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed. More... | |
void | MHEG5ingredientClone (MHEG5Ingredient *destination, MHEG5Ingredient *source) |
Implementation of the ingredient part of the clone action. More... | |
void | MHEG5ingredientPrepare (MHEG5Ingredient *ingredient) |
Implementation of the Preparation behaviour Inherrited from Root class. More... | |
void | MHEG5ingredientContentPrepare (MHEG5Ingredient *ingredient) |
Implementation of the ContentPrepare behaviour COR.1 6.6: ContentPreparation Apply the following sequence of actions synchronously: More... | |
void | MHEG5ingredientDestruct (MHEG5Ingredient *ingredient) |
Implementation of the Destruction behaviour Execute the following sequence of actions: More... | |
void | MHEG5ingredientActivate (MHEG5Ingredient *ingredient) |
Implementation of Activate behaviour Inherrited from Root class. More... | |
void | MHEG5ingredientDeactivate (MHEG5Ingredient *ingredient) |
Implementation of Deactivate behaviour Inherrited from Root class. More... | |
MHEG5ErrorCode | MHEG5setData (MHEG5Root *target, MHEG5GList *params) |
Implementation of SetData action SetData (NewContent) Set the Content attribute of the target Ingredient to NewContent. Provisions of use: The Target object shall be an available Ingredient object. The ContentHook of the target Ingredient object shall be encoded. Data included or referenced by NewContent shall have the encoding format determined by ContentHook of the target Ingredient. If Content is currently set to included data, NewContent shall be set or refer to included data. If Content is currently set to a reference to an external data source, then NewContent shall be set or refer to a reference to an external data source. COR1: Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5clone (MHEG5Root *target, MHEG5GList *params) |
Implementation of the Clone action Clone (CloneRefVar) If the engine supports the Cloning option the effect of this action is described below. Engines that do not support the Cloning option shall ignore this action. This action copies the Target adding the copy to the same group that contains the Target using a unique ObjectReference obtained from the engine. The ObjectReference referring to the copy is returned in the ObjectRefVariable referenced by CloneRefVar. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5preload (MHEG5Root *target, MHEG5GList *params) |
Implementation of the Preload action Preload Prepares an Ingredient and provides a hint to the MHEG-5 engine to prepare the content data of an Ingredient for future use. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5unload (MHEG5Root *target, MHEG5GList *params) |
Implementation of the Unload action Unload Destroys an Ingredient and provides a hint to the MHEG-5 engine to free resources allocated to an Ingredient. Execute the following sequence of actions: More... | |
#define CP_STATE_CHANGED 2 |
Definition at line 40 of file mh5ingredient.h.
#define CP_STATE_INITIAL 0 |
Definition at line 38 of file mh5ingredient.h.
#define CP_STATE_PRELOAD 1 |
Definition at line 39 of file mh5ingredient.h.
#define MHEG5CHOOK_UNDEFINED 0xFFFF |
Definition at line 35 of file mh5ingredient.h.
typedef struct sMHEG5ContentBody MHEG5ContentBody |
typedef struct sMHEG5Ingredient MHEG5Ingredient |
MHEG5ErrorCode MHEG5clone | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the Clone action Clone (CloneRefVar) If the engine supports the Cloning option the effect of this action is described below. Engines that do not support the Cloning option shall ignore this action. This action copies the Target adding the copy to the same group that contains the Target using a unique ObjectReference obtained from the engine. The ObjectReference referring to the copy is returned in the ObjectRefVariable referenced by CloneRefVar. Execute the following sequence of actions:
target | target object for this action |
params | Action parameters |
Definition at line 1105 of file mh5ingredient.c.
void MHEG5ingredientActivate | ( | MHEG5Ingredient * | ingredient | ) |
Implementation of Activate behaviour Inherrited from Root class.
ingredient | Ingredient to activate |
Definition at line 881 of file mh5ingredient.c.
void MHEG5ingredientClone | ( | MHEG5Ingredient * | destination, |
MHEG5Ingredient * | source | ||
) |
Implementation of the ingredient part of the clone action.
destination | Ingredient object to clone to |
source | Ingredient object to clone from |
Definition at line 657 of file mh5ingredient.c.
void MHEG5ingredientContentPrepare | ( | MHEG5Ingredient * | ingredient | ) |
Implementation of the ContentPrepare behaviour COR.1 6.6: ContentPreparation Apply the following sequence of actions synchronously:
ingredient | Ingredient to prepare |
Definition at line 769 of file mh5ingredient.c.
void MHEG5ingredientDeactivate | ( | MHEG5Ingredient * | ingredient | ) |
Implementation of Deactivate behaviour Inherrited from Root class.
ingredient | Ingredient to deactivate |
Definition at line 893 of file mh5ingredient.c.
void MHEG5ingredientDestruct | ( | MHEG5Ingredient * | ingredient | ) |
Implementation of the Destruction behaviour Execute the following sequence of actions:
ingredient | Ingredient to destruct |
Definition at line 850 of file mh5ingredient.c.
void MHEG5ingredientFree | ( | MHEG5Ingredient * | ingredient | ) |
Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed.
ingredient | Pointer to object to free. |
Definition at line 635 of file mh5ingredient.c.
void MHEG5ingredientInit | ( | MHEG5Ingredient * | ingredient | ) |
Initialise a ingredient object with default values.
ingredient | Pointer to object to initialise. |
Definition at line 618 of file mh5ingredient.c.
void MHEG5ingredientPrepare | ( | MHEG5Ingredient * | ingredient | ) |
Implementation of the Preparation behaviour Inherrited from Root class.
ingredient | Ingredient to prepare |
Definition at line 723 of file mh5ingredient.c.
MHEG5ErrorCode MHEG5preload | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the Preload action Preload Prepares an Ingredient and provides a hint to the MHEG-5 engine to prepare the content data of an Ingredient for future use. Execute the following sequence of actions:
MHEG5PROFILE_UK1_06
Definition at line 1205 of file mh5ingredient.c.
MHEG5ErrorCode MHEG5setData | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of SetData action SetData (NewContent) Set the Content attribute of the target Ingredient to NewContent. Provisions of use: The Target object shall be an available Ingredient object. The ContentHook of the target Ingredient object shall be encoded. Data included or referenced by NewContent shall have the encoding format determined by ContentHook of the target Ingredient. If Content is currently set to included data, NewContent shall be set or refer to included data. If Content is currently set to a reference to an external data source, then NewContent shall be set or refer to a reference to an external data source. COR1: Execute the following sequence of actions:
target | target object for this action |
params | Action parameters |
Definition at line 936 of file mh5ingredient.c.
MHEG5ErrorCode MHEG5unload | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the Unload action Unload Destroys an Ingredient and provides a hint to the MHEG-5 engine to free resources allocated to an Ingredient. Execute the following sequence of actions:
Definition at line 1324 of file mh5ingredient.c.