Home
last modified time | relevance | path

Searched refs:coordPairs (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/services/camera/libcameraservice/device3/
DDistortionMapper.cpp199 status_t DistortionMapper::mapRawToCorrected(int32_t *coordPairs, int coordCount, in mapRawToCorrected() argument
203 if (simple) return mapRawToCorrectedSimple(coordPairs, coordCount, clamp); in mapRawToCorrected()
211 const GridQuad *quad = findEnclosingQuad(coordPairs + i, mDistortedGrid); in mapRawToCorrected()
214 *(coordPairs + i), *(coordPairs + i + 1)); in mapRawToCorrected()
218 coordPairs[i], coordPairs[i+1], in mapRawToCorrected()
235 float u = calculateUorV(coordPairs + i, *quad, /*calculateU*/ true); in mapRawToCorrected()
236 float v = calculateUorV(coordPairs + i, *quad, /*calculateU*/ false); in mapRawToCorrected()
251 coordPairs[i] = static_cast<int32_t>(std::round(corrX)); in mapRawToCorrected()
252 coordPairs[i + 1] = static_cast<int32_t>(std::round(corrY)); in mapRawToCorrected()
258 status_t DistortionMapper::mapRawToCorrectedSimple(int32_t *coordPairs, int coordCount, in mapRawToCorrectedSimple() argument
[all …]
DDistortionMapper.h89 status_t mapRawToCorrected(int32_t *coordPairs, int coordCount, bool clamp,
113 status_t mapCorrectedToRaw(int32_t* coordPairs, int coordCount, bool clamp,
165 status_t mapCorrectedToRawImpl(T* coordPairs, int coordCount, bool clamp, bool simple) const;
169 status_t mapCorrectedToRawImplSimple(T* coordPairs, int coordCount, bool clamp) const;
171 status_t mapRawToCorrectedSimple(int32_t *coordPairs, int coordCount, bool clamp) const;
DZoomRatioMapper.cpp321 void ZoomRatioMapper::scaleCoordinates(int32_t* coordPairs, int coordCount, in scaleCoordinates() argument
333 float x = coordPairs[i]; in scaleCoordinates()
334 float y = coordPairs[i + 1]; in scaleCoordinates()
341 coordPairs[i] = static_cast<int32_t>(std::round(scaledX)); in scaleCoordinates()
342 coordPairs[i+1] = static_cast<int32_t>(std::round(scaledY)); in scaleCoordinates()
347 coordPairs[i] = in scaleCoordinates()
348 std::min(right, std::max(0, coordPairs[i])); in scaleCoordinates()
349 coordPairs[i+1] = in scaleCoordinates()
350 std::min(bottom, std::max(0, coordPairs[i+1])); in scaleCoordinates()
352 ALOGV("%s: coordinates: %d, %d", __FUNCTION__, coordPairs[i], coordPairs[i+1]); in scaleCoordinates()
DZoomRatioMapper.h68 void scaleCoordinates(int32_t* coordPairs, int coordCount,