source: svn/newcon3bcm2_21bu/nexus/modules/audio/7552/include/nexus_dts_encode.h

Last change on this file was 76, checked in by megakiss, 10 years ago

1W 대기전력을 만족시키기 위하여 POWEROFF시 튜너를 Standby 상태로 함

  • Property svn:executable set to *
File size: 6.7 KB
Line 
1/***************************************************************************
2*     (c)2004-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_dts_encode.h $
39* $brcm_Revision: 3 $
40* $brcm_Date: 4/22/11 10:43a $
41*
42* API Description:
43*   API name: DtsEncode
44*    Specific APIs related to DTS Audio Encoding
45*
46* Revision History:
47*
48* $brcm_Log: /nexus/modules/audio/7400/include/nexus_dts_encode.h $
49*
50* 3   4/22/11 10:43a erickson
51* SW7420-1148: remove attr{shutdown=NEXUS_AudioInput_Shutdown}
52*
53* 2   12/14/10 3:18p erickson
54* SW7420-1285: add null_allowed attribute
55*
56* 1   9/10/08 1:15p jgarrett
57* PR 46131: Adding DtsEncode
58*
59***************************************************************************/
60
61#ifndef NEXUS_DTS_ENCODE_H__
62#define NEXUS_DTS_ENCODE_H__
63
64#include "nexus_types.h"
65#include "nexus_audio_types.h"
66
67#ifdef __cplusplus
68extern "C" {
69#endif
70
71/*=************************************
72Interface: DtsEncode
73
74Header file: nexus_dts_encode.h
75
76Module: Audio
77
78Description: DTS Audio Encoding
79
80**************************************/
81
82/**
83Summary:
84Handle for DTS Encode stage
85**/
86typedef struct NEXUS_DtsEncode *NEXUS_DtsEncodeHandle;
87
88/***************************************************************************
89Summary:
90DTS Encode Settings
91***************************************************************************/
92typedef struct NEXUS_DtsEncodeSettings
93{
94    bool spdifHeaderEnabled;    /* If true, SPDIF header generation is enabled.  */
95} NEXUS_DtsEncodeSettings;
96
97/***************************************************************************
98Summary:
99    Get default settings for an DTS Encode stage
100***************************************************************************/
101void NEXUS_DtsEncode_GetDefaultSettings(
102    NEXUS_DtsEncodeSettings *pSettings   /* [out] default settings */
103    );
104
105/***************************************************************************
106Summary:
107    Open an DTS Encode stage
108***************************************************************************/
109NEXUS_DtsEncodeHandle NEXUS_DtsEncode_Open( /* attr{destructor=NEXUS_DtsEncode_Close}  */
110    const NEXUS_DtsEncodeSettings *pSettings     /* attr{null_allowed=y} */
111    );
112
113/***************************************************************************
114Summary:
115    Close an DTS Encode stage
116   
117Description:
118    Input to the stage must be removed prior to closing.
119***************************************************************************/
120void NEXUS_DtsEncode_Close(
121    NEXUS_DtsEncodeHandle handle
122    );
123
124/***************************************************************************
125Summary:
126    Get Settings for an DTS Encode stage
127***************************************************************************/
128void NEXUS_DtsEncode_GetSettings(
129    NEXUS_DtsEncodeHandle handle,
130    NEXUS_DtsEncodeSettings *pSettings    /* [out] Settings */
131    );
132
133/***************************************************************************
134Summary:
135    Set Settings for an DTS Encode stage
136***************************************************************************/
137NEXUS_Error NEXUS_DtsEncode_SetSettings(
138    NEXUS_DtsEncodeHandle handle,
139    const NEXUS_DtsEncodeSettings *pSettings
140    );
141
142/***************************************************************************
143Summary:
144    Get the audio connector for an DTS Encode stage
145***************************************************************************/
146NEXUS_AudioInput NEXUS_DtsEncode_GetConnector(
147    NEXUS_DtsEncodeHandle handle
148    );
149
150/***************************************************************************
151Summary:
152Add an input to this processing stage
153***************************************************************************/
154NEXUS_Error NEXUS_DtsEncode_AddInput(
155    NEXUS_DtsEncodeHandle handle,
156    NEXUS_AudioInput input
157    );
158
159/***************************************************************************
160Summary:
161Remove an input from this processing stage
162***************************************************************************/
163NEXUS_Error NEXUS_DtsEncode_RemoveInput(
164    NEXUS_DtsEncodeHandle handle,
165    NEXUS_AudioInput input
166    );
167
168/***************************************************************************
169Summary:
170Remove all inputs from this processing stage
171***************************************************************************/
172NEXUS_Error NEXUS_DtsEncode_RemoveAllInputs(
173    NEXUS_DtsEncodeHandle handle
174    );
175
176#ifdef __cplusplus
177}
178#endif
179
180#endif /* #ifndef NEXUS_DTS_ENCODE_H__ */
181
Note: See TracBrowser for help on using the repository browser.