mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 19:24:06 +00:00
Another fix for reference building.
This commit is contained in:
parent
b0a4f3345a
commit
eb32f40bd9
|
@ -713,11 +713,16 @@ void kvz_intra_build_reference_any(
|
||||||
if (px.x == 0) {
|
if (px.x == 0) {
|
||||||
// On left border, no need for multi ref index
|
// On left border, no need for multi ref index
|
||||||
out_left_ref[0] = out_left_ref[1];
|
out_left_ref[0] = out_left_ref[1];
|
||||||
|
if (px.y == 0) {
|
||||||
|
out_top_ref[0] = out_left_ref[1];
|
||||||
|
}
|
||||||
|
else {
|
||||||
// Fill top reference top left pixels with nearest
|
// Fill top reference top left pixels with nearest
|
||||||
kvz_pixel nearest = top_border[0];
|
kvz_pixel nearest = top_border[0];
|
||||||
for (int i = 0; i <= multi_ref_index; ++i) {
|
for (int i = 0; i <= multi_ref_index; ++i) {
|
||||||
out_top_ref[i] = nearest;
|
out_top_ref[i] = nearest;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// Copy reference clockwise.
|
// Copy reference clockwise.
|
||||||
out_left_ref[0] = out_left_ref[1];
|
out_left_ref[0] = out_left_ref[1];
|
||||||
|
|
Loading…
Reference in a new issue