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

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

Issue 1162573005: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 6 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_scale/generic/yv12config.c ('k') | source/libvpx/vpxdec.c » ('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
11 #include <assert.h> 11 #include <assert.h>
12 #include "./vpx_config.h" 12 #include "./vpx_config.h"
13 #include "./vpx_scale_rtcd.h"
13 #include "vpx/vpx_integer.h" 14 #include "vpx/vpx_integer.h"
14 #include "vpx_mem/vpx_mem.h" 15 #include "vpx_mem/vpx_mem.h"
16 #include "vpx_ports/mem.h"
15 #include "vpx_scale/yv12config.h" 17 #include "vpx_scale/yv12config.h"
16 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH 18 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH
17 #include "vp9/common/vp9_common.h" 19 #include "vp9/common/vp9_common.h"
18 #endif 20 #endif
19 21
20 static void extend_plane(uint8_t *const src, int src_stride, 22 static void extend_plane(uint8_t *const src, int src_stride,
21 int width, int height, 23 int width, int height,
22 int extend_top, int extend_left, 24 int extend_top, int extend_left,
23 int extend_bottom, int extend_right) { 25 int extend_bottom, int extend_right) {
24 int i; 26 int i;
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 return; 315 return;
314 } 316 }
315 #endif 317 #endif
316 318
317 for (row = 0; row < src_ybc->y_height; ++row) { 319 for (row = 0; row < src_ybc->y_height; ++row) {
318 memcpy(dst, src, src_ybc->y_width); 320 memcpy(dst, src, src_ybc->y_width);
319 src += src_ybc->y_stride; 321 src += src_ybc->y_stride;
320 dst += dst_ybc->y_stride; 322 dst += dst_ybc->y_stride;
321 } 323 }
322 } 324 }
OLDNEW
« no previous file with comments | « source/libvpx/vpx_scale/generic/yv12config.c ('k') | source/libvpx/vpxdec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698