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
78a7bd7d
Commit
78a7bd7d
authored
Oct 19, 2017
by
Sebastien Alaiwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use rtcd script to choose between implementations
Change-Id: I752ad96a8b4349d4a437a97e30edc8e4c22f81b5
parent
9feda796
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
51 deletions
+19
-51
av1/common/av1_rtcd_defs.pl
av1/common/av1_rtcd_defs.pl
+13
-12
av1/common/idct.c
av1/common/idct.c
+2
-35
test/av1_fht16x16_test.cc
test/av1_fht16x16_test.cc
+2
-2
test/av1_fht4x4_test.cc
test/av1_fht4x4_test.cc
+1
-1
test/av1_fht8x8_test.cc
test/av1_fht8x8_test.cc
+1
-1
No files found.
av1/common/av1_rtcd_defs.pl
View file @
78a7bd7d
...
...
@@ -70,10 +70,10 @@ if (aom_config("CONFIG_HIGHBITDEPTH") eq "yes") {
# Inverse dct
#
add_proto
qw/void av1_iht4x4_16_add/
,
"
const tran_low_t *input, uint8_t *dest, int dest_stride, const struct txfm_param *param
";
if
(
aom_config
("
CONFIG_HIGHBITDEPTH
")
eq
"
yes
")
{
if
(
aom_config
("
CONFIG_DAALA_TX4
")
ne
"
yes
"
&&
aom_config
("
CONFIG_LGT
")
ne
"
yes
")
{
if
(
aom_config
("
CONFIG_HIGHBITDEPTH
")
eq
"
yes
")
{
specialize
qw/av1_iht4x4_16_add sse2/
;
}
else
{
if
(
aom_config
("
CONFIG_DAALA_TX4
")
ne
"
yes
")
{
}
else
{
specialize
qw/av1_iht4x4_16_add sse2 neon/
;
}
}
...
...
@@ -105,19 +105,20 @@ add_proto qw/void av1_iht8x32_256_add/, "const tran_low_t *input, uint8_t *dest,
add_proto
qw/void av1_iht32x8_256_add/
,
"
const tran_low_t *input, uint8_t *dest, int dest_stride, const struct txfm_param *param
";
add_proto
qw/void av1_iht8x8_64_add/
,
"
const tran_low_t *input, uint8_t *dest, int dest_stride, const struct txfm_param *param
";
if
(
aom_config
("
CONFIG_HIGHBITDEPTH
")
eq
"
yes
")
{
if
(
aom_config
("
CONFIG_DAALA_TX8
")
ne
"
yes
"
&&
aom_config
("
CONFIG_LGT
")
ne
"
yes
")
{
if
(
aom_config
("
CONFIG_HIGHBITDEPTH
")
eq
"
yes
")
{
specialize
qw/av1_iht8x8_64_add sse2/
;
}
else
{
if
(
aom_config
("
CONFIG_DAALA_TX8
")
ne
"
yes
")
{
}
else
{
specialize
qw/av1_iht8x8_64_add sse2 neon/
;
}
}
add_proto
qw/void av1_iht16x16_256_add/
,
"
const tran_low_t *input, uint8_t *output, int pitch, const struct txfm_param *param
";
if
(
aom_config
("
CONFIG_HIGHBITDEPTH
")
eq
"
yes
")
{
if
(
aom_config
("
CONFIG_DAALA_TX16
")
ne
"
yes
"
&&
aom_config
("
CONFIG_LGT
")
ne
"
yes
")
{
if
(
aom_config
("
CONFIG_HIGHBITDEPTH
")
eq
"
yes
")
{
specialize
qw/av1_iht16x16_256_add sse2 avx2/
;
}
else
{
if
(
aom_config
("
CONFIG_DAALA_TX16
")
ne
"
yes
")
{
}
else
{
specialize
qw/av1_iht16x16_256_add sse2 avx2/
;
}
}
...
...
av1/common/idct.c
View file @
78a7bd7d
...
...
@@ -2484,27 +2484,14 @@ static void inv_txfm_add_4x4(const tran_low_t *input, uint8_t *dest, int stride,
#endif
case
ADST_DCT
:
case
DCT_ADST
:
case
ADST_ADST
:
#if CONFIG_LGT || CONFIG_DAALA_TX4
// LGT only exists in C verson
av1_iht4x4_16_add_c
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#else
av1_iht4x4_16_add
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#endif
case
ADST_ADST
:
av1_iht4x4_16_add
(
input
,
dest
,
stride
,
txfm_param
);
break
;
case
FLIPADST_DCT
:
case
DCT_FLIPADST
:
case
FLIPADST_FLIPADST
:
case
ADST_FLIPADST
:
case
FLIPADST_ADST
:
#if CONFIG_LGT || CONFIG_DAALA_TX4
av1_iht4x4_16_add_c
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#else
av1_iht4x4_16_add
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#endif
case
V_DCT
:
case
H_DCT
:
case
V_ADST
:
...
...
@@ -2635,26 +2622,14 @@ static void inv_txfm_add_8x8(const tran_low_t *input, uint8_t *dest, int stride,
#endif
case
ADST_DCT
:
case
DCT_ADST
:
case
ADST_ADST
:
#if CONFIG_LGT || CONFIG_DAALA_TX8
av1_iht8x8_64_add_c
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#else
av1_iht8x8_64_add
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#endif
case
ADST_ADST
:
av1_iht8x8_64_add
(
input
,
dest
,
stride
,
txfm_param
);
break
;
case
FLIPADST_DCT
:
case
DCT_FLIPADST
:
case
FLIPADST_FLIPADST
:
case
ADST_FLIPADST
:
case
FLIPADST_ADST
:
#if CONFIG_LGT || CONFIG_DAALA_TX8
av1_iht8x8_64_add_c
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#else
av1_iht8x8_64_add
(
input
,
dest
,
stride
,
txfm_param
);
break
;
#endif
case
V_DCT
:
case
H_DCT
:
case
V_ADST
:
...
...
@@ -2681,11 +2656,7 @@ static void inv_txfm_add_16x16(const tran_low_t *input, uint8_t *dest,
case
ADST_DCT
:
case
DCT_ADST
:
case
ADST_ADST
:
#if CONFIG_DAALA_TX16
av1_iht16x16_256_add_c
(
input
,
dest
,
stride
,
txfm_param
);
#else
av1_iht16x16_256_add
(
input
,
dest
,
stride
,
txfm_param
);
#endif // CONFIG_DAALA_TX16
break
;
case
FLIPADST_DCT
:
case
DCT_FLIPADST
:
...
...
@@ -2698,11 +2669,7 @@ static void inv_txfm_add_16x16(const tran_low_t *input, uint8_t *dest,
case
H_ADST
:
case
V_FLIPADST
:
case
H_FLIPADST
:
#if CONFIG_DAALA_TX16
av1_iht16x16_256_add_c
(
input
,
dest
,
stride
,
txfm_param
);
#else
av1_iht16x16_256_add
(
input
,
dest
,
stride
,
txfm_param
);
#endif // CONFIG_DAALA_TX16
break
;
case
IDTX
:
inv_idtx_add_c
(
input
,
dest
,
stride
,
16
,
16
,
tx_type
);
break
;
#if CONFIG_MRC_TX
...
...
test/av1_fht16x16_test.cc
View file @
78a7bd7d
...
...
@@ -164,7 +164,7 @@ TEST_P(AV1HighbdTrans16x16HT, HighbdCoeffCheck) { RunBitexactCheck(); }
using
std
::
tr1
::
make_tuple
;
#if HAVE_SSE2 && !CONFIG_DAALA_TX16
#if HAVE_SSE2 && !CONFIG_DAALA_TX16
&& !CONFIG_LGT
const
Ht16x16Param
kArrayHt16x16Param_sse2
[]
=
{
make_tuple
(
&
av1_fht16x16_sse2
,
&
av1_iht16x16_256_add_sse2
,
DCT_DCT
,
AOM_BITS_8
,
256
),
...
...
@@ -203,7 +203,7 @@ INSTANTIATE_TEST_CASE_P(SSE2, AV1Trans16x16HT,
::
testing
::
ValuesIn
(
kArrayHt16x16Param_sse2
));
#endif // HAVE_SSE2
#if HAVE_AVX2 && !CONFIG_DAALA_TX16
#if HAVE_AVX2 && !CONFIG_DAALA_TX16
&& !CONFIG_LGT
const
Ht16x16Param
kArrayHt16x16Param_avx2
[]
=
{
make_tuple
(
&
av1_fht16x16_avx2
,
&
av1_iht16x16_256_add_avx2
,
DCT_DCT
,
AOM_BITS_8
,
256
),
...
...
test/av1_fht4x4_test.cc
View file @
78a7bd7d
...
...
@@ -167,7 +167,7 @@ TEST_P(AV1HighbdTrans4x4HT, HighbdCoeffCheck) { RunBitexactCheck(); }
using
std
::
tr1
::
make_tuple
;
#if HAVE_SSE2 && !CONFIG_DAALA_TX4
#if HAVE_SSE2 && !CONFIG_DAALA_TX4
&& !CONFIG_LGT
const
Ht4x4Param
kArrayHt4x4Param_sse2
[]
=
{
make_tuple
(
&
av1_fht4x4_sse2
,
&
av1_iht4x4_16_add_sse2
,
DCT_DCT
,
AOM_BITS_8
,
16
),
...
...
test/av1_fht8x8_test.cc
View file @
78a7bd7d
...
...
@@ -167,7 +167,7 @@ TEST_P(AV1HighbdTrans8x8HT, HighbdCoeffCheck) { RunBitexactCheck(); }
using
std
::
tr1
::
make_tuple
;
#if HAVE_SSE2 && !CONFIG_DAALA_TX8
#if HAVE_SSE2 && !CONFIG_DAALA_TX8
&& !CONFIG_LGT
const
Ht8x8Param
kArrayHt8x8Param_sse2
[]
=
{
make_tuple
(
&
av1_fht8x8_sse2
,
&
av1_iht8x8_64_add_sse2
,
DCT_DCT
,
AOM_BITS_8
,
64
),
...
...
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