From patchwork Sat May 27 04:23:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristan Matthews X-Patchwork-Id: 41849 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:6a20:c51c:b0:10c:5e6f:955f with SMTP id gm28csp195918pzb; Fri, 26 May 2023 21:24:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ51NKmHAWl0NTICI//fM7cmIBVh1rBNDdrIHBxPH0Yv0/Hmm0Z9ba27zcmGnNzwe5diC876 X-Received: by 2002:a17:906:fe0b:b0:94f:6058:4983 with SMTP id wy11-20020a170906fe0b00b0094f60584983mr3907035ejb.76.1685161454388; Fri, 26 May 2023 21:24:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685161454; cv=none; d=google.com; s=arc-20160816; b=JI9F2PvEqIYhm51ul1YEVdAjunJm0kq6bV316XlcZ3kgI+zWa5t77IZfTaggpNrv5j CiOcxeYPd8eC644JE7QhulfQ1W73nZHmVPFVix8KApu2a2lySvJuSjBjU2QjfgpKuTcl Ls5C2vS/MFIpIEFGfkGXmFA83MZAyNyLefYELL87JftSSB4fvj3Gskd1ak54Q9jybCbm lj5kEOsVtlw37FlGnGqupz2IltTiRYtZPt27AbCzu3uTtVulfnlAZ0SSYqV4YL6q7EHa 0FeW3P8/t9fG6GOv9Sgswcxo/48TSPibeu+SPkJuX2LnrdesRtyWXM649akNza8OB2Of /KSQ== 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:message-id:date:to:from :delivered-to; bh=vL+T0z+LfF0NgOHPZAesDMr6b9cvnzbCrR2Fjlkea/o=; b=ADW0LktgnxAaDCjx9rqSep7kLggakixpHQi3yRTxv0pCEeCZc/gS9kp+jrRSts2y8C +kjKlgA9fxdZB60+MIAaLySGxBY3BWZaqeFHkeKJwWM69d/Yfuq90w9J2fpzmwdr6A33 sYcVvI30xTVN+TF9O+CKP1C+csvd022cQxMuUz8HIJQ+rrU/PKMpjoibleHnitPERl1K ovO8XmgpLPeNclnUmaCsKo01gIUqNz76W4MCWPpzvoQIlIaqllMMVbLsxIuadvYZU2Vn j+vg4Vi2eBR9LwVY6GoklGOODTwdU27JA1PX8uqLOjLJKat2Q4j4K6tz8CRa1PbalBQb 3YmQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id z17-20020a170906075100b0094f5e17e817si4175244ejb.797.2023.05.26.21.24.13; Fri, 26 May 2023 21:24:14 -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; 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 Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 661D568C137; Sat, 27 May 2023 07:24:09 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 6EB5F68C07C for ; Sat, 27 May 2023 07:24:02 +0300 (EEST) Received: by mail-qk1-f172.google.com with SMTP id af79cd13be357-75afed17e0cso96632585a.3 for ; Fri, 26 May 2023 21:24:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685161441; x=1687753441; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2Jf3snrZSRo2h/U/BUQni6PBGHryK5zPgEgs90alCn8=; b=g2V+uViBZSgZro/M/PA3LqRhOKfhXmQZLz9fPZSgeFLUOmXflGan7F0/BYOKqwzyr4 Q98coE9jzLerOlrHKeA0ywhl17rTtJW6rqjUsaKDkdWaJD7o0AU1cuazCs2ct3VxhS1Z bFkB+qzlv3yi+ng/a0qalCuwVIhN4NJNMfDq5drP8crVfT4cOLKwoOgAxK2k3hpVyga7 h+riYilbGSKYlzNqOK6kZzvflx5zECi1KAEJbrLZG8c61MDc442mBeebniBPZ4oPXw79 2OonURgkoezKl8uF8/6u6mvplNSxtLcxoSTfVpgfqo7nFa9+wHL29MGeNZxhfc552dkU IyBg== X-Gm-Message-State: AC+VfDzc0XlXFvO3U2n64XtpRhT6PSGh3+agHNKMH7enaoc9S7PAR61v 15z8YmhfC9OAi8QTzem/1fSjZ3hnKoA= X-Received: by 2002:a05:620a:1d0a:b0:75b:23a1:421 with SMTP id dl10-20020a05620a1d0a00b0075b23a10421mr1418252qkb.55.1685161440677; Fri, 26 May 2023 21:24:00 -0700 (PDT) Received: from bellini.. ([198.16.197.243]) by smtp.gmail.com with ESMTPSA id p1-20020a05620a112100b0075b262d30aasm1638594qkk.79.2023.05.26.21.23.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 May 2023 21:24:00 -0700 (PDT) From: Tristan Matthews To: ffmpeg-devel@ffmpeg.org Date: Sat, 27 May 2023 00:23:26 -0400 Message-Id: <20230527042326.301505-1-tmatth@videolan.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH] nellymoser: user float literals for table 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: Tristan Matthews Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: izgnTNpRZE/u --- libavcodec/nellymoser.c | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/libavcodec/nellymoser.c b/libavcodec/nellymoser.c index 66c5f83a56..fa22b79909 100644 --- a/libavcodec/nellymoser.c +++ b/libavcodec/nellymoser.c @@ -39,30 +39,30 @@ #include "nellymoser.h" const float ff_nelly_dequantization_table[127] = { - 0.0000000000, + 0.0000000000f, --0.8472560048, 0.7224709988, +-0.8472560048f, 0.7224709988f, --1.5247479677,-0.4531480074, 0.3753609955, 1.4717899561, +-1.5247479677f,-0.4531480074f, 0.3753609955f, 1.4717899561f, --1.9822579622,-1.1929379702,-0.5829370022,-0.0693780035, 0.3909569979, 0.9069200158, 1.4862740040, 2.2215409279, +-1.9822579622f,-1.1929379702f,-0.5829370022f,-0.0693780035f, 0.3909569979f, 0.9069200158f, 1.4862740040f, 2.2215409279f, --2.3887870312,-1.8067539930,-1.4105420113,-1.0773609877,-0.7995010018,-0.5558109879,-0.3334020078,-0.1324490011, - 0.0568020009, 0.2548770010, 0.4773550034, 0.7386850119, 1.0443060398, 1.3954459429, 1.8098750114, 2.3918759823, +-2.3887870312f,-1.8067539930f,-1.4105420113f,-1.0773609877f,-0.7995010018f,-0.5558109879f,-0.3334020078f,-0.1324490011f, + 0.0568020009f, 0.2548770010f, 0.4773550034f, 0.7386850119f, 1.0443060398f, 1.3954459429f, 1.8098750114f, 2.3918759823f, --2.3893830776,-1.9884680510,-1.7514040470,-1.5643119812,-1.3922129869,-1.2164649963,-1.0469499826,-0.8905100226, --0.7645580173,-0.6454579830,-0.5259280205,-0.4059549868,-0.3029719889,-0.2096900046,-0.1239869967,-0.0479229987, - 0.0257730000, 0.1001340002, 0.1737180054, 0.2585540116, 0.3522900045, 0.4569880068, 0.5767750144, 0.7003160119, - 0.8425520062, 1.0093879700, 1.1821349859, 1.3534560204, 1.5320819616, 1.7332619429, 1.9722349644, 2.3978140354, +-2.3893830776f,-1.9884680510f,-1.7514040470f,-1.5643119812f,-1.3922129869f,-1.2164649963f,-1.0469499826f,-0.8905100226f, +-0.7645580173f,-0.6454579830f,-0.5259280205f,-0.4059549868f,-0.3029719889f,-0.2096900046f,-0.1239869967f,-0.0479229987f, + 0.0257730000f, 0.1001340002f, 0.1737180054f, 0.2585540116f, 0.3522900045f, 0.4569880068f, 0.5767750144f, 0.7003160119f, + 0.8425520062f, 1.0093879700f, 1.1821349859f, 1.3534560204f, 1.5320819616f, 1.7332619429f, 1.9722349644f, 2.3978140354f, --2.5756309032,-2.0573320389,-1.8984919786,-1.7727810144,-1.6662600040,-1.5742180347,-1.4993319511,-1.4316639900, --1.3652280569,-1.3000990152,-1.2280930281,-1.1588579416,-1.0921250582,-1.0135740042,-0.9202849865,-0.8287050128, --0.7374889851,-0.6447759867,-0.5590940118,-0.4857139885,-0.4110319912,-0.3459700048,-0.2851159871,-0.2341620028, --0.1870580018,-0.1442500055,-0.1107169986,-0.0739680007,-0.0365610011,-0.0073290002, 0.0203610007, 0.0479039997, - 0.0751969963, 0.0980999991, 0.1220389977, 0.1458999962, 0.1694349945, 0.1970459968, 0.2252430022, 0.2556869984, - 0.2870100141, 0.3197099864, 0.3525829911, 0.3889069855, 0.4334920049, 0.4769459963, 0.5204820037, 0.5644530058, - 0.6122040153, 0.6685929894, 0.7341650128, 0.8032159805, 0.8784040213, 0.9566209912, 1.0397069454, 1.1293770075, - 1.2211159468, 1.3080279827, 1.4024800062, 1.5056819916, 1.6227730513, 1.7724959850, 1.9430880547, 2.2903931141 +-2.5756309032f,-2.0573320389f,-1.8984919786f,-1.7727810144f,-1.6662600040f,-1.5742180347f,-1.4993319511f,-1.4316639900f, +-1.3652280569f,-1.3000990152f,-1.2280930281f,-1.1588579416f,-1.0921250582f,-1.0135740042f,-0.9202849865f,-0.8287050128f, +-0.7374889851f,-0.6447759867f,-0.5590940118f,-0.4857139885f,-0.4110319912f,-0.3459700048f,-0.2851159871f,-0.2341620028f, +-0.1870580018f,-0.1442500055f,-0.1107169986f,-0.0739680007f,-0.0365610011f,-0.0073290002f, 0.0203610007f, 0.0479039997f, + 0.0751969963f, 0.0980999991f, 0.1220389977f, 0.1458999962f, 0.1694349945f, 0.1970459968f, 0.2252430022f, 0.2556869984f, + 0.2870100141f, 0.3197099864f, 0.3525829911f, 0.3889069855f, 0.4334920049f, 0.4769459963f, 0.5204820037f, 0.5644530058f, + 0.6122040153f, 0.6685929894f, 0.7341650128f, 0.8032159805f, 0.8784040213f, 0.9566209912f, 1.0397069454f, 1.1293770075f, + 1.2211159468f, 1.3080279827f, 1.4024800062f, 1.5056819916f, 1.6227730513f, 1.7724959850f, 1.9430880547f, 2.2903931141f }; const uint8_t ff_nelly_band_sizes_table[NELLY_BANDS] = {