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

Side by Side Diff: source/libvpx/vp9/common/vp9_reconinter.h

Issue 23600008: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/common/vp9_quant_common.c ('k') | source/libvpx/vp9/common/vp9_reconinter.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 #ifndef VP9_COMMON_VP9_RECONINTER_H_ 11 #ifndef VP9_COMMON_VP9_RECONINTER_H_
12 #define VP9_COMMON_VP9_RECONINTER_H_ 12 #define VP9_COMMON_VP9_RECONINTER_H_
13 13
14 #include "vpx/vpx_integer.h" 14 #include "vpx/vpx_integer.h"
15 #include "vp9/common/vp9_onyxc_int.h" 15 #include "vp9/common/vp9_onyxc_int.h"
16 16
17 struct subpix_fn_table; 17 struct subpix_fn_table;
18 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, 18 void vp9_build_inter_predictors_sby(MACROBLOCKD *xd, int mi_row, int mi_col,
19 int mb_row, 19 BLOCK_SIZE bsize);
20 int mb_col,
21 BLOCK_SIZE_TYPE bsize);
22 20
23 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, 21 void vp9_build_inter_predictors_sbuv(MACROBLOCKD *xd, int mi_row, int mi_col,
24 int mb_row, 22 BLOCK_SIZE bsize);
25 int mb_col,
26 BLOCK_SIZE_TYPE bsize);
27 23
28 void vp9_build_inter_predictors_sb(MACROBLOCKD *mb, 24 void vp9_build_inter_predictors_sb(MACROBLOCKD *xd, int mi_row, int mi_col,
29 int mb_row, int mb_col, 25 BLOCK_SIZE bsize);
30 BLOCK_SIZE_TYPE bsize);
31 26
32 void vp9_setup_interp_filters(MACROBLOCKD *xd, 27 void vp9_setup_interp_filters(MACROBLOCKD *xd,
33 INTERPOLATIONFILTERTYPE filter, 28 INTERPOLATIONFILTERTYPE filter,
34 VP9_COMMON *cm); 29 VP9_COMMON *cm);
35 30
36 void vp9_setup_scale_factors_for_frame(struct scale_factors *scale,
37 int other_w, int other_h,
38 int this_w, int this_h);
39
40 void vp9_build_inter_predictor(const uint8_t *src, int src_stride, 31 void vp9_build_inter_predictor(const uint8_t *src, int src_stride,
41 uint8_t *dst, int dst_stride, 32 uint8_t *dst, int dst_stride,
42 const int_mv *mv_q3, 33 const MV *mv_q3,
43 const struct scale_factors *scale, 34 const struct scale_factors *scale,
44 int w, int h, int do_avg, 35 int w, int h, int do_avg,
45 const struct subpix_fn_table *subpix, 36 const struct subpix_fn_table *subpix,
46 enum mv_precision precision); 37 enum mv_precision precision);
47 38
48 static int scaled_buffer_offset(int x_offset, int y_offset, int stride, 39 static int scaled_buffer_offset(int x_offset, int y_offset, int stride,
49 const struct scale_factors *scale) { 40 const struct scale_factors *scale) {
50 const int x = scale ? scale->scale_value_x(x_offset, scale) : x_offset; 41 const int x = scale ? scale->scale_value_x(x_offset, scale) : x_offset;
51 const int y = scale ? scale->scale_value_y(y_offset, scale) : y_offset; 42 const int y = scale ? scale->scale_value_y(y_offset, scale) : y_offset;
52 return y * stride + x; 43 return y * stride + x;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 92
102 static void set_scale_factors(MACROBLOCKD *xd, int ref0, int ref1, 93 static void set_scale_factors(MACROBLOCKD *xd, int ref0, int ref1,
103 struct scale_factors sf[MAX_REF_FRAMES]) { 94 struct scale_factors sf[MAX_REF_FRAMES]) {
104 xd->scale_factor[0] = sf[ref0 >= 0 ? ref0 : 0]; 95 xd->scale_factor[0] = sf[ref0 >= 0 ? ref0 : 0];
105 xd->scale_factor[1] = sf[ref1 >= 0 ? ref1 : 0]; 96 xd->scale_factor[1] = sf[ref1 >= 0 ? ref1 : 0];
106 } 97 }
107 98
108 void vp9_setup_scale_factors(VP9_COMMON *cm, int i); 99 void vp9_setup_scale_factors(VP9_COMMON *cm, int i);
109 100
110 #endif // VP9_COMMON_VP9_RECONINTER_H_ 101 #endif // VP9_COMMON_VP9_RECONINTER_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/common/vp9_quant_common.c ('k') | source/libvpx/vp9/common/vp9_reconinter.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698