| 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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 x->plane[i].round_fp = quants->uv_round_fp[qindex]; | 671 x->plane[i].round_fp = quants->uv_round_fp[qindex]; |
| 672 x->plane[i].quant_shift = quants->uv_quant_shift[qindex]; | 672 x->plane[i].quant_shift = quants->uv_quant_shift[qindex]; |
| 673 x->plane[i].zbin = quants->uv_zbin[qindex]; | 673 x->plane[i].zbin = quants->uv_zbin[qindex]; |
| 674 x->plane[i].round = quants->uv_round[qindex]; | 674 x->plane[i].round = quants->uv_round[qindex]; |
| 675 xd->plane[i].dequant = cpi->uv_dequant[qindex]; | 675 xd->plane[i].dequant = cpi->uv_dequant[qindex]; |
| 676 | 676 |
| 677 x->plane[i].quant_thred[0] = x->plane[i].zbin[0] * x->plane[i].zbin[0]; | 677 x->plane[i].quant_thred[0] = x->plane[i].zbin[0] * x->plane[i].zbin[0]; |
| 678 x->plane[i].quant_thred[1] = x->plane[i].zbin[1] * x->plane[i].zbin[1]; | 678 x->plane[i].quant_thred[1] = x->plane[i].zbin[1] * x->plane[i].zbin[1]; |
| 679 } | 679 } |
| 680 | 680 |
| 681 x->skip_block = vp9_segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP); | 681 x->skip_block = segfeature_active(&cm->seg, segment_id, SEG_LVL_SKIP); |
| 682 x->q_index = qindex; | 682 x->q_index = qindex; |
| 683 | 683 |
| 684 x->errorperbit = rdmult >> 6; | 684 x->errorperbit = rdmult >> 6; |
| 685 x->errorperbit += (x->errorperbit == 0); | 685 x->errorperbit += (x->errorperbit == 0); |
| 686 | 686 |
| 687 vp9_initialize_me_consts(cpi, x, x->q_index); | 687 vp9_initialize_me_consts(cpi, x, x->q_index); |
| 688 } | 688 } |
| 689 | 689 |
| 690 void vp9_frame_init_quantizer(VP9_COMP *cpi) { | 690 void vp9_frame_init_quantizer(VP9_COMP *cpi) { |
| 691 vp9_init_plane_quantizers(cpi, &cpi->td.mb); | 691 vp9_init_plane_quantizers(cpi, &cpi->td.mb); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 719 | 719 |
| 720 int vp9_qindex_to_quantizer(int qindex) { | 720 int vp9_qindex_to_quantizer(int qindex) { |
| 721 int quantizer; | 721 int quantizer; |
| 722 | 722 |
| 723 for (quantizer = 0; quantizer < 64; ++quantizer) | 723 for (quantizer = 0; quantizer < 64; ++quantizer) |
| 724 if (quantizer_to_qindex[quantizer] >= qindex) | 724 if (quantizer_to_qindex[quantizer] >= qindex) |
| 725 return quantizer; | 725 return quantizer; |
| 726 | 726 |
| 727 return 63; | 727 return 63; |
| 728 } | 728 } |
| OLD | NEW |