From patchwork Fri Oct 23 05:31:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 10210 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 72870BDB13 for ; Fri, 23 Oct 2020 05:31:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 40312615D4; Fri, 23 Oct 2020 07:31:58 +0200 (CEST) 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="X5uaAZ24"; 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 04A366034E for ; Fri, 23 Oct 2020 07:31:57 +0200 (CEST) From: Umang Jain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail; t=1603431116; bh=6sFyZy4MzQctWuztX9/htBFqsV/X1hyGwnxBWwlz8OI=; h=From:To:Cc:Subject; b=X5uaAZ244xLxEJdHv3Aqd/txMyvClqSfGE6G5Nj+E/TI4Tc0imgTgYfvn+KD3KGOw v1vZAH7kIUW6VdXIWGagwbnm615TOT2JUXP9hkaFp6N8jf5aR6hegN/NiF8vPsSksz 2AUAhotWOq7NheP15RZ9/Ze/n42TGyjiMYKI719tmNPi4NtsSp1ngIf8F3UT8Xix0e 7zdM+xGKzL5rO32TzekD2rLk5vqS3YpU8MNrNckXTutm54LjbSfhi7hz/HLpmzbxC/ kD+UigvVtklA7dxR5MNUoYcTa+fwLdhEyDFn2ubxFOBn7Mp6cUwiMoIgRB11AJPkGO StyUijpH7c1Bw== To: libcamera-devel@lists.libcamera.org Date: Fri, 23 Oct 2020 11:01:49 +0530 Message-Id: <20201023053150.84411-1-email@uajain.com> Mime-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 1/2] android: jpeg: Drop "libcamera::" namespace from functions' arguments 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" Drop "libcamera::" from functions' arguments for *.cpp files as they have using namespace libcamera; directive in the beginning. Signed-off-by: Umang Jain Reviewed-by: Kieran Bingham --- src/android/jpeg/encoder_libjpeg.cpp | 9 ++++----- src/android/jpeg/post_processor_jpeg.cpp | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/android/jpeg/encoder_libjpeg.cpp b/src/android/jpeg/encoder_libjpeg.cpp index 5a2f88f..4bea10c 100644 --- a/src/android/jpeg/encoder_libjpeg.cpp +++ b/src/android/jpeg/encoder_libjpeg.cpp @@ -104,7 +104,7 @@ int EncoderLibJpeg::configure(const StreamConfiguration &cfg) return 0; } -void EncoderLibJpeg::compressRGB(const libcamera::MappedBuffer *frame) +void EncoderLibJpeg::compressRGB(const MappedBuffer *frame) { unsigned char *src = static_cast(frame->maps()[0].data()); /* \todo Stride information should come from buffer configuration. */ @@ -122,7 +122,7 @@ void EncoderLibJpeg::compressRGB(const libcamera::MappedBuffer *frame) * Compress the incoming buffer from a supported NV format. * This naively unpacks the semi-planar NV12 to a YUV888 format for libjpeg. */ -void EncoderLibJpeg::compressNV(const libcamera::MappedBuffer *frame) +void EncoderLibJpeg::compressNV(const MappedBuffer *frame) { uint8_t tmprowbuf[compress_.image_width * 3]; @@ -179,9 +179,8 @@ void EncoderLibJpeg::compressNV(const libcamera::MappedBuffer *frame) } } -int EncoderLibJpeg::encode(const FrameBuffer &source, - libcamera::Span dest, - const libcamera::Span &exifData) +int EncoderLibJpeg::encode(const FrameBuffer &source, Span dest, + const Span &exifData) { MappedFrameBuffer frame(&source, PROT_READ); if (!frame.isValid()) { diff --git a/src/android/jpeg/post_processor_jpeg.cpp b/src/android/jpeg/post_processor_jpeg.cpp index fd1c7be..93acfe5 100644 --- a/src/android/jpeg/post_processor_jpeg.cpp +++ b/src/android/jpeg/post_processor_jpeg.cpp @@ -44,8 +44,8 @@ int PostProcessorJpeg::configure(const StreamConfiguration &inCfg, return encoder_->configure(inCfg); } -int PostProcessorJpeg::process(const libcamera::FrameBuffer &source, - libcamera::Span destination, +int PostProcessorJpeg::process(const FrameBuffer &source, + Span destination, CameraMetadata *metadata) { if (!encoder_)