RDK Documentation (Open Sourced RDK Components)
dsVideoPortSettings_sample.h
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 
21 
22 /**
23 * @defgroup devicesettings
24 * @{
25 * @defgroup hal
26 * @{
27 **/
28 
29 
30 #ifndef _DS_VIDEOOUTPUTPORTSETTINGS_H_
31 #define _DS_VIDEOOUTPUTPORTSETTINGS_H_
32 
33 #include "dsTypes.h"
34 #include "dsUtl.h"
35 #include "dsVideoResolutionSettings.h"
36 
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 namespace {
43 /*
44  * Enumerate the supported configurations here.
45  */
46 static const dsVideoPortType_t kSupportedPortTypes[] = { dsVIDEOPORT_TYPE_HDMI };
47 
48 /*
49  * Enumerate all configuarations for each port type.
50  */
51 static const dsVideoPortTypeConfig_t kConfigs[]= {
52  {
53  /*.typeId = */ dsVIDEOPORT_TYPE_HDMI,
54  /*.name = */ "HDMI",
55  /*.dtcpSupported = */ false,
56  /*.hdcpSupported = */ true,
57  /*.restrictedResollution = */ -1,
58  /*.numSupportedResolutions = */ dsUTL_DIM(kResolutions), // 0 means "Info available at runtime"
59  /*.supportedResolutons = */ kResolutions,
60  },
61 };
62 
63 /*
64  * Enumerate all enabled Video Output Ports here.
65  */
66 static const dsVideoPortPortConfig_t kPorts[] = {
67  {
68  /*.typeId = */ {dsVIDEOPORT_TYPE_HDMI, 0},
69  /*.connectedAOP */ {dsAUDIOPORT_TYPE_HDMI, 0},
70  /*.defaultResolution = */ "720p"
71  },
72 };
73 
74 }
75 
76 #ifdef __cplusplus
77 }
78 #endif
79 
80 
81 #endif /* VIDEOOUTPUTPORTSETTINGS_H_ */
82 
83 
84 /** @} */
85 /** @} */
dsVIDEOPORT_TYPE_HDMI
@ dsVIDEOPORT_TYPE_HDMI
Definition: dsTypes.h:441
dsTypes.h
Device Settings HAL types.
dsVideoPortType_t
enum _dsVideoPortType_t dsVideoPortType_t
dsUtl.h
Device Settings HAL utilities.
_dsVideoPortPortConfig_t
Structure that defines video port configuration settings.
Definition: dsTypes.h:737
_dsVideoPortTypeConfig_t
Structure that defines the video output port configuration.
Definition: dsTypes.h:673
dsUTL_DIM
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
Definition: dsUtl.h:85
dsAUDIOPORT_TYPE_HDMI
@ dsAUDIOPORT_TYPE_HDMI
Definition: dsTypes.h:167