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
18c8deab
Commit
18c8deab
authored
Feb 09, 2014
by
Jim Bankoski
Browse files
Convert functions to inline that are small .
Change-Id: I3b160e93d9319c8e1abda2a60f49f89c409d534b
parent
9768d0b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_onyxc_int.h
View file @
18c8deab
...
...
@@ -225,11 +225,11 @@ typedef struct VP9Common {
int
log2_tile_cols
,
log2_tile_rows
;
}
VP9_COMMON
;
static
YV12_BUFFER_CONFIG
*
get_frame_new_buffer
(
VP9_COMMON
*
cm
)
{
static
INLINE
YV12_BUFFER_CONFIG
*
get_frame_new_buffer
(
VP9_COMMON
*
cm
)
{
return
&
cm
->
frame_bufs
[
cm
->
new_fb_idx
].
buf
;
}
static
int
get_free_fb
(
VP9_COMMON
*
cm
)
{
static
INLINE
int
get_free_fb
(
VP9_COMMON
*
cm
)
{
int
i
;
for
(
i
=
0
;
i
<
FRAME_BUFFERS
;
i
++
)
if
(
cm
->
frame_bufs
[
i
].
ref_count
==
0
)
...
...
@@ -240,7 +240,7 @@ static int get_free_fb(VP9_COMMON *cm) {
return
i
;
}
static
void
ref_cnt_fb
(
RefCntBuffer
*
bufs
,
int
*
idx
,
int
new_idx
)
{
static
INLINE
void
ref_cnt_fb
(
RefCntBuffer
*
bufs
,
int
*
idx
,
int
new_idx
)
{
const
int
ref_index
=
*
idx
;
if
(
ref_index
>=
0
&&
bufs
[
ref_index
].
ref_count
>
0
)
...
...
@@ -251,7 +251,7 @@ static void ref_cnt_fb(RefCntBuffer *bufs, int *idx, int new_idx) {
bufs
[
new_idx
].
ref_count
++
;
}
static
int
mi_cols_aligned_to_sb
(
int
n_mis
)
{
static
INLINE
int
mi_cols_aligned_to_sb
(
int
n_mis
)
{
return
ALIGN_POWER_OF_TWO
(
n_mis
,
MI_BLOCK_SIZE_LOG2
);
}
...
...
@@ -275,10 +275,10 @@ static INLINE void set_skip_context(
}
}
static
void
set_mi_row_col
(
MACROBLOCKD
*
xd
,
const
TileInfo
*
const
tile
,
int
mi_row
,
int
bh
,
int
mi_col
,
int
bw
,
int
mi_rows
,
int
mi_cols
)
{
static
INLINE
void
set_mi_row_col
(
MACROBLOCKD
*
xd
,
const
TileInfo
*
const
tile
,
int
mi_row
,
int
bh
,
int
mi_col
,
int
bw
,
int
mi_rows
,
int
mi_cols
)
{
xd
->
mb_to_top_edge
=
-
((
mi_row
*
MI_SIZE
)
*
8
);
xd
->
mb_to_bottom_edge
=
((
mi_rows
-
bh
-
mi_row
)
*
MI_SIZE
)
*
8
;
xd
->
mb_to_left_edge
=
-
((
mi_col
*
MI_SIZE
)
*
8
);
...
...
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