qdutils: Add VT timestamp to the metadata

Add a presentation timestamp that is set by camera for buffers
intended for video telephony.

Change-Id: I8d3ab9e5ea798c6794a74ea6f0f607a303752a6b
CRs-Fixed: 1053401
This commit is contained in:
Naseer Ahmed
2016-08-02 20:06:40 -04:00
committed by Gerrit - the friendly Code Review server
parent cfc854effe
commit e8f254da5d
2 changed files with 36 additions and 26 deletions

View File

@@ -92,6 +92,9 @@ int setMetaData(private_handle_t *handle, DispParamType paramType,
case SET_S3D_COMP:
data->s3dComp = *((S3DGpuComp_t *)param);
break;
case SET_VT_TIMESTAMP:
data->vtTimeStamp = *((uint64_t *)param);
break;
default:
ALOGE("Unknown paramType %d", paramType);
break;
@@ -190,6 +193,9 @@ int getMetaData(private_handle_t *handle, DispFetchParamType paramType,
case GET_S3D_COMP:
*((S3DGpuComp_t *)param) = data->s3dComp;
break;
case GET_VT_TIMESTAMP:
*((uint64_t *)param) = data->vtTimeStamp;
break;
default:
ALOGE("Unknown paramType %d", paramType);
break;