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 | 11 |
12 #include "vpx_config.h" | 12 #include "vpx_config.h" |
13 #include "vpx_rtcd.h" | 13 #include "vp8_rtcd.h" |
14 #include "blockd.h" | 14 #include "blockd.h" |
15 | 15 |
16 void vp8_intra4x4_predict_c(unsigned char *Above, | 16 void vp8_intra4x4_predict_c(unsigned char *Above, |
17 unsigned char *yleft, int left_stride, | 17 unsigned char *yleft, int left_stride, |
18 B_PREDICTION_MODE b_mode, | 18 int _b_mode, |
19 unsigned char *dst, int dst_stride, | 19 unsigned char *dst, int dst_stride, |
20 unsigned char top_left) | 20 unsigned char top_left) |
21 { | 21 { |
22 int i, r, c; | 22 int i, r, c; |
23 | 23 B_PREDICTION_MODE b_mode = (B_PREDICTION_MODE)_b_mode; |
24 unsigned char Left[4]; | 24 unsigned char Left[4]; |
25 Left[0] = yleft[0]; | 25 Left[0] = yleft[0]; |
26 Left[1] = yleft[left_stride]; | 26 Left[1] = yleft[left_stride]; |
27 Left[2] = yleft[2 * left_stride]; | 27 Left[2] = yleft[2 * left_stride]; |
28 Left[3] = yleft[3 * left_stride]; | 28 Left[3] = yleft[3 * left_stride]; |
29 | 29 |
30 switch (b_mode) | 30 switch (b_mode) |
31 { | 31 { |
32 case B_DC_PRED: | 32 case B_DC_PRED: |
33 { | 33 { |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 dst[3 * dst_stride + 2] = | 288 dst[3 * dst_stride + 2] = |
289 dst[3 * dst_stride + 3] = pp[3]; | 289 dst[3 * dst_stride + 3] = pp[3]; |
290 } | 290 } |
291 break; | 291 break; |
292 | 292 |
293 default: | 293 default: |
294 break; | 294 break; |
295 | 295 |
296 } | 296 } |
297 } | 297 } |
OLD | NEW |