Skip to content

Commit 918bf34

Browse files
slkanthiarjunbinu
authored andcommitted
Rename getCapsV2 to getPQCapabilityWithContext
1 parent a99ff6e commit 918bf34

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

AVOutput/AVOutputTV.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ namespace Plugin {
630630
return true;
631631
}
632632

633-
uint32_t AVOutputTV::getCapsV2(
633+
uint32_t AVOutputTV::getPQCapabilityWithContext(
634634
const std::function<tvError_t( tvContextCaps_t**,int*)>& getCapsFunc,
635635
const char* key,
636636
const JsonObject& parameters,
@@ -707,90 +707,90 @@ namespace Plugin {
707707
}
708708

709709
uint32_t AVOutputTV::getBacklightCapsV2(const JsonObject& parameters, JsonObject& response) {
710-
return getCapsV2([this]( tvContextCaps_t** context_caps, int* max_backlight) {
710+
return getPQCapabilityWithContext([this]( tvContextCaps_t** context_caps, int* max_backlight) {
711711
return this->GetBacklightCaps(max_backlight, context_caps);
712712
}, "Backlight", parameters, response);
713713
}
714714

715715
uint32_t AVOutputTV::getBrightnessCapsV2(const JsonObject& parameters, JsonObject& response) {
716-
return getCapsV2([this]( tvContextCaps_t** context_caps, int* max_brightness) {
716+
return getPQCapabilityWithContext([this]( tvContextCaps_t** context_caps, int* max_brightness) {
717717
return this->GetBrightnessCaps(max_brightness, context_caps);
718718
},
719719
"Brightness", parameters, response);
720720
}
721721

722722
uint32_t AVOutputTV::getContrastCapsV2(const JsonObject& parameters, JsonObject& response) {
723-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_contrast) {
723+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_contrast) {
724724
return this->GetContrastCaps(max_contrast, context_caps);
725725
},
726726
"Contrast", parameters, response);
727727
}
728728

729729
uint32_t AVOutputTV::getSharpnessCapsV2(const JsonObject& parameters, JsonObject& response) {
730-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_sharpness) {
730+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_sharpness) {
731731
return this->GetSharpnessCaps(max_sharpness, context_caps);
732732
},
733733
"Sharpness", parameters, response);
734734
}
735735

736736
uint32_t AVOutputTV::getSaturationCapsV2(const JsonObject& parameters, JsonObject& response) {
737-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_saturation) {
737+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_saturation) {
738738
return this->GetSaturationCaps(max_saturation, context_caps);
739739
},
740740
"Saturation", parameters, response);
741741
}
742742

743743
uint32_t AVOutputTV::getHueCapsV2(const JsonObject& parameters, JsonObject& response) {
744-
return getCapsV2([this]( tvContextCaps_t** context_caps, int* max_hue) {
744+
return getPQCapabilityWithContext([this]( tvContextCaps_t** context_caps, int* max_hue) {
745745
return this->GetHueCaps(max_hue, context_caps);
746746
},
747747
"Hue", parameters, response);
748748
}
749749

750750
uint32_t AVOutputTV::getPrecisionDetailCaps(const JsonObject& parameters, JsonObject& response) {
751-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_precision) {
751+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_precision) {
752752
return this->GetPrecisionDetailCaps(max_precision, context_caps);
753753
},
754754
"PrecisionDetail", parameters, response);
755755
}
756756

757757
uint32_t AVOutputTV::getLocalContrastEnhancementCaps(const JsonObject& parameters, JsonObject& response) {
758-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_val) {
758+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_val) {
759759
return this->GetLocalContrastEnhancementCaps(max_val, context_caps);
760760
},
761761
"LocalContrastEnhancement", parameters, response);
762762
}
763763

764764
uint32_t AVOutputTV::getMPEGNoiseReductionCaps(const JsonObject& parameters, JsonObject& response) {
765-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_val) {
765+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_val) {
766766
return this->GetMPEGNoiseReductionCaps(max_val, context_caps);
767767
},
768768
"MPEGNoiseReduction", parameters, response);
769769
}
770770

771771
uint32_t AVOutputTV::getDigitalNoiseReductionCaps(const JsonObject& parameters, JsonObject& response) {
772-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_val) {
772+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_val) {
773773
return this->GetDigitalNoiseReductionCaps(max_val, context_caps);
774774
},
775775
"DigitalNoiseReduction", parameters, response);
776776
}
777777

778778
uint32_t AVOutputTV::getAISuperResolutionCaps(const JsonObject& parameters, JsonObject& response) {
779-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_val) {
779+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_val) {
780780
return this->GetAISuperResolutionCaps(max_val, context_caps);
781781
},
782782
"AISuperResolution", parameters, response);
783783
}
784784

785785
uint32_t AVOutputTV::getMEMCCaps(const JsonObject& parameters, JsonObject& response) {
786-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_val) {
786+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_val) {
787787
return this->GetMEMCCaps(max_val, context_caps);
788788
},
789789
"MEMC", parameters, response);
790790
}
791791

792792
uint32_t AVOutputTV::getLowLatencyStateCapsV2(const JsonObject& parameters, JsonObject& response) {
793-
return getCapsV2([this](tvContextCaps_t** context_caps, int* max_latency) {
793+
return getPQCapabilityWithContext([this](tvContextCaps_t** context_caps, int* max_latency) {
794794
return this->GetLowLatencyStateCaps(max_latency, context_caps);
795795
},
796796
"LowLatencyState", parameters, response);

AVOutput/AVOutputTV.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ class AVOutputTV : public AVOutputBase {
475475
tvError_t GetDigitalNoiseReductionCaps(int* maxDigitalNoiseReduction, tvContextCaps_t** context_caps);
476476
tvError_t GetAISuperResolutionCaps(int* maxAISuperResolution, tvContextCaps_t** context_caps);
477477
tvError_t GetMEMCCaps(int* maxMEMC, tvContextCaps_t** context_caps);
478-
uint32_t getCapsV2(
478+
uint32_t getPQCapabilityWithContext(
479479
const std::function<tvError_t(tvContextCaps_t**, int*)>& getCapsFunc,
480480
const char* key,
481481
const JsonObject& parameters,

0 commit comments

Comments
 (0)