adaptive fov 2.0

Signed-off-by: linjinying <linjinying@h-partners.com>
This commit is contained in:
gcw_1fESNs80
2026-05-18 21:44:13 +08:00
parent d6dc0989bb
commit 3ef95da20a
2 changed files with 11 additions and 0 deletions
@@ -161,6 +161,14 @@ VPEAlgoErrCode ContrastEnhancerImageFwk::UpdateMetadataBasedOnPixel(OHOS::Rect d
return algoImpl->UpdateMetadataBasedOnPixel(displayArea, curPixelmapArea, completePixelmapArea,
surfaceBuffer, fullRatio);
}
VPEAlgoErrCode ComposeFOVImage(OHOS::Rect displayArea, sptr<SurfaceBuffer> oriBuffer,
sptr<SurfaceBuffer> lhdrBuffer, sptr<SurfaceBuffer> outBuffer, ContrastEnhancerInfo info)
{
VPE_LOGI("ContrastEnhancerImageFwk ComposeFOVImage Succeed");
return VPE_ALGO_ERR_OK;
}
} // namespace VideoProcessingEngine
} // namespace Media
} // namespace OHOS
@@ -40,6 +40,9 @@ public:
std::tuple<int, int, double, double, double, int> pixelmapInfo) override;
VPEAlgoErrCode UpdateMetadataBasedOnPixel(OHOS::Rect displayArea, OHOS::Rect curPixelmapArea,
OHOS::Rect completePixelmapArea, sptr<SurfaceBuffer> surfaceBuffer, float fullRatio) override;
VPEAlgoErrCode ComposeFOVImage(OHOS::Rect displayArea, sptr<SurfaceBuffer> oriBuffer,
sptr<SurfaceBuffer> lhdrBuffer, sptr<SurfaceBuffer> outBuffer, ContrastEnhancerInfo info) override;
private:
std::shared_ptr<ContrastEnhancerBase> GetAlgorithm(ContrastEnhancerType feature);
std::shared_ptr<ContrastEnhancerBase> CreateAlgorithm(ContrastEnhancerType feature);