OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |