Repository navigation
Conversation
…gg Opus demux Rebase Vorbis decode, Opus encode, and shared Ogg framing onto main's per-codec standalone LLEXT architecture: - Add shared incremental Ogg page/packet demuxer and Ogg page muxer (ffmpeg_dec-ogg.c/.h) linked only into the Opus and Vorbis decoder and Opus encoder LLEXTs via per-codec hooks (extract_packet/reset/free). - Add Ogg Opus stream detection (OpusHead/OpusTags header stripping and extradata staging) to ffmpeg_dec-opus.c while keeping raw Opus working. - Port Vorbis decoder (ffmpeg_dec_vorbis, UUID 1208cd52-7a82-4d71-b903-7346fbf64156) to standalone LLEXT with FFMPEG_MOD_MAX_EXTRADATA=16384 for Vorbis setup headers. - Port Opus encoder (ffmpeg_enc_opus, UUID 857d55e7-8b6b-4e3d-a6fb-91b78c928607) to standalone LLEXT (CELT/PVQ + Ogg encapsulation) with FFmpeg enc_psy mono/stereo fix. - Update Kconfig, built-in CMakeLists, LLEXT macro list handling, and topology2 compr configs/targets for Vorbis decode and Opus encode. Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds standalone per-codec LLEXT support for Vorbis decoding and Opus encoding, along with shared incremental Ogg page/packet framing and Ogg Opus demuxing in
ffmpeg_dec:ffmpeg_dec-ogg.c,ffmpeg_dec-ogg.h):ffmpeg_dec_opus,ffmpeg_dec_vorbis, andffmpeg_enc_opus.extract_packet,reset, andfreehooks tostruct ffmpeg_dec_codec_opsso non-Ogg standalone decoder LLEXTs do not reference Ogg symbols.ffmpeg_dec-opus.c):OggSstreams, parsesOpusHead/OpusTagsheaders, stagesOpusHeadas extradata, and extracts Ogg Opus packets viaffmpeg_dec_ogg_extract_packet(), while leaving raw/unframed Opus on the normal parser path.CONFIG_FFMPEG_DEC_VORBIS,ffmpeg_dec_vorbis, UUID1208cd52-7a82-4d71-b903-7346fbf64156):USE_FASTMATHLLEXT withMAX_EXTRADATA 16384(configurableFFMPEG_MOD_MAX_EXTRADATA) to hold Vorbis ID, canonical comment, and codebook setup headers, plus built-in heap bump (768 KB).CONFIG_FFMPEG_ENC_OPUS,ffmpeg_enc_opus, UUID857d55e7-8b6b-4e3d-a6fb-91b78c928607):USE_FASTMATHLLEXT supporting raw and Ogg-encapsulated Opus (OpusHead+OpusTags+ audio pages) withsupports_mono_downmix = trueandlibavcodec/opus/enc_psy.cmono/stereo fix._ffmpeg_add_decoder/_ffmpeg_add_encodermacrosrc_fileslist expansion inllext/CMakeLists.txtso multi-source LLEXTs link all per-codec sources cleanly.vorbisdecode andopusencode UUIDs and target definitions incompr-ffmpeg.conf,compr-capture-ffmpeg.conf, andtplg-targets.cmake.Commit
61797a2f0ffmpeg_dec: add standalone Vorbis decoder and Opus encoder LLEXTs + Ogg Opus demuxTesting
intel_adsp/ace30/ptl,CONFIG_COMP_FFMPEG_DEC=m,-DEXTRA_CFLAGS='-Werror',CONFIG_COMP_BT_CODEC=nlocally due to absentliblc3): passed; verified.sof_codec_infoand zero undefined FFmpeg/Ogg symbols inffmpeg_dec_opus.llext(696K),ffmpeg_dec_vorbis.llext(602K), andffmpeg_enc_opus.llext(592K).CONFIG_COMP_FFMPEG_DEC=m,CONFIG_COMP_FFMPEG_DEC_STUB=y,-DEXTRA_CFLAGS='-Werror'): passed (ffmpeg_dec.llext26K).CONFIG_COMP_FFMPEG_DEC=y,-DEXTRA_CFLAGS='-Werror'): passed.zephyr/scripts/checkpatch.pl --no-tree --max-line-length=100(0 errors, 0 warnings across 1656 lines) andscripts/check_kernel_includes.py --sources --strict(0 violations).24000rate support required inalsatplg/alsa-lib) and PTL hardware audio verification.