From patchwork Mon Jun 20 21:06:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16294 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 2B1FEBD808 for ; Mon, 20 Jun 2022 21:07:22 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 299BB65636; Mon, 20 Jun 2022 23:07:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655759240; bh=0JIyDhQhxEerDqxhDQkeUopl/nxkgDfJJfIfF2OYUiQ=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=vTyYJhQ73JbfNJxrO7PQEOYcVfCRdU9nYJkN1c7yQ0TKe2/WdNXYmTH7Ml99C8Xi8 ewOuQ+9T7Pu0AqYlAN7fE25KIDrQ4jZmFSd+eUFbLhCzblD7K/lNco/YwIGG4Z5gP7 1ZGeTsmqT0d1n17LMa352kHIY/Bg47QxszscDoI8au1VM0XJdiGOtHRTnIumdtSxzY jxLHI65nCXPUilT7JkeadiYTprQIlEfpnVqs9ZoZDTQoHN6mYlYeWLzASBUR4ydOS6 g9+gqEUJtKhHcmENytyxYjXZmAKxGaB2Cc9f3/Dep1g02SYRmtUTIHSwDuv5Qt/lTz 0ICDikSN6Q2QQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id CBE7F65632 for ; Mon, 20 Jun 2022 23:07:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ueX+cMwR"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6389B104 for ; Mon, 20 Jun 2022 23:07:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655759237; bh=0JIyDhQhxEerDqxhDQkeUopl/nxkgDfJJfIfF2OYUiQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ueX+cMwRjMjrim2ULLmFtQ3l97R9ATd2oTOO6vOjmh+R0k3XERQsvravmRUdb+ZQK 2RVk1cxthZRxjXXfh0OJZFtATj8d8KtrDKrcG9ijEwbz0Kieagn01fPzJme4I11pJn iIgjrvim2Ozs8VmUwJOs5jj5YrKMW+fVDWOiErdw= To: libcamera-devel@lists.libcamera.org Date: Tue, 21 Jun 2022 00:06:55 +0300 Message-Id: <20220620210658.20288-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> References: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/4] utils: rkisp1: Remove frames before starting capture X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Delete frames previously captured before starting a new capture, to avoid mixing old and new frames. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index 4d09f5d5f01b..d5ebe5b1d1ba 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -88,6 +88,7 @@ capture_frames() { if [[ $save_file -eq 1 ]]; then file_op="--file=/tmp/frame-#.bin" + rm -f /tmp/frame-*.bin fi yavta -c$frame_count -n5 -I -f $capture_format -s $capture_size \ From patchwork Mon Jun 20 21:06:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16295 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 76D2DBD808 for ; Mon, 20 Jun 2022 21:07:23 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 16D3F65642; Mon, 20 Jun 2022 23:07:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655759243; bh=D1OMN0SUrV0qHqWFe357kEXLc2M9F/1Q5I2WDT7fLgE=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=PkMYKPMWHVfUH4V/nn0wE4ilrrwTtRzO2Wa8Cp9P6TAOTtjtqc+Go7FG1x6y7P5G4 RGMBQbZ7YnqB582muI2B+oxOS2ZWDXlZ+qgd6yX4n5fhfyA65+rf3Hcua282NX7d/0 HDcbN5Ln7LhHCTypVcKo6m6tihmdSdCgGB3C7zFKvED1B7W+wAK/Tv8qoVxpQiJBSH IB+o7/yHQTVWuW32kvp/v0LfAAwWhnmu1Rgyhx1FVH+Lk4BDuhRyDNXIjMW/wBduFW FZfGxCuefte4biSKa62oC+rHVmqHz0u7HZu/jJKw3XftXsqQsn22uyfyMYaYDAYh8s WltFbUs3ff5iQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 2CD4A65632 for ; Mon, 20 Jun 2022 23:07:18 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="pNpaWLte"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id C4F3DE5 for ; Mon, 20 Jun 2022 23:07:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655759237; bh=D1OMN0SUrV0qHqWFe357kEXLc2M9F/1Q5I2WDT7fLgE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=pNpaWLteuBDyGXRvT1YJ2PSGx3dpjFXcMKL/v0eNPTWqchwgTFT/dPzaDcsLQkauh SPNn6XixOGE6EFOxeVGFyyilUDn2L/JYNlLh7Iu49qD1T7wQ+EWJtAsPDlzzfYy3WU lV7yy9InJ6bu7tkPAkojXEhPYe4VkoV91swB5iTI= To: libcamera-devel@lists.libcamera.org Date: Tue, 21 Jun 2022 00:06:56 +0300 Message-Id: <20220620210658.20288-3-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> References: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/4] utils: rkisp1: Fix sensor format parsing X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" With sensors supporting crop, the regexp used to parse the media-ctl output isn't correct as the pad configuration may span multiple lines and contain other parameters. Fix it. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index d5ebe5b1d1ba..eee6b8027261 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -51,7 +51,7 @@ get_sensor_format() { local format local sensor=$1 - format=$($mediactl --get-v4l2 "'$sensor':0" | sed 's/\[\([^ ]*\).*/\1/') + format=$($mediactl --get-v4l2 "'$sensor':0" | grep 'fmt:' | sed 's/.*\(fmt:\S*\).*/\1/') sensor_mbus_code=$(echo $format | sed 's/fmt:\([A-Z0-9_]*\).*/\1/') sensor_size=$(echo $format | sed 's/[^\/]*\/\([0-9x]*\).*/\1/') From patchwork Mon Jun 20 21:06:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16296 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 8FFA4BD808 for ; Mon, 20 Jun 2022 21:07:24 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 37A3165640; Mon, 20 Jun 2022 23:07:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655759244; bh=NhWJX8baJmY2Lg/g4qHcVCR2X8bC93y7/0kBcGOYSfo=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=n/P6AQZiDRYFKs15jWX8cI0/jEtGUVCGlfWNktpogZZ8IumgEPwdQJh76feas7BiN u6I7o93At74ul+oZeokbeZnTlRmZLE9s69duybaObZOArrwQ8Ne1thG+V+0+VWkCPO zOudASytRQ4HmqTa53QHOu4bQDKsTQZ5g4AIZg+mQjB4U5xNsv92B74tF+g97Ix52r ZiVjzzw5aDbHKIo6pztCqdXRg+wRTUIH6cI/qY1GvUJHll/QLeGBvfxoed3mkVUUgr AId5MjmsJIb4c8TW1sS6ZMSM21hJM5GSxuwGoJ4oPASIqlRwNfogIuGB2bPZ522WPJ zuszV0Gj2qjeQ== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 87A3465638 for ; Mon, 20 Jun 2022 23:07:18 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="gCzx0neR"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 26731104 for ; Mon, 20 Jun 2022 23:07:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655759238; bh=NhWJX8baJmY2Lg/g4qHcVCR2X8bC93y7/0kBcGOYSfo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=gCzx0neRofHkr5RQTd2G4TGbeZ+b8Dq/Of60RitzBa6FTm9exNL9PVeaY9gNmHCme 7qPFlyhFQSNxnPV+DnIXZYtIvWm186u3ZorRjXrf8gzSDEcVJizZI+jxfMBuisOnN2 oayrqi0FnLSlreD4MB9jKV4cgMGlCs/rTVHAJYT8= To: libcamera-devel@lists.libcamera.org Date: Tue, 21 Jun 2022 00:06:57 +0300 Message-Id: <20220620210658.20288-4-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> References: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/4] utils: rkisp1: Fix pixel format for raw capture X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The regexp to convert the raw pixel media bus code to a pixel format is incorrect. Fix it. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index eee6b8027261..2549779d0f78 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -171,7 +171,7 @@ mediactl="media-ctl -d $mdev" get_sensor_format "$sensor" if [[ $raw == true ]] ; then - capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]$//') + capture_format=$(echo $sensor_mbus_code | sed 's/_[0-9X]*$//') capture_mbus_code=$sensor_mbus_code else capture_format=YUYV From patchwork Mon Jun 20 21:06:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 16297 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id A36E3BD808 for ; Mon, 20 Jun 2022 21:07:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 44AD165641; Mon, 20 Jun 2022 23:07:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1655759245; bh=0fhs8ySHonSCSmy5HzMPEw4hKvUUaLrUIVBKAopcUnw=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=H9QkfXWaH6YfHx6+SMiF66Ntan1oN7IGDG2rpS90scUeyIUMaIRxazGQ347PoMmVk NJGSnPwf69nrGW4rRGLyKhmZ7HPe9lCsyEoRZL8n7IEFAOkke7Mcuv16stW+ynh4OY u+LNxvq3wTyQ08Y6K1kjgFEgZVdqxlPcGSJEG2A1tLHTn9GK9XBN56JWVG0yw4y8/j /j/LRVBkEPsLcvEsnewlS/ROFe2D5g2JcqaaTIN3edqoeD4SVj52v55sVnIgdjg2p3 bBvUXPy297USozp5uZ+6C+utCb49zOea1WTi4NsililOsDotTO4VAjF2/u2II3K5Fm dd8IH7CCVFIXA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 58D076563B for ; Mon, 20 Jun 2022 23:07:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="p/6JClEh"; dkim-atps=neutral Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8721BE5 for ; Mon, 20 Jun 2022 23:07:18 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1655759238; bh=0fhs8ySHonSCSmy5HzMPEw4hKvUUaLrUIVBKAopcUnw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=p/6JClEh94tFA4ezDEvHVBuaQSxsQ5l8amMiuvKmNpG9zK0F+OVl5arWcHcB3WQox atzSB+0ZU0Tl8wYjQ4iwX5txH+SSmqzHWouyakzdjbvpRAzlkCp0W1iCrZU0ujejiF 4VE0YhxQ/FrppiQXEgyoiMxm/qrtiV4e4iTpxgdk= To: libcamera-devel@lists.libcamera.org Date: Tue, 21 Jun 2022 00:06:58 +0300 Message-Id: <20220620210658.20288-5-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> References: <20220620210658.20288-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 4/4] utils: rkisp1: Support optional CSI-2 receiver subdev X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The media graph may include a CSI-2 receiver entity between the sensor and the ISP for platforms that have a CSI-2 receiver external to the ISP. Support this by configuring the pipeline accordingly. Signed-off-by: Laurent Pinchart Reviewed-by: Paul Elder --- utils/rkisp1/rkisp1-capture.sh | 56 +++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/utils/rkisp1/rkisp1-capture.sh b/utils/rkisp1/rkisp1-capture.sh index 2549779d0f78..c5f859f21001 100755 --- a/utils/rkisp1/rkisp1-capture.sh +++ b/utils/rkisp1/rkisp1-capture.sh @@ -14,6 +14,37 @@ # - raw2rgbpnm (from git://git.retiisi.org.uk/~sailus/raw2rgbpnm.git) # - yavta (from git://git.ideasonboard.org/yavta.git) +# Return the entity connected to a given pad +# $1: The pad, expressed as "entity":index +mc_remote_entity() { + local entity="${1%:*}" + local pad="${1#*:}" + + ${mediactl} -p | awk ' +/^- entity / { + in_entity=0 +} + +/^- entity [0-9]+: '"${entity}"' / { + in_entity=1 +} + +/^[ \t]+pad/ { + in_pad=0 +} + +/^[ \t]+pad'"${pad}"': / { + in_pad=1 +} + +/^[ \t]+(<-|->) "[^"]+"/ { + if (in_entity && in_pad) { + print gensub(/^[^"]+"([^"]+)":([0-9]+).*$/, "\\1", "g") + exit + } +}' +} + # Locate the sensor entity find_sensor() { local bus @@ -28,6 +59,17 @@ find_sensor() { echo "$sensor_name $bus" } +# Locate the CSI-2 receiver +find_csi2_rx() { + local sensor_name=$1 + local csi2_rx + + csi2_rx=$(mc_remote_entity "$sensor_name:0") + if [ "$csi2_rx" != rkisp1_isp ] ; then + echo "$csi2_rx" + fi +} + # Locate the media device find_media_device() { local mdev @@ -63,15 +105,27 @@ configure_pipeline() { local format="fmt:$sensor_mbus_code/$sensor_size" local capture_mbus_code=$1 local capture_size=$2 + local csi2_rx echo "Configuring pipeline for $sensor in $format" + csi2_rx=$(find_csi2_rx "$sensor") + $mediactl -r - $mediactl -l "'$sensor':0 -> 'rkisp1_isp':0 [1]" + if [ -n "$csi2_rx" ] ; then + $mediactl -l "'$sensor':0 -> '$csi2_rx':0 [1]" + $mediactl -l "'$csi2_rx':1 -> 'rkisp1_isp':0 [1]" + else + $mediactl -l "'$sensor':0 -> 'rkisp1_isp':0 [1]" + fi $mediactl -l "'rkisp1_isp':2 -> 'rkisp1_resizer_mainpath':0 [1]" $mediactl -V "\"$sensor\":0 [$format]" + if [ -n "$csi2_rx" ] ; then + $mediactl -V "'$csi2_rx':0 [$format]" + $mediactl -V "'$csi2_rx':1 [$format]" + fi $mediactl -V "'rkisp1_isp':0 [$format crop:(0,0)/$sensor_size]" $mediactl -V "'rkisp1_isp':2 [fmt:$capture_mbus_code/$sensor_size crop:(0,0)/$sensor_size]" $mediactl -V "'rkisp1_resizer_mainpath':0 [fmt:$capture_mbus_code/$sensor_size crop:(0,0)/$sensor_size]"