Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 6417BE00B8B; Mon, 18 Jan 2016 02:08:56 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [157.56.111.102 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bbn0102.outbound.protection.outlook.com [157.56.111.102]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AB806E00AB9 for ; Mon, 18 Jan 2016 02:08:52 -0800 (PST) Received: from DM2PR03CA0052.namprd03.prod.outlook.com (10.141.96.51) by CY1PR0301MB1179.namprd03.prod.outlook.com (10.160.165.22) with Microsoft SMTP Server (TLS) id 15.1.365.19; Mon, 18 Jan 2016 09:36:36 +0000 Received: from BN1BFFO11FD013.protection.gbl (2a01:111:f400:7c10::1:138) by DM2PR03CA0052.outlook.office365.com (2a01:111:e400:2428::51) with Microsoft SMTP Server (TLS) id 15.1.365.19 via Frontend Transport; Mon, 18 Jan 2016 09:36:35 +0000 Authentication-Results: spf=permerror (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; freescale.mail.onmicrosoft.com; dmarc=none action=none header.from=freescale.com; Received-SPF: PermError (protection.outlook.com: domain of freescale.com used an invalid SPF mechanism) Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD013.mail.protection.outlook.com (10.58.144.76) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Mon, 18 Jan 2016 09:36:35 +0000 Received: from carol-OptiPlex-3020.ap.freescale.net (carol-OptiPlex-3020.ap.freescale.net [10.192.241.17]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u0I9aRIX016199; Mon, 18 Jan 2016 02:36:33 -0700 From: Yuqing Zhu To: Date: Mon, 18 Jan 2016 17:34:02 +0800 Message-ID: <1453109642-25548-4-git-send-email-b54851@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453109642-25548-1-git-send-email-b54851@freescale.com> References: <1453109642-25548-1-git-send-email-b54851@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD013; 1:fuf/FFTRxA+E6umBkubAm06PAa0FT25DAWHpeT216/XBD23DZTqLCh5zctDfN2iFvhbsA2x1O9FmoQmvGDz0IDd0mJ0IJBztCKEbMer73fRE1yrIVtJtQR7DfzolOweS5qe8WkG8wiRAjIkmiK2UpJZkjT3myXBG3UmEUDEKMUL9y9AxeQZLINy3UKv5yW7VMiqQGuKHTd3ibx/mvg1oUYuvuvhd90u69w48x0s2HdTd6X+CxmT7fLe8s1I2J5DUIfaxZK7q6co4SZpyavWvLx1GznAFJjWHHHKjYIdcyWY9uFUO959OCOBtZjvgmx+YZE65XKGBroroVZGpt3ne7rjUXC1YDd0tHXwlVLxOlqMnrpF6TNcuCCGH7+qJspUITB5+jUUH0as2hqn0zY62uKKY/GzQqrYZJXhuXyPhNLg= X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(448002)(199003)(189002)(5001960100002)(586003)(48376002)(2351001)(19580395003)(76176999)(19580405001)(229853001)(50226001)(4001430100002)(11100500001)(4326007)(5008740100001)(47776003)(50466002)(87936001)(5003940100001)(2950100001)(106466001)(85326001)(50986999)(107886002)(230783001)(110136002)(97736004)(92566002)(77096005)(33646002)(189998001)(2906002)(36756003)(450100001)(6806005)(86362001)(1096002)(104016004)(1220700001)(81156007)(19627235001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1179; H:tx30smr01.am.freescale.net; FPR:; SPF:PermError; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 3040eecc-f13e-4ca7-1a87-08d31feadb93 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1179; 2:A3C6Ee92nuaxMw1PsisldkK7I5LAMMDAY6gnFBhW5RZX2i45j3X7JHo04pDObZCoDQqk2OV3XV6VBG21vcOVn5gmd6wCxhcS9o4Doc2adFtQvsNpCzQfULhK3HdCAR7ompSU5nKY1zr3vCL76QUpZ7Td3VbiJ7jvhXsntT8103cSXRxuSOOlyelPzn8yMlGR; 3:pO0fkGj8FOboMFfLo62bqRKgJ+FXDd32TQn2gHhQkrg7GL8lndKfue02Q/aZfvGbDFcA1l6dwEV9EIBJGqYIEmCbrMCy4vZdCQJTCqtoQCbXMAXuttdKFwMQVFMpZgUwO4+5SEC0sO49tTjadSp13TxB7cC6gxL+t7kF/FckviI5PVJ/7iZg6vKyt6Bifz8z89qzfss8odtyLqqm1v6YcXShnQWz+v0WpIpC/pfrl2s=; 25:NdNFJlj/IIdXEv0aMuj0mexkzVQtXs4TVpndaunB0fQMCiDG6YCN8t2B9zzqBNX4+DtdjhnLdUesFpMQVaSA77PXuUP1pyvVYB8XXaO+iNEyH/aWNElnxR5gfuKEqlTSCisHPohn5ZPzl3pK0YksSUfhFnUapymYYhKm1g11dnhkjv8hKIc1WVAaocM8I4kNqCGx+icJav/Grs+F+8ulLMveoTSdkpjSzWsDaU0bg5zJhLdsQJdSZdOf056fIRN/ X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1179; UriScan:(101931422205132); X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1179; 20:IprbT/4pNZD5xbjV/0Nd6LC4jH7wyX4gTf4ccsUu0babWaVnDjsfvlth/HjENeQWW4YnyMwamcBXIS6SgLY8bDr3Ja+E9h8gVkcyf+qGa2y6y+z/eEumEnXiJw5ENyI5cvjArse+UDCIfP5wKMQlg4yoHg0r7/X8B99OuPjFeanYKWvSHaLHMvry3GCba7PDxXne+jc7+lA3ou+d6/dEo5+CKr9FW+0scw6DxZtq11BlruK4clqcbjm2RE6Sn/Fk3UbV9XfusFVLdzOvu72Pg9R78cpJ45qIbGzjqeDNr+sPWuS9w4xTBd+jjD7f7bZ8P/JluB0byQN7DDubuQv/vEDImfiI3QIfJnZMRsL7LD/4l7QVO86cJtHL8xajQMFc6CB2G19D8bif5cCvNZw9muJe5gxPbxQgKm+cSQRGhaG5cqTiFgv7zrQ02uihb+fX; 4:3Sp2HLDXxOUyQ2mDwc9vQgaYEk/WsuzgX4xuQn901+QMYpXuY52g8mcKNCSoimTfqe2BXXCrjqppevr9l1y8SM4jIxDfVsgsxtcVKdYnEQFI3zMbUy028Lka6GpxfRD9wV7Y9EvYoYhI5I11YaGxo/KaQ9Jq/MXpeWPex8SZgZbk8wkFobipgEl5iHo2XFuswBr90quIoJgQ9iDM9BxUkhbbtbGacwQ99LeKTJ332uJE0HjP/QAcHHvMH9FNgdtZBAFK6hJmE3IBNnxh2QzSUlV9htabGZH38F0MR6nnPV3JIo1rlRdQyR00aon3MHi3aihptPHV5FfiJtWHjc9G7pd8EzOg1QZgKpdEd9ukOCIg51YqoiyRDMOBVy8bigjJE7nSkWZoZkHx94UOAqaH9SPhTl+7OgS8UqN5uZHoU3f1742Jaqx6r2jrF/G09YY22QdXUZq5di3cqsUfTmjiqkg0uwRfJqT2KnVGiQPGNhu6PZ3YZMALbILpUBS4bCLI X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13023023)(8121501046)(13017025)(13015025)(520078)(10201501046)(3002001); SRVR:CY1PR0301MB1179; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1179; X-Forefront-PRVS: 08252193F3 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1179; 23:G4HdSSwhNMJ1UO2LTbMPMluaqlN8hKhIRXgUJ3r?= =?us-ascii?Q?jn1rFRC8+r8EIseV5ZVhBaRydxMLOpZAvbmzCCdZzrxA9XT8edEfedRVaPgc?= =?us-ascii?Q?+BQbtrUUm/SXY+cGh1oYx0+6tKLt1rBbTonO4eQ/PrBRtRlFNu20d4kpJGhC?= =?us-ascii?Q?DooIelv4nXRZH55noubJpscjhgzL55QuIqCp4mVrOhUkRwdIirGZyXPdL1nW?= =?us-ascii?Q?eolUFikNwkqlzwkWYacYH0SSAPVAu9DCsXTbSXSQm4x8wbwb9cGBnVSqdkWC?= =?us-ascii?Q?Lungwv2JQ5nNZzJUYrGW4wKc0WkNi0O1OdubeSrjwxQJ0/jTBTefJ0mRI3QC?= =?us-ascii?Q?JK8KgCpA94n9BhGIWxtYl0aEKI6hhwKCQCg0yfYjIn2jJQ5ydljGIb01zn3N?= =?us-ascii?Q?62P6dxsJgwBZ7h9ptDAgDxJJfKQXDa0hwxhiNdK32QLyJsiWIPlfYCqlkDC6?= =?us-ascii?Q?rbCSpIiYtoViCjJadbFci7y/MK+ah6Y8/AJA+BTJtf6cqnQ8LxH6ZPcDEqPQ?= =?us-ascii?Q?KSZJ4nM8QBmKpTqfclszikQYtboHRXlN1Qz6YRT2enk1JzMC0YL40ffGWrmP?= =?us-ascii?Q?LcUUAwB9ow2E3TAeTPPsJieNE56CfsgPHmafkgPGm6Lc4uTzy4btPixTXUOi?= =?us-ascii?Q?gpaXQu5QhCxqRL5yuyJdb5FFxiz0V6S7d56DKtu6xXSyIYc7m1nw8NEbjAmq?= =?us-ascii?Q?U9N5euBvliSb6YJN99ziUJviakR5xCjsMiV9h+bvvelcYzuqjlBTxv+QUQNr?= =?us-ascii?Q?6zTaGgL8srokJS7Zdzd51G9yzdTTH5tseW6LHmawHiVljljgcoI1g4pLQmU1?= =?us-ascii?Q?ugfbEK3xjnYUReBqpMeAHSP1Oti4pdsa1I1nsTf5W3gjOUpA0uwEw8tiXlz1?= =?us-ascii?Q?RdutFTtJOBk661vOLj0r9hicXMY7uoumCHnhQNpjNmvbROhAdePl19atlrU3?= =?us-ascii?Q?LEp2vKyUrgUMpEdD8UDk2druuOAae55Q+O3xjmV4/7bMl+R3/OY6Da91copx?= =?us-ascii?Q?PbjCmGvnKSZdpSQhWlgyf1moWlPeNWjdpgpBqaVf4EpTcmA+3usyT+q1/pXz?= =?us-ascii?Q?+xmgN8EjN/tiI97Bgl/9rE/tcVPUBQJLnu72W8JrzLsvxlVqBWDZdRfcxBux?= =?us-ascii?Q?8iF13WmsJcjh5q65QZEH2LB4fbnR4Wf90CSuaYnp6BHy+EeGjGX3J1A=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1179; 5:5gNlqtIGGRGYbWvdAAuN9SDIEbARTARdsG9fXQeADLN/qEB3nS8ooNc2h3MxwTASLDjsfQ/EmY/1SafBqkqTI4pZf2QDOwEuDKJY7+qg0QTaR+0Y1RiV1T/uuz0+0852dauWs2m/ks92XexGAl5z1g==; 24:J05RP/qqsN8CXc2fasILKdNkybfdE/e5kzOjb2RW0xH8O8IlHXRY6Wn/UVZz532hUHooNatSTIkrq6R4/3KwmQfZsqzFn/nN5YLPhCyKdRA= X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2016 09:36:35.4315 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1179 Subject: [meta-fsl-arm][PATCH 3/3] gstreamer1.0-plugins-base: Fix IMXCameraApp image time cannot display issue. X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jan 2016 10:08:56 -0000 Content-Type: text/plain IMXCameraApp:When Enabled "save time to image" item, preview, find the time can not display completely. As IPU need 8 pixels alignment, add one workaround in base text overlay to generate 8 pixels alignment text video buffer. The side effect should cause all text a little smaller. Signed-off-by: Yuqing Zhu --- ...-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch | 58 ++++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-base_%.bbappend | 1 + 2 files changed, 59 insertions(+) create mode 100755 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch new file mode 100755 index 0000000..1f54fc1 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0003-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch @@ -0,0 +1,58 @@ +From f19e83a1a69a3dbbeb16dc4bcee3fb87317bb65b Mon Sep 17 00:00:00 2001 +From: Song Bing +Date: Mon, 11 Jan 2016 14:51:17 +0800 +Subject: [PATCH] MMFMWK-7030 [Linux_MX6QP_ARD]IMXCameraApp:When Enabled "save + time to image" item, preview, find the time can not display + completely. 100% + +As IPU need 8 pixels alignment, add one workaround in base text overlay +to generate 8 pixels alignment text video buffer. The side effect should +cause all text a little smaller. + +Upstream-Status: Inappropriate [i.MX specific] + +Signed-off-by: Song Bing b06498@freescale.com +--- + ext/pango/gstbasetextoverlay.c | 12 ++++++++++-- + 1 file changed, 10 insertions(+), 2 deletions(-) + +diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c +index 3e98aa1..de64c92 100755 +--- a/ext/pango/gstbasetextoverlay.c ++++ b/ext/pango/gstbasetextoverlay.c +@@ -1545,7 +1545,7 @@ gst_base_text_overlay_render_pangocairo (GstBaseTextOverlay * overlay, + gint unscaled_width, unscaled_height; + gint width, height; + gboolean full_width = FALSE; +- double scalef = 1.0; ++ double scalef = 1.0, scalefx, scalefy; + double a, r, g, b; + gdouble shadow_offset = 0.0; + gdouble outline_offset = 0.0; +@@ -1673,6 +1673,14 @@ gst_base_text_overlay_render_pangocairo (GstBaseTextOverlay * overlay, + height = ceil (height * overlay->render_scale); + scalef *= overlay->render_scale; + ++ /* i.MX special, will cause text a little small */ ++ scalefx = scalef * ((gdouble)GST_ROUND_DOWN_8 (width)) / width; ++ scalefy = scalef * ((gdouble)GST_ROUND_DOWN_8 (height)) / height; ++ width = GST_ROUND_DOWN_8 (width); ++ height = GST_ROUND_DOWN_8 (height); ++ GST_DEBUG_OBJECT (overlay, "Rendering with width %d and height %d " ++ , width, height); ++ + if (width <= 0 || height <= 0) { + g_mutex_unlock (GST_BASE_TEXT_OVERLAY_GET_CLASS (overlay)->pango_lock); + GST_DEBUG_OBJECT (overlay, +@@ -1689,7 +1697,7 @@ gst_base_text_overlay_render_pangocairo (GstBaseTextOverlay * overlay, + /* Prepare the transformation matrix. Note that the transformation happens + * in reverse order. So for horizontal text, we will translate and then + * scale. This is important to understand which scale shall be used. */ +- cairo_matrix_init_scale (&cairo_matrix, scalef, scalef); ++ cairo_matrix_init_scale (&cairo_matrix, scalefx, scalefy); + + if (overlay->use_vertical_render) { + gint tmp; +-- +1.7.9.5 + diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend index cf50918..a31a2c4 100644 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_%.bbappend @@ -3,6 +3,7 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" IMX_PATCHES = " file://gstplaybin-remove-flag-deinterlace.patch \ file://0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch \ file://0002-gstplaysink-don-t-set-async-of-custom-text-sink-to-f.patch \ + file://0003-MMFMWK-7030-Linux_MX6QP_ARD-IMXCameraApp-When-Enable.patch \ " SRC_URI_append_mx6 = "${IMX_PATCHES}" SRC_URI_append_mx7 = "${IMX_PATCHES}" -- 1.9.1