Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
566716e3
Commit
566716e3
authored
10 years ago
by
Yaowu Xu
Committed by
Gerrit Code Review
10 years ago
Browse files
Options
Download
Plain Diff
Merge "configure: add --enable-coefficient-range-checking"
parents
8e5fa0aa
0a2b25dc
v1.14.0-linphone
1.4.X
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
nextgen
nextgenv2
sandbox/Jingning/experimental
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
configure
+5
-0
configure
vp9/common/vp9_idct.h
+10
-0
vp9/common/vp9_idct.h
with
15 additions
and
0 deletions
configure
+
5
−
0
View file @
566716e3
...
@@ -46,6 +46,9 @@ Advanced options:
...
@@ -46,6 +46,9 @@ Advanced options:
${
toggle_realtime_only
}
enable this option while building for real-time encoding
${
toggle_realtime_only
}
enable this option while building for real-time encoding
${
toggle_onthefly_bitpacking
}
enable on-the-fly bitpacking in real-time encoding
${
toggle_onthefly_bitpacking
}
enable on-the-fly bitpacking in real-time encoding
${
toggle_error_concealment
}
enable this option to get a decoder which is able to conceal losses
${
toggle_error_concealment
}
enable this option to get a decoder which is able to conceal losses
${
toggle_coefficient_range_checking
}
enable decoder to check if intermediate
transform coefficients are in valid range
${
toggle_runtime_cpu_detect
}
runtime cpu detection
${
toggle_runtime_cpu_detect
}
runtime cpu detection
${
toggle_shared
}
shared library support
${
toggle_shared
}
shared library support
${
toggle_static
}
static library support
${
toggle_static
}
static library support
...
@@ -327,6 +330,7 @@ CONFIG_LIST="
...
@@ -327,6 +330,7 @@ CONFIG_LIST="
encode_perf_tests
encode_perf_tests
multi_res_encoding
multi_res_encoding
temporal_denoising
temporal_denoising
coefficient_range_checking
experimental
experimental
size_limit
size_limit
${
EXPERIMENT_LIST
}
${
EXPERIMENT_LIST
}
...
@@ -384,6 +388,7 @@ CMDLINE_SELECT="
...
@@ -384,6 +388,7 @@ CMDLINE_SELECT="
encode_perf_tests
encode_perf_tests
multi_res_encoding
multi_res_encoding
temporal_denoising
temporal_denoising
coefficient_range_checking
experimental
experimental
"
"
...
...
This diff is collapsed.
Click to expand it.
vp9/common/vp9_idct.h
+
10
−
0
View file @
566716e3
...
@@ -81,6 +81,16 @@ static const int sinpi_4_9 = 15212;
...
@@ -81,6 +81,16 @@ static const int sinpi_4_9 = 15212;
static
INLINE
int
dct_const_round_shift
(
int
input
)
{
static
INLINE
int
dct_const_round_shift
(
int
input
)
{
int
rv
=
ROUND_POWER_OF_TWO
(
input
,
DCT_CONST_BITS
);
int
rv
=
ROUND_POWER_OF_TWO
(
input
,
DCT_CONST_BITS
);
#if CONFIG_COEFFICIENT_RANGE_CHECKING
// For valid VP9 input streams, intermediate stage coefficients should always
// stay within the range of a signed 16 bit integer. Coefficients can go out
// of this range for invalid/corrupt VP9 streams. However, strictly checking
// this range for every intermediate coefficient can burdensome for a decoder,
// therefore the following assertion is only enabled when configured with
// --enable-coefficient-range-checking.
assert
(
INT16_MIN
<=
rv
);
assert
(
rv
<=
INT16_MAX
);
#endif
return
(
int16_t
)
rv
;
return
(
int16_t
)
rv
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets