Lines Matching refs:crop
161 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop) in ComputeTransformMatrix() argument
176 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrix()
177 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrix()
178 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrix()
181 if (crop.h < bufferHeight && bufferHeight != 0) { in ComputeTransformMatrix()
182 ty = (float(bufferHeight - crop.y) / bufferHeight); in ComputeTransformMatrix()
183 sy = (float(crop.h) / bufferHeight); in ComputeTransformMatrix()
249 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop) in ComputeTransformMatrixV2() argument
274 if (crop.w < bufferWidth && bufferWidth != 0) { in ComputeTransformMatrixV2()
275 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrixV2()
276 sx = (float(crop.w) / bufferWidth); in ComputeTransformMatrixV2()
279 if (crop.h < bufferHeight && bufferHeight != 0) { in ComputeTransformMatrixV2()
280 ty = (float(bufferHeight - crop.y) / bufferHeight); in ComputeTransformMatrixV2()
281 sy = (float(crop.h) / bufferHeight); in ComputeTransformMatrixV2()