@@ -868,120 +868,76 @@ namespace Plugin {
868
868
869
869
uint32_t AVOutputTV::getBacklightCapsV2 (const JsonObject& parameters, JsonObject& response) {
870
870
return getPQCapabilityWithContext ([this ]( tvContextCaps_t** context_caps, int * max_backlight) {
871
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
872
- return this ->GetBacklightCaps (max_backlight, context_caps);
873
- #else
874
871
return GetBacklightCaps (max_backlight, context_caps);
875
- #endif
876
872
}, parameters, response);
877
873
}
878
874
879
875
uint32_t AVOutputTV::getBrightnessCapsV2 (const JsonObject& parameters, JsonObject& response) {
880
876
return getPQCapabilityWithContext ([this ]( tvContextCaps_t** context_caps, int * max_brightness) {
881
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
882
- return this ->GetBrightnessCaps (max_brightness, context_caps);
883
- #else
884
877
return GetBrightnessCaps (max_brightness, context_caps);
885
- #endif
886
878
},
887
879
parameters, response);
888
880
}
889
881
890
882
uint32_t AVOutputTV::getContrastCapsV2 (const JsonObject& parameters, JsonObject& response) {
891
883
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_contrast) {
892
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
893
- return this ->GetContrastCaps (max_contrast, context_caps);
894
- #else
895
884
return GetContrastCaps (max_contrast, context_caps);
896
- #endif
897
885
},
898
886
parameters, response);
899
887
}
900
888
901
889
uint32_t AVOutputTV::getSharpnessCapsV2 (const JsonObject& parameters, JsonObject& response) {
902
890
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_sharpness) {
903
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
904
- return this ->GetSharpnessCaps (max_sharpness, context_caps);
905
- #else
906
891
return GetSharpnessCaps (max_sharpness, context_caps);
907
- #endif
908
892
},
909
893
parameters, response);
910
894
}
911
895
912
896
uint32_t AVOutputTV::getSaturationCapsV2 (const JsonObject& parameters, JsonObject& response) {
913
897
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_saturation) {
914
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
915
- return this ->GetSaturationCaps (max_saturation, context_caps);
916
- #else
917
898
return GetSaturationCaps (max_saturation, context_caps);
918
- #endif
919
899
},
920
900
parameters, response);
921
901
}
922
902
923
903
uint32_t AVOutputTV::getHueCapsV2 (const JsonObject& parameters, JsonObject& response) {
924
904
return getPQCapabilityWithContext ([this ]( tvContextCaps_t** context_caps, int * max_hue) {
925
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
926
- return this ->GetHueCaps (max_hue, context_caps);
927
- #else
928
905
return GetHueCaps (max_hue, context_caps);
929
- #endif
930
906
},
931
907
parameters, response);
932
908
}
933
909
934
910
uint32_t AVOutputTV::getPrecisionDetailCaps (const JsonObject& parameters, JsonObject& response) {
935
911
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_precision) {
936
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
937
- return this ->GetPrecisionDetailCaps (max_precision, context_caps);
938
- #else
939
912
return GetPrecisionDetailCaps (max_precision, context_caps);
940
- #endif
941
913
},
942
914
parameters, response);
943
915
}
944
916
945
917
uint32_t AVOutputTV::getLocalContrastEnhancementCaps (const JsonObject& parameters, JsonObject& response) {
946
918
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_val) {
947
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
948
- return this ->GetLocalContrastEnhancementCaps (max_val, context_caps);
949
- #else
950
919
return GetLocalContrastEnhancementCaps (max_val, context_caps);
951
- #endif
952
920
},
953
921
parameters, response);
954
922
}
955
923
956
924
uint32_t AVOutputTV::getMPEGNoiseReductionCaps (const JsonObject& parameters, JsonObject& response) {
957
925
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_val) {
958
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
959
- return this ->GetMPEGNoiseReductionCaps (max_val, context_caps);
960
- #else
961
926
return GetMPEGNoiseReductionCaps (max_val, context_caps);
962
- #endif
963
927
},
964
928
parameters, response);
965
929
}
966
930
967
931
uint32_t AVOutputTV::getDigitalNoiseReductionCaps (const JsonObject& parameters, JsonObject& response) {
968
932
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_val) {
969
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
970
- return this ->GetDigitalNoiseReductionCaps (max_val, context_caps);
971
- #else
972
933
return GetDigitalNoiseReductionCaps (max_val, context_caps);
973
- #endif
974
934
},
975
935
parameters, response);
976
936
}
977
937
978
938
uint32_t AVOutputTV::getAISuperResolutionCaps (const JsonObject& parameters, JsonObject& response) {
979
939
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_val) {
980
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
981
- return this ->GetAISuperResolutionCaps (max_val, context_caps);
982
- #else
983
940
return GetAISuperResolutionCaps (max_val, context_caps);
984
- #endif
985
941
},
986
942
parameters, response);
987
943
}
@@ -1023,32 +979,20 @@ namespace Plugin {
1023
979
}
1024
980
response[" uiMatrixPositions" ] = uiPosArray;
1025
981
response[" context" ] = parseContextCaps (context_caps);
1026
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1027
- // TODO:: Review cleanup once HAL is available, as memory will be allocated in HAL.
1028
- delete[] ui_matrix_positions;
1029
- #endif
1030
982
LOGINFO (" Exit\n " );
1031
983
returnResponse (true );
1032
984
}
1033
985
1034
986
uint32_t AVOutputTV::getMEMCCaps (const JsonObject& parameters, JsonObject& response) {
1035
987
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_val) {
1036
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1037
- return this ->GetMEMCCaps (max_val, context_caps);
1038
- #else
1039
988
return GetMEMCCaps (max_val, context_caps);
1040
- #endif
1041
989
},
1042
990
parameters, response);
1043
991
}
1044
992
1045
993
uint32_t AVOutputTV::getLowLatencyStateCapsV2 (const JsonObject& parameters, JsonObject& response) {
1046
994
return getPQCapabilityWithContext ([this ](tvContextCaps_t** context_caps, int * max_latency) {
1047
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1048
- return this ->GetLowLatencyStateCaps (max_latency, context_caps);
1049
- #else
1050
995
return GetLowLatencyStateCaps (max_latency, context_caps);
1051
- #endif
1052
996
},
1053
997
parameters, response);
1054
998
}
@@ -1103,9 +1047,6 @@ namespace Plugin {
1103
1047
response[" options" ] = optionsArray;
1104
1048
response[" context" ] = parseContextCaps (context_caps);
1105
1049
1106
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1107
- free (color_temp);
1108
- #endif
1109
1050
1110
1051
returnResponse (true );
1111
1052
}
@@ -1141,10 +1082,6 @@ namespace Plugin {
1141
1082
1142
1083
response[" context" ] = parseContextCaps (context_caps);
1143
1084
1144
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1145
- free (sdr_gamma);
1146
- #endif
1147
-
1148
1085
returnResponse (true );
1149
1086
}
1150
1087
@@ -1172,10 +1109,6 @@ namespace Plugin {
1172
1109
1173
1110
response[" context" ] = parseContextCaps (context_caps);
1174
1111
1175
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1176
- free (dimming_mode);
1177
- #endif
1178
-
1179
1112
returnResponse (true );
1180
1113
}
1181
1114
@@ -1194,10 +1127,6 @@ namespace Plugin {
1194
1127
1195
1128
response[" context" ] = parseContextCaps (m_aspectRatioCaps);
1196
1129
1197
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1198
- free (m_aspectRatio);
1199
- #endif
1200
-
1201
1130
returnResponse (true );
1202
1131
}
1203
1132
@@ -1216,10 +1145,6 @@ namespace Plugin {
1216
1145
1217
1146
response[" context" ] = parseContextCaps (m_pictureModeCaps);
1218
1147
1219
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1220
- free (m_pictureModes);
1221
- #endif
1222
-
1223
1148
returnResponse (true );
1224
1149
}
1225
1150
@@ -1248,11 +1173,6 @@ namespace Plugin {
1248
1173
1249
1174
response[" context" ] = parseContextCaps (m_backlightModeCaps);
1250
1175
1251
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1252
- // TODO: Review cleanup once HAL is available, as memory will be allocated in HAL.
1253
- free (m_backlightModes);
1254
- #endif
1255
-
1256
1176
returnResponse (true );
1257
1177
}
1258
1178
@@ -1288,12 +1208,6 @@ namespace Plugin {
1288
1208
// Indicate success
1289
1209
response[" success" ] = true ;
1290
1210
1291
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
1292
- // TODO: Clean up when HAL handles memory
1293
- delete min_values;
1294
- delete max_values;
1295
- #endif
1296
-
1297
1211
returnResponse (true );
1298
1212
}
1299
1213
@@ -5332,11 +5246,7 @@ namespace Plugin {
5332
5246
}
5333
5247
response[" component" ] = componentJson;
5334
5248
response[" context" ] = parseContextCaps (context_caps);
5335
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
5336
- // Clean up dynamic memory
5337
- delete[] colorArray;
5338
- delete[] componentArray;
5339
- #endif
5249
+
5340
5250
LOGINFO (" Exit: getCMSCapsV2" );
5341
5251
returnResponse (true );
5342
5252
}
@@ -5841,10 +5751,6 @@ namespace Plugin {
5841
5751
response[" color" ] = colorJson;
5842
5752
response[" context" ] = parseContextCaps (context_caps);
5843
5753
5844
- #if ENABLE_CAPS_SUPPORT_FROM_PLUGIN
5845
- delete[] colorArray;
5846
- delete[] controlArray;
5847
- #endif
5848
5754
5849
5755
LOGINFO (" Exit: get2PointWBCapsV2" );
5850
5756
returnResponse (true );
0 commit comments