From: Marton Balint <cus@passwd.hu> To: Lynne via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH v2 8/8] aacdec: add a decoder for AAC USAC (xHE-AAC) Date: Sun, 19 May 2024 21:39:59 +0200 (CEST) Message-ID: <c5c1c122-1838-430d-59c8-16b2e9e892d0@passwd.hu> (raw) In-Reply-To: <20240519165444.829271-9-dev@lynne.ee> On Sun, 19 May 2024, Lynne via ffmpeg-devel wrote: > This commit adds a decoder for the frequency-domain part of USAC. > [...] > > +/* Finish later */ > +static const enum AVChannel usac_ch_pos_to_av[64] = { > + [0] = AV_CHAN_FRONT_LEFT, > + [1] = AV_CHAN_FRONT_RIGHT, > + [2] = AV_CHAN_FRONT_CENTER, > + [3] = AV_CHAN_LOW_FREQUENCY, > + [4] = AV_CHAN_BACK_LEFT, // unsure > + [5] = AV_CHAN_BACK_RIGHT, // unsure > + [6] = AV_CHAN_FRONT_LEFT_OF_CENTER, > + [7] = AV_CHAN_FRONT_RIGHT_OF_CENTER, > + [8] = 0, /* rear surround left is missing */ > + [9] = 0, /* rear surround right is missing */ > + [10] = AV_CHAN_BACK_CENTER, > + [11] = AV_CHAN_SURROUND_DIRECT_LEFT, > + [12] = AV_CHAN_SURROUND_DIRECT_RIGHT, > + [13] = AV_CHAN_SIDE_LEFT, // fairly sure > + [14] = AV_CHAN_SIDE_RIGHT, // fairly sure > + [15] = AV_CHAN_WIDE_LEFT, // somewhat confident > + [16] = AV_CHAN_WIDE_RIGHT, // somewhat confident > + [17] = AV_CHAN_TOP_FRONT_LEFT, > + [18] = AV_CHAN_TOP_FRONT_RIGHT, > + [19] = AV_CHAN_TOP_FRONT_CENTER, > + [20] = AV_CHAN_TOP_BACK_LEFT, > + [21] = AV_CHAN_TOP_BACK_RIGHT, > + [22] = AV_CHAN_TOP_BACK_CENTER, > + [23] = AV_CHAN_TOP_SIDE_LEFT, > + [24] = AV_CHAN_TOP_SIDE_RIGHT, > + [25] = AV_CHAN_TOP_CENTER, > + [26] = AV_CHAN_LOW_FREQUENCY, // actually LFE2 > + [27] = AV_CHAN_BOTTOM_FRONT_LEFT, > + [28] = AV_CHAN_BOTTOM_FRONT_RIGHT, > + [29] = AV_CHAN_BOTTOM_FRONT_CENTER, > + [30] = 0, /* top left surround is missing */ > + [31] = 0, /* top right surround is missing */ > +}; Some comment would be nice about the source of this table (which document, which table). It looks very similar to the ISO channel positons used in mov_chan. I think we follow this mapping in most cases: Left Surround is SIDE_LEFT Right Surround is SIDE_RIGHT Rear Surround Left is BACK_LEFT Rear Surround Right is BACK_RIGHT So in your table [4] and [5] should be SIDE, [8] and [9] should be BACK. [26] can be AV_CHAN_LOW_FREQUENCY_2, we do have that. Yes, Left/Right Surround and Left/Right Side Surround will be the same, but those are not present in commonly used layouts at the same time. Regards, Marton _______________________________________________ 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-19 19:40 UTC|newest] Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-05-19 16:54 [FFmpeg-devel] [PATCH v2 0/8] aacdec: add a native xHE-AAC decoder Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 1/8] aacdec: move from scalefactor ranged arrays to flat arrays Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 2/8] aacdec: expose channel layout related functions Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 3/8] aacdec: expose decode_tns Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 4/8] aacdec_dsp: implement 768-point transform and windowing Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 5/8] aactab: add deemphasis tables for USAC Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 6/8] aactab: add tables for the new USAC arithmetic coder Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 7/8] aactab: add new scalefactor offset tables for 96/768pt windows Lynne via ffmpeg-devel 2024-05-19 16:54 ` [FFmpeg-devel] [PATCH v2 8/8] aacdec: add a decoder for AAC USAC (xHE-AAC) Lynne via ffmpeg-devel 2024-05-19 19:39 ` Marton Balint [this message] 2024-05-19 19:50 ` Lynne via ffmpeg-devel 2024-05-21 7:16 ` Marton Balint 2024-05-21 17:58 ` Lynne via ffmpeg-devel 2024-05-21 19:40 ` Marton Balint 2024-05-21 19:52 ` Lynne via ffmpeg-devel 2024-05-21 20:12 ` Marton Balint 2024-05-21 21:33 ` Hendrik Leppkes 2024-05-21 22:09 ` Lynne via ffmpeg-devel 2024-05-22 20:15 ` Marton Balint 2024-05-22 20:25 ` Lynne via ffmpeg-devel 2024-05-19 23:19 ` Michael Niedermayer 2024-05-20 1:11 ` 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=c5c1c122-1838-430d-59c8-16b2e9e892d0@passwd.hu \ --to=cus@passwd.hu \ --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