hwc: Add support to smooth streaming feature.
update the source video width and height set by the video decoder
for secure video smooth streaming usecase from metadata.
Change-Id: I73a3804d90557034604142481a232787dbc08f23
diff --git a/libhwcomposer/hwc_copybit.cpp b/libhwcomposer/hwc_copybit.cpp
index ba40db5..912da27 100644
--- a/libhwcomposer/hwc_copybit.cpp
+++ b/libhwcomposer/hwc_copybit.cpp
@@ -246,8 +246,8 @@
rect.bottom};
copybit_image_t buf;
- buf.w = ALIGN(hnd->width,32);
- buf.h = hnd->height;
+ buf.w = ALIGN(getWidth(hnd),32);
+ buf.h = getHeight(hnd);
buf.format = hnd->format;
buf.base = (void *)hnd->base;
buf.handle = (native_handle_t *)hnd;
@@ -347,8 +347,8 @@
// Set the copybit source:
copybit_image_t src;
- src.w = hnd->width;
- src.h = hnd->height;
+ src.w = getWidth(hnd);
+ src.h = getHeight(hnd);
src.format = hnd->format;
// Handle R/B swap
@@ -362,7 +362,7 @@
src.base = (void *)hnd->base;
src.handle = (native_handle_t *)layer->handle;
- src.horiz_padding = src.w - hnd->width;
+ src.horiz_padding = src.w - getWidth(hnd);
// Initialize vertical padding to zero for now,
// this needs to change to accomodate vertical stride
// if needed in the future