Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
09d374f0
Commit
09d374f0
authored
Feb 10, 2014
by
Jim Bankoski
Committed by
Gerrit Code Review
Feb 10, 2014
Browse files
Merge "Convert small header functions to inline"
parents
da4df157
7341725e
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_reconinter.h
View file @
09d374f0
...
...
@@ -39,18 +39,18 @@ void vp9_build_inter_predictor(const uint8_t *src, int src_stride,
enum
mv_precision
precision
,
int
x
,
int
y
);
static
int
scaled_buffer_offset
(
int
x_offset
,
int
y_offset
,
int
stride
,
const
struct
scale_factors
*
sf
)
{
static
INLINE
int
scaled_buffer_offset
(
int
x_offset
,
int
y_offset
,
int
stride
,
const
struct
scale_factors
*
sf
)
{
const
int
x
=
sf
?
sf
->
scale_value_x
(
x_offset
,
sf
)
:
x_offset
;
const
int
y
=
sf
?
sf
->
scale_value_y
(
y_offset
,
sf
)
:
y_offset
;
return
y
*
stride
+
x
;
}
static
void
setup_pred_plane
(
struct
buf_2d
*
dst
,
uint8_t
*
src
,
int
stride
,
int
mi_row
,
int
mi_col
,
const
struct
scale_factors
*
scale
,
int
subsampling_x
,
int
subsampling_y
)
{
static
INLINE
void
setup_pred_plane
(
struct
buf_2d
*
dst
,
uint8_t
*
src
,
int
stride
,
int
mi_row
,
int
mi_col
,
const
struct
scale_factors
*
scale
,
int
subsampling_x
,
int
subsampling_y
)
{
const
int
x
=
(
MI_SIZE
*
mi_col
)
>>
subsampling_x
;
const
int
y
=
(
MI_SIZE
*
mi_row
)
>>
subsampling_y
;
dst
->
buf
=
src
+
scaled_buffer_offset
(
x
,
y
,
stride
,
scale
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment