From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id DABA94E324 for ; Mon, 9 Jun 2025 10:06:51 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8FEB368CB27; Mon, 9 Jun 2025 13:06:49 +0300 (EEST) Received: from mx.sdf.org (mx.sdf.org [205.166.94.24]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 5B56C68CAD7 for ; Mon, 9 Jun 2025 13:06:47 +0300 (EEST) Received: from 6455c2dafb0e9b8dd83b2a6e9300bb3c ([1.145.244.154]) (authenticated (0 bits)) by mx.sdf.org (8.18.1/8.14.3) with ESMTPSA id 559A6cRe025896 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO) for ; Mon, 9 Jun 2025 10:06:43 GMT Date: Mon, 9 Jun 2025 20:06:37 +1000 From: Peter Ross To: ffmpeg-devel@ffmpeg.org Message-ID: <8b3f1791f97ed6dfc04a570ecfa8e0d51e3ddc83.1749463495.git.pross@xvid.org> References: MIME-Version: 1.0 In-Reply-To: Subject: [FFmpeg-devel] [PATCHv3 3/8] avcodec/lpc_functions: compute_lpc_coefs: add starting lpc order and err cache parameters 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 Content-Type: multipart/mixed; boundary="===============6378534846448446787==" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: --===============6378534846448446787== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8OZsK2bos3ZpkNbX" Content-Disposition: inline --8OZsK2bos3ZpkNbX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable --- libavcodec/aac/aacdec_dsp_template.c | 2 +- libavcodec/aacenc_tns.c | 2 +- libavcodec/lpc.c | 2 +- libavcodec/lpc_functions.h | 18 +++++++++++++----- libavcodec/ra288.c | 2 +- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/libavcodec/aac/aacdec_dsp_template.c b/libavcodec/aac/aacdec_d= sp_template.c index 8d31af22f8..b64944d548 100644 --- a/libavcodec/aac/aacdec_dsp_template.c +++ b/libavcodec/aac/aacdec_dsp_template.c @@ -185,7 +185,7 @@ static void AAC_RENAME(apply_tns)(void *_coef_param, Te= mporalNoiseShaping *tns, continue; =20 // tns_decode_coef - compute_lpc_coefs(tns->AAC_RENAME(coef)[w][filt], order, lpc, = 0, 0, 0); + compute_lpc_coefs(tns->AAC_RENAME(coef)[w][filt], 0, order, lp= c, 0, 0, 0, NULL); =20 start =3D ics->swb_offset[FFMIN(bottom, mmm)]; end =3D ics->swb_offset[FFMIN( top, mmm)]; diff --git a/libavcodec/aacenc_tns.c b/libavcodec/aacenc_tns.c index 7884c035cb..2f27444025 100644 --- a/libavcodec/aacenc_tns.c +++ b/libavcodec/aacenc_tns.c @@ -117,7 +117,7 @@ void ff_aac_apply_tns(AACEncContext *s, SingleChannelEl= ement *sce) continue; =20 // tns_decode_coef - compute_lpc_coefs(tns->coef[w][filt], order, lpc, 0, 0, 0); + compute_lpc_coefs(tns->coef[w][filt], 0, order, lpc, 0, 0, 0, = NULL); =20 start =3D ics->swb_offset[FFMIN(bottom, mmm)]; end =3D ics->swb_offset[FFMIN( top, mmm)]; diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c index e793e54038..38c78d9521 100644 --- a/libavcodec/lpc.c +++ b/libavcodec/lpc.c @@ -267,7 +267,7 @@ int ff_lpc_calc_coefs(LPCContext *s, =20 s->lpc_compute_autocorr(s->windowed_samples, blocksize, max_order,= autoc); =20 - compute_lpc_coefs(autoc, max_order, &lpc[0][0], MAX_LPC_ORDER, 0, = 1); + compute_lpc_coefs(autoc, 0, max_order, &lpc[0][0], MAX_LPC_ORDER, = 0, 1, NULL); =20 for(i=3D0; ivector_fmul, order, n, non_rec, temp, hist, re= c, window); =20 - if (!compute_lpc_coefs(temp, order, lpc, 0, 1, 1)) + if (!compute_lpc_coefs(temp, 0, order, lpc, 0, 1, 1, NULL)) ractx->vector_fmul(lpc, lpc, tab, FFALIGN(order, 16)); =20 memmove(hist, hist + n, move_size*sizeof(*hist)); --=20 2.47.2 -- Peter (A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B) --8OZsK2bos3ZpkNbX Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSpB+AvpuUM0jTNINJnYHnFrEDdawUCaEayLQAKCRBnYHnFrEDd a289AJ0e0uyOjsBpq8+iRQeM3tIhOBuNtACgpGYLXtlttZfzZB2IYpw7EDsb12Q= =04// -----END PGP SIGNATURE----- --8OZsK2bos3ZpkNbX-- --===============6378534846448446787== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". --===============6378534846448446787==--