vendor/qcom/proprietary/chi-cdk/core/chiutils/chxutils.cpp
CDKResult ChxUtils::UpdateMetadataWithInputSettings(
ChiMetadata& rInputMetadata,
ChiMetadata& rOutputMetadata)
{
CDKResult result = CDKResultSuccess;
UINT8* pHotPixelMode = static_cast<UINT8*>(rInputMetadata.GetTag(ANDROID_HOT_PIXEL_MODE));
if (NULL != pHotPixelMode)
{
rOutputMetadata.SetTag(ANDROID_HOT_PIXEL_MODE, pHotPixelMode, 1);
}
INT32* pJpegOrientation = static_cast<INT32*>(rInputMetadata.GetTag(ANDROID_JPEG_ORIENTATION));
if (NULL != pJpegOrientation)
{
rOutputMetadata.SetTag(ANDROID_JPEG_ORIENTATION, pJpegOrientation, 1);
}
INT32* pJpegGPSTimestamp = static_cast<INT32*>(rInputMetadata.GetTag(ANDROID_JPEG_GPS_TIMESTAMP));
if (NULL != pJpegGPSTimestamp)
{
rOutputMetadata.SetTag(ANDROID_JPEG_GPS_TIMESTAMP, pJpegGPSTimestamp, 1);
}
INT32* pJpegGPSCoordinates = static_cast<INT32*>(rInputMetadata.GetTag(ANDROID_JPEG_GPS_COORDINATES));
if (NULL != pJpegGPSCoordinates)
{
- rOutputMetadata.SetTag(ANDROID_JPEG_GPS_COORDINATES, pJpegGPSCoordinates, 1);
+ rOutputMetadata.SetTag(ANDROID_JPEG_GPS_COORDINATES, pJpegGPSCoordinates, 3);
}
骁龙相机拍照/录像 定位不准确
最新推荐文章于 2024-09-06 17:20:11 发布