Lines Matching refs:crop
293 /* check crop boundary */
294 if ((src_buf->crop.width == 0) || (src_buf->crop.height == 0) ||
295 (src_buf->crop.width + src_buf->crop.offset_x > src_buf->src_dim.width) ||
296 (src_buf->crop.height + src_buf->crop.offset_y > src_buf->src_dim.height)) {
297 CDBG_ERROR("%s: invalid crop boundary (%d, %d) offset (%d, %d) out of (%d, %d)",
299 src_buf->crop.width,
300 src_buf->crop.height,
301 src_buf->crop.offset_x,
302 src_buf->crop.offset_y,
310 /* thumbnail crop info */
311 thumbnail.cropWidth = CEILING2(src_buf->crop.width);
312 thumbnail.cropHeight = CEILING2(src_buf->crop.height);
313 thumbnail.left = src_buf->crop.offset_x;
314 thumbnail.top = src_buf->crop.offset_y;
322 src_buf->crop.width != src_buf->out_dim.width ||
323 src_buf->crop.height != src_buf->out_dim.height) {
346 if (src_buf->crop.width + src_buf->crop.offset_x > src_buf->src_dim.width ||
347 src_buf->crop.height + src_buf->crop.offset_y > src_buf->src_dim.height) {
348 CDBG_ERROR("%s: invalid crop boundary (%d, %d) out of (%d, %d)", __func__,
349 src_buf->crop.width + src_buf->crop.offset_x,
350 src_buf->crop.height + src_buf->crop.offset_y,
356 if (src_buf->crop.width && src_buf->crop.width) {
359 rect_type.nWidth = CEILING2(src_buf->crop.width);
360 rect_type.nHeight = CEILING2(src_buf->crop.width);
361 rect_type.nLeft = src_buf->crop.offset_x;
362 rect_type.nTop = src_buf->crop.offset_y;
403 /* config crop */
406 CDBG_ERROR("%s: config crop failed", __func__);