Skip to content

Commit d64233e

Browse files
committed
RDKTV-33767: Remove ODM specific apis - phase2
1 parent 7b0efad commit d64233e

File tree

3 files changed

+4
-85
lines changed

3 files changed

+4
-85
lines changed

AVOutput/AVOutputTV.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2203,8 +2203,8 @@ namespace Plugin {
22032203
uint32_t AVOutputTV::getSupportedDolbyVisionModes(const JsonObject& parameters, JsonObject& response)
22042204
{
22052205
LOGINFO("Entry\n");
2206-
tvDolbyMode_t dvModes[tvMode_Max];
2207-
tvDolbyMode_t *dvModesPtr[tvMode_Max]={0};
2206+
tvDolbyMode_t dvModes[tvMode_Max] = { tvDolbyMode_Invalid };
2207+
tvDolbyMode_t *dvModesPtr[tvMode_Max] = { 0 };
22082208
unsigned short totalAvailable = 0;
22092209
for (int i = 0; i < tvMode_Max; i++)
22102210
{

AVOutput/AVOutputTV.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
#include "tvTypes.h"
2929
#include "tvSettings.h"
30-
#include "tvSettingsExtODM.h"
3130
#include <pthread.h>
3231
#include "Module.h"
3332
#include "tvError.h"
@@ -270,7 +269,6 @@ class AVOutputTV : public AVOutputBase {
270269
private:
271270

272271

273-
tvContentFormatType_t getContentFormatIndex(tvVideoHDRFormat_t formatToConvert);
274272
int getPictureModeIndex(std::string pqmode);
275273
int getSourceIndex(std::string source);
276274
int getFormatIndex(std::string format);
@@ -308,7 +306,6 @@ class AVOutputTV : public AVOutputBase {
308306
string convertSourceIndexToString(int source);
309307
string convertVideoFormatToString(int format);
310308
string convertPictureIndexToString(int pqmode);
311-
tvContentFormatType_t convertFormatStringToTVContentFormat(const char *format);
312309
//std::string convertSourceIndexToString(int sourceIndex);
313310
//std::string convertVideoFormatToString( int formatIndex );
314311
void convertUserScaleBacklightToDriverScale(int format,int * params);
@@ -340,10 +337,8 @@ class AVOutputTV : public AVOutputBase {
340337
int getLocalparam( std::string forParam,paramIndex_t indexInfo,int & value,tvPQParameterIndex_t pqParamIndex,bool sync=false);
341338

342339
tvDataComponentColor_t getComponentColorEnum(std::string colorName);
343-
int getDolbyParams(tvContentFormatType_t format, std::string &s, std::string source = "");
344340
tvError_t getParamsCaps(std::string param, capVectors_t &vecInfo);
345341
int GetPanelID(char *panelid);
346-
int ConvertHDRFormatToContentFormat(tvhdr_type_t hdrFormat);
347342
int ReadCapablitiesFromConf(std::string param, capDetails_t& info);
348343
void getDimmingModeStringFromEnum(int value, std::string &toStore);
349344
void getColorTempStringFromEnum(int value, std::string &toStore);

AVOutput/AVOutputTVHelper.cpp

Lines changed: 2 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -32,36 +32,6 @@ static bool m_isDalsEnabled = false;
3232
namespace WPEFramework {
3333
namespace Plugin {
3434

35-
tvContentFormatType_t AVOutputTV::getContentFormatIndex(tvVideoHDRFormat_t formatToConvert)
36-
{
37-
/* default to SDR always*/
38-
tvContentFormatType_t ret = tvContentFormatType_NONE;
39-
switch(formatToConvert) {
40-
case tvVideoHDRFormat_HLG:
41-
ret = tvContentFormatType_HLG;
42-
break;
43-
44-
case tvVideoHDRFormat_HDR10:
45-
ret = tvContentFormatType_HDR10;
46-
break;
47-
48-
case tvVideoHDRFormat_HDR10PLUS:
49-
ret = tvContentFormatType_HDR10PLUS;
50-
break;
51-
52-
case tvVideoHDRFormat_DV:
53-
ret = tvContentFormatType_DOVI;
54-
break;
55-
56-
case tvVideoHDRFormat_SDR:
57-
case tvVideoHDRFormat_NONE:
58-
default:
59-
ret = tvContentFormatType_SDR;
60-
break;
61-
}
62-
return ret;
63-
}
64-
6535
int AVOutputTV::getPictureModeIndex(std::string pqparam)
6636
{
6737
int index = -1;
@@ -265,8 +235,8 @@ namespace Plugin {
265235
int AVOutputTV::getDolbyModeIndex(const char * dolbyMode)
266236
{
267237
int mode = 0;
268-
tvDolbyMode_t dolbyModes[tvMode_Max];
269-
tvDolbyMode_t *dolbyModesPtr[tvMode_Max]={0};
238+
tvDolbyMode_t dolbyModes[tvMode_Max] = { tvDolbyMode_Invalid };
239+
tvDolbyMode_t *dolbyModesPtr[tvMode_Max] = { 0 };
270240
unsigned short totalAvailable = 0;
271241

272242
for (int i = 0; i < tvMode_Max; i++)
@@ -930,26 +900,6 @@ namespace Plugin {
930900
return ret;
931901
}
932902

933-
tvContentFormatType_t AVOutputTV::convertFormatStringToTVContentFormat(const char *format)
934-
{
935-
tvContentFormatType_t ret = tvContentFormatType_SDR;
936-
937-
if( strncmp(format,"sdr",strlen(format)) == 0 || strncmp(format,"SDR",strlen(format)) == 0 ) {
938-
ret = tvContentFormatType_SDR;
939-
}
940-
else if( strncmp(format,"hdr10",strlen(format)) == 0 || strncmp(format,"HDR10",strlen(format))==0 ) {
941-
ret = tvContentFormatType_HDR10;
942-
}
943-
else if( strncmp(format,"hlg",strlen(format)) == 0 || strncmp(format,"HLG",strlen(format)) == 0 ) {
944-
ret = tvContentFormatType_HLG;
945-
}
946-
else if( strncmp(format,"dolby",strlen(format)) == 0 || strncmp(format,"DOLBY",strlen(format)) == 0 ) {
947-
ret=tvContentFormatType_DOVI;
948-
}
949-
950-
return ret;
951-
}
952-
953903
tvError_t AVOutputTV::updateAVoutputTVParamToHAL(std::string forParam, paramIndex_t indexInfo, int value,bool setNotDelete)
954904
{
955905
tvError_t ret = tvERROR_NONE;
@@ -1659,32 +1609,6 @@ namespace Plugin {
16591609
return 0;
16601610
}
16611611

1662-
int AVOutputTV::ConvertHDRFormatToContentFormat(tvhdr_type_t hdrFormat)
1663-
{
1664-
int ret=tvContentFormatType_SDR;
1665-
switch(hdrFormat)
1666-
{
1667-
case HDR_TYPE_SDR:
1668-
ret=tvContentFormatType_SDR;
1669-
break;
1670-
case HDR_TYPE_HDR10:
1671-
ret=tvContentFormatType_HDR10;
1672-
break;
1673-
case HDR_TYPE_HDR10PLUS:
1674-
ret=tvContentFormatType_HDR10PLUS;
1675-
break;
1676-
case HDR_TYPE_DOVI:
1677-
ret=tvContentFormatType_DOVI;
1678-
break;
1679-
case HDR_TYPE_HLG:
1680-
ret=tvContentFormatType_HLG;
1681-
break;
1682-
default:
1683-
break;
1684-
}
1685-
return ret;
1686-
}
1687-
16881612
void AVOutputTV::getDimmingModeStringFromEnum(int value, std::string &toStore)
16891613
{
16901614
const char *color_temp_string[] = {

0 commit comments

Comments
 (0)