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
7cd2e110
Commit
7cd2e110
authored
Jan 12, 2018
by
Yushin Cho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dist-8x8] Move asserts behind DEBUG_DIST_8X8 flag
Change-Id: I0cd3de4a5673003f9fbe9c615e139e8133a99dcc
parent
c0dc6b46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
av1/encoder/rdopt.c
av1/encoder/rdopt.c
+11
-0
No files found.
av1/encoder/rdopt.c
View file @
7cd2e110
...
...
@@ -2037,10 +2037,13 @@ static void dist_8x8_sub8x8_txfm_rd(const AV1_COMP *const cpi, MACROBLOCK *x,
dist *= 16;
}
#ifdef DEBUG_DIST_8X8
if (x->tune_metric == AOM_TUNE_PSNR && xd->bd == 8) {
assert(args->rd_stats.sse == sse);
assert(args->rd_stats.dist == dist);
}
#endif // DEBUG_DIST_8X8
args->rd_stats.sse = sse;
args->rd_stats.dist = dist;
...
...
@@ -3890,8 +3893,12 @@ static void select_tx_block(const AV1_COMP *cpi, MACROBLOCK *x, int blk_row,
dist_8x8 = av1_dist_8x8(cpi, x, src, src_stride, dst, dst_stride,
BLOCK_8X8, 8, 8, 8, 8, qindex) *
16;
#ifdef DEBUG_DIST_8X8
if (x->tune_metric == AOM_TUNE_PSNR && xd->bd == 8)
assert(sum_rd_stats.sse == dist_8x8);
#endif // DEBUG_DIST_8X8
sum_rd_stats.sse = dist_8x8;
if (xd->cur_buf->flags & YV12_FLAG_HIGHBITDEPTH)
...
...
@@ -3943,8 +3950,12 @@ static void select_tx_block(const AV1_COMP *cpi, MACROBLOCK *x, int blk_row,
dist_8x8 = av1_dist_8x8(cpi, x, src, src_stride, pred8, 8, BLOCK_8X8, 8,
8, 8, 8, qindex) *
16;
#ifdef DEBUG_DIST_8X8
if (x->tune_metric == AOM_TUNE_PSNR && xd->bd == 8)
assert(sum_rd_stats.dist == dist_8x8);
#endif // DEBUG_DIST_8X8
sum_rd_stats.dist = dist_8x8;
tmp_rd = RDCOST(x->rdmult, sum_rd_stats.rate, sum_rd_stats.dist);
}
...
...
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