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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 idx[k] = idx[k - 1]; | 58 idx[k] = idx[k - 1]; |
59 } | 59 } |
60 | 60 |
61 arr[j] = temp ; | 61 arr[j] = temp ; |
62 idx[j] = tempi; | 62 idx[j] = tempi; |
63 } | 63 } |
64 } | 64 } |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, int Qvalue); | 68 extern void vp8_initialize_rd_consts(VP8_COMP *cpi, MACROBLOCK *x, int Qvalue); |
69 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
); | 69 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
); |
70 extern void vp8_rd_pick_intra_mode(VP8_COMP *cpi, MACROBLOCK *x, int *rate); | 70 extern void vp8_rd_pick_intra_mode(MACROBLOCK *x, int *rate); |
71 | 71 |
72 | 72 |
73 static void get_plane_pointers(const YV12_BUFFER_CONFIG *fb, | 73 static void get_plane_pointers(const YV12_BUFFER_CONFIG *fb, |
74 unsigned char *plane[3], | 74 unsigned char *plane[3], |
75 unsigned int recon_yoffset, | 75 unsigned int recon_yoffset, |
76 unsigned int recon_uvoffset) | 76 unsigned int recon_uvoffset) |
77 { | 77 { |
78 plane[0] = fb->y_buffer + recon_yoffset; | 78 plane[0] = fb->y_buffer + recon_yoffset; |
79 plane[1] = fb->u_buffer + recon_uvoffset; | 79 plane[1] = fb->u_buffer + recon_uvoffset; |
80 plane[2] = fb->v_buffer + recon_uvoffset; | 80 plane[2] = fb->v_buffer + recon_uvoffset; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const MODE_INFO *here, | 124 const MODE_INFO *here, |
125 int_mv *mvp, | 125 int_mv *mvp, |
126 int refframe, | 126 int refframe, |
127 int *ref_frame_sign_bias, | 127 int *ref_frame_sign_bias, |
128 int *sr, | 128 int *sr, |
129 int near_sadidx[] | 129 int near_sadidx[] |
130 ); | 130 ); |
131 void vp8_cal_sad(VP8_COMP *cpi, MACROBLOCKD *xd, MACROBLOCK *x, int recon_yoffse
t, int near_sadidx[]); | 131 void vp8_cal_sad(VP8_COMP *cpi, MACROBLOCKD *xd, MACROBLOCK *x, int recon_yoffse
t, int near_sadidx[]); |
132 | 132 |
133 #endif | 133 #endif |
OLD | NEW |