From patchwork Mon Oct 26 14:01:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 10253 X-Patchwork-Delegate: umang.jain@ideasonboard.com 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 619DDBDB13 for ; Mon, 26 Oct 2020 14:02:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 32ADE61E71; Mon, 26 Oct 2020 15:02:37 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=uajain.com header.i=@uajain.com header.b="qaVj33Do"; dkim-atps=neutral Received: from mail.uajain.com (static.126.159.217.95.clients.your-server.de [95.217.159.126]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 073266034E for ; Mon, 26 Oct 2020 15:02:36 +0100 (CET) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1603720955; bh=Qx76a36vIl8KmOYbctsbqlckjakSOy/2qZcc+OEWZh0=; h=From:To:Cc:Subject:In-Reply-To:References; b=qaVj33DoewAunAUMiUS9YO5X5P5kppRo/+ybF3UmYKsxVGQbj0u+jCuG7tQ4udr7V jJMolg0UdvMTcZRHU5+3NXdzXQJQgDTKj4fXECPTipXamwl+snj/fMSrHs+/fCSUWd IPejLa+X07o20f0K25NPSYENjwYw3QfbXiAqr/wAe0Pfl1JaVEpuglIq0AFhpzE8gU /es182DE9umIuXuRUkSJ1qIYfAHt0GSgy8NZxM/C+g7MI54LKY2HayU4iZbyYObtXm 8dTFV0StbnHNbVqXBm/D2BbjbC+4bTK6afJNtk8FoTJ/p3M9yKKOnE6pJAumgKFcEV axkYS4T7bAZxw== To: libcamera-devel@lists.libcamera.org Date: Mon, 26 Oct 2020 19:31:32 +0530 Message-Id: <20201026140134.44166-2-email@uajain.com> In-Reply-To: <20201026140134.44166-1-email@uajain.com> References: <20201026140134.44166-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/3] android: jpeg: Return encoded bytes size from PostProcessorJpeg 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Returning 0 from PostProcessJpeg::process() is not really helpful. Also, one expects that the process() returns the size of the output data from the processor. Signed-off-by: Umang Jain --- src/android/jpeg/post_processor_jpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/android/jpeg/post_processor_jpeg.cpp b/src/android/jpeg/post_processor_jpeg.cpp index 93acfe5..c56f1b2 100644 --- a/src/android/jpeg/post_processor_jpeg.cpp +++ b/src/android/jpeg/post_processor_jpeg.cpp @@ -101,5 +101,5 @@ int PostProcessorJpeg::process(const FrameBuffer &source, const uint32_t jpeg_orientation = 0; metadata->addEntry(ANDROID_JPEG_ORIENTATION, &jpeg_orientation, 1); - return 0; + return jpeg_size; }