| 1 | /*************************************************************************** |
|---|
| 2 | * Copyright (c) 2003-2010, Broadcom Corporation |
|---|
| 3 | * All Rights Reserved |
|---|
| 4 | * Confidential Property of Broadcom Corporation |
|---|
| 5 | * |
|---|
| 6 | * THIS SOFTWARE MAY ONLY BE USED SUBJECT TO AN EXECUTED SOFTWARE LICENSE |
|---|
| 7 | * AGREEMENT BETWEEN THE USER AND BROADCOM. YOU HAVE NO RIGHT TO USE OR |
|---|
| 8 | * EXPLOIT THIS MATERIAL EXCEPT SUBJECT TO THE TERMS OF SUCH AN AGREEMENT. |
|---|
| 9 | * |
|---|
| 10 | * $brcm_Workfile: bxpt_directv_playback.h $ |
|---|
| 11 | * $brcm_Revision: Hydra_Software_Devel/1 $ |
|---|
| 12 | * $brcm_Date: 10/25/10 2:09p $ |
|---|
| 13 | * |
|---|
| 14 | * Porting interface code for the DirecTV PVR playback sections of the |
|---|
| 15 | * data transport core. |
|---|
| 16 | * |
|---|
| 17 | * Revision History: |
|---|
| 18 | * |
|---|
| 19 | * $brcm_Log: /magnum/portinginterface/xpt/base2/bxpt_directv_playback.h $ |
|---|
| 20 | * |
|---|
| 21 | * Hydra_Software_Devel/1 10/25/10 2:09p gmullen |
|---|
| 22 | * SW7425-15: Moved srcs to base2 folder |
|---|
| 23 | * |
|---|
| 24 | * Hydra_Software_Devel/1 10/8/10 2:57p gmullen |
|---|
| 25 | * SW7425-15: Added header files |
|---|
| 26 | * |
|---|
| 27 | * Hydra_Software_Devel/2 9/21/05 2:17p gmullen |
|---|
| 28 | * PR15309: Added support for AAC HE and AC3+ audio, fixed bug in playback |
|---|
| 29 | * PI, modified RAVE PI to support channel change and reset. |
|---|
| 30 | * |
|---|
| 31 | * Hydra_Software_Devel/1 5/13/05 1:26p gmullen |
|---|
| 32 | * PR15309: First draft of XPT PI. |
|---|
| 33 | * |
|---|
| 34 | * |
|---|
| 35 | * |
|---|
| 36 | ***************************************************************************/ |
|---|
| 37 | |
|---|
| 38 | /*= Module Overview ********************************************************* |
|---|
| 39 | This module implements support for the DirecTV specific portions of the PVR |
|---|
| 40 | playback logic. |
|---|
| 41 | ***************************************************************************/ |
|---|
| 42 | |
|---|
| 43 | #ifndef BXPT_DIRECTV_PLAYBACK_H__ |
|---|
| 44 | #define BXPT_DIRECTV_PLAYBACK_H__ |
|---|
| 45 | |
|---|
| 46 | #include "bxpt.h" |
|---|
| 47 | #include "bxpt_playback.h" |
|---|
| 48 | #include "bxpt_directv.h" |
|---|
| 49 | |
|---|
| 50 | #ifdef __cplusplus |
|---|
| 51 | extern "C" { |
|---|
| 52 | #endif |
|---|
| 53 | |
|---|
| 54 | /*************************************************************************** |
|---|
| 55 | Summary: |
|---|
| 56 | Defines for the DirecTV packet sync types that are supported. These |
|---|
| 57 | are used as values passed to BXPT_Playback_ChannelSettings.SyncMode ( used |
|---|
| 58 | when the channel is opened or BXPT_Playback_SetChannelSettings() is called ). |
|---|
| 59 | |
|---|
| 60 | The caller should also set BXPT_Playback_ChannelSettings.PacketLength |
|---|
| 61 | appropriately. |
|---|
| 62 | ****************************************************************************/ |
|---|
| 63 | #define BXPT_PB_SYNC_DIRECTV ( 0x1 ) |
|---|
| 64 | #define BXPT_PB_SYNC_DIRECTV_BLIND ( 0x6 ) |
|---|
| 65 | |
|---|
| 66 | /*************************************************************************** |
|---|
| 67 | Summary: |
|---|
| 68 | Set the MPEG or DirectTV mode in a given parser band. |
|---|
| 69 | |
|---|
| 70 | Description: |
|---|
| 71 | Changes a parser band between MPEG and DirecTV mode. Also sets the packet |
|---|
| 72 | length as appropriate. |
|---|
| 73 | |
|---|
| 74 | Returns: |
|---|
| 75 | BERR_SUCCESS - Change was successful. |
|---|
| 76 | BERR_INVALID_PARAMETER - Bad input parameter |
|---|
| 77 | ***************************************************************************/ |
|---|
| 78 | BERR_Code BXPT_DirecTvPlayback_SetParserBandMode( |
|---|
| 79 | BXPT_Playback_Handle PlaybackHandle, /* [in] Handle for the playback channel */ |
|---|
| 80 | BXPT_ParserMode Mode /* [in] Which mode (packet format) is being used. */ |
|---|
| 81 | ); |
|---|
| 82 | |
|---|
| 83 | /*************************************************************************** |
|---|
| 84 | Summary: |
|---|
| 85 | Get the SyncIn and SyncOut thresholds for the playback sync extractor. |
|---|
| 86 | |
|---|
| 87 | Description: |
|---|
| 88 | Retrieve the sync extractor thresholds for a given playback channel. There |
|---|
| 89 | are two thresholds, the SyncInCount and the SyncOutCount. The SyncInCount |
|---|
| 90 | is the mininum number of valid consecutive packet syncs that must be seen |
|---|
| 91 | before the extraction engine declares itself synchronised to the DirecTv |
|---|
| 92 | stream. The SyncOutCount is the number of invalid or missing syncs that must |
|---|
| 93 | be seen before the extraction engine declares sync is lost. |
|---|
| 94 | |
|---|
| 95 | Returns: |
|---|
| 96 | BERR_SUCCESS - Success. |
|---|
| 97 | BERR_INVALID_PARAMETER - Bad input parameter |
|---|
| 98 | |
|---|
| 99 | See Also: |
|---|
| 100 | BXPT_DirecTvPlayback_SetSyncThresholds |
|---|
| 101 | ****************************************************************************/ |
|---|
| 102 | BERR_Code BXPT_DirecTvPlayback_GetSyncThresholds( |
|---|
| 103 | BXPT_Playback_Handle PlaybackHandle, /* [in] Handle for the playback channel */ |
|---|
| 104 | unsigned int *SyncInCount, /* [out] In-sync threshold. */ |
|---|
| 105 | unsigned int *SyncOutCount /* [out] Out-of-sync threshold. */ |
|---|
| 106 | ); |
|---|
| 107 | |
|---|
| 108 | /*************************************************************************** |
|---|
| 109 | Summary: |
|---|
| 110 | Set the SyncIn and SyncOut thresholds for the playback sync extractor. |
|---|
| 111 | |
|---|
| 112 | Description: |
|---|
| 113 | Set the sync extractor thresholds for a given playback channel. There |
|---|
| 114 | are two thresholds, the SyncInCount and the SyncOutCount. The SyncInCount |
|---|
| 115 | is the mininum number of valid consecutive packet syncs that must be seen |
|---|
| 116 | before the extraction engine declares itself synchronised to the DirecTv |
|---|
| 117 | stream. The SyncOutCount is the number of invalid or missing syncs that must |
|---|
| 118 | be seen before the extraction engine declares sync is lost. |
|---|
| 119 | |
|---|
| 120 | Returns: |
|---|
| 121 | BERR_SUCCESS - Thresholds have been set. |
|---|
| 122 | BERR_INVALID_PARAMETER - Bad input parameter |
|---|
| 123 | |
|---|
| 124 | See Also: |
|---|
| 125 | BXPT_DirecTvPlayback_GetSyncThresholds |
|---|
| 126 | ****************************************************************************/ |
|---|
| 127 | BERR_Code BXPT_DirecTvPlayback_SetSyncThresholds( |
|---|
| 128 | BXPT_Playback_Handle PlaybackHandle, /* [in] Handle for the playback channel */ |
|---|
| 129 | unsigned int SyncInCount, /* [in] In-sync threshold. */ |
|---|
| 130 | unsigned int SyncOutCount /* [in] Out-of-sync threshold. */ |
|---|
| 131 | ); |
|---|
| 132 | |
|---|
| 133 | #ifdef __cplusplus |
|---|
| 134 | } |
|---|
| 135 | #endif |
|---|
| 136 | |
|---|
| 137 | #endif /* #ifndef BXPT_DIRECTV_PLAYBACK_H__ */ |
|---|
| 138 | |
|---|
| 139 | /* end of file */ |
|---|
| 140 | |
|---|
| 141 | |
|---|