summaryrefslogtreecommitdiff
path: root/sdm/libs/hwc2/hwc_layers.cpp
diff options
context:
space:
mode:
authorMathew Joseph Karimpanal <mathewjk@codeaurora.org>2017-10-16 18:01:21 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-11-30 10:03:33 -0800
commita73082e5cb3b4b8064b696746355c0828d8e3f93 (patch)
treee5e7a55e9ea438e9d1c51253427eab7f7f672faf /sdm/libs/hwc2/hwc_layers.cpp
parentabf236b541b685f71acbeafc3c533a316b2b3f30 (diff)
downloaddisplay-a73082e5cb3b4b8064b696746355c0828d8e3f93.tar.gz
sdm: Add support for P010 Venus format
Add support for P010 Venus video format in SDM. Handle Qualcomm Venus h/w video decoder aligned P010 buffer format. Change-Id: I3edf21a5c3d90556c69c9944558398b65e4ed1e5 CRs-Fixed: 2149780
Diffstat (limited to 'sdm/libs/hwc2/hwc_layers.cpp')
-rw-r--r--sdm/libs/hwc2/hwc_layers.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/sdm/libs/hwc2/hwc_layers.cpp b/sdm/libs/hwc2/hwc_layers.cpp
index 2466413c..d8b16c1d 100644
--- a/sdm/libs/hwc2/hwc_layers.cpp
+++ b/sdm/libs/hwc2/hwc_layers.cpp
@@ -659,6 +659,9 @@ LayerBufferFormat HWCLayer::GetSDMFormat(const int32_t &source, const int flags)
case HAL_PIXEL_FORMAT_YCbCr_420_P010_UBWC:
format = kFormatYCbCr420P010Ubwc;
break;
+ case HAL_PIXEL_FORMAT_YCbCr_420_P010_VENUS:
+ format = kFormatYCbCr420P010Venus;
+ break;
default:
DLOGW("Unsupported format type = %d", source);
return kFormatInvalid;