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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 int mi_row, int mi_col, | 425 int mi_row, int mi_col, |
426 const struct scale_factors *scale, | 426 const struct scale_factors *scale, |
427 const struct scale_factors *scale_uv) { | 427 const struct scale_factors *scale_uv) { |
428 int i; | 428 int i; |
429 | 429 |
430 dst[0].buf = src->y_buffer; | 430 dst[0].buf = src->y_buffer; |
431 dst[0].stride = src->y_stride; | 431 dst[0].stride = src->y_stride; |
432 dst[1].buf = src->u_buffer; | 432 dst[1].buf = src->u_buffer; |
433 dst[2].buf = src->v_buffer; | 433 dst[2].buf = src->v_buffer; |
434 dst[1].stride = dst[2].stride = src->uv_stride; | 434 dst[1].stride = dst[2].stride = src->uv_stride; |
435 #if CONFIG_ALPHA | |
436 dst[3].buf = src->alpha_buffer; | |
437 dst[3].stride = src->alpha_stride; | |
438 #endif | |
439 | 435 |
440 for (i = 0; i < MAX_MB_PLANE; ++i) { | 436 for (i = 0; i < MAX_MB_PLANE; ++i) { |
441 setup_pred_plane(dst + i, dst[i].buf, dst[i].stride, mi_row, mi_col, | 437 setup_pred_plane(dst + i, dst[i].buf, dst[i].stride, mi_row, mi_col, |
442 i ? scale_uv : scale, | 438 i ? scale_uv : scale, |
443 xd->plane[i].subsampling_x, xd->plane[i].subsampling_y); | 439 xd->plane[i].subsampling_x, xd->plane[i].subsampling_y); |
444 } | 440 } |
445 } | 441 } |
446 | 442 |
447 const YV12_BUFFER_CONFIG *vp9_get_scaled_ref_frame(const VP9_COMP *cpi, | 443 const YV12_BUFFER_CONFIG *vp9_get_scaled_ref_frame(const VP9_COMP *cpi, |
448 int ref_frame) { | 444 int ref_frame) { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 rd->thresh_mult_sub8x8[THR_GOLD] = INT_MAX; | 570 rd->thresh_mult_sub8x8[THR_GOLD] = INT_MAX; |
575 if (!(cpi->ref_frame_flags & VP9_ALT_FLAG)) | 571 if (!(cpi->ref_frame_flags & VP9_ALT_FLAG)) |
576 rd->thresh_mult_sub8x8[THR_ALTR] = INT_MAX; | 572 rd->thresh_mult_sub8x8[THR_ALTR] = INT_MAX; |
577 if ((cpi->ref_frame_flags & (VP9_LAST_FLAG | VP9_ALT_FLAG)) != | 573 if ((cpi->ref_frame_flags & (VP9_LAST_FLAG | VP9_ALT_FLAG)) != |
578 (VP9_LAST_FLAG | VP9_ALT_FLAG)) | 574 (VP9_LAST_FLAG | VP9_ALT_FLAG)) |
579 rd->thresh_mult_sub8x8[THR_COMP_LA] = INT_MAX; | 575 rd->thresh_mult_sub8x8[THR_COMP_LA] = INT_MAX; |
580 if ((cpi->ref_frame_flags & (VP9_GOLD_FLAG | VP9_ALT_FLAG)) != | 576 if ((cpi->ref_frame_flags & (VP9_GOLD_FLAG | VP9_ALT_FLAG)) != |
581 (VP9_GOLD_FLAG | VP9_ALT_FLAG)) | 577 (VP9_GOLD_FLAG | VP9_ALT_FLAG)) |
582 rd->thresh_mult_sub8x8[THR_COMP_GA] = INT_MAX; | 578 rd->thresh_mult_sub8x8[THR_COMP_GA] = INT_MAX; |
583 } | 579 } |
OLD | NEW |