Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: source/libvpx/vp8/encoder/segmentation.c

Issue 1124333011: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: only update to last nights LKGR Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « source/libvpx/vp8/encoder/rdopt.c ('k') | source/libvpx/vp8/encoder/temporal_filter.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "segmentation.h" 12 #include "segmentation.h"
13 #include "vpx_mem/vpx_mem.h" 13 #include "vpx_mem/vpx_mem.h"
14 14
15 void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x) 15 void vp8_update_gf_useage_maps(VP8_COMP *cpi, VP8_COMMON *cm, MACROBLOCK *x)
16 { 16 {
17 int mb_row, mb_col; 17 int mb_row, mb_col;
18 18
19 MODE_INFO *this_mb_mode_info = cm->mi; 19 MODE_INFO *this_mb_mode_info = cm->mi;
20 20
21 x->gf_active_ptr = (signed char *)cpi->gf_active_flags; 21 x->gf_active_ptr = (signed char *)cpi->gf_active_flags;
22 22
23 if ((cm->frame_type == KEY_FRAME) || (cm->refresh_golden_frame)) 23 if ((cm->frame_type == KEY_FRAME) || (cm->refresh_golden_frame))
24 { 24 {
25 /* Reset Gf useage monitors */ 25 /* Reset Gf useage monitors */
26 vpx_memset(cpi->gf_active_flags, 1, (cm->mb_rows * cm->mb_cols)); 26 memset(cpi->gf_active_flags, 1, (cm->mb_rows * cm->mb_cols));
27 cpi->gf_active_count = cm->mb_rows * cm->mb_cols; 27 cpi->gf_active_count = cm->mb_rows * cm->mb_cols;
28 } 28 }
29 else 29 else
30 { 30 {
31 /* for each macroblock row in image */ 31 /* for each macroblock row in image */
32 for (mb_row = 0; mb_row < cm->mb_rows; mb_row++) 32 for (mb_row = 0; mb_row < cm->mb_rows; mb_row++)
33 { 33 {
34 /* for each macroblock col in image */ 34 /* for each macroblock col in image */
35 for (mb_col = 0; mb_col < cm->mb_cols; mb_col++) 35 for (mb_col = 0; mb_col < cm->mb_cols; mb_col++)
36 { 36 {
(...skipping 20 matching lines...) Expand all
57 x->gf_active_ptr++; /* Step onto next entry */ 57 x->gf_active_ptr++; /* Step onto next entry */
58 this_mb_mode_info++; /* skip to next mb */ 58 this_mb_mode_info++; /* skip to next mb */
59 59
60 } 60 }
61 61
62 /* this is to account for the border */ 62 /* this is to account for the border */
63 this_mb_mode_info++; 63 this_mb_mode_info++;
64 } 64 }
65 } 65 }
66 } 66 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/rdopt.c ('k') | source/libvpx/vp8/encoder/temporal_filter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698