mfc: Workaround for wrongly reported strides by FIMC

This commit is contained in:
Sebastian Dröge 2012-12-24 12:31:09 +01:00
parent 52f8649586
commit c77e820a52

View file

@ -471,6 +471,12 @@ fimc_set_dst_format_direct (Fimc * fimc, FimcColorFormat format, int width,
stride[i] = fimc->dst_fmt.fmt.pix_mp.plane_fmt[i].bytesperline; stride[i] = fimc->dst_fmt.fmt.pix_mp.plane_fmt[i].bytesperline;
} }
/* FIXME: The device reports wrong strides */
if (fimc->dst_format == FIMC_COLOR_FORMAT_YUV420P) {
stride[1] /= 2;
stride[2] /= 2;
}
return 0; return 0;
} }