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

Side by Side Diff: source/libvpx/vp9/common/vp9_blockd.c

Issue 415333002: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_blockd.h ('k') | source/libvpx/vp9/common/vp9_enums.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) 2014 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2014 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 } 139 }
140 140
141 void vp9_setup_block_planes(MACROBLOCKD *xd, int ss_x, int ss_y) { 141 void vp9_setup_block_planes(MACROBLOCKD *xd, int ss_x, int ss_y) {
142 int i; 142 int i;
143 143
144 for (i = 0; i < MAX_MB_PLANE; i++) { 144 for (i = 0; i < MAX_MB_PLANE; i++) {
145 xd->plane[i].plane_type = i ? PLANE_TYPE_UV : PLANE_TYPE_Y; 145 xd->plane[i].plane_type = i ? PLANE_TYPE_UV : PLANE_TYPE_Y;
146 xd->plane[i].subsampling_x = i ? ss_x : 0; 146 xd->plane[i].subsampling_x = i ? ss_x : 0;
147 xd->plane[i].subsampling_y = i ? ss_y : 0; 147 xd->plane[i].subsampling_y = i ? ss_y : 0;
148 } 148 }
149 #if CONFIG_ALPHA
150 // TODO(jkoleszar): Using the Y w/h for now
151 xd->plane[3].plane_type = PLANE_TYPE_Y;
152 xd->plane[3].subsampling_x = 0;
153 xd->plane[3].subsampling_y = 0;
154 #endif
155 } 149 }
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_blockd.h ('k') | source/libvpx/vp9/common/vp9_enums.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698