This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: imx: prpencvf: enable double write reduction
Author:  Steve Longerbeam <slongerb...@gmail.com>
Date:    Sat Jul 22 17:21:41 2017 -0400

For the write channels with 4:2:0 subsampled YUV formats, avoid chroma
overdraw by only writing chroma for even lines. Reduces necessary write
memory bandwidth by at least 25% (more with rotation enabled).

Signed-off-by: Steve Longerbeam <steve_longerb...@mentor.com>
Acked-by: Philipp Zabel <p.za...@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verk...@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mche...@s-opensource.com>

 drivers/staging/media/imx/imx-ic-prpencvf.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

---

diff --git a/drivers/staging/media/imx/imx-ic-prpencvf.c 
b/drivers/staging/media/imx/imx-ic-prpencvf.c
index ed363fe3b3d0..42c5045e397e 100644
--- a/drivers/staging/media/imx/imx-ic-prpencvf.c
+++ b/drivers/staging/media/imx/imx-ic-prpencvf.c
@@ -374,6 +374,17 @@ static int prp_setup_channel(struct prp_priv *priv,
        image.phys0 = addr0;
        image.phys1 = addr1;
 
+       if (channel == priv->out_ch || channel == priv->rot_out_ch) {
+               switch (image.pix.pixelformat) {
+               case V4L2_PIX_FMT_YUV420:
+               case V4L2_PIX_FMT_YVU420:
+               case V4L2_PIX_FMT_NV12:
+                       /* Skip writing U and V components to odd rows */
+                       ipu_cpmem_skip_odd_chroma_rows(channel);
+                       break;
+               }
+       }
+
        ret = ipu_cpmem_set_image(channel, &image);
        if (ret)
                return ret;

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to