@@ -401,9 +401,13 @@ namespace Plugin {
401
401
registerMethod (" getSaturationCapsV2" , &AVOutputTV::getSaturationCapsV2, this );
402
402
registerMethod (" getHueCapsV2" , &AVOutputTV::getHueCapsV2, this );
403
403
registerMethod (" getPrecisionDetailCapsV2" , &AVOutputTV::getPrecisionDetailCapsV2, this );
404
+ registerMethod (" getLowLatencyStateCapsV2" , &AVOutputTV::getLowLatencyStateCapsV2, this );
404
405
registerMethod (" getColorTemperatureCapsV2" , &AVOutputTV::getColorTemperatureCapsV2, this );
405
406
registerMethod (" getSdrGammaCapsV2" , &AVOutputTV::getSdrGammaCapsV2, this );
407
+ registerMethod (" getTVDimmingModeCapsV2" , &AVOutputTV::getTVDimmingModeCapsV2, this );
408
+ registerMethod (" getAspectRatioCapsV2" , &AVOutputTV::getAspectRatioCapsV2, this );
406
409
registerMethod (" getDVCalibrationCapsV2" , &AVOutputTV::getDVCalibrationCapsV2, this );
410
+ registerMethod (" getTVPictureModeCapsV2" , &AVOutputTV::getTVPictureModeCapsV2, this );
407
411
408
412
LOGINFO (" Exit\n " );
409
413
}
@@ -507,7 +511,7 @@ namespace Plugin {
507
511
}
508
512
509
513
uint32_t AVOutputTV::getCapsV2 (
510
- const std::function<tvError_t(int *, tvContextCaps_t**, std::vector<std::string>&)>& getCapsFunc,
514
+ const std::function<tvError_t( tvContextCaps_t**, int *, std::vector<std::string>&)>& getCapsFunc,
511
515
const char* key,
512
516
const JsonObject& parameters,
513
517
JsonObject& response)
@@ -516,7 +520,7 @@ namespace Plugin {
516
520
tvContextCaps_t* context_caps = nullptr ;
517
521
std::vector<std::string> options;
518
522
// Call the HAL function
519
- tvError_t result = getCapsFunc (&max_value , &context_caps , options);
523
+ tvError_t result = getCapsFunc ( &context_caps , &max_value , options);
520
524
LOGWARN (" AVOutputPlugins: %s: result: %d" , __FUNCTION__, result);
521
525
if (result != tvERROR_NONE) {
522
526
returnResponse (false );
@@ -529,11 +533,12 @@ namespace Plugin {
529
533
optionsArray.Add (option);
530
534
}
531
535
rangeInfo[" options" ] = optionsArray;
532
- } else {
536
+ capsInfo[" rangeInfo" ] = rangeInfo;
537
+ } else if (max_value){
533
538
rangeInfo[" from" ] = 0 ;
534
539
rangeInfo[" to" ] = max_value;
540
+ capsInfo[" rangeInfo" ] = rangeInfo;
535
541
}
536
- capsInfo[" rangeInfo" ] = rangeInfo;
537
542
capsInfo[" platformSupport" ] = true ;
538
543
capsInfo[" context" ] = parseContextCaps (context_caps);
539
544
response[key] = capsInfo;
@@ -590,67 +595,94 @@ namespace Plugin {
590
595
}
591
596
592
597
uint32_t AVOutputTV::getBacklightCapsV2 (const JsonObject& parameters, JsonObject& response) {
593
- return getCapsV2 ([this ](int * max_backlight, tvContextCaps_t** context_caps, std::vector<std::string>&) {
598
+ return getCapsV2 ([this ]( tvContextCaps_t** context_caps, int * max_backlight , std::vector<std::string>&) {
594
599
return this ->GetBacklightCaps (max_backlight, context_caps);
595
600
}, " Backlight" , parameters, response);
596
601
}
597
602
598
603
uint32_t AVOutputTV::getBrightnessCapsV2 (const JsonObject& parameters, JsonObject& response) {
599
- return getCapsV2 ([this ](int * max_brightness, tvContextCaps_t** context_caps, std::vector<std::string>& options) {
604
+ return getCapsV2 ([this ]( tvContextCaps_t** context_caps, int * max_brightness , std::vector<std::string>& options) {
600
605
return this ->GetBrightnessCaps (max_brightness, context_caps);
601
606
},
602
607
" Brightness" , parameters, response);
603
608
}
604
609
605
610
uint32_t AVOutputTV::getContrastCapsV2 (const JsonObject& parameters, JsonObject& response) {
606
- return getCapsV2 ([this ](int * max_contrast, tvContextCaps_t** context_caps, std::vector<std::string>& options) {
611
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * max_contrast, std::vector<std::string>& options) {
607
612
return this ->GetContrastCaps (max_contrast, context_caps);
608
613
},
609
614
" Contrast" , parameters, response);
610
615
}
611
616
612
617
uint32_t AVOutputTV::getSharpnessCapsV2 (const JsonObject& parameters, JsonObject& response) {
613
- return getCapsV2 ([this ](int * max_sharpness, tvContextCaps_t** context_caps , std::vector<std::string>& options) {
618
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * max_sharpness , std::vector<std::string>& options) {
614
619
return this ->GetSharpnessCaps (max_sharpness, context_caps);
615
620
},
616
621
" Sharpness" , parameters, response);
617
622
}
618
623
619
624
uint32_t AVOutputTV::getSaturationCapsV2 (const JsonObject& parameters, JsonObject& response) {
620
- return getCapsV2 ([this ](int * max_saturation, tvContextCaps_t** context_caps , std::vector<std::string>& options) {
625
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * max_saturation , std::vector<std::string>& options) {
621
626
return this ->GetSaturationCaps (max_saturation, context_caps);
622
627
},
623
628
" Saturation" , parameters, response);
624
629
}
625
630
626
631
uint32_t AVOutputTV::getHueCapsV2 (const JsonObject& parameters, JsonObject& response) {
627
- return getCapsV2 ([this ](int * max_hue, tvContextCaps_t** context_caps, std::vector<std::string>& options) {
632
+ return getCapsV2 ([this ]( tvContextCaps_t** context_caps, int * max_hue , std::vector<std::string>& options) {
628
633
return this ->GetHueCaps (max_hue, context_caps);
629
634
},
630
635
" Hue" , parameters, response);
631
636
}
632
637
633
638
uint32_t AVOutputTV::getPrecisionDetailCapsV2 (const JsonObject& parameters, JsonObject& response) {
634
- return getCapsV2 ([this ](int * max_precision, tvContextCaps_t** context_caps , std::vector<std::string>& options) {
639
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * max_precision , std::vector<std::string>& options) {
635
640
return this ->GetPrecisionDetailCaps (max_precision, context_caps);
636
641
},
637
642
" PrecisionDetails" , parameters, response);
638
643
}
639
644
645
+ uint32_t AVOutputTV::getLowLatencyStateCapsV2 (const JsonObject& parameters, JsonObject& response) {
646
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * max_latency, std::vector<std::string>& options) {
647
+ return this ->GetLowLatencyStateCaps (max_latency, context_caps);
648
+ },
649
+ " LowLatencyState" , parameters, response);
650
+ }
651
+
640
652
uint32_t AVOutputTV::getColorTemperatureCapsV2 (const JsonObject& parameters, JsonObject& response) {
641
- return getCapsV2 ([this ](int * options_count, tvContextCaps_t** context_caps , std::vector<std::string>& options) {
653
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * options_count , std::vector<std::string>& options) {
642
654
return this ->GetColorTemperatureCaps (options_count, context_caps, options);
643
655
},
644
656
" ColorTemperature" , parameters, response);
645
657
}
646
658
647
659
uint32_t AVOutputTV::getSdrGammaCapsV2 (const JsonObject& parameters, JsonObject& response) {
648
- return getCapsV2 ([this ](int * options_count, tvContextCaps_t** context_caps , std::vector<std::string>& options) {
660
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * options_count , std::vector<std::string>& options) {
649
661
return this ->GetSdrGammaCaps (options_count, context_caps, options);
650
662
},
651
663
" SDRGamma" , parameters, response);
652
664
}
653
665
666
+ uint32_t AVOutputTV::getTVDimmingModeCapsV2 (const JsonObject& parameters, JsonObject& response) {
667
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * options_count, std::vector<std::string>& options) {
668
+ return this ->GetTVDimmingModeCaps (options_count, context_caps, options);
669
+ },
670
+ " DimmingMode" , parameters, response);
671
+ }
672
+ uint32_t AVOutputTV::getAspectRatioCapsV2 (const JsonObject& parameters, JsonObject& response) {
673
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * options_count, std::vector<std::string>& options) {
674
+ return this ->GetAspectRatioCaps (options_count, context_caps, options);
675
+ },
676
+ " AspectRatio" , parameters, response);
677
+ }
678
+
679
+ uint32_t AVOutputTV::getTVPictureModeCapsV2 (const JsonObject& parameters, JsonObject& response) {
680
+ return getCapsV2 ([this ](tvContextCaps_t** context_caps, int * options_count, std::vector<std::string>& options) {
681
+ return this ->GetTVPictureModeCaps (context_caps);
682
+ },
683
+ " PictureMode" , parameters, response);
684
+ }
685
+
654
686
uint32_t AVOutputTV::getDVCalibrationCapsV2 (const JsonObject& parameters, JsonObject& response) {
655
687
tvDVCalibrationSettings_t *min_values = nullptr ;
656
688
tvDVCalibrationSettings_t *max_values = nullptr ;
0 commit comments