summaryrefslogtreecommitdiffstats
path: root/sdm/libs/core/strategy.cpp
diff options
context:
space:
mode:
authorYang Xu <yangxu@codeaurora.org>2015-12-03 17:35:22 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2016-01-22 01:21:18 -0800
commit46ef281e94bfe764309b78f3e3b89274c59d6ae6 (patch)
tree0ee63315ec2b672d287b22053855f644fe8c1654 /sdm/libs/core/strategy.cpp
parentae5145181c2460e53c90d262793f55c3d610e5b3 (diff)
downloadhardware_qcom_display-46ef281e94bfe764309b78f3e3b89274c59d6ae6.tar.gz
hardware_qcom_display-46ef281e94bfe764309b78f3e3b89274c59d6ae6.tar.bz2
hardware_qcom_display-46ef281e94bfe764309b78f3e3b89274c59d6ae6.zip
sdm: Add support for S3D video
1. Add property "sdm.hdmi.s3d_enable" to enable S3D mode. If property is enabled, get best S3D supported configuration from HDMI EDID info. 2. Detect S3D flag from layer's metadata and set to layer stack. 3. Set S3D mode for HDMI according to layer's S3D format. 4. Only S3D mode Left-Right of Side-by-Side is supported. Change-Id: I63c6a71c6712b55fcb89dc953b29f83f41f8461b
Diffstat (limited to 'sdm/libs/core/strategy.cpp')
-rw-r--r--sdm/libs/core/strategy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/sdm/libs/core/strategy.cpp b/sdm/libs/core/strategy.cpp
index 0b7bd3cdf..582fda7d3 100644
--- a/sdm/libs/core/strategy.cpp
+++ b/sdm/libs/core/strategy.cpp
@@ -138,6 +138,8 @@ DisplayError Strategy::GetNextStrategy(StrategyConstraints *constraints) {
for (uint32_t i = 0; i < layer_stack->layer_count; i++) {
LayerComposition &composition = layer_stack->layers[i].composition;
if (composition == kCompositionGPUTarget) {
+ hw_layers_info_->updated_src_rect[hw_layer_count] = layer_stack->layers[i].src_rect;
+ hw_layers_info_->updated_dst_rect[hw_layer_count] = layer_stack->layers[i].dst_rect;
hw_layers_info_->index[hw_layer_count++] = i;
} else if (composition != kCompositionBlitTarget) {
composition = kCompositionGPU;