| 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 |
| 11 #include "./vp8_rtcd.h" |
| 11 | 12 |
| 12 /**************************************************************************** | 13 /**************************************************************************** |
| 13 * Notes: | 14 * Notes: |
| 14 * | 15 * |
| 15 * This implementation makes use of 16 bit fixed point verio of two multiply | 16 * This implementation makes use of 16 bit fixed point verio of two multiply |
| 16 * constants: | 17 * constants: |
| 17 * 1. sqrt(2) * cos (pi/8) | 18 * 1. sqrt(2) * cos (pi/8) |
| 18 * 2. sqrt(2) * sin (pi/8) | 19 * 2. sqrt(2) * sin (pi/8) |
| 19 * Becuase the first constant is bigger than 1, to maintain the same 16 bit | 20 * Becuase the first constant is bigger than 1, to maintain the same 16 bit |
| 20 * fixed point precision as the second one, we use a trick of | 21 * fixed point precision as the second one, we use a trick of |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 { | 196 { |
| 196 int i; | 197 int i; |
| 197 int a1; | 198 int a1; |
| 198 | 199 |
| 199 a1 = ((input[0] + 3) >> 3); | 200 a1 = ((input[0] + 3) >> 3); |
| 200 for(i = 0; i < 16; i++) | 201 for(i = 0; i < 16; i++) |
| 201 { | 202 { |
| 202 mb_dqcoeff[i * 16] = a1; | 203 mb_dqcoeff[i * 16] = a1; |
| 203 } | 204 } |
| 204 } | 205 } |
| OLD | NEW |