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

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

Issue 1339513003: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 3 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/mcomp.c ('k') | source/libvpx/vp8/encoder/onyx_if.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 <limits.h> 12 #include <limits.h>
13 #include "vpx_config.h" 13 #include "vpx_config.h"
14 #include "onyx_int.h" 14 #include "onyx_int.h"
15 #include "mr_dissim.h" 15 #include "mr_dissim.h"
16 #include "vpx_dsp/vpx_dsp_common.h"
16 #include "vpx_mem/vpx_mem.h" 17 #include "vpx_mem/vpx_mem.h"
17 #include "rdopt.h" 18 #include "rdopt.h"
18 #include "vp8/common/common.h" 19 #include "vp8/common/common.h"
19 #include "vpx_dsp/vpx_dsp_common.h"
20 20
21 void vp8_cal_low_res_mb_cols(VP8_COMP *cpi) 21 void vp8_cal_low_res_mb_cols(VP8_COMP *cpi)
22 { 22 {
23 int low_res_w; 23 int low_res_w;
24 24
25 /* Support arbitrary down-sampling factor */ 25 /* Support arbitrary down-sampling factor */
26 unsigned int iw = cpi->oxcf.Width*cpi->oxcf.mr_down_sampling_factor.den 26 unsigned int iw = cpi->oxcf.Width*cpi->oxcf.mr_down_sampling_factor.den
27 + cpi->oxcf.mr_down_sampling_factor.num - 1; 27 + cpi->oxcf.mr_down_sampling_factor.num - 1;
28 28
29 low_res_w = iw/cpi->oxcf.mr_down_sampling_factor.num; 29 low_res_w = iw/cpi->oxcf.mr_down_sampling_factor.num;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 * If parent frame is alt_ref, child has one too. 231 * If parent frame is alt_ref, child has one too.
232 */ 232 */
233 LOWER_RES_FRAME_INFO* store_info 233 LOWER_RES_FRAME_INFO* store_info
234 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info; 234 = (LOWER_RES_FRAME_INFO*)cpi->oxcf.mr_low_res_mode_info;
235 235
236 /* Set frame_type to be INTER_FRAME since we won't drop key frame. */ 236 /* Set frame_type to be INTER_FRAME since we won't drop key frame. */
237 store_info->frame_type = INTER_FRAME; 237 store_info->frame_type = INTER_FRAME;
238 store_info->is_frame_dropped = 1; 238 store_info->is_frame_dropped = 1;
239 } 239 }
240 } 240 }
OLDNEW
« no previous file with comments | « source/libvpx/vp8/encoder/mcomp.c ('k') | source/libvpx/vp8/encoder/onyx_if.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698