Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
a782a3b6
Commit
a782a3b6
authored
8 years ago
by
Deb Mukherjee
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Some cleanups for unnecessary macros" into nextgenv2
parents
9c323bc2
3b52b3ac
No related branches found
Branches containing commit
No related tags found
2 merge requests
!6
Rav1e 11 yushin 1
,
!3
Rav1e 10 yushin
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
av1/common/blockd.h
+1
-38
1 addition, 38 deletions
av1/common/blockd.h
with
1 addition
and
38 deletions
av1/common/blockd.h
+
1
−
38
View file @
a782a3b6
...
...
@@ -438,24 +438,15 @@ static INLINE int get_tx2d_size(TX_SIZE tx_size) {
#if CONFIG_EXT_TX
#define ALLOW_INTRA_EXT_TX 1
// whether masked transforms are used for 32X32
#define USE_MSKTX_FOR_32X32 0
#define USE_REDUCED_TXSET_FOR_16X16 1
static
const
int
num_ext_tx_set_inter
[
EXT_TX_SETS_INTER
]
=
{
1
,
16
,
12
,
2
};
static
const
int
num_ext_tx_set_intra
[
EXT_TX_SETS_INTRA
]
=
{
1
,
7
,
5
};
#if EXT_TX_SIZES == 4
static
INLINE
int
get_ext_tx_set
(
TX_SIZE
tx_size
,
BLOCK_SIZE
bs
,
int
is_inter
)
{
tx_size
=
txsize_sqr_map
[
tx_size
];
if
(
tx_size
>
TX_32X32
||
bs
<
BLOCK_8X8
)
return
0
;
#if USE_REDUCED_TXSET_FOR_16X16
if
(
tx_size
==
TX_32X32
)
return
is_inter
?
3
-
USE_MSKTX_FOR_32X32
:
0
;
if
(
tx_size
==
TX_32X32
)
return
is_inter
?
3
:
0
;
return
(
tx_size
==
TX_16X16
?
2
:
1
);
#else
if
(
tx_size
==
TX_32X32
)
return
is_inter
?
3
-
2
*
USE_MSKTX_FOR_32X32
:
0
;
return
(
tx_size
==
TX_16X16
&&
!
is_inter
?
2
:
1
);
#endif // USE_REDUCED_TXSET_FOR_16X16
}
static
const
int
use_intra_ext_tx_for_txsize
[
EXT_TX_SETS_INTRA
][
TX_SIZES
]
=
{
...
...
@@ -465,39 +456,11 @@ static const int use_intra_ext_tx_for_txsize[EXT_TX_SETS_INTRA][TX_SIZES] = {
};
static
const
int
use_inter_ext_tx_for_txsize
[
EXT_TX_SETS_INTER
][
TX_SIZES
]
=
{
{
0
,
0
,
0
,
0
},
// unused
{
1
,
1
,
(
!
USE_REDUCED_TXSET_FOR_16X16
),
USE_MSKTX_FOR_32X32
},
{
0
,
0
,
USE_REDUCED_TXSET_FOR_16X16
,
0
},
{
0
,
0
,
0
,
(
!
USE_MSKTX_FOR_32X32
)
},
};
#else // EXT_TX_SIZES == 4
static
INLINE
int
get_ext_tx_set
(
TX_SIZE
tx_size
,
BLOCK_SIZE
bs
,
int
is_inter
)
{
(
void
)
is_inter
;
tx_size
=
txsize_sqr_map
[
tx_size
];
if
(
tx_size
>
TX_32X32
||
bs
<
BLOCK_8X8
)
return
0
;
if
(
tx_size
==
TX_32X32
)
return
0
;
#if USE_REDUCED_TXSET_FOR_16X16
return
(
tx_size
==
TX_16X16
?
2
:
1
);
#else
return
(
tx_size
==
TX_16X16
&&
!
is_inter
?
2
:
1
);
#endif // USE_REDUCED_TXSET_FOR_16X16
}
static
const
int
use_intra_ext_tx_for_txsize
[
EXT_TX_SETS_INTRA
][
TX_SIZES
]
=
{
{
0
,
0
,
0
,
0
},
// unused
{
1
,
1
,
0
,
0
},
{
0
,
0
,
1
,
0
},
};
static
const
int
use_inter_ext_tx_for_txsize
[
EXT_TX_SETS_INTER
][
TX_SIZES
]
=
{
{
0
,
0
,
0
,
0
},
// unused
{
1
,
1
,
(
!
USE_REDUCED_TXSET_FOR_16X16
),
0
},
{
0
,
0
,
USE_REDUCED_TXSET_FOR_16X16
,
0
},
{
0
,
0
,
0
,
1
},
};
#endif // EXT_TX_SIZES == 4
// Transform types used in each intra set
static
const
int
ext_tx_used_intra
[
EXT_TX_SETS_INTRA
][
TX_TYPES
]
=
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment