Commit 6a078a21 authored by Yaowu Xu's avatar Yaowu Xu Committed by Gerrit Code Review
Browse files

Merge "Correct the miscalculation in uv dimensions"

parents ba933b90 4bca73b6
...@@ -122,17 +122,17 @@ void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) { ...@@ -122,17 +122,17 @@ void vp8_yv12_extend_frame_borders_c(YV12_BUFFER_CONFIG *ybf) {
extend_plane_high( extend_plane_high(
ybf->u_buffer, ybf->uv_stride, ybf->u_buffer, ybf->uv_stride,
(ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2, ybf->uv_crop_width, ybf->uv_crop_height,
ybf->border / 2, ybf->border / 2, uv_border, uv_border,
(ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2, uv_border + ybf->uv_height - ybf->uv_crop_height,
(ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2); uv_border + ybf->uv_width - ybf->uv_crop_width);
extend_plane_high( extend_plane_high(
ybf->v_buffer, ybf->uv_stride, ybf->v_buffer, ybf->uv_stride,
(ybf->y_crop_width + 1) / 2, (ybf->y_crop_height + 1) / 2, ybf->uv_crop_width, ybf->uv_crop_height,
ybf->border / 2, ybf->border / 2, uv_border, uv_border,
(ybf->border + ybf->y_height - ybf->y_crop_height + 1) / 2, uv_border + ybf->uv_height - ybf->uv_crop_height,
(ybf->border + ybf->y_width - ybf->y_crop_width + 1) / 2); uv_border + ybf->uv_width - ybf->uv_crop_width);
return; return;
} }
#endif #endif
......
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