Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
76b89631
Commit
76b89631
authored
Mar 20, 2017
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable OD_ASSERTS asserts when NDEBUG is set
Change-Id: I3d411ef4a6a1be5e7e644f210a5296dbe18807eb
parent
1dca126c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
av1/common/odintrin.h
av1/common/odintrin.h
+2
-0
av1/encoder/ratectrl_xiph.c
av1/encoder/ratectrl_xiph.c
+1
-0
av1/encoder/rdopt.c
av1/encoder/rdopt.c
+1
-0
No files found.
av1/common/odintrin.h
View file @
76b89631
...
...
@@ -69,7 +69,9 @@ extern "C" {
# define OD_DISABLE_CFL (1)
# define OD_DISABLE_FILTER (1)
#if !defined(NDEBUG)
# define OD_ENABLE_ASSERTIONS (1)
#endif
# define OD_LOG(a)
# define OD_LOG_PARTIAL(a)
...
...
av1/encoder/ratectrl_xiph.c
View file @
76b89631
...
...
@@ -675,6 +675,7 @@ int od_enc_rc_select_quantizers_and_lambdas(od_rc_state *rc,
od_frame_type
(
rc
,
rc
->
cur_frame
,
&
closed_form_golden
,
&
closed_form_altref
,
&
closed_form_cur_frame
);
OD_UNUSED
(
closed_form_type
);
OD_UNUSED
(
is_altref_frame
);
OD_ASSERT
(
closed_form_type
==
frame_type
);
OD_ASSERT
(
closed_form_cur_frame
==
rc
->
cur_frame
);
OD_ASSERT
(
closed_form_altref
==
is_altref_frame
);
...
...
av1/encoder/rdopt.c
View file @
76b89631
...
...
@@ -493,6 +493,7 @@ static double od_compute_dist_8x8(int qm, int use_activity_masking, od_coeff *x,
vardist = 0;
OD_ASSERT(qm != OD_FLAT_QM);
(void)qm;
#if 1
min_var = INT_MAX;
mean_var = 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