From patchwork Mon Dec 11 01:35:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= X-Patchwork-Id: 45057 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:1225:b0:181:818d:5e7f with SMTP id v37csp2652760pzf; Sun, 10 Dec 2023 17:49:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHaSbHdXVn0SOI+2jh8wLC7pnyTl7/pXZWRpo6zWEZ9YhxmQuCPeZgCiCy+b4ap2FfzkJ6M X-Received: by 2002:a17:907:2cc6:b0:a19:a19b:c713 with SMTP id hg6-20020a1709072cc600b00a19a19bc713mr3022135ejc.99.1702259342016; Sun, 10 Dec 2023 17:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702259342; cv=none; d=google.com; s=arc-20160816; b=XOuu61iO+8M/PvUo3o2YikpHmzHhGQhAEm5KqMJvJsSncXLnn6Acqfpswl7BGSAHBz k9CQ/DlXXejP3dO8F9BbST0f4Kx1D+yOvRPeuOg5woytDjfXxYWhBAK8fVZBFc1D7fYJ HZfNpMRk4BcoWbLoNx9/Dcske3yOQuXwmHfawGEb93GQwhq/YWYJxZlbN4adCl1X3Yyi dNeQU5cAFcZIqiqtmq69BRCoZXitPDrtFyLnngF4q9XUPTN9M88pUF3RCpe7B5da/+ms HZaHa8aOJcWv3whSpSyxRE+zGTMJ4lmkmOjlPLNo/xpkurtGXVCA++ziC6VDplVsoxXR jeKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=dEQE0V4WZXHKJ4SSFGXO/SvvXB8jvkboyjWWTNoO63Q=; fh=Jgo3TCyoG8OdFLqA8BuM7Wbf1w27210JU6p+E8x39/M=; b=dd4HCKM8ix5/qdimG5dfoJxww5hLREC4p3rDDYwpeqyA/RbgnLNDXYmlfAKQGsjCKY 40GWbP0D8nWAEiXMHi/95XqQl0pLaTndGOTQ4rHfeuS/FPpSil4ymWLQE3wmluTOzK3/ Y/DedKgI0TAEPQ9LWHUH1BpmhC0SDW+3jEmL6N1b9MpM3prsnsD21aMbUjQNJBLVLv48 cQG1RakxTmrgCeYaikKz3zPcj2naTvRgWOx9rUo/GONBjeOWOx/i8YGMo5nTBXzm2JoE WuqOp1KNzw6CXElRLI499gwEBIYVW0LNmsCqaTbTheki2zbuQg+DJfY5fHipIdqvrSaT QvwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@pkh.me header.s=selector1 header.b=eNZvARDB; 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=NONE dis=NONE) header.from=pkh.me Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id q10-20020a170906b28a00b00a1b8262090dsi3155402ejz.259.2023.12.10.17.49.01; Sun, 10 Dec 2023 17:49:02 -0800 (PST) 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=@pkh.me header.s=selector1 header.b=eNZvARDB; 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=NONE dis=NONE) header.from=pkh.me Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 3B74068D220; Mon, 11 Dec 2023 03:45:23 +0200 (EET) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from ssq0.pkh.me (laubervilliers-656-1-228-164.w92-154.abo.wanadoo.fr [92.154.28.164]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 1A45668D185 for ; Mon, 11 Dec 2023 03:44:57 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pkh.me; s=selector1; t=1702259079; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZXLpMQcvi9qAWlevq0QdQhVGFjvht0QspbzxI1nr58Y=; b=eNZvARDB/XKUP8xx9NOe7hmc/ieBJ6qKHJXvnY1GefhNednZpn5uiAsQQP7AkJ6/Mtx+o1 8NxZ/Op7FPzM9Vra6UBaifS+JBXm7oZsKGVX0bF8il188PaeScfFyzuxMHRhw6aEsqWouH 3Zc/732GIPMYBfSbXROH3ZHsnnjNinQ= Received: from localhost (ssq0.pkh.me [local]) by ssq0.pkh.me (OpenSMTPD) with ESMTPA id 9bce589f; Mon, 11 Dec 2023 01:44:39 +0000 (UTC) From: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= To: ffmpeg-devel@ffmpeg.org Date: Mon, 11 Dec 2023 02:35:32 +0100 Message-ID: <20231211014429.1841681-32-u@pkh.me> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231211014429.1841681-1-u@pkh.me> References: <20231211014429.1841681-1-u@pkh.me> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 31/35] avcodec/proresenc_anatoliy: avoid using ff_ prefix in function arguments 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: =?utf-8?b?Q2zDqW1lbnQgQsWTc2No?= Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: 3ZLE5SnUyYez --- libavcodec/proresenc_anatoliy.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libavcodec/proresenc_anatoliy.c b/libavcodec/proresenc_anatoliy.c index 57324a3b27..816c27e481 100644 --- a/libavcodec/proresenc_anatoliy.c +++ b/libavcodec/proresenc_anatoliy.c @@ -284,14 +284,14 @@ static void encode_dcs(PutBitContext *pb, int16_t *blocks, static void encode_acs(PutBitContext *pb, int16_t *blocks, int blocks_per_slice, - int *qmat, const uint8_t ff_prores_scan[64]) + int *qmat, const uint8_t *scan) { int prev_run = 4; int prev_level = 2; int run = 0, level, code, i, j; for (i = 1; i < 64; i++) { - int indp = ff_prores_scan[i]; + int indp = scan[i]; for (j = 0; j < blocks_per_slice; j++) { int val = (blocks[(j << 6) + indp]) / qmat[indp]; if (val) { @@ -370,7 +370,7 @@ static void calc_plane_dct(FDCTDSPContext *fdsp, const uint8_t *src, int16_t * b } static int encode_slice_plane(int16_t *blocks, int mb_count, uint8_t *buf, unsigned buf_size, int *qmat, int sub_sample_chroma, - const uint8_t ff_prores_scan[64]) + const uint8_t *scan) { int blocks_per_slice; PutBitContext pb; @@ -379,7 +379,7 @@ static int encode_slice_plane(int16_t *blocks, int mb_count, uint8_t *buf, unsig init_put_bits(&pb, buf, buf_size); encode_dcs(&pb, blocks, blocks_per_slice, qmat[0]); - encode_acs(&pb, blocks, blocks_per_slice, qmat, ff_prores_scan); + encode_acs(&pb, blocks, blocks_per_slice, qmat, scan); flush_put_bits(&pb); return put_bits_ptr(&pb) - pb.buf;