Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 250 } | 250 } |
| 251 | 251 |
| 252 if (need_buf) { | 252 if (need_buf) { |
| 253 if (!r) { | 253 if (!r) { |
| 254 r = ARGBRotate(crop_argb, argb_stride, dest_argb, dest_argb_stride, | 254 r = ARGBRotate(crop_argb, argb_stride, dest_argb, dest_argb_stride, |
| 255 crop_width, abs_crop_height, rotation); | 255 crop_width, abs_crop_height, rotation); |
| 256 } | 256 } |
| 257 free(rotate_buffer); | 257 free(rotate_buffer); |
| 258 } else if (rotation) { | 258 } else if (rotation) { |
| 259 src = sample + (src_width * crop_y + crop_x) * 4; | 259 src = sample + (src_width * crop_y + crop_x) * 4; |
| 260 r = ARGBRotate(src, src_width * 4, | 260 r = ARGBRotate(src, src_width * 4, crop_argb, argb_stride, crop_width, |
| 261 crop_argb, argb_stride, | 261 inv_crop_height, rotation); |
|
fbarchard1
2017/01/13 02:14:43
fyi ran clang-format on everything
| |
| 262 crop_width, inv_crop_height, rotation); | |
| 263 } | 262 } |
| 264 | 263 |
| 265 return r; | 264 return r; |
| 266 } | 265 } |
| 267 | 266 |
| 268 #ifdef __cplusplus | 267 #ifdef __cplusplus |
| 269 } // extern "C" | 268 } // extern "C" |
| 270 } // namespace libyuv | 269 } // namespace libyuv |
| 271 #endif | 270 #endif |
| OLD | NEW |