RDK Documentation (Open Sourced RDK Components)
Capabilities.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 2017 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 #ifndef STBSERVICE_CAPABILITIES_H_
21 #define STBSERVICE_CAPABILITIES_H_
22 
23 #include "hostIf_utils.h"
24 #include "hostIf_tr69ReqHandler.h"
25 #include "hostIf_main.h"
26 
27 
28 #define CAPABILITIES_OBJ "Device.Services.STBService.1.Capabilities."
29 #define VIDEO_DECODER_OBJ "STBService.1.Capabilities.VideoDecoder."
30 #define HEVC_OBJ "Device.Services.STBService.1.Capabilities.VideoDecoder.X_RDKCENTRAL-COM_MPEGHPart2."
31 #define HEVC_PROFILE_OBJ "Device.Services.STBService.1.Capabilities.VideoDecoder.X_RDKCENTRAL-COM_MPEGHPart2.ProfileLevel"
32 
33 #define VIDEO_STANDARDS_STRING "VideoDecoder.VideoStandards"
34 #define HEVC_AUDIO_STDS_STRING "VideoDecoder.X_RDKCENTRAL-COM_MPEGHPart2.AudioStandards"
35 #define PROFILE_NUM_ENTRIES_STRING "VideoDecoder.X_RDKCENTRAL-COM_MPEGHPart2.ProfileLevelNumberOfEntries"
36 #define AUDIO_STANDARDS_STRING "AudioStandards"
37 
38 //HEVC profile parameters
39 #define PROFILE_NAME_STRING "Profile"
40 #define PROFILE_LEVEL_STRING "Level"
41 #define PROFILE_MAX_DECODE_CAPABILITY_STRING "MaximumDecodingCapability"
42 
43 #define HDMI_RESOLUTIONS_STRING "Device.Services.STBService.1.Capabilities.HDMI.SupportedResolutions"
45 {
48 
49 private:
50  int getVideoStandards(HOSTIF_MsgData_t *);
51  int getNumHEVCProfileEntries(HOSTIF_MsgData_t *);
52  int getHEVCProfileDetails(HOSTIF_MsgData_t *, const char* attr, unsigned int index);
53  int getSupportedResolutions(HOSTIF_MsgData_t *);
54 
55 public:
56  static hostIf_STBServiceCapabilities *getInstance();
57  static void closeInstance(hostIf_STBServiceCapabilities *);
58  int handleGetMsg(HOSTIF_MsgData_t *);
59  int handleSetMsg(HOSTIF_MsgData_t *);
60 };
61 #endif /* STBSERVICE_CAPABILITIES_H_ */
62 
63 
64 /** @} */
65 /** @} */
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
hostIf_main.h
hostIf_main API.
hostIf_STBServiceCapabilities
Definition: Capabilities.h:44