| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 visit(plane, i, plane_bsize, tx_size, arg); | 85 visit(plane, i, plane_bsize, tx_size, arg); |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 | 88 |
| 89 void vp9_foreach_transformed_block(const MACROBLOCKD* const xd, | 89 void vp9_foreach_transformed_block(const MACROBLOCKD* const xd, |
| 90 BLOCK_SIZE bsize, | 90 BLOCK_SIZE bsize, |
| 91 foreach_transformed_block_visitor visit, | 91 foreach_transformed_block_visitor visit, |
| 92 void *arg) { | 92 void *arg) { |
| 93 int plane; | 93 int plane; |
| 94 | 94 |
| 95 for (plane = 0; plane < MAX_MB_PLANE; plane++) | 95 for (plane = 0; plane < MAX_MB_PLANE; ++plane) |
| 96 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, visit, arg); | 96 vp9_foreach_transformed_block_in_plane(xd, bsize, plane, visit, arg); |
| 97 } | 97 } |
| 98 | 98 |
| 99 void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, | 99 void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd, |
| 100 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, | 100 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, int has_eob, |
| 101 int aoff, int loff) { | 101 int aoff, int loff) { |
| 102 ENTROPY_CONTEXT *const a = pd->above_context + aoff; | 102 ENTROPY_CONTEXT *const a = pd->above_context + aoff; |
| 103 ENTROPY_CONTEXT *const l = pd->left_context + loff; | 103 ENTROPY_CONTEXT *const l = pd->left_context + loff; |
| 104 const int tx_size_in_blocks = 1 << tx_size; | 104 const int tx_size_in_blocks = 1 << tx_size; |
| 105 | 105 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } | 149 } |
| OLD | NEW |