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 15 matching lines...) Expand all Loading... |
26 | 26 |
27 for (i = 0; i < 4; i++) | 27 for (i = 0; i < 4; i++) |
28 { | 28 { |
29 for (j = 0; j < 4; j++) | 29 for (j = 0; j < 4; j++) |
30 { | 30 { |
31 if (*eobs++ > 1) | 31 if (*eobs++ > 1) |
32 vp8_dequant_idct_add_c (q, dq, dst, stride); | 32 vp8_dequant_idct_add_c (q, dq, dst, stride); |
33 else | 33 else |
34 { | 34 { |
35 vp8_dc_only_idct_add_c (q[0]*dq[0], dst, stride, dst, stride); | 35 vp8_dc_only_idct_add_c (q[0]*dq[0], dst, stride, dst, stride); |
36 vpx_memset(q, 0, 2 * sizeof(q[0])); | 36 memset(q, 0, 2 * sizeof(q[0])); |
37 } | 37 } |
38 | 38 |
39 q += 16; | 39 q += 16; |
40 dst += 4; | 40 dst += 4; |
41 } | 41 } |
42 | 42 |
43 dst += 4*stride - 16; | 43 dst += 4*stride - 16; |
44 } | 44 } |
45 } | 45 } |
46 | 46 |
47 void vp8_dequant_idct_add_uv_block_c | 47 void vp8_dequant_idct_add_uv_block_c |
48 (short *q, short *dq, | 48 (short *q, short *dq, |
49 unsigned char *dstu, unsigned char *dstv, int stride, char *eobs) | 49 unsigned char *dstu, unsigned char *dstv, int stride, char *eobs) |
50 { | 50 { |
51 int i, j; | 51 int i, j; |
52 | 52 |
53 for (i = 0; i < 2; i++) | 53 for (i = 0; i < 2; i++) |
54 { | 54 { |
55 for (j = 0; j < 2; j++) | 55 for (j = 0; j < 2; j++) |
56 { | 56 { |
57 if (*eobs++ > 1) | 57 if (*eobs++ > 1) |
58 vp8_dequant_idct_add_c (q, dq, dstu, stride); | 58 vp8_dequant_idct_add_c (q, dq, dstu, stride); |
59 else | 59 else |
60 { | 60 { |
61 vp8_dc_only_idct_add_c (q[0]*dq[0], dstu, stride, dstu, stride); | 61 vp8_dc_only_idct_add_c (q[0]*dq[0], dstu, stride, dstu, stride); |
62 vpx_memset(q, 0, 2 * sizeof(q[0])); | 62 memset(q, 0, 2 * sizeof(q[0])); |
63 } | 63 } |
64 | 64 |
65 q += 16; | 65 q += 16; |
66 dstu += 4; | 66 dstu += 4; |
67 } | 67 } |
68 | 68 |
69 dstu += 4*stride - 8; | 69 dstu += 4*stride - 8; |
70 } | 70 } |
71 | 71 |
72 for (i = 0; i < 2; i++) | 72 for (i = 0; i < 2; i++) |
73 { | 73 { |
74 for (j = 0; j < 2; j++) | 74 for (j = 0; j < 2; j++) |
75 { | 75 { |
76 if (*eobs++ > 1) | 76 if (*eobs++ > 1) |
77 vp8_dequant_idct_add_c (q, dq, dstv, stride); | 77 vp8_dequant_idct_add_c (q, dq, dstv, stride); |
78 else | 78 else |
79 { | 79 { |
80 vp8_dc_only_idct_add_c (q[0]*dq[0], dstv, stride, dstv, stride); | 80 vp8_dc_only_idct_add_c (q[0]*dq[0], dstv, stride, dstv, stride); |
81 vpx_memset(q, 0, 2 * sizeof(q[0])); | 81 memset(q, 0, 2 * sizeof(q[0])); |
82 } | 82 } |
83 | 83 |
84 q += 16; | 84 q += 16; |
85 dstv += 4; | 85 dstv += 4; |
86 } | 86 } |
87 | 87 |
88 dstv += 4*stride - 8; | 88 dstv += 4*stride - 8; |
89 } | 89 } |
90 } | 90 } |
OLD | NEW |