diff options
author | Robert Crabtree <robert.crabtree@intel.com> | 2013-12-10 17:02:03 -0800 |
---|---|---|
committer | buildslave <buildslave@buildbot.tl.intel.com> | 2013-12-13 04:04:40 +0000 |
commit | 5456582f11ee2a3673c9291b3e5b89c0b082fbaa (patch) | |
tree | e3f386d5215ffce812eb0773835dddcc3265b2dc /include | |
parent | b16cf47b6865c4ba53e336558671d11b0325e78b (diff) | |
download | hwcomposer-5456582f11ee2a3673c9291b3e5b89c0b082fbaa.tar.gz |
widi: Fix cropping effect while rotating
BZ: 157675
This patch temporarily resolves the cropping effect observed while
rotating a device in extended mode.
Video Size determine based on folowwing logic:
1. Metadata info & MDS provide same info:- that will be video zise
2. If (1) fails then Metadata & sourcec rop info.
3) If both fails then source crop info.
Once all three determines then this patch saves off the frame size
for the first frame of the video clip. If the video size changes
during video playback, such as when device is rotated, then patch
will use the frame size saved at the first frame to ensure smooth
playback on remote device.
Change-Id: Id6124c2fc65836beb50efb113e93b6f0f0a59c9e
Signed-off-by: Robert Crabtree <robert.crabtree@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/VirtualDevice.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/VirtualDevice.h b/include/VirtualDevice.h index a156d7b..e13a676 100644 --- a/include/VirtualDevice.h +++ b/include/VirtualDevice.h @@ -94,7 +94,7 @@ protected: private: android::sp<CachedBuffer> getMappedBuffer(uint32_t handle); - void sendToWidi(const hwc_layer_1_t& layer, bool rotating, bool isProtected); + void sendToWidi(const hwc_layer_1_t& layer, bool isProtected); public: VirtualDevice(Hwcomposer& hwc, DisplayPlaneManager& dpm); @@ -137,6 +137,7 @@ protected: IVideoPayloadManager *mPayloadManager; uint32_t mOrigContentWidth; uint32_t mOrigContentHeight; + bool mFirstVideoFrame; }; } |