@@ -672,7 +672,7 @@ namespace Plugin {
672
672
}
673
673
if (param == " PictureMode" ) {
674
674
// Add extra accepted parameters
675
- std::vector<std::string> extraModes = {" DVIQ " , " Dark" , " AIPQ " , " Bright" };
675
+ std::vector<std::string> extraModes = {" IQ " , " Dark" , " AI PQ " , " Bright" };
676
676
info.rangeVector .insert (info.rangeVector .end (), extraModes.begin (), extraModes.end ());
677
677
}
678
678
@@ -1274,8 +1274,12 @@ namespace Plugin {
1274
1274
convertVideoFormatToString (formatType)+" ." +" PictureModeString" ;
1275
1275
1276
1276
err = getLocalParam (rfc_caller_id, tr181_param_name.c_str (), ¶m);
1277
- if ( tr181Success == err ) {
1277
+
1278
+ if ( tr181Success == err ) {
1278
1279
std::string local = param.value ;
1280
+ if (local == " Dark" || local == " Bright" || local == " IQ" || local ==" AI PQ" ){
1281
+ local = " EnergySaving" ;
1282
+ }
1279
1283
int pqmodeindex = (int )getPictureModeIndex (local);
1280
1284
1281
1285
tvError_t tv_err = SaveSourcePictureMode (sourceType, formatType, pqmodeindex);
@@ -2290,17 +2294,19 @@ namespace Plugin {
2290
2294
}
2291
2295
#define HAL_NOT_READY 1
2292
2296
#if HAL_NOT_READY
2293
- #define CAPABLITY_FILE_NAMEV2 " /opt/panel /pq_capabilities.json"
2297
+ #define CAPABLITY_FILE_NAMEV2 " /etc /pq_capabilities.json"
2294
2298
// Ensure maps are defined
2295
2299
typedef std::map<tvPQModeIndex_t, std::string> PqModeMap;
2296
2300
typedef std::map<tvVideoFormatType_t, std::string> VideoFormatMap;
2297
2301
typedef std::map<tvVideoSrcType_t, std::string> VideoSrcMap;
2298
2302
2299
2303
const std::map<int , std::string> AVOutputTV::pqModeMap = {
2300
2304
{PQ_MODE_SPORTS, " Sports" },
2305
+ {PQ_MODE_THEATER, " Theater" },
2301
2306
{PQ_MODE_GAME, " Game" },
2302
- {PQ_MODE_DVIQ, " DV IQ" },
2303
- {PQ_MODE_DARK, " DV Dark" },
2307
+ {PQ_MODE_DVIQ, " IQ" },
2308
+ {PQ_MODE_DARK, " Dark" },
2309
+ {PQ_MODE_BRIGHT, " Bright" },
2304
2310
{PQ_MODE_AIPQ, " AI PQ" },
2305
2311
{PQ_MODE_STANDARD, " Standard" },
2306
2312
{PQ_MODE_VIVID, " Vivid" },
0 commit comments