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

Side by Side Diff: source/libvpx/vpx_scale/generic/yv12extend.c

Issue 958693004: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 10 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 | « source/libvpx/vpx/vpx_integer.h ('k') | source/libvpx/vpx_scale/yv12config.h » ('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 (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) { 115 if (ybf->flags & YV12_FLAG_HIGHBITDEPTH) {
116 extend_plane_high( 116 extend_plane_high(
117 ybf->y_buffer, ybf->y_stride, 117 ybf->y_buffer, ybf->y_stride,
118 ybf->y_crop_width, ybf->y_crop_height, 118 ybf->y_crop_width, ybf->y_crop_height,
119 ybf->border, ybf->border, 119 ybf->border, ybf->border,
120 ybf->border + ybf->y_height - ybf->y_crop_height, 120 ybf->border + ybf->y_height - ybf->y_crop_height,
121 ybf->border + ybf->y_width - ybf->y_crop_width); 121 ybf->border + ybf->y_width - ybf->y_crop_width);
122 122
123 extend_plane_high( 123 extend_plane_high(
124 ybf->u_buffer, ybf->uv_stride, 124 ybf->u_buffer, ybf->uv_stride,
125 (ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2, 125 ybf->uv_crop_width, ybf->uv_crop_height,
126 ybf->border / 2, ybf->border / 2, 126 uv_border, uv_border,
127 (ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2, 127 uv_border + ybf->uv_height - ybf->uv_crop_height,
128 (ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2); 128 uv_border + ybf->uv_width - ybf->uv_crop_width);
129 129
130 extend_plane_high( 130 extend_plane_high(
131 ybf->v_buffer, ybf->uv_stride, 131 ybf->v_buffer, ybf->uv_stride,
132 (ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2, 132 ybf->uv_crop_width, ybf->uv_crop_height,
133 ybf->border / 2, ybf->border / 2, 133 uv_border, uv_border,
134 (ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2, 134 uv_border + ybf->uv_height - ybf->uv_crop_height,
135 (ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2); 135 uv_border + ybf->uv_width - ybf->uv_crop_width);
136 return; 136 return;
137 } 137 }
138 #endif 138 #endif
139 extend_plane(ybf->y_buffer, ybf->y_stride, 139 extend_plane(ybf->y_buffer, ybf->y_stride,
140 ybf->y_crop_width, ybf->y_crop_height, 140 ybf->y_crop_width, ybf->y_crop_height,
141 ybf->border, ybf->border, 141 ybf->border, ybf->border,
142 ybf->border + ybf->y_height - ybf->y_crop_height, 142 ybf->border + ybf->y_height - ybf->y_crop_height,
143 ybf->border + ybf->y_width - ybf->y_crop_width); 143 ybf->border + ybf->y_width - ybf->y_crop_width);
144 144
145 extend_plane(ybf->u_buffer, ybf->uv_stride, 145 extend_plane(ybf->u_buffer, ybf->uv_stride,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 return; 313 return;
314 } 314 }
315 #endif 315 #endif
316 316
317 for (row = 0; row < src_ybc->y_height; ++row) { 317 for (row = 0; row < src_ybc->y_height; ++row) {
318 vpx_memcpy(dst, src, src_ybc->y_width); 318 vpx_memcpy(dst, src, src_ybc->y_width);
319 src += src_ybc->y_stride; 319 src += src_ybc->y_stride;
320 dst += dst_ybc->y_stride; 320 dst += dst_ybc->y_stride;
321 } 321 }
322 } 322 }
OLDNEW
« no previous file with comments | « source/libvpx/vpx/vpx_integer.h ('k') | source/libvpx/vpx_scale/yv12config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698