Lines Matching refs:smpte2086
1145 std::optional<Smpte2086> smpte2086; in GetHdrMetadataFromGralloc4Handle() local
1146 status_t status = mapper.getSmpte2086(buffer.get(), &smpte2086); in GetHdrMetadataFromGralloc4Handle()
1147 if (status != OK || !smpte2086) { in GetHdrMetadataFromGralloc4Handle()
1150 if (smpte2086) { in GetHdrMetadataFromGralloc4Handle()
1151 (*staticInfo)->mastering.red.x = smpte2086->primaryRed.x; in GetHdrMetadataFromGralloc4Handle()
1152 (*staticInfo)->mastering.red.y = smpte2086->primaryRed.y; in GetHdrMetadataFromGralloc4Handle()
1153 (*staticInfo)->mastering.green.x = smpte2086->primaryGreen.x; in GetHdrMetadataFromGralloc4Handle()
1154 (*staticInfo)->mastering.green.y = smpte2086->primaryGreen.y; in GetHdrMetadataFromGralloc4Handle()
1155 (*staticInfo)->mastering.blue.x = smpte2086->primaryBlue.x; in GetHdrMetadataFromGralloc4Handle()
1156 (*staticInfo)->mastering.blue.y = smpte2086->primaryBlue.y; in GetHdrMetadataFromGralloc4Handle()
1157 (*staticInfo)->mastering.white.x = smpte2086->whitePoint.x; in GetHdrMetadataFromGralloc4Handle()
1158 (*staticInfo)->mastering.white.y = smpte2086->whitePoint.y; in GetHdrMetadataFromGralloc4Handle()
1160 (*staticInfo)->mastering.maxLuminance = smpte2086->maxLuminance; in GetHdrMetadataFromGralloc4Handle()
1161 (*staticInfo)->mastering.minLuminance = smpte2086->minLuminance; in GetHdrMetadataFromGralloc4Handle()
1219 std::optional<Smpte2086> smpte2086 = Smpte2086{ in SetMetadataToGralloc4Handle()
1227 if (0.0 <= smpte2086->primaryRed.x && smpte2086->primaryRed.x <= 1.0 in SetMetadataToGralloc4Handle()
1228 && 0.0 <= smpte2086->primaryRed.y && smpte2086->primaryRed.y <= 1.0 in SetMetadataToGralloc4Handle()
1229 && 0.0 <= smpte2086->primaryGreen.x && smpte2086->primaryGreen.x <= 1.0 in SetMetadataToGralloc4Handle()
1230 && 0.0 <= smpte2086->primaryGreen.y && smpte2086->primaryGreen.y <= 1.0 in SetMetadataToGralloc4Handle()
1231 && 0.0 <= smpte2086->primaryBlue.x && smpte2086->primaryBlue.x <= 1.0 in SetMetadataToGralloc4Handle()
1232 && 0.0 <= smpte2086->primaryBlue.y && smpte2086->primaryBlue.y <= 1.0 in SetMetadataToGralloc4Handle()
1233 && 0.0 <= smpte2086->whitePoint.x && smpte2086->whitePoint.x <= 1.0 in SetMetadataToGralloc4Handle()
1234 && 0.0 <= smpte2086->whitePoint.y && smpte2086->whitePoint.y <= 1.0 in SetMetadataToGralloc4Handle()
1235 && 0.0 <= smpte2086->maxLuminance && 0.0 <= smpte2086->minLuminance) { in SetMetadataToGralloc4Handle()
1236 status = mapper.setSmpte2086(buffer.get(), smpte2086); in SetMetadataToGralloc4Handle()