Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ronald S. Bultje
dav1d
Commits
7b59b883
Commit
7b59b883
authored
Oct 01, 2018
by
Luc Trudeau
Browse files
Remove unused parameters in get_tx_ctx
parent
5f122cd5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/decode.c
View file @
7b59b883
...
...
@@ -1066,8 +1066,7 @@ static void decode_b(Dav1dTileContext *const t,
b
->
uvtx
=
av1_max_txfm_size_for_bs
[
bs
][
f
->
cur
.
p
.
p
.
layout
];
t_dim
=
&
av1_txfm_dimensions
[
b
->
tx
];
if
(
f
->
frame_hdr
.
txfm_mode
==
TX_SWITCHABLE
&&
t_dim
->
max
>
TX_4X4
)
{
const
int
tctx
=
get_tx_ctx
(
t
->
a
,
&
t
->
l
,
t_dim
,
by4
,
bx4
,
have_top
,
have_left
);
const
int
tctx
=
get_tx_ctx
(
t
->
a
,
&
t
->
l
,
t_dim
,
by4
,
bx4
);
uint16_t
*
const
tx_cdf
=
ts
->
cdf
.
m
.
txsz
[
t_dim
->
max
-
1
][
tctx
];
int
depth
=
msac_decode_symbol_adapt
(
&
ts
->
msac
,
tx_cdf
,
imin
(
t_dim
->
max
+
1
,
3
));
...
...
src/env.h
View file @
7b59b883
...
...
@@ -76,8 +76,7 @@ static inline int get_intra_ctx(const BlockContext *const a,
static
inline
int
get_tx_ctx
(
const
BlockContext
*
const
a
,
const
BlockContext
*
const
l
,
const
TxfmInfo
*
const
max_tx
,
const
int
yb4
,
const
int
xb4
,
const
int
have_top
,
const
int
have_left
)
const
int
yb4
,
const
int
xb4
)
{
return
(
l
->
tx_intra
[
yb4
]
>=
max_tx
->
lh
)
+
(
a
->
tx_intra
[
xb4
]
>=
max_tx
->
lw
);
}
...
...
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