Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C8406E0096C; Sun, 26 Jul 2015 20:01:47 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00, DATE_IN_FUTURE_06_12, 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.104 listed in list.dnswl.org] * -0.0 SPF_HELO_PASS SPF: HELO matches SPF record * 1.9 DATE_IN_FUTURE_06_12 Date: is 6 to 12 hours after Received: date * -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-bn1bbn0104.outbound.protection.outlook.com [157.56.111.104]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D476EE0086E for ; Sun, 26 Jul 2015 20:01:41 -0700 (PDT) Received: from DM2PR0301MB1183.namprd03.prod.outlook.com (10.160.217.145) by DM2PR0301MB1296.namprd03.prod.outlook.com (10.160.222.15) with Microsoft SMTP Server (TLS) id 15.1.225.19; Mon, 27 Jul 2015 02:47:30 +0000 Received: from DM2PR03CA0042.namprd03.prod.outlook.com (10.141.96.41) by DM2PR0301MB1183.namprd03.prod.outlook.com (10.160.217.145) with Microsoft SMTP Server (TLS) id 15.1.225.19; Mon, 27 Jul 2015 02:47:27 +0000 Received: from BN1AFFO11FD009.protection.gbl (2a01:111:f400:7c10::112) by DM2PR03CA0042.outlook.office365.com (2a01:111:e400:2428::41) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Mon, 27 Jul 2015 02:47:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD009.mail.protection.outlook.com (10.58.52.69) with Microsoft SMTP Server (TLS) id 15.1.231.11 via Frontend Transport; Mon, 27 Jul 2015 02:47:26 +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 t6R2lD4x017198; Sun, 26 Jul 2015 19:47:24 -0700 From: Yuqing Zhu To: Date: Mon, 27 Jul 2015 18:46:50 +0800 Message-ID: <1437994014-28990-4-git-send-email-b54851@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1437994014-28990-1-git-send-email-b54851@freescale.com> References: <1437994014-28990-1-git-send-email-b54851@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD009; 1:xBMBQ12BVXib9iEcKvSL7JJu/qczTD4JTTvjTdaq9HvUNh5TkxXM0/nPrXVOdF187Gjmhee/VZHK5a41JOSzm36o+PJRP1pK5NXvjBIps22igsrBFzdtAB7EOhWlywpOwuWzbK8j/i6yPvCJS+OxJ5jo6jVAFMBe5LuqyKSxN92qNyZ3v4CMpKb30xT/CMbmTVfAkEMN9KCfe7++JzQQcSOHaac2kd2okg/rV3LvQ//vF2Hcb2x+csIjWkIwWOwPG4w9Z5tYLMkjjzYrLYzyx4+7UBP9iEh9IfcZnLSbXY/FDPH2uCp+i2trMqSK7QwQQwwCkzLu59g7DWkDqYvVOA== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(62966003)(47776003)(46102003)(2351001)(50466002)(2950100001)(50986999)(77096005)(105606002)(189998001)(229853001)(48376002)(33646002)(19580405001)(87936001)(86362001)(19580395003)(50226001)(575784001)(76176999)(5001960100002)(110136002)(107886002)(36756003)(5001920100001)(85426001)(77156002)(104016003)(230783001)(5890100001)(6806004)(92566002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR0301MB1183; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1183; 2:dSf8tm1tM0XDTiRQO3eJh/uhvhcZdpwWs/JCmj8Q1rTnbW+cwgBHVRDk6Lz+OhUSWjklsgN3V/jbhfjLKqgley5MCje6BTMdi5I/8+nqhc62WwcAqhxo+P5TQlAIJnYJPWPLY+b9wtF8eVUrw+G3Hb9weCJwv6e7MXoY/ikIGo4=; 3:W8KbNe2D/LnVjFqUgufyVc9B6nl/TcHhmG+8kZ4E9d7/uSw5vIrNCLAOTb6iB0p206FHfVb+QmjaxhS5Jwu5svHHHi6LdpJdgR4NAiPeASyc6o6qn6DatR2gfSzcPzobCfwGdqsc0GVei8fdKZAIp7jUHaR+0n6x1l+szP/dZFl5/l6RPyn4uOV0iPgVvW41PbS3PFopEGue8dgwu/0fOF8iZINNgccfCfX878fgxDU=; 25:mUXu/ztfUfCf2nzcs3onKFz7WBjXyCNKsk8Qa2MODQ4MHQxWbxclzbwajoU04dY5WR9brjjUtyAT0koS1gz5swWDWTUSbY+3AqDr+2WEUuBgJbRtSryJrlzQUjykRSYfMOkBYZsaX/eYtozU5a5tbiVqgwDJ6+QZjftrXElxTiUvyDewWFXEfJdBG3BhPgcug5uEjo7NunHsWHLRIYuD446RFzUPoFhFz+8fZ9Sr+wNKre/myRbeD6bAaO6Cdoc9hPEW90gIYFzaMon+118F2A== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1183; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1296; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1183; 20:lDG5aNAS9AWOWC3JbG+YOQBXRcad1nzfjua0BiESNjPqMePs2kcFH7L7JnzlSwUOMcJjy3IIL90NT4GhosAemGWOaFqE4Hils8pASJpvfzNoM5HL/MkKhza2OWi5ReB98gDGUOZngHzTKMfW9SxfA8ZS6g4cpM28ZJ6YhWnwAX6983gTvbR9krQ9i1zTGcwrCR1PwnHvs1U+Le/qMmKNrO/KrB/LQNmPO+RVZ7U3xauTwigcux3o7AOVe/nBGC3XBK5Lfb8ZOujVirMOpKiz5e0nffv6KW2DtlM1jkc/ErhPllrNcQvwTKYNyW1PGTQz1VtSjRury/WFfW0G5g/XdszpeBDr1yVoztgp97Lnhmk=; 4:YvAU6bKWrM0UO+pxrwMROIIqZbDu3gHu2SgAkXIzX/gUWXcZAevTkjrPviCETMRTTgOyQYQQjt3oCaNvbToDa6cxxXGdiQiuqJ7gqRwniuZw5CM2L7vOo0u9FPbPGVUoCcDv2pH0HN9+q0KpNjjDU+HOkMDDy+3xDhhMCj4ZZ6nSAHQjkOtjI7aobQisJqlNG+B8TApNwQLMUU55S9PFSxZuzqZPv9snQYbjCwj7Zwse104Tu4mkOlZ8wEekzUB3mklGTYP1S90Ak/tQ+3K+2MTbKPpXwrDP4es9yNBR9Ek= DM2PR0301MB1183: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:DM2PR0301MB1183; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0301MB1183; X-Forefront-PRVS: 0650714AAA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB1183; 23:E7vcv+0YhV4edyBVWn5+Yd7AUPB7flRmcf35xPF?= =?us-ascii?Q?gqnCxWyPa/fOcv74JJ17rcuGwJJXMV6Wp4WmPCqyd5sxX6OiTTjUUoFi18xM?= =?us-ascii?Q?by8bgd9GcPEXjWlgf/oGVYHNOHx8GONZ//nw0Dx0LK6TuS8tMQuroCETux+w?= =?us-ascii?Q?SA0W4p2tr/0vTLwrXzG0Xd5YY/XitSGrgz9fIKPE8CBBvDsB7+b4CpoRinbm?= =?us-ascii?Q?9mVuHm9sKIgB8ED14YrbHXRNJQQxjk4D9mVA7et/Z7a+r60kpL5NLxiCP5VU?= =?us-ascii?Q?S9c9zU0ONszeN2Nc++HjL07PMky95iu2n7IGZIbwemD9LtiyGmwcUIu/JLDl?= =?us-ascii?Q?rRIVuzdbmqCDkPpUKop6mfsCY8/WruUfuC6xMoY4Z1+/QeKNzV0daMDGZZNE?= =?us-ascii?Q?9uhAZUePPADRK0cQWcin7txQpzrHcANmFXK5NCNJ1InUuOFe2+ZtZZ3SfVyg?= =?us-ascii?Q?L+bV7XHUD28n6RtyCyIlEFT+jma1WvoC7oqLk+4egvl87/mhhdGvqzhKZvsl?= =?us-ascii?Q?QYZhCphRWRAvkwxAcKKiGuTr+lk8h/0nD969IPFRi1Fgde6kmeWvGLSV+ky6?= =?us-ascii?Q?ogYJCW2x9gop4uG8MjQWth/4lwVjsIz/wsIkzCgW9Xcv1QmAyaM19vg1lxKv?= =?us-ascii?Q?P1408vxBiHHoFI36PenNf+Qsb9K5yGG0aMMeA0uk8jx7NEfyv3Yt6YUw8Zm8?= =?us-ascii?Q?B70TdzTFNdAS/6MN2BgyMYbBhTQK1ujSpBF9pYsg9yJk/1Fyxux7L8dX+vL4?= =?us-ascii?Q?EE7oa2mM5MSJ8sJgv/jZ4PfWrauw+D9H6J/cJTVoYL/N0OC7sh28DfBM+5q3?= =?us-ascii?Q?Q60lWMLOAH47/980YkuKIOWYPDlhF/o0KOuXvgGDYIRQc/gnVKhrQM9vI9rr?= =?us-ascii?Q?HKIYH1ysEe7/btxPsOI0cpSv354y2oh0cqVELHSsOTDuHPWH1zDEbdpFPaaQ?= =?us-ascii?Q?fOvSlGJdmlr5sD0DKbWRVYgCJKRr13IZ8CRPILJZQ/5UgtXDiezEwVfVMGwV?= =?us-ascii?Q?6j9xsHurqFe+Y7VqrU6j8YUdW?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1183; 5:wWeCCVEdy9B6lmvIQHMQxzcjoIU/r5fCllAFfr+HRnokILrcpB+bZyGJa5pA0YeX7/PzmNLKa5uU/WzWk2k+q1k1HQ8/JA7Z7zF/pSu4jdjDGp/H+4EZLFrtHHv/+u54S/KjibyQjbee1mRHYwo9EQ==; 24:kHOlhhtzg8PqicEKD6lYOv4rawYt1/a020ju5fQ/08AGGnhgvC2jnUzr2uIKShWh/KjoxLZ1aCzl+hImJNbyuoNA3naNgJecbeuGegZkuAc=; 20:q/ufiwvnqoV9W4Av6/kpHDVWSQ9cEVbpjptc0Rq+kPMenGl18HSPFx9/u97Mo9eF6s1EYSQfl9QchrCEljPkvg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Jul 2015 02:47:26.7592 (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: DM2PR0301MB1183 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB1296; 2:WxteXztF7Axj6fsT0Iuro4gVMAnpQGRMHz29jxlak82hFAKPZmJ0KGHuKCcWYrsw5YF2nlIRvI2cylyKHwI4+jC3SPqqEBYga9MR1kJfV2B59xQtiNxxhV+MnQiCWbGRI0rRdG8l8Gs9nlSoSQNp28ZDHsqv7oOAU+7umAG01Ts=; 3:AWzD1sz8HYd7v5RTUibjStx3qKISIJO+zhNRRoK5KhL3KZ8u7zbBdGPbUxhvQgFKSUWEZSmucQtVXPMOp3eDyNVEGvjtr+xLgRkZp9kk1dFGw0/3LNPfw3GmSXVoeJDwTnUQVUQyt2vGFNrv1PZLsau8BjpuP5x/kA/vlSjATZQz28de+ondmpBGSOPfoSmT39zi6HI4hJ9JciPEEutP3qhvojXiay5VALuII5m5JYQ=; 25:EgvIMYwOzTFxlwB9NEMl5twRyNWBsrTPkOgKkYNxW8JORsoAhLQuVlGb0Ydd71m7ppQZqcuz4Znr8rfizFuJj6WfA/Ok47wI4DC5AZkFImlBuiivnSy88HrnO6xGP/YKsGKjYT0NEw9hp0PF98nhe9SW1SNXK+refTgjxhsckOxcNBxc2Yi8UTjL0skiJD0pdo33b7/3YmNUm5TXa2+iGAwG66kd1sSiJ1EWkPqVVvNGBTUOoSyWTqsV0+NKZq6yziX7pD9dFuJXy0CxVWkjTQ==; 23:79eGdc9zFM3IutdO/glbYCr+ETx7rfbI2kOuQACZL7mnGoUQghpvcb+PzxtjRnUXCahXKqFWnihebk35kaHAtW/CmCaNiAElw16rBrCDVjdAFnhmP3AG4aESynRhltVfdOodCzvcB2ak8fHw6pq50bp10w8kXOdu6Nk7f1bY7HzoXQyul2c9XNGjnws7thw0Vas2r2f/8G+x3JcxnGo+EE6fRNib+WUXDDvaB95OgLwKngz3cxvcKPv7EC2G8QdQ X-OriginatorOrg: freescale.com Subject: [meta-fsl-arm][PATCH v2 3/7] gstreamer1.0-plugins-base: Add basetextoverlay related patch 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, 27 Jul 2015 03:01:47 -0000 Content-Type: text/plain Make memory copy when video buffer's memory is ready only Signed-off-by: Yuqing Zhu --- ...rlay-make-memory-copy-when-video-buffer-s.patch | 129 +++++++++++++++++++++ .../gstreamer/gstreamer1.0-plugins-base_%.bbappend | 1 + 2 files changed, 130 insertions(+) create mode 100644 recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch new file mode 100644 index 0000000..0206b79 --- /dev/null +++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base/0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch @@ -0,0 +1,129 @@ +From 3781d40940d46d7e6a502092d24aac7997f6da5b Mon Sep 17 00:00:00 2001 +From: Mingke Wang +Date: Thu, 5 Mar 2015 12:06:23 +0800 +Subject: [PATCH 1/4] basetextoverlay: make memory copy when video buffer's + memory is ready only + +1. since gst_buffer_make_writable just lookup the refcount to determine if + a buffer is writable, and it will use _gst_buffer_copy() which don't + perform a deep memory copy even if the flag of a memory is set to + GST_MEMORY_FLAG_READONLY. So, we detect the memory flag and use + gst_buffer_copy_region with GST_BUFFER_COPY_DEEP parameter to perform + deep memory copy. if the allocator of a memory don't support mem_copy + interface, the it will return NULL, if this case, we can use + gst_buffer_make_writable() to get a shared memory buffer or the orignal + buffer if the buffer's refcount is 1. +2. new feature is no added if caps has no feature during caps negotiation + +Upstream Status: Inappropriate [i.MX specific] + +Signed-off-by: Mingke Wang + +diff --git a/ext/pango/gstbasetextoverlay.c b/ext/pango/gstbasetextoverlay.c +index c919861..3c0a1d7 100755 +--- a/ext/pango/gstbasetextoverlay.c ++++ b/ext/pango/gstbasetextoverlay.c +@@ -747,6 +747,7 @@ gst_base_text_overlay_negotiate (GstBaseTextOverlay * overlay, GstCaps * caps) + if (f == NULL) { + f = gst_caps_features_new + (GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION, NULL); ++ gst_caps_set_features(overlay_caps, 0, f); + } else { + gst_caps_features_add (f, + GST_CAPS_FEATURE_META_GST_VIDEO_OVERLAY_COMPOSITION); +@@ -1890,16 +1891,71 @@ gst_base_text_overlay_push_frame (GstBaseTextOverlay * overlay, + if (gst_pad_check_reconfigure (overlay->srcpad)) + gst_base_text_overlay_negotiate (overlay, NULL); + +- video_frame = gst_buffer_make_writable (video_frame); +- + if (overlay->attach_compo_to_buffer) { + GST_DEBUG_OBJECT (overlay, "Attaching text overlay image to video buffer"); ++ video_frame = gst_buffer_make_writable (video_frame); + gst_buffer_add_video_overlay_composition_meta (video_frame, + overlay->composition); + /* FIXME: emulate shaded background box if want_shading=true */ + goto done; + } + ++ gint m = gst_buffer_n_memory(video_frame); ++ gboolean mem_rdonly = FALSE; ++ GstMemory *mem; ++ GstBuffer *orig = video_frame; ++ ++ while (--m>=0) { ++ mem = gst_buffer_get_memory(video_frame, m); ++ if (GST_MEMORY_IS_READONLY(mem)) { ++ mem_rdonly = TRUE; ++ gst_memory_unref (mem); ++ break; ++ } ++ gst_memory_unref (mem); ++ } ++ ++ if (mem_rdonly) { ++ // since gst_buffer_make_writable just lookup the refcount to determine if ++ // a buffer is writable, and it will use _gst_buffer_copy() which don't ++ // perform a deep memory copy even if the flag of a memory is set to ++ // GST_MEMORY_FLAG_READONLY. So, we detect the memory flag and use ++ // gst_buffer_copy_region with GST_BUFFER_COPY_DEEP parameter to perform ++ // deep memory copy. if the allocator of a memory don't support mem_copy ++ // interface, the it will return NULL, if this case, we can use ++ // gst_buffer_make_writable() to get a shared memory buffer or the orignal ++ // buffer if the buffer's refcount is 1. ++ GstBuffer *new_buf = gst_buffer_copy_region (video_frame, ++ GST_BUFFER_COPY_ALL | GST_BUFFER_COPY_DEEP, 0, -1); ++ ++ GST_DEBUG_OBJECT (overlay, "copy %s video frame buffer %p -> %p", ++ g_type_name (GST_MINI_OBJECT_TYPE (video_frame)), video_frame, new_buf); ++ ++ if (!new_buf) { ++ //maybe the allocator don't support mem_copy interface, the we just use ++ //gst_buffer_make_writable() to get a writable buffer. ++ video_frame = gst_buffer_make_writable (video_frame); ++ } else { ++ gst_mini_object_unref (video_frame); ++ GST_BUFFER_FLAG_UNSET (new_buf, GST_BUFFER_FLAG_TAG_MEMORY); ++ video_frame = new_buf; ++ } ++ ++ if (!video_frame) { ++ GST_WARNING_OBJECT (overlay, "make writable buffer failed"); ++ return GST_FLOW_OK; ++ } ++ ++ m = gst_buffer_n_memory(video_frame); ++ while (--m>=0) { ++ mem = gst_buffer_get_memory(video_frame, m); ++ GST_MEMORY_FLAG_UNSET (mem, GST_MEMORY_FLAG_READONLY); ++ gst_memory_unref (mem); ++ } ++ } else { ++ video_frame = gst_buffer_make_writable (video_frame); ++ } ++ + if (!gst_video_frame_map (&frame, &overlay->info, video_frame, + GST_MAP_READWRITE)) + goto invalid_frame; +@@ -1918,6 +1974,18 @@ gst_base_text_overlay_push_frame (GstBaseTextOverlay * overlay, + + gst_video_frame_unmap (&frame); + ++ if (mem_rdonly && orig == video_frame) { ++ //if we used the original buffer and it's mem is set to read only, ++ //recover the memory ready only flag since we unset it before ++ // gst_video_frame_map () ++ m = gst_buffer_n_memory(video_frame); ++ while (--m>=0) { ++ mem = gst_buffer_get_memory(video_frame, m); ++ GST_MEMORY_FLAGS(mem) |= (GST_MEMORY_FLAG_READONLY); ++ gst_memory_unref (mem); ++ } ++ } ++ + done: + + return gst_pad_push (overlay->srcpad, video_frame); +-- +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 7cc8334..9c5fdc6 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}:" SRC_URI_append = " file://gstplaybin-remove-flag-deinterlace.patch \ file://do-not-change-eos-event-to-gap-event2.patch \ file://do-not-change-eos-event-to-gap-event3.patch \ + file://0001-basetextoverlay-make-memory-copy-when-video-buffer-s.patch \ " # Enable pango lib -- 1.9.1