Skip to content

Commit

Permalink
Fix chroma scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Bossen committed Feb 5, 2024
1 parent cf2527f commit ddddc08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/recon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2892,7 +2892,7 @@ pub(crate) unsafe fn rav1d_recon_b_intra<BD: BitDepth>(
let edge_array = &mut interintra_edge.0.edge;
let edge_offset = 128;
let data_stride = BD::pxstride((*f).cur.stride[1] as usize) as isize;
let data_width = 4 * (*ts).tiling.col_end >> ss_ver;
let data_width = 4 * (*ts).tiling.col_end >> ss_hor;
let data_height = 4 * (*ts).tiling.row_end >> ss_ver;
let data_diff = (data_height - 1) as isize * data_stride;
let uvdst_slice = slice::from_raw_parts(
Expand Down Expand Up @@ -3109,7 +3109,7 @@ pub(crate) unsafe fn rav1d_recon_b_intra<BD: BitDepth>(
let edge_offset = 128;
let data_stride =
BD::pxstride((*f).cur.stride[1] as usize) as isize;
let data_width = 4 * (*ts).tiling.col_end >> ss_ver;
let data_width = 4 * (*ts).tiling.col_end >> ss_hor;
let data_height = 4 * (*ts).tiling.row_end >> ss_ver;
let data_diff = (data_height - 1) as isize * data_stride;
let dstuv_slice = slice::from_raw_parts(
Expand Down

0 comments on commit ddddc08

Please sign in to comment.