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

Side by Side Diff: source/libvpx/vpx_scale/generic/yv12config.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
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 12
13 #include "vpx_scale/yv12config.h" 13 #include "vpx_scale/yv12config.h"
14 #include "vpx_mem/vpx_mem.h" 14 #include "vpx_mem/vpx_mem.h"
15 #if CONFIG_VP9 && CONFIG_VP9_HIGHBITDEPTH 15 #include "vpx_ports/mem.h"
16 #include "vp9/common/vp9_common.h"
17 #endif
18 16
19 /**************************************************************************** 17 /****************************************************************************
20 * Exports 18 * Exports
21 ****************************************************************************/ 19 ****************************************************************************/
22 20
23 /**************************************************************************** 21 /****************************************************************************
24 * 22 *
25 ****************************************************************************/ 23 ****************************************************************************/
26 #define yv12_align_addr(addr, align) \ 24 #define yv12_align_addr(addr, align) \
27 (void*)(((size_t)(addr) + ((align) - 1)) & (size_t)-(align)) 25 (void*)(((size_t)(addr) + ((align) - 1)) & (size_t)-(align))
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 vp9_free_frame_buffer(ybf); 294 vp9_free_frame_buffer(ybf);
297 return vp9_realloc_frame_buffer(ybf, width, height, ss_x, ss_y, 295 return vp9_realloc_frame_buffer(ybf, width, height, ss_x, ss_y,
298 #if CONFIG_VP9_HIGHBITDEPTH 296 #if CONFIG_VP9_HIGHBITDEPTH
299 use_highbitdepth, 297 use_highbitdepth,
300 #endif 298 #endif
301 border, byte_alignment, NULL, NULL, NULL); 299 border, byte_alignment, NULL, NULL, NULL);
302 } 300 }
303 return -2; 301 return -2;
304 } 302 }
305 #endif 303 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vpx_scale/generic/vpx_scale.c ('k') | source/libvpx/vpx_scale/generic/yv12extend.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698