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
b785b95a
Commit
b785b95a
authored
Feb 01, 2018
by
James Zern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
av1_txfm,cosmetics: s/(min|max)Value/\1_value/
Change-Id: I35a6ac83d8a94c803148e7ad9366053599f747a0
parent
dc857593
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
av1/common/av1_inv_txfm1d.c
av1/common/av1_inv_txfm1d.c
+8
-8
av1/common/av1_inv_txfm2d.c
av1/common/av1_inv_txfm2d.c
+3
-3
av1/common/av1_txfm.h
av1/common/av1_txfm.h
+3
-3
No files found.
av1/common/av1_inv_txfm1d.c
View file @
b785b95a
...
...
@@ -16,13 +16,13 @@
#if CONFIG_COEFFICIENT_RANGE_CHECKING
void
range_check_func
(
int32_t
stage
,
const
int32_t
*
input
,
const
int32_t
*
buf
,
int32_t
size
,
int8_t
bit
)
{
const
int64_t
max
V
alue
=
(
1LL
<<
(
bit
-
1
))
-
1
;
const
int64_t
min
V
alue
=
-
(
1LL
<<
(
bit
-
1
));
const
int64_t
max
_v
alue
=
(
1LL
<<
(
bit
-
1
))
-
1
;
const
int64_t
min
_v
alue
=
-
(
1LL
<<
(
bit
-
1
));
int
in_range
=
1
;
for
(
int
i
=
0
;
i
<
size
;
++
i
)
{
if
(
buf
[
i
]
<
min
Value
||
buf
[
i
]
>
maxV
alue
)
{
if
(
buf
[
i
]
<
min
_value
||
buf
[
i
]
>
max_v
alue
)
{
in_range
=
0
;
}
}
...
...
@@ -31,8 +31,8 @@ void range_check_func(int32_t stage, const int32_t *input, const int32_t *buf,
fprintf
(
stderr
,
"Error: coeffs contain out-of-range values
\n
"
);
fprintf
(
stderr
,
"size: %d
\n
"
,
size
);
fprintf
(
stderr
,
"stage: %d
\n
"
,
stage
);
fprintf
(
stderr
,
"allowed range: [%"
PRId64
";%"
PRId64
"]
\n
"
,
min
V
alue
,
max
V
alue
);
fprintf
(
stderr
,
"allowed range: [%"
PRId64
";%"
PRId64
"]
\n
"
,
min
_v
alue
,
max
_v
alue
);
fprintf
(
stderr
,
"coeffs: "
);
...
...
@@ -74,9 +74,9 @@ static INLINE void clamp_buf(int32_t *buf, int32_t size, int8_t bit) {
static
INLINE
int32_t
clamp_value
(
int32_t
value
,
int8_t
bit
)
{
if
(
bit
<=
16
)
{
const
int32_t
max
V
alue
=
(
1
<<
15
)
-
1
;
const
int32_t
min
V
alue
=
-
(
1
<<
15
);
return
clamp
(
value
,
min
Value
,
maxV
alue
);
const
int32_t
max
_v
alue
=
(
1
<<
15
)
-
1
;
const
int32_t
min
_v
alue
=
-
(
1
<<
15
);
return
clamp
(
value
,
min
_value
,
max_v
alue
);
}
return
value
;
}
...
...
av1/common/av1_inv_txfm2d.c
View file @
b785b95a
...
...
@@ -20,11 +20,11 @@
#define NO_INV_TRANSPOSE 1
static
INLINE
void
clamp_buf
(
int32_t
*
buf
,
int32_t
size
,
int8_t
bit
)
{
const
int64_t
max
V
alue
=
(
1LL
<<
(
bit
-
1
))
-
1
;
const
int64_t
min
V
alue
=
-
(
1LL
<<
(
bit
-
1
));
const
int64_t
max
_v
alue
=
(
1LL
<<
(
bit
-
1
))
-
1
;
const
int64_t
min
_v
alue
=
-
(
1LL
<<
(
bit
-
1
));
for
(
int
i
=
0
;
i
<
size
;
++
i
)
buf
[
i
]
=
(
int32_t
)
clamp64
(
buf
[
i
],
min
Value
,
maxV
alue
);
buf
[
i
]
=
(
int32_t
)
clamp64
(
buf
[
i
],
min
_value
,
max_v
alue
);
}
static
INLINE
TxfmFunc
inv_txfm_type_to_func
(
TXFM_TYPE
txfm_type
)
{
...
...
av1/common/av1_txfm.h
View file @
b785b95a
...
...
@@ -95,9 +95,9 @@ static INLINE const int32_t *sinpi_arr(int n) {
static
INLINE
int32_t
range_check_value
(
int32_t
value
,
int8_t
bit
)
{
#if CONFIG_COEFFICIENT_RANGE_CHECKING
const
int64_t
max
V
alue
=
(
1LL
<<
(
bit
-
1
))
-
1
;
const
int64_t
min
V
alue
=
-
(
1LL
<<
(
bit
-
1
));
if
(
value
<
min
Value
||
value
>
maxV
alue
)
{
const
int64_t
max
_v
alue
=
(
1LL
<<
(
bit
-
1
))
-
1
;
const
int64_t
min
_v
alue
=
-
(
1LL
<<
(
bit
-
1
));
if
(
value
<
min
_value
||
value
>
max_v
alue
)
{
fprintf
(
stderr
,
"coeff out of bit range, value: %d bit %d
\n
"
,
value
,
bit
);
assert
(
0
);
}
...
...
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