| 1 | /*************************************************************************** |
|---|
| 2 | * (c)2007-2011 Broadcom Corporation |
|---|
| 3 | * |
|---|
| 4 | * This program is the proprietary software of Broadcom Corporation and/or its licensors, |
|---|
| 5 | * and may only be used, duplicated, modified or distributed pursuant to the terms and |
|---|
| 6 | * conditions of a separate, written license agreement executed between you and Broadcom |
|---|
| 7 | * (an "Authorized License"). Except as set forth in an Authorized License, Broadcom grants |
|---|
| 8 | * no license (express or implied), right to use, or waiver of any kind with respect to the |
|---|
| 9 | * Software, and Broadcom expressly reserves all rights in and to the Software and all |
|---|
| 10 | * intellectual property rights therein. IF YOU HAVE NO AUTHORIZED LICENSE, THEN YOU |
|---|
| 11 | * HAVE NO RIGHT TO USE THIS SOFTWARE IN ANY WAY, AND SHOULD IMMEDIATELY |
|---|
| 12 | * NOTIFY BROADCOM AND DISCONTINUE ALL USE OF THE SOFTWARE. |
|---|
| 13 | * |
|---|
| 14 | * Except as expressly set forth in the Authorized License, |
|---|
| 15 | * |
|---|
| 16 | * 1. This program, including its structure, sequence and organization, constitutes the valuable trade |
|---|
| 17 | * secrets of Broadcom, and you shall use all reasonable efforts to protect the confidentiality thereof, |
|---|
| 18 | * and to use this information only in connection with your use of Broadcom integrated circuit products. |
|---|
| 19 | * |
|---|
| 20 | * 2. TO THE MAXIMUM EXTENT PERMITTED BY LAW, THE SOFTWARE IS PROVIDED "AS IS" |
|---|
| 21 | * AND WITH ALL FAULTS AND BROADCOM MAKES NO PROMISES, REPRESENTATIONS OR |
|---|
| 22 | * WARRANTIES, EITHER EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE, WITH RESPECT TO |
|---|
| 23 | * THE SOFTWARE. BROADCOM SPECIFICALLY DISCLAIMS ANY AND ALL IMPLIED WARRANTIES |
|---|
| 24 | * OF TITLE, MERCHANTABILITY, NONINFRINGEMENT, FITNESS FOR A PARTICULAR PURPOSE, |
|---|
| 25 | * LACK OF VIRUSES, ACCURACY OR COMPLETENESS, QUIET ENJOYMENT, QUIET POSSESSION |
|---|
| 26 | * OR CORRESPONDENCE TO DESCRIPTION. YOU ASSUME THE ENTIRE RISK ARISING OUT OF |
|---|
| 27 | * USE OR PERFORMANCE OF THE SOFTWARE. |
|---|
| 28 | * |
|---|
| 29 | * 3. TO THE MAXIMUM EXTENT PERMITTED BY LAW, IN NO EVENT SHALL BROADCOM OR ITS |
|---|
| 30 | * LICENSORS BE LIABLE FOR (i) CONSEQUENTIAL, INCIDENTAL, SPECIAL, INDIRECT, OR |
|---|
| 31 | * EXEMPLARY DAMAGES WHATSOEVER ARISING OUT OF OR IN ANY WAY RELATING TO YOUR |
|---|
| 32 | * USE OF OR INABILITY TO USE THE SOFTWARE EVEN IF BROADCOM HAS BEEN ADVISED OF |
|---|
| 33 | * THE POSSIBILITY OF SUCH DAMAGES; OR (ii) ANY AMOUNT IN EXCESS OF THE AMOUNT |
|---|
| 34 | * ACTUALLY PAID FOR THE SOFTWARE ITSELF OR U.S. $1, WHICHEVER IS GREATER. THESE |
|---|
| 35 | * LIMITATIONS SHALL APPLY NOTWITHSTANDING ANY FAILURE OF ESSENTIAL PURPOSE OF |
|---|
| 36 | * ANY LIMITED REMEDY. |
|---|
| 37 | * |
|---|
| 38 | * $brcm_Workfile: nexus_svideo_output.h $ |
|---|
| 39 | * $brcm_Revision: 7 $ |
|---|
| 40 | * $brcm_Date: 7/25/11 3:00p $ |
|---|
| 41 | * |
|---|
| 42 | * Module Description: |
|---|
| 43 | * |
|---|
| 44 | * Revision History: |
|---|
| 45 | * |
|---|
| 46 | * $brcm_Log: /nexus/modules/display/7400/include/nexus_svideo_output.h $ |
|---|
| 47 | * |
|---|
| 48 | * 7 7/25/11 3:00p jhaberf |
|---|
| 49 | * SWDTV-8043: added null_allowed attribute for some APIs |
|---|
| 50 | * |
|---|
| 51 | * 6 5/13/11 12:17p erickson |
|---|
| 52 | * SW7420-1873: remove shutdown attribute |
|---|
| 53 | * |
|---|
| 54 | * 5 2/7/08 11:16p vsilyaev |
|---|
| 55 | * PR 38682: Added linux kernel/proxy support for 93563 platform |
|---|
| 56 | * |
|---|
| 57 | * 4 2/6/08 12:42p vsilyaev |
|---|
| 58 | * PR 38682: Added attributes for the linux/kernel proxy mode |
|---|
| 59 | * |
|---|
| 60 | * 3 1/23/08 9:22p vobadm |
|---|
| 61 | * PR35457: update docs |
|---|
| 62 | * |
|---|
| 63 | * 2 1/23/08 2:39p erickson |
|---|
| 64 | * PR35457: update docs |
|---|
| 65 | * |
|---|
| 66 | * 1 1/18/08 2:16p jgarrett |
|---|
| 67 | * PR 38808: Merging to main branch |
|---|
| 68 | * |
|---|
| 69 | * Nexus_Devel/8 11/30/07 10:52a erickson |
|---|
| 70 | * PR35457: api update |
|---|
| 71 | * |
|---|
| 72 | * Nexus_Devel/7 11/2/07 4:42p vsilyaev |
|---|
| 73 | * PR 36696: Used connector model for VideoInput's and VideoOutput's |
|---|
| 74 | * |
|---|
| 75 | * Nexus_Devel/6 10/4/07 1:09p vsilyaev |
|---|
| 76 | * PR 34662: Removed VideoOutputDesc |
|---|
| 77 | * |
|---|
| 78 | * Nexus_Devel/5 9/25/07 12:33p vsilyaev |
|---|
| 79 | * PR 34662: Fixed warnings |
|---|
| 80 | * |
|---|
| 81 | * Nexus_Devel/4 9/17/07 6:48p vsilyaev |
|---|
| 82 | * PR 34662: Coded more implementation |
|---|
| 83 | * |
|---|
| 84 | * Nexus_Devel/3 9/12/07 1:52p vsilyaev |
|---|
| 85 | * PR 34419: Updated display API |
|---|
| 86 | * |
|---|
| 87 | * Nexus_Devel/2 9/10/07 4:35p vsilyaev |
|---|
| 88 | * PR 34662: Added nexus_display_types.h |
|---|
| 89 | * |
|---|
| 90 | * Nexus_Devel/1 9/10/07 2:42p vsilyaev |
|---|
| 91 | * PR 34419: Video display interface |
|---|
| 92 | * |
|---|
| 93 | * |
|---|
| 94 | **************************************************************************/ |
|---|
| 95 | #ifndef NEXUS_SVIDEO_OUTPUT_H__ |
|---|
| 96 | #define NEXUS_SVIDEO_OUTPUT_H__ |
|---|
| 97 | |
|---|
| 98 | #include "nexus_display_types.h" |
|---|
| 99 | |
|---|
| 100 | #ifdef __cplusplus |
|---|
| 101 | extern "C" { |
|---|
| 102 | #endif |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | Summary: |
|---|
| 106 | Handle for the S-video output interface. |
|---|
| 107 | **/ |
|---|
| 108 | typedef struct NEXUS_SvideoOutput *NEXUS_SvideoOutputHandle; |
|---|
| 109 | |
|---|
| 110 | /** |
|---|
| 111 | Summary: |
|---|
| 112 | Settings for Svideo output interface |
|---|
| 113 | **/ |
|---|
| 114 | typedef struct NEXUS_SvideoOutputSettings |
|---|
| 115 | { |
|---|
| 116 | NEXUS_VideoDac dacY; |
|---|
| 117 | NEXUS_VideoDac dacC; |
|---|
| 118 | } NEXUS_SvideoOutputSettings; |
|---|
| 119 | |
|---|
| 120 | /* |
|---|
| 121 | Summary: |
|---|
| 122 | Get default settings for the structure. |
|---|
| 123 | |
|---|
| 124 | Description: |
|---|
| 125 | This is required in order to make application code resilient to the addition of new strucutre members in the future. |
|---|
| 126 | */ |
|---|
| 127 | void NEXUS_SvideoOutput_GetDefaultSettings( |
|---|
| 128 | NEXUS_SvideoOutputSettings *pSettings /* [out] Settings */ |
|---|
| 129 | ); |
|---|
| 130 | |
|---|
| 131 | /** |
|---|
| 132 | Summary: |
|---|
| 133 | Open a new Svideo output interface |
|---|
| 134 | **/ |
|---|
| 135 | NEXUS_SvideoOutputHandle NEXUS_SvideoOutput_Open( /* attr{destructor=NEXUS_SvideoOutput_Close} */ |
|---|
| 136 | unsigned index, |
|---|
| 137 | const NEXUS_SvideoOutputSettings *pSettings /* attr{null_allowed=y} */ |
|---|
| 138 | ); |
|---|
| 139 | |
|---|
| 140 | /** |
|---|
| 141 | Summary: |
|---|
| 142 | Close the SvideoOutput interface |
|---|
| 143 | **/ |
|---|
| 144 | void NEXUS_SvideoOutput_Close( |
|---|
| 145 | NEXUS_SvideoOutputHandle output |
|---|
| 146 | ); |
|---|
| 147 | |
|---|
| 148 | |
|---|
| 149 | /** |
|---|
| 150 | Summary: |
|---|
| 151 | Get current settings |
|---|
| 152 | **/ |
|---|
| 153 | void NEXUS_SvideoOutput_GetSettings( |
|---|
| 154 | NEXUS_SvideoOutputHandle output, |
|---|
| 155 | NEXUS_SvideoOutputSettings *pSettings /* [out] Settings */ |
|---|
| 156 | ); |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | Summary: |
|---|
| 160 | Apply new settings |
|---|
| 161 | **/ |
|---|
| 162 | NEXUS_Error NEXUS_SvideoOutput_SetSettings( |
|---|
| 163 | NEXUS_SvideoOutputHandle output, |
|---|
| 164 | const NEXUS_SvideoOutputSettings *pSettings |
|---|
| 165 | ); |
|---|
| 166 | |
|---|
| 167 | /** |
|---|
| 168 | Summary: |
|---|
| 169 | Returns the abstract NEXUS_VideoOutput connector for this Interface. |
|---|
| 170 | The NEXUS_VideoOutput connector is added to a Display in order to route that Displa's video to the output. |
|---|
| 171 | |
|---|
| 172 | Description: |
|---|
| 173 | Used in NEXUS_Display_AddOutput |
|---|
| 174 | **/ |
|---|
| 175 | NEXUS_VideoOutput NEXUS_SvideoOutput_GetConnector( |
|---|
| 176 | NEXUS_SvideoOutputHandle output |
|---|
| 177 | ); |
|---|
| 178 | |
|---|
| 179 | #ifdef __cplusplus |
|---|
| 180 | } |
|---|
| 181 | #endif |
|---|
| 182 | |
|---|
| 183 | #endif /* NEXUS_SVIDEO_OUTPUT_H__ */ |
|---|