Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
dav1d
Commits
327b7de0
Commit
327b7de0
authored
Nov 29, 2018
by
Janne Grunau
Browse files
backup_lpf: increment row by the correct stripe_h
Fixes
#200
.
parent
d5253365
Pipeline
#3109
passed with stages
in 9 minutes and 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lr_apply_tmpl.c
View file @
327b7de0
...
...
@@ -73,21 +73,23 @@ static void backup_lpf(const Dav1dFrameContext *const f,
src
+=
(
stripe_h
-
2
)
*
PXSTRIDE
(
src_stride
);
if
(
f
->
frame_hdr
->
super_res
.
enabled
)
{
for
(;
row
+
stripe_h
<=
row_h
;
row
+=
stripe_h
)
{
while
(
row
+
stripe_h
<=
row_h
)
{
f
->
dsp
->
mc
.
resize
(
dst
,
dst_stride
,
src
,
src_stride
,
dst_w
,
src_w
,
4
,
f
->
resize_step
[
ss_hor
],
f
->
resize_start
[
ss_hor
]);
row
+=
stripe_h
;
// unmodified stripe_h for the 1st stripe
stripe_h
=
64
>>
ss_ver
;
src
+=
stripe_h
*
PXSTRIDE
(
src_stride
);
dst
+=
4
*
PXSTRIDE
(
dst_stride
);
}
}
else
{
for
(;
row
+
stripe_h
<=
row_h
;
row
+=
stripe_h
)
{
while
(
row
+
stripe_h
<=
row_h
)
{
for
(
int
i
=
0
;
i
<
4
;
i
++
)
{
pixel_copy
(
dst
,
src
,
src_w
);
dst
+=
PXSTRIDE
(
dst_stride
);
src
+=
PXSTRIDE
(
src_stride
);
}
row
+=
stripe_h
;
// unmodified stripe_h for the 1st stripe
stripe_h
=
64
>>
ss_ver
;
src
+=
(
stripe_h
-
4
)
*
PXSTRIDE
(
src_stride
);
}
...
...
Write
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!
Cancel
Please
register
or
sign in
to comment