Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/audio/ffmpeg_dec/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ else()
if(CONFIG_FFMPEG_DEC_ALAW OR CONFIG_FFMPEG_DEC_MULAW OR CONFIG_COMP_FFMPEG_DEC_STUB)
add_local_sources(sof ffmpeg_dec-g711.c)
endif()
if(CONFIG_FFMPEG_DEC_VORBIS OR CONFIG_COMP_FFMPEG_DEC_STUB)
add_local_sources(sof ffmpeg_dec-vorbis.c)
endif()
if(CONFIG_FFMPEG_DEC_OPUS OR CONFIG_FFMPEG_DEC_VORBIS OR CONFIG_FFMPEG_ENC_OPUS OR CONFIG_COMP_FFMPEG_DEC_STUB)
add_local_sources(sof ffmpeg_dec-ogg.c)
endif()

if(CONFIG_COMP_FFMPEG_DEC_STUB)
add_local_sources(sof ffmpeg_dec-stub.c)
Expand Down Expand Up @@ -75,6 +81,9 @@ else()
if(CONFIG_FFMPEG_ENC_ALAW OR CONFIG_FFMPEG_ENC_MULAW)
add_local_sources(sof ffmpeg-enc-g711.c)
endif()
if(CONFIG_FFMPEG_ENC_OPUS)
add_local_sources(sof ffmpeg-enc-opus.c)
endif()
if(CONFIG_FFMPEG_FILTER)
add_local_sources(sof ffmpeg-filter.c)
endif()
Expand Down Expand Up @@ -126,6 +135,9 @@ else()
if(CONFIG_FFMPEG_ENC_ALAW OR CONFIG_FFMPEG_ENC_MULAW)
list(APPEND _ffmpeg_dec_sources ${CMAKE_CURRENT_SOURCE_DIR}/ffmpeg-enc-g711.c)
endif()
if(CONFIG_FFMPEG_ENC_OPUS)
list(APPEND _ffmpeg_dec_sources ${CMAKE_CURRENT_SOURCE_DIR}/ffmpeg-enc-opus.c)
endif()
if(CONFIG_FFMPEG_FILTER)
list(APPEND _ffmpeg_dec_sources ${CMAKE_CURRENT_SOURCE_DIR}/ffmpeg-filter.c)
endif()
Expand Down
21 changes: 19 additions & 2 deletions src/audio/ffmpeg_dec/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ config FFMPEG_DEC_MULAW
with no floating-point math dependency. Enables
--enable-decoder=pcm_mulaw in the libavcodec build.

config FFMPEG_DEC_VORBIS
bool "Ogg Vorbis decoder"
help
Ogg Vorbis decoder. Pulls in the single-precision float math layer.
Enables --enable-decoder=vorbis in the libavcodec build and Ogg
page/packet extraction for compress playback streams requesting
SND_AUDIOCODEC_VORBIS.

comment "FFmpeg encoders to build (footprint scales with selection)"

config FFMPEG_ENC_MP3
Expand Down Expand Up @@ -204,11 +212,20 @@ config FFMPEG_ENC_MULAW
pcm_mulaw encoder. Pure integer lookup with no floating-point math
dependency.

config FFMPEG_ENC_OPUS
bool "Opus encoder (native libavcodec CELT/PVQ)"
help
Opus encoder via native libavcodec opus encoder wrapped in Ogg Opus
framing (OpusHead + OpusTags + Ogg audio pages). Supports 48 kHz mono
and stereo streams. Pulls in the single-precision float math layer.
Selected at runtime for compress capture streams requesting
SND_AUDIOCODEC_OPUS_RAW.

# Selected automatically when any encoder is enabled. Gates compilation of the
# runtime encode path (ffmpeg-encode.c).
config FFMPEG_ENC
bool
default y if FFMPEG_ENC_MP3 || FFMPEG_ENC_AAC || FFMPEG_ENC_FLAC || FFMPEG_ENC_ALAC || FFMPEG_ENC_SBC || FFMPEG_ENC_G722 || FFMPEG_ENC_APTX || FFMPEG_ENC_APTX_HD || FFMPEG_ENC_G726 || FFMPEG_ENC_ALAW || FFMPEG_ENC_MULAW
default y if FFMPEG_ENC_MP3 || FFMPEG_ENC_AAC || FFMPEG_ENC_FLAC || FFMPEG_ENC_ALAC || FFMPEG_ENC_SBC || FFMPEG_ENC_G722 || FFMPEG_ENC_APTX || FFMPEG_ENC_APTX_HD || FFMPEG_ENC_G726 || FFMPEG_ENC_ALAW || FFMPEG_ENC_MULAW || FFMPEG_ENC_OPUS

comment "FFmpeg audio filters to build (libavfilter)"
depends on IPC_MAJOR_4
Expand Down Expand Up @@ -268,7 +285,7 @@ endchoice
# built. Gates compilation of the fast single-precision libm (fastmathf.c).
config FFMPEG_DEC_FLOAT_MATH
bool
default y if FFMPEG_DEC_AAC || FFMPEG_DEC_OPUS || FFMPEG_DEC_MP3 || FFMPEG_BUILD_AVFILTER
default y if FFMPEG_DEC_AAC || FFMPEG_DEC_OPUS || FFMPEG_DEC_MP3 || FFMPEG_DEC_VORBIS || FFMPEG_ENC_OPUS || FFMPEG_BUILD_AVFILTER

config FFMPEG_DEC_COLD_SPLIT
bool "Place cold FFmpeg code (av_cold init/setup) in DRAM [EXPERIMENTAL]"
Expand Down
Loading
Loading