From: Lynne <dev@lynne.ee>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH] aacenc: move to libavcodec/aac/
Date: Sat, 8 Feb 2025 17:52:03 +0100
Message-ID: <8fc9cada-f70f-4957-9e81-78702e6888b4@lynne.ee> (raw)
In-Reply-To: <c1d710c7-8b29-4cf5-98c3-c03b46649c79@gmail.com>
[-- Attachment #1.1.1.1: Type: text/plain, Size: 8112 bytes --]
On 08/02/2025 16:54, James Almer wrote:
> On 2/8/2025 2:32 AM, Lynne wrote:
>> The decoder was already moved there.
>> ---
>> libavcodec/Makefile | 5 +-
>> libavcodec/aac/Makefile | 2 +
>> libavcodec/{ => aac}/aaccoder.c | 0
>> libavcodec/aac/aaccoder.h | 46 +++++++++++++++++++
>> libavcodec/{ => aac}/aaccoder_twoloop.h | 0
>> libavcodec/{ => aac}/aacenc.c | 0
>> libavcodec/{ => aac}/aacenc.h | 0
>> libavcodec/{ => aac}/aacenc_is.c | 0
>> libavcodec/{ => aac}/aacenc_is.h | 0
>> libavcodec/{ => aac}/aacenc_quantization.h | 0
>> .../{ => aac}/aacenc_quantization_misc.h | 0
>> libavcodec/{ => aac}/aacenc_tns.c | 0
>> libavcodec/{ => aac}/aacenc_tns.h | 0
>> libavcodec/{ => aac}/aacenc_utils.h | 0
>> libavcodec/{ => aac}/aacencdsp.h | 0
>> libavcodec/{ => aac}/aacenctab.c | 0
>> libavcodec/{ => aac}/aacenctab.h | 0
>> libavcodec/aarch64/aacencdsp_init.c | 2 +-
>> libavcodec/riscv/aacencdsp_init.c | 2 +-
>> libavcodec/x86/aacencdsp_init.c | 2 +-
>> tests/checkasm/aacencdsp.c | 4 +-
>> 21 files changed, 54 insertions(+), 9 deletions(-)
>> rename libavcodec/{ => aac}/aaccoder.c (100%)
>> create mode 100644 libavcodec/aac/aaccoder.h
>> rename libavcodec/{ => aac}/aaccoder_twoloop.h (100%)
>> rename libavcodec/{ => aac}/aacenc.c (100%)
>> rename libavcodec/{ => aac}/aacenc.h (100%)
>> rename libavcodec/{ => aac}/aacenc_is.c (100%)
>> rename libavcodec/{ => aac}/aacenc_is.h (100%)
>> rename libavcodec/{ => aac}/aacenc_quantization.h (100%)
>> rename libavcodec/{ => aac}/aacenc_quantization_misc.h (100%)
>> rename libavcodec/{ => aac}/aacenc_tns.c (100%)
>> rename libavcodec/{ => aac}/aacenc_tns.h (100%)
>> rename libavcodec/{ => aac}/aacenc_utils.h (100%)
>> rename libavcodec/{ => aac}/aacencdsp.h (100%)
>> rename libavcodec/{ => aac}/aacenctab.c (100%)
>> rename libavcodec/{ => aac}/aacenctab.h (100%)
>>
>> diff --git a/libavcodec/Makefile b/libavcodec/Makefile
>> index 499f826635..a5dcfb7d1b 100644
>> --- a/libavcodec/Makefile
>> +++ b/libavcodec/Makefile
>> @@ -194,10 +194,7 @@ OBJS-$(CONFIG_AAC_FIXED_DECODER) += aactab.o \
>> aacsbr_fixed.o
>> aacps_common.o aacps_fixed.o \
>> kbdwin.o \
>> sbrdsp_fixed.o
>> aacpsdsp_fixed.o cbrt_data_fixed.o
>> -OBJS-$(CONFIG_AAC_ENCODER) += aacenc.o aaccoder.o
>> aacenctab.o \
>> - aacpsy.o aactab.o \
>> - aacenc_is.o \
>> - aacenc_tns.o \
>> +OBJS-$(CONFIG_AAC_ENCODER) += aacpsy.o aactab.o \
>> psymodel.o kbdwin.o \
>> mpeg4audio_sample_rates.o
>> OBJS-$(CONFIG_AAC_MEDIACODEC_DECODER) += mediacodecdec.o
>> diff --git a/libavcodec/aac/Makefile b/libavcodec/aac/Makefile
>> index 70b1dca274..489fa9f67a 100644
>> --- a/libavcodec/aac/Makefile
>> +++ b/libavcodec/aac/Makefile
>> @@ -1,6 +1,8 @@
>> clean::
>> $(RM) $(CLEANSUFFIXES:%=libavcodec/aac/%)
>> +OBJS-$(CONFIG_AAC_ENCODER) += aacenc.o aaccoder.o
>> aacenctab.o \
>> + aacenc_is.o aacenc_tns.o
>> OBJS-$(CONFIG_AAC_DECODER) += aac/aacdec.o aac/aacdec_tab.o \
>> aac/aacdec_float.o aac/
>> aacdec_usac.o \
>> aac/aacdec_ac.o aac/
>> aacdec_lpd.o
>> diff --git a/libavcodec/aaccoder.c b/libavcodec/aac/aaccoder.c
>> similarity index 100%
>> rename from libavcodec/aaccoder.c
>> rename to libavcodec/aac/aaccoder.c
>> diff --git a/libavcodec/aac/aaccoder.h b/libavcodec/aac/aaccoder.h
>> new file mode 100644
>> index 0000000000..3f3b2612aa
>> --- /dev/null
>> +++ b/libavcodec/aac/aaccoder.h
>> @@ -0,0 +1,46 @@
>> +/*
>> + * AAC encoder
>> + * Copyright (C) 2008 Konstantin Shishkov
>> + *
>> + * This file is part of FFmpeg.
>> + *
>> + * FFmpeg is free software; you can redistribute it and/or
>> + * modify it under the terms of the GNU Lesser General Public
>> + * License as published by the Free Software Foundation; either
>> + * version 2.1 of the License, or (at your option) any later version.
>> + *
>> + * FFmpeg is distributed in the hope that it will be useful,
>> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
>> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
>> + * Lesser General Public License for more details.
>> + *
>> + * You should have received a copy of the GNU Lesser General Public
>> + * License along with FFmpeg; if not, write to the Free Software
>> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
>> 02110-1301 USA
>> + */
>> +
>> +#ifndef AVCODEC_AACCODER_H
>> +#define AVCODEC_AACCODER_H
>> +
>> +#include "aacenc.h"
>> +
>> +void ff_aac_search_for_quantizers(AVCodecContext *avctx,
>> AACEncContext *s,
>> + SingleChannelElement *sce, const
>> float lambda);
>> +void ff_aac_set_special_band_scalefactors(AACEncContext *s,
>> + SingleChannelElement *sce);
>> +
>> +void ff_aac_search_for_pns(AACEncContext *s, AVCodecContext *avctx,
>> + SingleChannelElement *sce);
>> +void ff_aac_mark_pns(AACEncContext *s, AVCodecContext *avctx,
>> + SingleChannelElement *sce);
>> +
>> +void ff_aac_search_for_ms(AACEncContext *s, ChannelElement *cpe);
>> +
>> +void ff_aac_encode_window_bands_info(AACEncContext *s,
>> SingleChannelElement *sce,
>> + int win, int group_len, const
>> float lambda);
>> +void ff_aac_quantize_and_encode_band(AACEncContext *s, PutBitContext
>> *pb,
>> + const float *in, float *out, int
>> size,
>> + int scale_idx, int cb, const
>> float lambda,
>> + int rtz);
>> +
>> +#endif /* AVCODEC_AACCODER_H */
>
> This new header seems unrelated to this change?
>
>
> _______________________________________________
> 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".
Its meant to be in the previous commit.
[-- Attachment #1.1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 637 bytes --]
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
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".
prev parent reply other threads:[~2025-02-08 16:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 5:32 Lynne
2025-02-08 15:54 ` James Almer
2025-02-08 16:52 ` Lynne [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8fc9cada-f70f-4957-9e81-78702e6888b4@lynne.ee \
--to=dev@lynne.ee \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git