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 "vp8_rtcd.h" | 13 #include "vp8_rtcd.h" |
14 #include "loopfilter.h" | 14 #include "loopfilter.h" |
15 #include "onyxc_int.h" | 15 #include "onyxc_int.h" |
16 #include "vpx_mem/vpx_mem.h" | 16 #include "vpx_mem/vpx_mem.h" |
17 | 17 |
18 typedef unsigned char uc; | |
19 | 18 |
20 static void lf_init_lut(loop_filter_info_n *lfi) | 19 static void lf_init_lut(loop_filter_info_n *lfi) |
21 { | 20 { |
22 int filt_lvl; | 21 int filt_lvl; |
23 | 22 |
24 for (filt_lvl = 0; filt_lvl <= MAX_LOOP_FILTER; filt_lvl++) | 23 for (filt_lvl = 0; filt_lvl <= MAX_LOOP_FILTER; filt_lvl++) |
25 { | 24 { |
26 if (filt_lvl >= 40) | 25 if (filt_lvl >= 40) |
27 { | 26 { |
28 lfi->hev_thr_lut[KEY_FRAME][filt_lvl] = 2; | 27 lfi->hev_thr_lut[KEY_FRAME][filt_lvl] = 2; |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
653 } | 652 } |
654 | 653 |
655 y_ptr += 16; | 654 y_ptr += 16; |
656 mode_info_context += 1; /* step to next MB */ | 655 mode_info_context += 1; /* step to next MB */ |
657 } | 656 } |
658 | 657 |
659 y_ptr += post->y_stride * 16 - post->y_width; | 658 y_ptr += post->y_stride * 16 - post->y_width; |
660 mode_info_context += 1; /* Skip border mb */ | 659 mode_info_context += 1; /* Skip border mb */ |
661 } | 660 } |
662 } | 661 } |
OLD | NEW |