summaryrefslogtreecommitdiff
path: root/libqdutils
diff options
context:
space:
mode:
authorRamkumar Radhakrishnan <ramkumar@codeaurora.org>2013-06-05 13:52:40 -0700
committerArun Kumar KR <akumarkr@codeaurora.org>2013-10-23 11:59:48 -0700
commit92f3abe48502b8eb3b1fcd395753569b006bc157 (patch)
tree15b28fc19199dde31469fd52d6979686e4a07686 /libqdutils
parent67b7322ea3ddd5a5da84501f87c141d79e2680d0 (diff)
downloaddisplay-92f3abe48502b8eb3b1fcd395753569b006bc157.tar.gz
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
Diffstat (limited to 'libqdutils')
-rw-r--r--libqdutils/qdMetaData.cpp3
-rw-r--r--libqdutils/qdMetaData.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/libqdutils/qdMetaData.cpp b/libqdutils/qdMetaData.cpp
index 1316e59f..89ca92e3 100644
--- a/libqdutils/qdMetaData.cpp
+++ b/libqdutils/qdMetaData.cpp
@@ -78,6 +78,9 @@ int setMetaData(private_handle_t *handle, DispParamType paramType,
case PP_PARAM_TIMESTAMP:
data->timestamp = *((int64_t *)param);
break;
+ case UPDATE_BUFFER_GEOMETRY:
+ memcpy((void *)&data->bufferDim, param, sizeof(BufferDim_t));
+ break;
default:
ALOGE("Unknown paramType %d", paramType);
break;
diff --git a/libqdutils/qdMetaData.h b/libqdutils/qdMetaData.h
index 9f10cf8e..d5354a46 100644
--- a/libqdutils/qdMetaData.h
+++ b/libqdutils/qdMetaData.h
@@ -52,9 +52,15 @@ struct IGCData_t{
uint16_t c2[MAX_IGC_LUT_ENTRIES];
};
+struct BufferDim_t {
+ int32_t sliceWidth;
+ int32_t sliceHeight;
+};
+
struct MetaData_t {
int32_t operation;
int32_t interlaced;
+ BufferDim_t bufferDim;
HSICData_t hsicData;
int32_t sharpness;
int32_t video_interface;
@@ -70,7 +76,8 @@ typedef enum {
PP_PARAM_VID_INTFC = 0x0008,
PP_PARAM_IGC = 0x0010,
PP_PARAM_SHARP2 = 0x0020,
- PP_PARAM_TIMESTAMP = 0x0040
+ PP_PARAM_TIMESTAMP = 0x0040,
+ UPDATE_BUFFER_GEOMETRY = 0x0080,
} DispParamType;
int setMetaData(private_handle_t *handle, DispParamType paramType, void *param);