Now the object surface already contains the pitch after the object surface
structure is reworked in the commit
f886f24eaaacba9544fa5f6405b7382c686f3a1f.
So it is unnecessary to calculate the pitch based on the width.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
else
width[0] = obj_surface->orig_width; /* surface foramt is YCBCR, width is specified in units of pixels */
- pitch[0] = obj_surface->width * 2;
} else if (rgbx_format) {
if (is_target)
width[0] = obj_surface->orig_width * 4; /* surface format is R8, so quad the width */
- pitch[0] = obj_surface->width * 4;
}
width[1] = obj_surface->cb_cr_width;