Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
aom-rav1e
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
aom-rav1e
Commits
784596d5
Commit
784596d5
authored
Jun 23, 2017
by
Sarah Parker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove redundant checks in read/write_tx_type
Change-Id: I348dfd1f8b555306a3fb625bf2303f9cd2649e07
parent
580943a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
24 deletions
+22
-24
av1/decoder/decodemv.c
av1/decoder/decodemv.c
+12
-13
av1/encoder/bitstream.c
av1/encoder/bitstream.c
+10
-11
No files found.
av1/decoder/decodemv.c
View file @
784596d5
...
...
@@ -932,23 +932,22 @@ void av1_read_tx_type(const AV1_COMMON *const cm, MACROBLOCKD *xd,
!
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_SKIP
))
{
const
int
eset
=
get_ext_tx_set
(
tx_size
,
mbmi
->
sb_type
,
inter_block
,
cm
->
reduced_tx_set_used
);
// eset == 0 should correspond to a set with only DCT_DCT and
// there is no need to read the tx_type
assert
(
eset
!=
0
);
FRAME_COUNTS
*
counts
=
xd
->
counts
;
if
(
inter_block
)
{
if
(
eset
>
0
)
{
*
tx_type
=
av1_ext_tx_inter_inv
[
eset
][
aom_read_symbol
(
r
,
ec_ctx
->
inter_ext_tx_cdf
[
eset
][
square_tx_size
],
ext_tx_cnt_inter
[
eset
],
ACCT_STR
)];
if
(
counts
)
++
counts
->
inter_ext_tx
[
eset
][
square_tx_size
][
*
tx_type
];
}
*
tx_type
=
av1_ext_tx_inter_inv
[
eset
][
aom_read_symbol
(
r
,
ec_ctx
->
inter_ext_tx_cdf
[
eset
][
square_tx_size
],
ext_tx_cnt_inter
[
eset
],
ACCT_STR
)];
if
(
counts
)
++
counts
->
inter_ext_tx
[
eset
][
square_tx_size
][
*
tx_type
];
}
else
if
(
ALLOW_INTRA_EXT_TX
)
{
if
(
eset
>
0
)
{
*
tx_type
=
av1_ext_tx_intra_inv
[
eset
][
aom_read_symbol
(
r
,
ec_ctx
->
intra_ext_tx_cdf
[
eset
][
square_tx_size
][
mbmi
->
mode
],
ext_tx_cnt_intra
[
eset
],
ACCT_STR
)];
if
(
counts
)
++
counts
->
intra_ext_tx
[
eset
][
square_tx_size
][
mbmi
->
mode
][
*
tx_type
];
}
*
tx_type
=
av1_ext_tx_intra_inv
[
eset
][
aom_read_symbol
(
r
,
ec_ctx
->
intra_ext_tx_cdf
[
eset
][
square_tx_size
][
mbmi
->
mode
],
ext_tx_cnt_intra
[
eset
],
ACCT_STR
)];
if
(
counts
)
++
counts
->
intra_ext_tx
[
eset
][
square_tx_size
][
mbmi
->
mode
][
*
tx_type
];
}
}
else
{
*
tx_type
=
DCT_DCT
;
...
...
av1/encoder/bitstream.c
View file @
784596d5
...
...
@@ -1757,21 +1757,20 @@ void av1_write_tx_type(const AV1_COMMON *const cm, const MACROBLOCKD *xd,
!
segfeature_active
(
&
cm
->
seg
,
mbmi
->
segment_id
,
SEG_LVL_SKIP
))
{
const
int
eset
=
get_ext_tx_set
(
tx_size
,
bsize
,
is_inter
,
cm
->
reduced_tx_set_used
);
// eset == 0 should correspond to a set with only DCT_DCT and there
// is no need to send the tx_type
assert
(
eset
>
0
);
if
(
is_inter
)
{
assert
(
ext_tx_used_inter
[
eset
][
tx_type
]);
if
(
eset
>
0
)
{
aom_write_symbol
(
w
,
av1_ext_tx_inter_ind
[
eset
][
tx_type
],
ec_ctx
->
inter_ext_tx_cdf
[
eset
][
square_tx_size
],
ext_tx_cnt_inter
[
eset
]);
}
aom_write_symbol
(
w
,
av1_ext_tx_inter_ind
[
eset
][
tx_type
],
ec_ctx
->
inter_ext_tx_cdf
[
eset
][
square_tx_size
],
ext_tx_cnt_inter
[
eset
]);
}
else
if
(
ALLOW_INTRA_EXT_TX
)
{
assert
(
ext_tx_used_intra
[
eset
][
tx_type
]);
if
(
eset
>
0
)
{
aom_write_symbol
(
w
,
av1_ext_tx_intra_ind
[
eset
][
tx_type
],
ec_ctx
->
intra_ext_tx_cdf
[
eset
][
square_tx_size
][
mbmi
->
mode
],
ext_tx_cnt_intra
[
eset
]);
}
aom_write_symbol
(
w
,
av1_ext_tx_intra_ind
[
eset
][
tx_type
],
ec_ctx
->
intra_ext_tx_cdf
[
eset
][
square_tx_size
][
mbmi
->
mode
],
ext_tx_cnt_intra
[
eset
]);
}
}
#else
...
...
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