How cherry-embedded/cherryavp works
CherryAVP is a low-memory audio/video processing library for MCUs. Its documented audio workflow parses a container to identify stream data and decoder configuration, then decodes complete audio frames to PCM; callers can further convert sample rate, channels, or bit depth. Separate capabilities include audio front-end processing, effects, and MFCC extraction. The tree also contains container muxing and video-related format support, while the README recommends hardware video codecs. Several codec and format implementations are present in the tree but were not sampled, so their internal call links are not inferred.
Main entry points: audio_stream_demux.c Stream demux · audio_decode.c Frame decoder API · mp4_demux.c MP4 demux · audio_codec_common.h Audio frame contract
Components 24
Containers and streams
Audio codecs
- Frame decoder API
avcodec/src/audio_decode.c - AAC decoder
avcodec/src/aac_decode.c - FLAC decoder
avcodec/src/flac_decode.c - G.722 decoder
avcodec/src/g722_decode.c - Other audio decoders
avcodec/src - Audio frame contract
avcodec/inc/audio_codec_common.h
Audio processing
- Format conversion
avswresample/src/avp_swr.c - 3A front end
avfilter/src/avp_afe_3a.c - Howling suppression
avfilter/src/avp_afe_howling.c - Audio effects
avfilter/src - MFCC extraction
avmfcc/src/avp_mfcc.c
Shared runtime
- I/O abstraction
avutil/src/avp_io.c - Packet utilities
avutil/src/avp_packet.c - Bit reader
avutil/inc/avp_bitreader.h - Shared utilities
avutil/inc/avp_common.h
Other components
- Application
- Hardware video codecs
Connections 18
- Application → Stream demux: opens stream
README.md - Application → Frame decoder API: decodes frames
README.md - Stream demux → WAV demux: parses formats
- Stream demux → M4A demux: parses formats
- Stream demux → MP4 demux: parses formats
- Stream demux → AVI demux: parses formats
- Stream demux → OGG demux: parses formats
- Stream demux → Frame decoder API: provides configuration
README.md - Frame decoder API → Audio frame contract: uses frame contract
- Application → Format conversion: converts PCM
README.md - Application → 3A front end: processes audio
README.md - Application → Howling suppression: suppresses howling
README.md - Application → Audio effects: applies effects
README.md - Application → MFCC extraction: extracts features
README.md - Application → WAV mux: writes WAV
README.md - Application → Hardware video codecs: uses hardware codecs
README.md - MP4 demux → Bit reader: reads bits
avformat/src/mp4_demux.c - Audio frame contract → Packet utilities: references packet type
avcodec/inc/audio_codec_common.h