Skip to content
GitLab
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
3a83d08a
Commit
3a83d08a
authored
Feb 28, 2014
by
Dmitry Kovalev
Committed by
Gerrit Code Review
Feb 28, 2014
Browse files
Merge "Moving get_tx_eob() from common to encoder."
parents
0429c088
3b2cd913
Changes
2
Hide whitespace changes
Inline
Side-by-side
vp9/common/vp9_blockd.h
View file @
3a83d08a
...
...
@@ -328,13 +328,6 @@ void vp9_set_contexts(const MACROBLOCKD *xd, struct macroblockd_plane *pd,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
,
int
has_eob
,
int
aoff
,
int
loff
);
static
INLINE
int
get_tx_eob
(
const
struct
segmentation
*
seg
,
int
segment_id
,
TX_SIZE
tx_size
)
{
const
int
eob_max
=
16
<<
(
tx_size
<<
1
);
return
vp9_segfeature_active
(
seg
,
segment_id
,
SEG_LVL_SKIP
)
?
0
:
eob_max
;
}
#ifdef __cplusplus
}
// extern "C"
#endif
...
...
vp9/encoder/vp9_tokenize.c
View file @
3a83d08a
...
...
@@ -199,6 +199,12 @@ static INLINE void add_token_no_extra(TOKENEXTRA **t,
++
counts
[
token
];
}
static
INLINE
int
get_tx_eob
(
const
struct
segmentation
*
seg
,
int
segment_id
,
TX_SIZE
tx_size
)
{
const
int
eob_max
=
16
<<
(
tx_size
<<
1
);
return
vp9_segfeature_active
(
seg
,
segment_id
,
SEG_LVL_SKIP
)
?
0
:
eob_max
;
}
static
void
tokenize_b
(
int
plane
,
int
block
,
BLOCK_SIZE
plane_bsize
,
TX_SIZE
tx_size
,
void
*
arg
)
{
struct
tokenize_b_args
*
const
args
=
arg
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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