Lines Matching defs:crop
163 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop)
178 if (crop.w < bufferWidth && bufferWidth != 0) {
179 tx = (float(crop.x) / bufferWidth);
180 sx = (float(crop.w) / bufferWidth);
183 if (crop.h < bufferHeight && bufferHeight != 0) {
184 ty = (float(bufferHeight - crop.y) / bufferHeight);
185 sy = (float(crop.h) / bufferHeight);
251 sptr<SurfaceBuffer>& buffer, GraphicTransformType& transform, Rect& crop)
276 if (crop.w < bufferWidth && bufferWidth != 0) {
277 tx = (float(crop.x) / bufferWidth);
278 sx = (float(crop.w) / bufferWidth);
281 if (crop.h < bufferHeight && bufferHeight != 0) {
282 ty = (float(bufferHeight - crop.y) / bufferHeight);
283 sy = (float(crop.h) / bufferHeight);