RDK Documentation (Open Sourced RDK Components)
dsVideoDeviceSettings_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_VIDEODEVICESETTINGS_H_
31
#define _DS_VIDEODEVICESETTINGS_H_
32
33
#include "
dsUtl.h
"
34
#include "
dsTypes.h
"
35
36
37
#ifdef __cplusplus
38
extern
"C"
{
39
#endif
40
41
namespace
{
42
/*
43
* Enumerate supported DFCs.
44
*/
45
static
const
dsVideoZoom_t
kSupportedDFCs[] = {
dsVIDEO_ZOOM_NONE
,
dsVIDEO_ZOOM_FULL
,
dsVIDEO_ZOOM_PLATFORM
};
46
static
const
dsVideoZoom_t
kDefaultDFC =
dsVIDEO_ZOOM_FULL
;
47
48
static
const
int
kNumVideoDevices = 1;
49
50
51
static
const
dsVideoConfig_t
kConfigs[]= {
52
{
53
/*.numSupportedDFCs = */
dsUTL_DIM
(kSupportedDFCs),
// 0 means "Info available at runtime"
54
/*.supportedDFCs = */
kSupportedDFCs,
55
/*.defaultDFC = */
dsVIDEO_ZOOM_FULL
,
56
},
57
};
58
59
typedef
int
_SafetyCheck[(
dsUTL_DIM
(kConfigs) == kNumVideoDevices) ? 1 : -1];
60
61
}
62
#ifdef __cplusplus
63
}
64
#endif
65
66
#endif
/* RPVIDEODEVICESETTINGS_H_ */
67
68
69
/** @} */
70
/** @} */
dsTypes.h
Device Settings HAL types.
dsVIDEO_ZOOM_NONE
@ dsVIDEO_ZOOM_NONE
Definition:
dsTypes.h:579
dsUtl.h
Device Settings HAL utilities.
dsVideoZoom_t
enum _dsVideoZoom_t dsVideoZoom_t
_dsVideoConfig_t
Structure that defines video device configuration for the output.
Definition:
dsTypes.h:612
dsVIDEO_ZOOM_PLATFORM
@ dsVIDEO_ZOOM_PLATFORM
Definition:
dsTypes.h:587
dsVIDEO_ZOOM_FULL
@ dsVIDEO_ZOOM_FULL
Definition:
dsTypes.h:580
dsUTL_DIM
#define dsUTL_DIM(arr)
Device Settings general Array dimension calculation inline definition.
Definition:
dsUtl.h:85
components
generic
devicesettings
hal
include
dsVideoDeviceSettings_sample.h
Generated on Thu Feb 9 2023 06:32:29 for RDK Documentation (Open Sourced RDK Components) by
1.8.17