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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 arr[j] = temp ; | 65 arr[j] = temp ; |
66 idx[j] = tempi; | 66 idx[j] = tempi; |
67 } | 67 } |
68 } | 68 } |
69 } | 69 } |
70 } | 70 } |
71 | 71 |
72 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, MACROBLOCK *x, int Qvalue); | 72 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, MACROBLOCK *x, int Qvalue); |
73 extern void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffs
et, int recon_uvoffset, int *returnrate, int *returndistortion, int *returnintra
); | 73 extern void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, |
| 74 int recon_yoffset, int recon_uvoffset, |
| 75 int *returnrate, int *returndistortion, |
| 76 int *returnintra, int mb_row, int mb_col); |
74 extern void vp8_rd_pick_intra_mode(MACROBLOCK *x, int *rate); | 77 extern void vp8_rd_pick_intra_mode(MACROBLOCK *x, int *rate); |
75 | 78 |
76 | 79 |
77 static void get_plane_pointers(const YV12_BUFFER_CONFIG *fb, | 80 static void get_plane_pointers(const YV12_BUFFER_CONFIG *fb, |
78 unsigned char *plane[3], | 81 unsigned char *plane[3], |
79 unsigned int recon_yoffset, | 82 unsigned int recon_yoffset, |
80 unsigned int recon_uvoffset) | 83 unsigned int recon_uvoffset) |
81 { | 84 { |
82 plane[0] = fb->y_buffer + recon_yoffset; | 85 plane[0] = fb->y_buffer + recon_yoffset; |
83 plane[1] = fb->u_buffer + recon_uvoffset; | 86 plane[1] = fb->u_buffer + recon_uvoffset; |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 int *sr, | 135 int *sr, |
133 int near_sadidx[] | 136 int near_sadidx[] |
134 ); | 137 ); |
135 void vp8_cal_sad(VP8_COMP *cpi, MACROBLOCKD *xd, MACROBLOCK *x, int recon_yoffse
t, int near_sadidx[]); | 138 void vp8_cal_sad(VP8_COMP *cpi, MACROBLOCKD *xd, MACROBLOCK *x, int recon_yoffse
t, int near_sadidx[]); |
136 | 139 |
137 #ifdef __cplusplus | 140 #ifdef __cplusplus |
138 } // extern "C" | 141 } // extern "C" |
139 #endif | 142 #endif |
140 | 143 |
141 #endif // VP8_ENCODER_RDOPT_H_ | 144 #endif // VP8_ENCODER_RDOPT_H_ |
OLD | NEW |