Implementation of the Video class Description Defines the attributes and behaviour of an elementary video stream of a Stream multiplex. The Video object shall be a StreamComponent of a Stream object. Base class Visible Subclasses None Status Concrete class. More...
#include <string.h>
#include "mh5base.h"
#include "mh5debug.h"
#include "mh5misc.h"
#include "mh5object.h"
#include "mh5variable.h"
#include "mh5video.h"
#include "mh5application.h"
#include "mh5memory.h"
#include "mh5display.h"
Functions | |
void | MHEG5videoInit (MHEG5Video *video) |
Initialise a video object with default values. See also MHEG5videoDestruct. More... | |
void | MHEG5videoFree (MHEG5Video *video) |
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 | MHEG5videoPrepare (MHEG5Video *video) |
Apply the preparation behaviour of the video class As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class. More... | |
void | MHEG5videoActivate (MHEG5Video *video) |
Apply the activation behaviour of the video class. More... | |
void | MHEG5videoDeactivate (MHEG5Video *video) |
Apply the deactivation behaviour of the video class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class. More... | |
void | MHEG5videoDestruct (MHEG5Video *video) |
Destruct a video object. See also MHEG5videoInit. More... | |
MHEG5ErrorCode | MHEG5scaleVideo (MHEG5Root *target, MHEG5GList *params) |
Implementation of the ScaleVideo (XScale, YScale) action of the video class. The effect of this action is to scale the contents of the video to the size (XScale, YScale). ScaleVideo (XScale, YScale) If the MHEG-5 engine implements the Scaling option, the effect of this action is to adapt the rendering of the Video so that it fits to the XScale and YScale dimensions. XScale and YScale parameters represent the final dimensions of the Video in pixel numbers. Thus, the graphical representation of the Video may not keep its original aspect ratio. Note that this action does not affect the BoxSize internal attribute of the Video object. Provisions of use: The Target object shall be an available Video object. XScale and YScale shall be positive Integers. ScaleVideo –> Target, XScale, YScale Target –> GenericObjectReference XScale, YScale –> GenericInteger. More... | |
MHEG5ErrorCode | MHEG5setVideoDecodeOffset (MHEG5Root *target, MHEG5GList *params) |
Implementation of the SetVideoDecodeOffset (NewXOffset, NewYOffset) action of the video class. The effect of this action is to change the location of the decoded and scaled video with respect to the target Video object. SetVideoDecodeOffset (NewXOffset, NewYOffset) Change the location of the decoded and scaled video with respect to the target Video object. The offset parameters may be negative. Execute the following sequence of actions: More... | |
MHEG5ErrorCode | MHEG5getVideoDecodeOffset (MHEG5Root *target, MHEG5GList *params) |
Implementation of the GetVideoDecodeOffset (XOffsetVar, YOffsetVar) action of the video class. GetVideoDecodeOffset (XOffsetVar, YOffsetVar) Returns the location of the decoded and scaled video with respect to the target Video object. The offset values may be negative. Set the Variables referenced by XPositionVar and YPositionVar to the value of the X and Y decode offset of the target Video object respectively. Provisions of use: The Target object shall be an available Video object. XOffsetVar and YOffsetVar shall refer to active IntegerVariable objects. GetVideoDecodeOffset –> Target, XOffsetVar, YOffsetVar Target –> GenericObjectReference XOffsetVar, YOffsetVar –> ObjectReference. More... | |
Implementation of the Video class Description Defines the attributes and behaviour of an elementary video stream of a Stream multiplex. The Video object shall be a StreamComponent of a Stream object. Base class Visible Subclasses None Status Concrete class.
MHEG5ErrorCode MHEG5getVideoDecodeOffset | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the GetVideoDecodeOffset (XOffsetVar, YOffsetVar) action of the video class. GetVideoDecodeOffset (XOffsetVar, YOffsetVar) Returns the location of the decoded and scaled video with respect to the target Video object. The offset values may be negative. Set the Variables referenced by XPositionVar and YPositionVar to the value of the X and Y decode offset of the target Video object respectively. Provisions of use: The Target object shall be an available Video object. XOffsetVar and YOffsetVar shall refer to active IntegerVariable objects. GetVideoDecodeOffset –> Target, XOffsetVar, YOffsetVar Target –> GenericObjectReference XOffsetVar, YOffsetVar –> ObjectReference.
target | target object for this action |
params | Action parameters |
MHEG5ErrorCode MHEG5scaleVideo | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the ScaleVideo (XScale, YScale) action of the video class. The effect of this action is to scale the contents of the video to the size (XScale, YScale). ScaleVideo (XScale, YScale) If the MHEG-5 engine implements the Scaling option, the effect of this action is to adapt the rendering of the Video so that it fits to the XScale and YScale dimensions. XScale and YScale parameters represent the final dimensions of the Video in pixel numbers. Thus, the graphical representation of the Video may not keep its original aspect ratio. Note that this action does not affect the BoxSize internal attribute of the Video object. Provisions of use: The Target object shall be an available Video object. XScale and YScale shall be positive Integers. ScaleVideo –> Target, XScale, YScale Target –> GenericObjectReference XScale, YScale –> GenericInteger.
target | target object for this action |
params | Action parameters |
MHEG5ErrorCode MHEG5setVideoDecodeOffset | ( | MHEG5Root * | target, |
MHEG5GList * | params | ||
) |
Implementation of the SetVideoDecodeOffset (NewXOffset, NewYOffset) action of the video class. The effect of this action is to change the location of the decoded and scaled video with respect to the target Video object. SetVideoDecodeOffset (NewXOffset, NewYOffset) Change the location of the decoded and scaled video with respect to the target Video object. The offset parameters may be negative. Execute the following sequence of actions:
target | target object for this action |
params | Action parameters |
void MHEG5videoActivate | ( | MHEG5Video * | video | ) |
Apply the activation behaviour of the video class.
video | Video object to activate |
void MHEG5videoDeactivate | ( | MHEG5Video * | video | ) |
Apply the deactivation behaviour of the video class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class.
video | Video object to deactivate |
void MHEG5videoDestruct | ( | MHEG5Video * | video | ) |
Destruct a video object. See also MHEG5videoInit.
video | Video object to destuct |
void MHEG5videoFree | ( | MHEG5Video * | video | ) |
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.
video | Pointer to object to free. |
void MHEG5videoInit | ( | MHEG5Video * | video | ) |
Initialise a video object with default values. See also MHEG5videoDestruct.
<Function description>="">
video | Pointer to object to initialise |
void MHEG5videoPrepare | ( | MHEG5Video * | video | ) |
Apply the preparation behaviour of the video class As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class.
video | Video object to prepare |