Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
rav1e
Commits
3ba6d445
Commit
3ba6d445
authored
Aug 10, 2018
by
Monty
Committed by
Monty Montgomery
Aug 10, 2018
Browse files
Correct confusing not-a-bug in CDEF bounds
Block boundary calculation is correct by accident-- make it correct on purpose.
parent
4ab7e7ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/cdef.rs
View file @
3ba6d445
...
...
@@ -257,8 +257,8 @@ pub fn cdef_filter_superblock(fi: &FrameInvariants,
// Each direction block is 8x8 in y, potentially smaller if subsampled in chroma
for
by
in
0
..
8
{
for
bx
in
0
..
8
{
let
global_block_offset
=
sbo_global
.block_offset
(
bx
,
by
);
if
global_block_offset
.x
+
bx
<
bc_global
.cols
&&
global_block_offset
.y
+
by
<
bc_global
.rows
{
let
global_block_offset
=
sbo_global
.block_offset
(
bx
<<
1
,
by
<<
1
);
if
global_block_offset
.x
<
bc_global
.cols
&&
global_block_offset
.y
<
bc_global
.rows
{
let
skip
=
bc_global
.at
(
&
global_block_offset
)
.skip
;
if
!
skip
{
let
dir
=
cdef_dirs
.dir
[
bx
][
by
];
...
...
src/rdo.rs
View file @
3ba6d445
...
...
@@ -525,8 +525,8 @@ pub fn rdo_cdef_decision(sbo: &SuperBlockOffset, fi: &FrameInvariants,
let
mut
err
:
u64
=
0
;
for
by
in
0
..
8
{
for
bx
in
0
..
8
{
let
bo
=
sbo
.block_offset
(
bx
,
by
);
if
bo
.x
+
bx
<
bc
.cols
&&
bo
.y
+
by
<
bc
.rows
{
let
bo
=
sbo
.block_offset
(
bx
<<
1
,
by
<<
1
);
if
bo
.x
<
bc
.cols
&&
bo
.y
<
bc
.rows
{
let
skip
=
bc
.at
(
&
bo
)
.skip
;
if
!
skip
{
for
p
in
0
..
3
{
...
...
Write
Preview
Supports
Markdown
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