MHEG5  18.9.0
MHEG5 Documentation
dvbevents.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
3  * Copyright © 2013 Ocean Blue Software Ltd
4  *
5  * This file is part of a DTVKit Software Component
6  * You are permitted to copy, modify or distribute this file subject to the terms
7  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
8  *
9  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
11  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12  *
13  * If you or your organisation is not a member of DTVKit then you have access
14  * to this source code outside of the terms of the licence agreement
15  * and you are expected to delete this and any associated files immediately.
16  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
17  *******************************************************************************/
25 #ifndef _DVBEVENTS_H
26 #define _DVBEVENTS_H
27 
28 #include "mherrors.h"
29 
30 /* Events generated in receiver and passed to MHEG5 engine
31  * Decoder events not support by hardware should be simulated in DVB stack.
32  */
33 typedef enum
34 {
36 
37  /* decoder has started playing an audio stream, 'data' set to 0 */
39 
40  /* decoder has stopped playing an audio stream, 'data' set to 0 */
42 
43  /* decoder has started playing an audio clip, 'data' set to 0 */
45 
46  /* decoder has stopped playing an audio clip, 'data' set to 0 */
48 
49  /* decoder has started playing an video stream, 'data' set to 0 */
51 
52  /* decoder has stopped playing an video stream, 'data' set to 0 */
54 
55  /* Event raised when */
57 
58  /* demux path for DSM-CC used by presentation engine (live path) has changed *
59  * 'data' set to path value */
61 
62  /* When user video preference causes change to Decoder Format Conversation. *
63  * It is not generated when the broadcast video changes aspect ratio, or when *
64  * a change affects only display format conversion. *
65  * 'data' can be set to Decoder Format Conversion */
67 
68  /* Network status has changed. 'data' set as defined by E_NETWORK_STATUS */
70 
71  /* Tell engine that DVP is ready to received streaming data (MHEG5 ICS) */
73 
74  /* Response to engine request for parental control guidance */
76 
77  /* Audio description presentation viewer preference changed *
78  * 'data' value 0 - normal audio, 'data' value 1 - Audio description */
80 
81  /* Subtitle presentation viewer preferences changed *
82  * 'data' value 1 for receiver to display DVB subtitles, value 0 for no subt */
84 
85  /* Notifies the MHEG5 engine when the audio language preferences changes */
87 
88  /* Notifies the MHEG5 engine when the subtitle language preferences change */
90 
91  /* When the list of events to be recorded by the PVR changes.
92  * Possible reasons for changes are:
93  * 1. event recorded,
94  * 2. event cancelled due to conflict. */
96 
97  /* When the list of events to be recorded by the PVR changes.
98  * Possible reasons for changes are:
99  * 1. event recorded,
100  * 2. event cancelled due to conflict. */
102 
103  /* Notifies the MHEG5 engine of the status of the Connected-TV launched
104  * application */
106 
107  /* Notifies the MHEG5 engine of the CI CAM has been removed from CI slot
108  * Event data is the slot number */
110 
111  /* Non-event - should not be generated */
113 } E_DvbEvent;
114 
116 
124 
131 
132 #endif /* _DVBEVENTS_H */
E_DvbEvent
Definition: dvbevents.h:33
const char * data
Definition: mh5gate.c:56
E_MhegErr
Definition: mherrors.h:28
E_MhegErr(* F_NotifyDvbEvent)(E_DvbEvent event, U32BIT data)
Definition: dvbevents.h:115
MHEG5 engine interface error codes.
E_MhegErr DVB_MhegEventsStart(F_NotifyDvbEvent handler)
Start listening for DVB events.
E_MhegErr DVB_MhegEventsStop(void)
Stop listening for DVB events.
uint32_t U32BIT
Definition: techtype.h:86