From: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v3 09/10] aacdec: add a decoder for AAC USAC (xHE-AAC)
Date: Mon, 27 May 2024 19:36:23 +0200
Message-ID: <AS8P250MB0744A17249F9D4D9671AE7878FF02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20240525022813.2292001-10-dev@lynne.ee>
Lynne via ffmpeg-devel:
> This commit adds a decoder for the frequency-domain part of USAC.
>
> What works:
> - Mono
> - Stereo (no prediction)
> - Stereo (mid/side coding)
> - Stereo (complex prediction)
>
> What's left:
> - Speech coding
>
> Known issues:
> - Desync with certain sequences
> - Preroll crossover missing (shouldn't matter, bitrate adaptation only)
> ---
> libavcodec/aac/Makefile | 3 +-
> libavcodec/aac/aacdec.c | 188 +--
> libavcodec/aac/aacdec.h | 187 +++
> libavcodec/aac/aacdec_ac.c | 208 ++++
> libavcodec/aac/aacdec_ac.h | 54 +
> libavcodec/aac/aacdec_dsp_template.c | 4 +-
> libavcodec/aac/aacdec_latm.h | 14 +-
> libavcodec/aac/aacdec_lpd.c | 198 ++++
> libavcodec/aac/aacdec_lpd.h | 33 +
> libavcodec/aac/aacdec_usac.c | 1592 ++++++++++++++++++++++++++
> libavcodec/aac/aacdec_usac.h | 37 +
> libavcodec/aactab.c | 42 +
> libavcodec/aactab.h | 10 +
> 13 files changed, 2494 insertions(+), 76 deletions(-)
> create mode 100644 libavcodec/aac/aacdec_ac.c
> create mode 100644 libavcodec/aac/aacdec_ac.h
> create mode 100644 libavcodec/aac/aacdec_lpd.c
> create mode 100644 libavcodec/aac/aacdec_lpd.h
> create mode 100644 libavcodec/aac/aacdec_usac.c
> create mode 100644 libavcodec/aac/aacdec_usac.h
>
> +
> + if (samples) {
> + frame->nb_samples = samples;
> + frame->sample_rate = avctx->sample_rate;
> + frame->flags = indep_flag ? AV_FRAME_FLAG_KEY : 0x0;
> + *got_frame_ptr = 1;
> + } else {
> + av_frame_unref(ac->frame);
> + frame->flags = indep_flag ? AV_FRAME_FLAG_KEY : 0x0;
> + *got_frame_ptr = 0;
Doesn't this actually imply that you need to remove the intra-only flag
from the AAC codec descriptor (which would then also affect (de)muxers
and the encoders (which would need to be updated)?
> + }
> +
> + /* for dual-mono audio (SCE + SCE) */
> + is_dmono = ac->dmono_mode && sce_count == 2 &&
> + !av_channel_layout_compare(&ac->oc[1].ch_layout,
> + &(AVChannelLayout)AV_CHANNEL_LAYOUT_STEREO);
> + if (is_dmono) {
> + if (ac->dmono_mode == 1)
> + frame->data[1] = frame->data[0];
> + else if (ac->dmono_mode == 2)
> + frame->data[0] = frame->data[1];
> + }
> +
> + return 0;
> +}
_______________________________________________
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".
next prev parent reply other threads:[~2024-05-27 17:36 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-25 2:27 [FFmpeg-devel] [PATCH v3 00/10] aacdec: add a native xHE-AAC decoder Lynne via ffmpeg-devel
2024-05-25 2:27 ` [FFmpeg-devel] [PATCH v3 01/10] channel_layout: add new channel positions supported by xHE-AAC Lynne via ffmpeg-devel
2024-05-25 6:10 ` Marton Balint
2024-05-26 18:16 ` Lynne via ffmpeg-devel
2024-05-26 20:51 ` Marton Balint
2024-05-26 21:35 ` [FFmpeg-devel] [PATCH v4] fate: add tests for xHE-AAC Lynne via ffmpeg-devel
2024-05-26 21:37 ` [FFmpeg-devel] [PATCH v4 01/10] channel_layout: add new channel positions supported by xHE-AAC Lynne via ffmpeg-devel
2024-05-27 14:11 ` Jan Ekström
2024-05-27 19:31 ` Marton Balint
2024-05-28 21:20 ` Jan Ekström
2024-05-28 21:38 ` Marton Balint
2024-05-28 22:12 ` Lynne via ffmpeg-devel
2024-05-29 19:41 ` Marton Balint
2024-05-26 21:42 ` [FFmpeg-devel] [PATCH v3 " Lynne via ffmpeg-devel
2024-05-27 8:40 ` Anton Khirnov
2024-05-27 8:54 ` Lynne via ffmpeg-devel
2024-05-27 9:07 ` Anton Khirnov
2024-05-27 10:48 ` Lynne via ffmpeg-devel
2024-05-25 2:27 ` [FFmpeg-devel] [PATCH v3 02/10] aacdec: move from scalefactor ranged arrays to flat arrays Lynne via ffmpeg-devel
2024-05-25 2:27 ` [FFmpeg-devel] [PATCH v3 03/10] aacdec: expose channel layout related functions Lynne via ffmpeg-devel
2024-05-25 2:27 ` [FFmpeg-devel] [PATCH v3 04/10] aacdec: expose decode_tns Lynne via ffmpeg-devel
2024-05-25 2:27 ` [FFmpeg-devel] [PATCH v3 05/10] aacdec_dsp: implement 768-point transform and windowing Lynne via ffmpeg-devel
2024-05-25 2:27 ` [FFmpeg-devel] [PATCH v3 06/10] aactab: add deemphasis tables for USAC Lynne via ffmpeg-devel
2024-05-25 2:28 ` [FFmpeg-devel] [PATCH v3 07/10] aactab: add tables for the new USAC arithmetic coder Lynne via ffmpeg-devel
2024-05-25 2:28 ` [FFmpeg-devel] [PATCH v3 08/10] aactab: add new scalefactor offset tables for 96/768pt windows Lynne via ffmpeg-devel
2024-05-25 2:28 ` [FFmpeg-devel] [PATCH v3 09/10] aacdec: add a decoder for AAC USAC (xHE-AAC) Lynne via ffmpeg-devel
2024-05-27 17:36 ` Andreas Rheinhardt [this message]
2024-05-25 2:31 ` [FFmpeg-devel] [PATCH v3 10/10] fate: add tests for xHE-AAC Lynne via ffmpeg-devel
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=AS8P250MB0744A17249F9D4D9671AE7878FF02@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM \
--to=andreas.rheinhardt@outlook.com \
--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