Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: source/convert_to_argb.cc

Issue 2626193002: add Intel Code Analyst markers (Closed)
Patch Set: rebase, clang-format, bump version, add comment about visual c Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/libyuv/version.h ('k') | source/row_gcc.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
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
OLDNEW
« no previous file with comments | « include/libyuv/version.h ('k') | source/row_gcc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698