From patchwork Mon Oct 11 14:52:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lance Wang X-Patchwork-Id: 31049 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6602:2084:0:0:0:0 with SMTP id a4csp3776100ioa; Mon, 11 Oct 2021 07:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwvQSDrPu7aJCEF7q9aR7urPexTwxs84Zf4erSdmnd13JQxPjCchH0J03dy+vxBzFd+Y0VS X-Received: by 2002:a50:c006:: with SMTP id r6mr43098278edb.289.1633964027216; Mon, 11 Oct 2021 07:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633964027; cv=none; d=google.com; s=arc-20160816; b=ly/1AFi1hfxeloEbyMiEyFry3KqJu68I1OeI/v0D9t0q1fHrDMn8W4tyROxq/LS+N+ /PwJ0cE+J/KnfuhrIvqpaGJJSxCq0oUwjo/ELdKlIdfFpjdVC9r1KWp+zqgaoR24/fnJ MtGL3CIBTvJSLFSVCO5mp15nb0M0C5hkJIwxbACWi+mbid0jTTHHjXKtRB9NQRbJfpUe ULhCd3cPDAbxjjYYj6pLGF0VSHdik5o7rZLDCE0MkJqEdJF4BHClhdCQ2XpKFnN5AMNP eUkr+k309s3HrWsDU4WQuoBfZemX6NUTSdr7FCNKaOOS6Qe1oSZgqvnj1pVyzxGTHMhy 0UnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=jgSa9gldgTZc1rQQQ7W3F5nzoo6zSTlOcgqR2k+ar/c=; b=oacMhwQ2kYR+Z+GWmFUOSrK2B595soyabWoF/U8y9rzcEUoOCwfwC2xAWfz+Y+2/AY 215wZuBnbzEFscfAMzCanhAs1YqWvXbnithmTGyb1JECmWVG0I+DMkpnWW3O/1jyUHP3 6GCAMd/rzvMRc7cYBZQdthQmiZ2HjLIhb+h5G86E3hZze4M9KGJR10kR+3JI/WbuiOxh 7hxy/mU70hK91OBNwWXalC/pXWJJjJ57iersKbh23NjCUBiIEP/UkSQ7g3QMemdmX35v Ko7FKQi5wmho3QzRQ88RJBe82HXPDP0xK8GyUPNfAootAfI5JcQwN05ZwwfPPcb4We+J hp9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=O30eO75b; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id d4si15717826edm.247.2021.10.11.07.53.46; Mon, 11 Oct 2021 07:53:47 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20210112 header.b=O30eO75b; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5113A68A927; Mon, 11 Oct 2021 17:52:37 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 21C4468A8F0 for ; Mon, 11 Oct 2021 17:52:29 +0300 (EEST) Received: by mail-pg1-f178.google.com with SMTP id r201so11054716pgr.4 for ; Mon, 11 Oct 2021 07:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=il7oaVnf/UweGLM7yZG0nTKxI7nbRdsQOllzdbFhTKY=; b=O30eO75bQ5GC0YElXgYoahi8menvmmA5PA/NUM/11n+MY1Pzw6qQ/e7LuzylCT0Pg4 Cjvrs/Xr2MtNS1kFbnq8K8SiyICAkQ3uEj3QY/74lDl4aiok5uSEJbROuL37iQG+KhTb 7Aft1+DwXe1mZP1SwDJP4NYwKd5yP0NbgoyKagN+5mgbJxBmE3pSgOq01pjfsdJVuTIo FyZP/k414gARammOZH7RivNXzAUqFShwgtuhbOFH2Z7fKGLa85yKBzkTjUzebdQCXhSL Df0H4cA1XtmsD+FrqA0Z2pnDNfJIkAXsCJfevdj256S6d52QnIQWlinjK4Vu2mgDNAbT TuHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=il7oaVnf/UweGLM7yZG0nTKxI7nbRdsQOllzdbFhTKY=; b=ro2D58F2RPyBhbbfIIylJH3GdWbeY7YZBJog/3Dtfb1BsKoZV3ec7XMCKt8IoOFJjp PFYqhoCM2LLBZRF8EWhBotZ2Xw3RZUEMCsfKC+N40PZfmaEQyUxICF23wZ6sV0MxZZf1 Cd39W4pRVGi6M64nXqRMSYLmVnPtbamSRSoNxT8x7sKD/3N0yLCXdoxdXIw+RemfYcJj CpPyr8HfG3FyWqHOzbXxIJf5QmPaFOnolhxnVwhn+s/r+P0rMrEprpbl9GppdEEqSR7c TBkJ91WMGsKMg8jS5L5uzry99uxyrPOLD+up9//DJpvZDT05/bcBq6MOC+Ev6a0DHlJK 3EUA== X-Gm-Message-State: AOAM532jl4Md0Lcee+pQugc/rzLQcDvp9ymIeSdojwaxJ/5DSQ8YQ/i0 rgsIKJ9vzAWAHpJRfPE84LN1PbuRs3g= X-Received: by 2002:a65:6389:: with SMTP id h9mr18625350pgv.83.1633963947430; Mon, 11 Oct 2021 07:52:27 -0700 (PDT) Received: from vpn2.localdomain ([161.117.202.209]) by smtp.gmail.com with ESMTPSA id q11sm8082287pjf.14.2021.10.11.07.52.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Oct 2021 07:52:27 -0700 (PDT) From: lance.lmwang@gmail.com To: ffmpeg-devel@ffmpeg.org Date: Mon, 11 Oct 2021 22:52:05 +0800 Message-Id: <1633963925-13579-8-git-send-email-lance.lmwang@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1633963925-13579-1-git-send-email-lance.lmwang@gmail.com> References: <1633963925-13579-1-git-send-email-lance.lmwang@gmail.com> Subject: [FFmpeg-devel] [PATCH 8/8] avcodec/hevc_filter: Correct indention X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Cc: Limin Wang MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: jHjZTt3NSCDd From: Limin Wang Signed-off-by: Limin Wang --- libavcodec/hevc_filter.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/libavcodec/hevc_filter.c b/libavcodec/hevc_filter.c index 7e9478c..3c45b5a 100644 --- a/libavcodec/hevc_filter.c +++ b/libavcodec/hevc_filter.c @@ -138,7 +138,7 @@ static int get_qPy(HEVCContext *s, int xC, int yC) static void copy_CTB(uint8_t *dst, const uint8_t *src, int width, int height, ptrdiff_t stride_dst, ptrdiff_t stride_src) { -int i, j; + int i, j; if (((intptr_t)dst | (intptr_t)src | stride_dst | stride_src) & 15) { for (i = 0; i < height; i++) { @@ -319,18 +319,18 @@ static void sao_filter_CTB(HEVCContext *s, int x, int y) x_ctb, y_ctb); if (s->ps.pps->transquant_bypass_enable_flag || (s->ps.sps->pcm.loop_filter_disable_flag && s->ps.sps->pcm_enabled_flag)) { - dst = lc->edge_emu_buffer; - stride_dst = 2*MAX_PB_SIZE; - copy_CTB(dst, src, width << s->ps.sps->pixel_shift, height, stride_dst, stride_src); - s->hevcdsp.sao_band_filter[tab](src, dst, stride_src, stride_dst, - sao->offset_val[c_idx], sao->band_position[c_idx], - width, height); - restore_tqb_pixels(s, src, dst, stride_src, stride_dst, - x, y, width, height, c_idx); + dst = lc->edge_emu_buffer; + stride_dst = 2*MAX_PB_SIZE; + copy_CTB(dst, src, width << s->ps.sps->pixel_shift, height, stride_dst, stride_src); + s->hevcdsp.sao_band_filter[tab](src, dst, stride_src, stride_dst, + sao->offset_val[c_idx], sao->band_position[c_idx], + width, height); + restore_tqb_pixels(s, src, dst, stride_src, stride_dst, + x, y, width, height, c_idx); } else { - s->hevcdsp.sao_band_filter[tab](src, src, stride_src, stride_src, - sao->offset_val[c_idx], sao->band_position[c_idx], - width, height); + s->hevcdsp.sao_band_filter[tab](src, src, stride_src, stride_src, + sao->offset_val[c_idx], sao->band_position[c_idx], + width, height); } sao->type_idx[c_idx] = SAO_APPLIED; break;