OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 <assert.h> | 11 #include <assert.h> |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include "./vpx_config.h" | 14 #include "./vpx_config.h" |
15 #include "./vp9_rtcd.h" | 15 #include "./vp9_rtcd.h" |
| 16 #include "vpx_ports/mem.h" |
16 #include "vp9/common/vp9_common.h" | 17 #include "vp9/common/vp9_common.h" |
17 #include "vp9/common/vp9_blockd.h" | 18 #include "vp9/common/vp9_blockd.h" |
18 #include "vp9/common/vp9_idct.h" | 19 #include "vp9/common/vp9_idct.h" |
19 #include "vp9/common/mips/dspr2/vp9_common_dspr2.h" | 20 #include "vp9/common/mips/dspr2/vp9_common_dspr2.h" |
20 | 21 |
21 #if HAVE_DSPR2 | 22 #if HAVE_DSPR2 |
22 static void vp9_idct4_rows_dspr2(const int16_t *input, int16_t *output) { | 23 static void vp9_idct4_rows_dspr2(const int16_t *input, int16_t *output) { |
23 int16_t step_0, step_1, step_2, step_3; | 24 int16_t step_0, step_1, step_2, step_3; |
24 int Temp0, Temp1, Temp2, Temp3; | 25 int Temp0, Temp1, Temp2, Temp3; |
25 const int const_2_power_13 = 8192; | 26 const int const_2_power_13 = 8192; |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 4) | 430 clip_pixel(ROUND_POWER_OF_TWO(temp_out[j], 4) |
430 + dest[j * dest_stride + i]); | 431 + dest[j * dest_stride + i]); |
431 } | 432 } |
432 break; | 433 break; |
433 default: | 434 default: |
434 printf("vp9_short_iht4x4_add_dspr2 : Invalid tx_type\n"); | 435 printf("vp9_short_iht4x4_add_dspr2 : Invalid tx_type\n"); |
435 break; | 436 break; |
436 } | 437 } |
437 } | 438 } |
438 #endif // #if HAVE_DSPR2 | 439 #endif // #if HAVE_DSPR2 |
OLD | NEW |