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
3 changes: 2 additions & 1 deletion .github/workflows/cpp-ci-serial-programs-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
cd Arduino-Source
sudo apt update
sudo apt install ccache clang-tools libopencv-dev libsystemd-dev libsdl3-dev
sudo apt install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev

sudo apt install ./3rdPartyBinaries/libdpp-10.1.6-linux-x64.deb

Expand All @@ -112,7 +113,7 @@ jobs:
cd Arduino-Source
# libsodium, openssl@3, opus and pkgconf are libdpp's dependencies, installed here so
# their versions can go into the libdpp cache key below.
brew install opencv@4 onnxruntime ccache libsodium openssl@3 opus pkgconf sdl3
brew install opencv@4 onnxruntime ccache libsodium openssl@3 opus pkgconf sdl3 ffmpeg

brew tap-new --no-git PA/libdpp
brew trust PA/libdpp
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ SerialPrograms/bin/
.vscode
.qtcreator

# 3rdPartyBinaries
discord_social_sdk_win/
discord_partner_sdk.dll
3rdPartyBinaries/discord_social_sdk_mac/
3rdPartyBinaries/discord_social_sdk_linux/
3rdPartyBinaries/onnxruntime-osx-arm64-*/
3rdPartyBinaries/onnxruntime-osx-x86_64-*/

opencv_world4120.dll
opencv_world4120d.dll
3rdPartyBinaries/ffmpeg/*.dll

# macOS hidden system file
.DS_Store
Expand Down Expand Up @@ -59,8 +62,6 @@ SerialPrograms/*.lib
Resources/*
Packages/
SerialPrograms/CMakeLists.txt.user
opencv_world4120.dll
opencv_world4120d.dll

# Python cache
__pycache__
Expand Down
4 changes: 4 additions & 0 deletions 3rdParty/ffmpeg/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
LGPL build taken from:
https://github.com/btbn/ffmpeg-builds/releases/tag/autobuild-2026-10-13-13-05
version: "n9.0.2-27-g7e93014c5b-20261013"
ffmpeg-n9.0.2-27-g7e93014c5b-win64-lgpl-shared-9.0.zip
36 changes: 36 additions & 0 deletions 3rdParty/ffmpeg/libavcodec/ac3_parser.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/*
* AC-3 parser prototypes
* Copyright (c) 2003 Fabrice Bellard
* Copyright (c) 2003 Michael Niedermayer
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_AC3_PARSER_H
#define AVCODEC_AC3_PARSER_H

#include <stddef.h>
#include <stdint.h>

/**
* Extract the bitstream ID and the frame size from AC-3 data.
*/
int av_ac3_parse_header(const uint8_t *buf, size_t size,
uint8_t *bitstream_id, uint16_t *frame_size);


#endif /* AVCODEC_AC3_PARSER_H */
37 changes: 37 additions & 0 deletions 3rdParty/ffmpeg/libavcodec/adts_parser.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_ADTS_PARSER_H
#define AVCODEC_ADTS_PARSER_H

#include <stddef.h>
#include <stdint.h>

#define AV_AAC_ADTS_HEADER_SIZE 7

/**
* Extract the number of samples and frames from AAC data.
* @param[in] buf pointer to AAC data buffer
* @param[out] samples Pointer to where number of samples is written
* @param[out] frames Pointer to where number of frames is written
* @return Returns 0 on success, error code on failure.
*/
int av_adts_header_parse(const uint8_t *buf, uint32_t *samples,
uint8_t *frames);

#endif /* AVCODEC_ADTS_PARSER_H */
Loading
Loading