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:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user