MHEG5  15.3.0
include/dvbevents.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2013 Ocean Blue Software Ltd
00004  *
00005  * This file is part of a DTVKit Software Component
00006  * You are permitted to copy, modify or distribute this file subject to the terms
00007  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
00008  * 
00009  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
00010  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
00011  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
00012  * 
00013  * If you or your organisation is not a member of DTVKit then you have access
00014  * to this source code outside of the terms of the licence agreement
00015  * and you are expected to delete this and any associated files immediately.
00016  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
00017  *******************************************************************************/
00025 #ifndef _DVBEVENTS_H
00026 #define _DVBEVENTS_H
00027 
00028 #include "mherrors.h"
00029 
00030 /* Events generated in receiver and passed to MHEG5 engine */
00031 typedef enum
00032 {
00033    DVB_EVENT_TUNE_OFF,
00034 
00035    /* decoder has started playing an audio stream, 'data' set to 0               */
00036    DVB_EVENT_AUDIO_STARTED,
00037 
00038    /* decoder has stopped playing an audio stream, 'data' set to 0               */
00039    DVB_EVENT_AUDIO_STOPPED,
00040 
00041    /* decoder has started playing an audio clip, 'data' set to 0                 */
00042    DVB_EVENT_SAMPLE_STARTED,
00043 
00044    /* decoder has stopped playing an audio clip, 'data' set to 0                 */
00045    DVB_EVENT_SAMPLE_STOPPED,
00046 
00047    /* decoder has started playing an video stream, 'data' set to 0               */
00048    DVB_EVENT_VIDEO_STARTED,
00049 
00050    /* decoder has stopped playing an video stream, 'data' set to 0               */
00051    DVB_EVENT_VIDEO_STOPPED,
00052 
00053    /* Event raised when */
00054    DVB_EVENT_TUNE_TO_SERVICE,
00055 
00056    /* demux path for DSM-CC used by presentation engine (live path) has changed  *
00057     * 'data' set to path value                                                   */
00058    DVB_EVENT_DEMUX_PATH_CHANGE,
00059 
00060    /* When user video preference causes change to Decoder Format Conversation.   *
00061     * It is not generated when the broadcast video changes aspect ratio, or when *
00062     * a change affects only display format conversion.                           *
00063     * 'data' can be set to Decoder Format Conversion                             */
00064    DVB_EVENT_VIDEO_PREF_CHANGED,
00065 
00066    /* Network status has changed. 'data' set as defined by E_NETWORK_STATUS      */
00067    DVB_EVENT_NETWORK_STATUS_CHANGED,
00068 
00069    /* Tell engine that DVP is ready to received streaming data (MHEG5 ICS) */
00070    DVB_EVENT_STREAMING_READY,
00071 
00072    /* Response to engine request for parental control guidance */
00073    DVB_EVENT_GUIDANCE_RESPONSE,
00074 
00075    /* Audio description presentation viewer preference changed                   *
00076     * 'data' value 0 - normal audio, 'data' value 1 - Audio description          */
00077    DVB_EVENT_AUDIODESC_PREF_CHANGED,
00078 
00079    /* Subtitle presentation viewer preferences changed                           *
00080     * 'data' value 1 for receiver to display DVB subtitles, value 0 for no subt  */
00081    DVB_EVENT_SUBTITLE_PREF_CHANGED,
00082 
00083    /* Notifies the MHEG5 engine when the audio language preferences changes      */
00084    DVB_EVENT_AUDIO_LANG_PREF_CHANGED,
00085 
00086    /* Notifies the MHEG5 engine when the subtitle language preferences change    */
00087    DVB_EVENT_SUBTITLE_LANG_PREF_CHANGED,
00088 
00089    /* When the list of events to be recorded by the PVR changes.
00090     * Possible reasons for changes are:
00091     *           1. event recorded,
00092     *           2. event cancelled due to conflict.                              */
00093    DVB_EVENT_PVR_RECORD_LIST_CHANGED,
00094 
00095    /* When the list of events to be recorded by the PVR changes.
00096     * Possible reasons for changes are:
00097     *           1. event recorded,
00098     *           2. event cancelled due to conflict.                              */
00099    DVB_EVENT_PVR_BOOK_RESULT,
00100 
00101    /* Notifies the MHEG5 engine of the status of the Connected-TV launched 
00102     * application                                                                */
00103    DVB_EVENT_APPLICATION_LAUNCH_STATUS,
00104 
00105    /* Non-event - should not be generated                                        */
00106    DVB_EVENT_NONE,
00107 } E_DvbEvent;
00108 
00109 typedef void (*F_NotifyDvbEvent)( E_DvbEvent event, U32BIT data );
00110 
00117 E_MhegErr DVB_MhegEventsStart(F_NotifyDvbEvent handler);
00118 
00124 E_MhegErr DVB_MhegEventsStop();
00125 
00126 #endif /* _DVBEVENTS_H */
 All Data Structures Files Functions Variables Typedefs Defines