qdutils: Add field for presentation timestamp.

This timestamp can be set by clients who wish to defer
presentation. The behaviour is intended to be similar to the
native window presentation timestamp which is currently not
implemented.

Change-Id: Iabe12f81677093f4c30db2b09deaac7bf063f296
This commit is contained in:
Naseer Ahmed
2013-04-30 15:01:22 -04:00
parent fe2795b9c6
commit aa883d5d9c
2 changed files with 5 additions and 0 deletions

View File

@@ -75,6 +75,9 @@ int setMetaData(private_handle_t *handle, DispParamType paramType,
case PP_PARAM_SHARP2:
memcpy((void *)&data->Sharp2Data, param, sizeof(Sharp2Data_t));
break;
case PP_PARAM_TIMESTAMP:
data->timestamp = *((int64_t *)param);
break;
default:
ALOGE("Unknown paramType %d", paramType);
break;

View File

@@ -60,6 +60,7 @@ struct MetaData_t {
int32_t video_interface;
IGCData_t igcData;
Sharp2Data_t Sharp2Data;
int64_t timestamp;
};
typedef enum {
@@ -69,6 +70,7 @@ typedef enum {
PP_PARAM_VID_INTFC = 0x0008,
PP_PARAM_IGC = 0x0010,
PP_PARAM_SHARP2 = 0x0020,
PP_PARAM_TIMESTAMP = 0x0040
} DispParamType;
int setMetaData(private_handle_t *handle, DispParamType paramType, void *param);