libqdutils: Add Video performance mode metadata

Add Video performance mode flag to the gralloc
buffer metadata

CRs-Fixed: 2159379
Change-Id: Ifacabf55a45eb77b890ed278ad23c9a5d37d3382
This commit is contained in:
Ashwini Rao
2017-11-28 12:12:46 -08:00
committed by Gerrit - the friendly Code Review server
parent 24c703304e
commit 6e616961be
2 changed files with 14 additions and 1 deletions

View File

@@ -132,6 +132,9 @@ int setMetaDataVa(MetaData_t *data, DispParamType paramType,
}
break;
}
case SET_VIDEO_PERF_MODE:
data->isVideoPerfMode = *((uint32_t *)param);
break;
default:
ALOGE("Unknown paramType %d", paramType);
break;
@@ -266,6 +269,12 @@ int getMetaDataVa(MetaData_t *data, DispFetchParamType paramType,
ret = 0;
}
break;
case GET_VIDEO_PERF_MODE:
if (data->operation & SET_VIDEO_PERF_MODE) {
*((uint32_t *)param) = data->isVideoPerfMode;
ret = 0;
}
break;
default:
ALOGE("Unknown paramType %d", paramType);
break;