| OLD | NEW |
| 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 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 for (x = 0; x < num_4x4_w; ++x) | 402 for (x = 0; x < num_4x4_w; ++x) |
| 403 dec_build_inter_predictors(xd, plane, i++, bw, bh, | 403 dec_build_inter_predictors(xd, plane, i++, bw, bh, |
| 404 4 * x, 4 * y, 4, 4, mi_x, mi_y); | 404 4 * x, 4 * y, 4, 4, mi_x, mi_y); |
| 405 } else { | 405 } else { |
| 406 dec_build_inter_predictors(xd, plane, 0, bw, bh, | 406 dec_build_inter_predictors(xd, plane, 0, bw, bh, |
| 407 0, 0, bw, bh, mi_x, mi_y); | 407 0, 0, bw, bh, mi_x, mi_y); |
| 408 } | 408 } |
| 409 } | 409 } |
| 410 } | 410 } |
| 411 | 411 |
| 412 void vp9_setup_dst_planes(MACROBLOCKD *xd, | 412 void vp9_setup_dst_planes(struct macroblockd_plane planes[MAX_MB_PLANE], |
| 413 const YV12_BUFFER_CONFIG *src, | 413 const YV12_BUFFER_CONFIG *src, |
| 414 int mi_row, int mi_col) { | 414 int mi_row, int mi_col) { |
| 415 uint8_t *const buffers[4] = {src->y_buffer, src->u_buffer, src->v_buffer, | 415 uint8_t *const buffers[4] = {src->y_buffer, src->u_buffer, src->v_buffer, |
| 416 src->alpha_buffer}; | 416 src->alpha_buffer}; |
| 417 const int strides[4] = {src->y_stride, src->uv_stride, src->uv_stride, | 417 const int strides[4] = {src->y_stride, src->uv_stride, src->uv_stride, |
| 418 src->alpha_stride}; | 418 src->alpha_stride}; |
| 419 int i; | 419 int i; |
| 420 | 420 |
| 421 for (i = 0; i < MAX_MB_PLANE; ++i) { | 421 for (i = 0; i < MAX_MB_PLANE; ++i) { |
| 422 struct macroblockd_plane *const pd = &xd->plane[i]; | 422 struct macroblockd_plane *const pd = &planes[i]; |
| 423 setup_pred_plane(&pd->dst, buffers[i], strides[i], mi_row, mi_col, NULL, | 423 setup_pred_plane(&pd->dst, buffers[i], strides[i], mi_row, mi_col, NULL, |
| 424 pd->subsampling_x, pd->subsampling_y); | 424 pd->subsampling_x, pd->subsampling_y); |
| 425 } | 425 } |
| 426 } | 426 } |
| 427 | 427 |
| 428 void vp9_setup_pre_planes(MACROBLOCKD *xd, int idx, | 428 void vp9_setup_pre_planes(MACROBLOCKD *xd, int idx, |
| 429 const YV12_BUFFER_CONFIG *src, | 429 const YV12_BUFFER_CONFIG *src, |
| 430 int mi_row, int mi_col, | 430 int mi_row, int mi_col, |
| 431 const struct scale_factors *sf) { | 431 const struct scale_factors *sf) { |
| 432 if (src != NULL) { | 432 if (src != NULL) { |
| 433 int i; | 433 int i; |
| 434 uint8_t *const buffers[4] = {src->y_buffer, src->u_buffer, src->v_buffer, | 434 uint8_t *const buffers[4] = {src->y_buffer, src->u_buffer, src->v_buffer, |
| 435 src->alpha_buffer}; | 435 src->alpha_buffer}; |
| 436 const int strides[4] = {src->y_stride, src->uv_stride, src->uv_stride, | 436 const int strides[4] = {src->y_stride, src->uv_stride, src->uv_stride, |
| 437 src->alpha_stride}; | 437 src->alpha_stride}; |
| 438 | 438 |
| 439 for (i = 0; i < MAX_MB_PLANE; ++i) { | 439 for (i = 0; i < MAX_MB_PLANE; ++i) { |
| 440 struct macroblockd_plane *const pd = &xd->plane[i]; | 440 struct macroblockd_plane *const pd = &xd->plane[i]; |
| 441 setup_pred_plane(&pd->pre[idx], buffers[i], strides[i], mi_row, mi_col, | 441 setup_pred_plane(&pd->pre[idx], buffers[i], strides[i], mi_row, mi_col, |
| 442 sf, pd->subsampling_x, pd->subsampling_y); | 442 sf, pd->subsampling_x, pd->subsampling_y); |
| 443 } | 443 } |
| 444 } | 444 } |
| 445 } | 445 } |
| OLD | NEW |