Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
0deee121
Commit
0deee121
authored
Dec 27, 2017
by
Linfeng Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update av1_get_eob_pos_ctx()
Change-Id: I520dff073d24f56b3d4878d74086a1336bb83997
parent
7c524d4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
av1/common/txb_common.h
av1/common/txb_common.h
+19
-2
No files found.
av1/common/txb_common.h
View file @
0deee121
...
...
@@ -107,8 +107,25 @@ static INLINE int get_eob_pos_token(const int eob, int *const extra) {
static
INLINE
int
av1_get_eob_pos_ctx
(
const
TX_TYPE
tx_type
,
const
int
eob_token
)
{
const
int
offset
=
(
tx_type_to_class
[
tx_type
]
==
TX_CLASS_2D
)
?
0
:
11
;
return
eob_token
-
1
+
offset
;
static
const
int8_t
tx_type_to_offset
[
TX_TYPES
]
=
{
-
1
,
// DCT_DCT
-
1
,
// ADST_DCT
-
1
,
// DCT_ADST
-
1
,
// ADST_ADST
-
1
,
// FLIPADST_DCT
-
1
,
// DCT_FLIPADST
-
1
,
// FLIPADST_FLIPADST
-
1
,
// ADST_FLIPADST
-
1
,
// FLIPADST_ADST
-
1
,
// IDTX
10
,
// V_DCT
10
,
// H_DCT
10
,
// V_ADST
10
,
// H_ADST
10
,
// V_FLIPADST
10
,
// H_FLIPADST
};
return
eob_token
+
tx_type_to_offset
[
tx_type
];
}
static
INLINE
int
get_txb_bwl
(
TX_SIZE
tx_size
)
{
...
...
Write
Preview
Markdown
is supported
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