-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from ko80/fix-audio-buf-size-memif
Fix audio buffer size + Rework of PCM16/24 support
- Loading branch information
Showing
8 changed files
with
296 additions
and
130 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
From fbb0700ea7bd9b055ae9e43746a7751be88a8955 Mon Sep 17 00:00:00 2001 | ||
From 496a92977701bd5f665afe6b8171208457418585 Mon Sep 17 00:00:00 2001 | ||
From: Konstantin Ilichev <[email protected]> | ||
Date: Wed, 21 Aug 2024 14:55:08 +0000 | ||
Date: Fri, 6 Sep 2024 18:33:01 +0000 | ||
Subject: [PATCH] Enable FFmpeg support in MCM | ||
|
||
--- | ||
configure | 9 +++++++++ | ||
libavdevice/Makefile | 5 +++++ | ||
libavdevice/alldevices.c | 5 +++++ | ||
3 files changed, 19 insertions(+) | ||
configure | 10 ++++++++++ | ||
libavdevice/Makefile | 6 ++++++ | ||
libavdevice/alldevices.c | 6 ++++++ | ||
3 files changed, 22 insertions(+) | ||
|
||
diff --git a/configure b/configure | ||
index 5af693c954..60caa4ebdf 100755 | ||
index ff11033a01..96c17b34c7 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -285,6 +285,7 @@ External library support: | ||
|
@@ -29,19 +29,20 @@ index 5af693c954..60caa4ebdf 100755 | |
libaom | ||
libaribcaption | ||
libass | ||
@@ -3567,6 +3569,11 @@ xwma_demuxer_select="riffdec" | ||
@@ -3568,6 +3570,12 @@ xwma_demuxer_select="riffdec" | ||
android_camera_indev_deps="android camera2ndk mediandk pthreads" | ||
alsa_indev_deps="alsa" | ||
alsa_outdev_deps="alsa" | ||
+mcm_indev_deps="libmcm_dp" | ||
+mcm_outdev_deps="libmcm_dp" | ||
+mcm_audio_indev_deps="libmcm_dp" | ||
+mcm_audio_outdev_deps="libmcm_dp" | ||
+mcm_audio_pcm16_indev_deps="libmcm_dp" | ||
+mcm_audio_pcm24_indev_deps="libmcm_dp" | ||
+mcm_audio_pcm16_outdev_deps="libmcm_dp" | ||
+mcm_audio_pcm24_outdev_deps="libmcm_dp" | ||
avfoundation_indev_deps="avfoundation corevideo coremedia pthreads" | ||
avfoundation_indev_suggest="coregraphics applicationservices" | ||
avfoundation_indev_extralibs="-framework Foundation" | ||
@@ -6692,6 +6699,8 @@ enabled libaribb24 && { check_pkg_config libaribb24 "aribb24 > 1.0.3" "ar | ||
@@ -6693,6 +6701,8 @@ enabled libaribb24 && { check_pkg_config libaribb24 "aribb24 > 1.0.3" "ar | ||
enabled libaribcaption && require_pkg_config libaribcaption "libaribcaption >= 1.1.1" "aribcaption/aribcaption.h" aribcc_context_alloc | ||
enabled lv2 && require_pkg_config lv2 lilv-0 "lilv/lilv.h" lilv_world_new | ||
enabled libiec61883 && require libiec61883 libiec61883/iec61883.h iec61883_cmp_connect -lraw1394 -lavc1394 -lrom1394 -liec61883 | ||
|
@@ -51,34 +52,36 @@ index 5af693c954..60caa4ebdf 100755 | |
enabled libbluray && require_pkg_config libbluray libbluray libbluray/bluray.h bd_open | ||
enabled libbs2b && require_pkg_config libbs2b libbs2b bs2b.h bs2b_open | ||
diff --git a/libavdevice/Makefile b/libavdevice/Makefile | ||
index c30449201d..62bda757c3 100644 | ||
index c30449201d..1d7c0d1a10 100644 | ||
--- a/libavdevice/Makefile | ||
+++ b/libavdevice/Makefile | ||
@@ -20,6 +20,11 @@ OBJS-$(CONFIG_AUDIOTOOLBOX_OUTDEV) += audiotoolbox.o | ||
@@ -20,6 +20,12 @@ OBJS-$(CONFIG_AUDIOTOOLBOX_OUTDEV) += audiotoolbox.o | ||
OBJS-$(CONFIG_AVFOUNDATION_INDEV) += avfoundation.o | ||
OBJS-$(CONFIG_BKTR_INDEV) += bktr.o | ||
OBJS-$(CONFIG_CACA_OUTDEV) += caca.o | ||
+OBJS-$(CONFIG_MCM_INDEV) += mcm_video_rx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_OUTDEV) += mcm_video_tx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_AUDIO_INDEV) += mcm_audio_rx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_AUDIO_OUTDEV) += mcm_audio_tx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_AUDIO_PCM16_INDEV) += mcm_audio_rx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_AUDIO_PCM24_INDEV) += mcm_audio_rx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_AUDIO_PCM16_OUTDEV) += mcm_audio_tx.o mcm_common.o | ||
+OBJS-$(CONFIG_MCM_AUDIO_PCM24_OUTDEV) += mcm_audio_tx.o mcm_common.o | ||
OBJS-$(CONFIG_DECKLINK_OUTDEV) += decklink_enc.o decklink_enc_c.o decklink_common.o | ||
OBJS-$(CONFIG_DECKLINK_INDEV) += decklink_dec.o decklink_dec_c.o decklink_common.o | ||
OBJS-$(CONFIG_DSHOW_INDEV) += dshow_crossbar.o dshow.o dshow_enummediatypes.o \ | ||
diff --git a/libavdevice/alldevices.c b/libavdevice/alldevices.c | ||
index 8a90fcb5d7..fe0eabdd67 100644 | ||
index 8a90fcb5d7..40c25ff009 100644 | ||
--- a/libavdevice/alldevices.c | ||
+++ b/libavdevice/alldevices.c | ||
@@ -25,6 +25,11 @@ | ||
@@ -25,6 +25,12 @@ | ||
/* devices */ | ||
extern const AVInputFormat ff_alsa_demuxer; | ||
extern const FFOutputFormat ff_alsa_muxer; | ||
+extern const AVInputFormat ff_mcm_demuxer; | ||
+extern const FFOutputFormat ff_mcm_muxer; | ||
+extern const AVInputFormat ff_mcm_audio_demuxer; | ||
+extern const FFOutputFormat ff_mcm_audio_muxer; | ||
+extern const AVInputFormat ff_mcm_audio_pcm16_demuxer; | ||
+extern const AVInputFormat ff_mcm_audio_pcm24_demuxer; | ||
+extern const FFOutputFormat ff_mcm_audio_pcm16_muxer; | ||
+extern const FFOutputFormat ff_mcm_audio_pcm24_muxer; | ||
extern const AVInputFormat ff_android_camera_demuxer; | ||
extern const FFOutputFormat ff_audiotoolbox_muxer; | ||
extern const AVInputFormat ff_avfoundation_demuxer; | ||
|
This file contains 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
This file contains 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
Oops, something went wrong.