Commit 8517d6ae authored by Luc Trudeau's avatar Luc Trudeau

[CFL] Fix height when loading pixel buffer

Subset1:
  PSNR | PSNR Cb | PSNR Cr | PSNR HVS |   SSIM | MS SSIM | CIEDE 2000
0.0000 | -0.0001 | -0.0000 |  -0.0001 | 0.0001 |  0.0000 |    -0.0001
https://beta.arewecompressedyet.com/?job=cfl%402017-05-18T16%3A08%3A54.160Z&job=cfl_fix%402017-05-18T16%3A08%3A02.454Z

Change-Id: I6e403b8a0a14803d38db881031ad51878c683d65
parent 060e1eb0
......@@ -158,7 +158,7 @@ double cfl_load(const CFL_CTX *cfl, uint8_t *output, int output_stride, int row,
y_pix = &cfl->y_pix[(row * MAX_SB_SIZE + col) << tx_off_log2];
int uv_width = (col << tx_off_log2) + width;
diff_width = uv_width - cfl->y_width;
int uv_height = (row << tx_off_log2) + width;
int uv_height = (row << tx_off_log2) + height;
diff_height = uv_height - cfl->y_height;
for (int j = 0; j < height; j++) {
for (int i = 0; i < width; i++) {
......@@ -172,7 +172,7 @@ double cfl_load(const CFL_CTX *cfl, uint8_t *output, int output_stride, int row,
y_pix = &cfl->y_pix[(row * MAX_SB_SIZE + col) << (tx_off_log2 + sub_y)];
int uv_width = ((col << tx_off_log2) + width) << sub_x;
diff_width = (uv_width - cfl->y_width) >> sub_x;
int uv_height = ((row << tx_off_log2) + width) << sub_y;
int uv_height = ((row << tx_off_log2) + height) << sub_y;
diff_height = (uv_height - cfl->y_height) >> sub_y;
for (int j = 0; j < height; j++) {
for (int i = 0; i < width; i++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment