MHEG5  18.9.0
MHEG5 Documentation
mh5palette.c
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2004 Ocean Blue Software Ltd
4  * Copyright © 2000 Koninklijke Philips Electronics N.V
5  *
6  * This file is part of a DTVKit Software Component
7  * You are permitted to copy, modify or distribute this file subject to the terms
8  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
9  *
10  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
11  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
12  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
13  *
14  * If you or your organisation is not a member of DTVKit then you have access
15  * to this source code outside of the terms of the licence agreement
16  * and you are expected to delete this and any associated files immediately.
17  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
18  *******************************************************************************/
31 /*---includes for this file--------------------------------------------------*/
32 #include "mh5palette.h"
33 #include "mh5memory.h" /* for constructor */
34 #include "mh5queue.h" /* Events */
35 #include <stdlib.h>
36 
37 #ifndef MHEG5PROFILE_UK1_06
38 /*
39  Debug
40  */
41 #ifdef MH5PRINTOUT
42 void MHEG5palettePrint(MHEG5Palette *palette, char *out)
43 {
44  MHEG5ingredientPrint(&palette->ingredient, out);
45 }
46 
47 #endif
48 
49 /*
50  Constructor
51  */
58 {
59  assert(palette);
60 
62 }
63 
72 {
73  assert(palette);
74 
76 }
77 
78 /*
79  Internal behaviours
80  */
81 /*
82  no special Prepare Function
83  */
85 {
86  assert(palette);
88 }
89 
90 /*
91  freeMem of Palette
92  */
94 {
95  assert(palette);
97 }
98 
99 /*
100  Activation
101  */
103 {
104  assert(palette);
105  if (!palette->ingredient.root.availabilityStatus)
106  {
108  }
109  /*MHEG5ingredientActivate(&palette->ingredient);*/
111  MHEG5sendSync((MHEG5Root *) palette, MHEG5ISRUNNING, 0);
112 }
113 
114 /*
115  Deactivation
116  */
118 {
119  assert(palette);
121 }
122 
123 #endif /* !MHEG5PROFILE_UK1_06 */
MHEG5Bool availabilityStatus
Definition: mh5root.h:52
void MHEG5paletteInit(MHEG5Palette *palette)
Initialise a palette object with default values.
Definition: mh5palette.c:57
void MHEG5ingredientInit(MHEG5Ingredient *ingredient)
Initialise a ingredient object with default values.
Implement the MHEG5 Palette Class Palette Class Defines a class to represent a colour look-up table...
void MHEG5paletteActivate(MHEG5Palette *palette)
Definition: mh5palette.c:102
void MHEG5paletteDestruct(MHEG5Palette *palette)
Definition: mh5palette.c:93
void MHEG5ingredientDestruct(MHEG5Ingredient *ingredient)
Implementation of the Destruction behaviour Execute the following sequence of actions: ...
void MHEG5palettePrepare(MHEG5Palette *palette)
Definition: mh5palette.c:84
Event handling. Implementation of a combined queue for events and actions. This is the eventsystem wh...
#define MHEG5TRUE
Definition: mh5base.h:49
void MHEG5ingredientDeactivate(MHEG5Ingredient *ingredient)
Implementation of Deactivate behaviour Inherrited from Root class.
void MHEG5ingredientPrepare(MHEG5Ingredient *ingredient)
Implementation of the Preparation behaviour Inherrited from Root class.
MHEG5Bool runningStatus
Definition: mh5root.h:51
redirection include
void MHEG5ingredientFree(MHEG5Ingredient *ingredient)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
void MHEG5paletteFree(MHEG5Palette *palette)
Free off all memory associated with the specified object, including any exchanged attributes and inte...
Definition: mh5palette.c:71
MHEG5Ingredient ingredient
Definition: mh5palette.h:45
void MHEG5sendSync(MHEG5Root *source, MHEG5EventType event, MHEG5Int data)
Store an event in the synchronous event queue.
Definition: mh5queue.c:1651
void MHEG5paletteDeactivate(MHEG5Palette *palette)
Definition: mh5palette.c:117