forked from audacity/audacity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
196 additions
and
0 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
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
37 changes: 37 additions & 0 deletions
37
modules/import-export/mod-ffmpeg/lib-ffmpeg-support/impl/avcodec/61/AVCodecIDLookup.cpp
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
extern "C" | ||
{ | ||
#include "../../avutil/59/avconfig.h" | ||
#include "../../ffmpeg-7.0.0-single-header.h" | ||
} | ||
|
||
#include <algorithm> | ||
|
||
#include "AVCodecID.h" | ||
|
||
#include "../../FFmpegAPIResolver.h" | ||
|
||
#define AV_CODEC_ID_ESCAPE130_DEPRECATED AV_CODEC_ID_ESCAPE130 | ||
#define AV_CODEC_ID_G2M_DEPRECATED AV_CODEC_ID_G2M | ||
#define AV_CODEC_ID_WEBP_DEPRECATED AV_CODEC_ID_WEBP | ||
#define AV_CODEC_ID_HEVC_DEPRECATED AV_CODEC_ID_HEVC | ||
#define AV_CODEC_ID_PCM_S24LE_PLANAR_DEPRECATED AV_CODEC_ID_PCM_S24LE_PLANAR | ||
#define AV_CODEC_ID_PCM_S32LE_PLANAR_DEPRECATED AV_CODEC_ID_PCM_S32LE_PLANAR | ||
#define AV_CODEC_ID_OPUS_DEPRECATED AV_CODEC_ID_OPUS | ||
#define AV_CODEC_ID_TAK_DEPRECATED AV_CODEC_ID_TAK | ||
|
||
#define AV_CODEC_ID_VIMA AV_CODEC_ID_ADPCM_VIMA | ||
|
||
namespace avcodec_61 | ||
{ | ||
#include "../../AVCodecIDLookup.inl" | ||
|
||
const bool registered = ([]() { | ||
FFmpegAPIResolver::Get().AddAVCodecIDResolver(61, { | ||
&GetAVCodeID, | ||
&GetAudacityCodecID | ||
}); | ||
|
||
return true; | ||
})(); | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
modules/import-export/mod-ffmpeg/lib-ffmpeg-support/impl/avcodec/61/AVCodecImpl.cpp
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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
extern "C" | ||
{ | ||
#include "../../avutil/59/avconfig.h" | ||
#include "../../ffmpeg-7.0.0-single-header.h" | ||
} | ||
|
||
#include <cstring> | ||
#include <numeric> | ||
|
||
#include "float_cast.h" | ||
|
||
#include "FFmpegFunctions.h" | ||
|
||
#include "wrappers/AVCodecContextWrapper.h" | ||
#include "wrappers/AVCodecWrapper.h" | ||
#include "wrappers/AVPacketWrapper.h" | ||
|
||
#include "../../FFmpegAPIResolver.h" | ||
|
||
namespace avcodec_61 | ||
{ | ||
#include "../AVCodecContextWrapperImpl.inl" | ||
#include "../AVCodecWrapperImpl.inl" | ||
#include "../AVPacketWrapperImpl.inl" | ||
|
||
const bool registered = ([]() { | ||
FFmpegAPIResolver::Get().AddAVCodecFactories(61, { | ||
&CreateAVCodecContextWrapper, | ||
&CreateAVCodecContextWrapperFromCodec, | ||
&CreateAVCodecWrapper, | ||
&CreateAVPacketWrapper, | ||
}); | ||
|
||
return true; | ||
})(); | ||
} | ||
|
||
#include "FFmpegTypes.h" | ||
static_assert( | ||
AV_CODEC_FLAG_GLOBAL_HEADER == AUDACITY_AV_CODEC_FLAG_GLOBAL_HEADER | ||
&& AV_CODEC_CAP_SMALL_LAST_FRAME == AUDACITY_AV_CODEC_CAP_SMALL_LAST_FRAME | ||
&& AV_CODEC_FLAG_QSCALE == AUDACITY_AV_CODEC_FLAG_QSCALE | ||
, | ||
"FFmpeg constants don't match" | ||
); | ||
|
50 changes: 50 additions & 0 deletions
50
modules/import-export/mod-ffmpeg/lib-ffmpeg-support/impl/avformat/61/AVFormatImpl.cpp
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/********************************************************************** | ||
Audacity: A Digital Audio Editor | ||
AVFormatImpl.cpp | ||
Dmitry Vedenko | ||
**********************************************************************/ | ||
|
||
extern "C" | ||
{ | ||
#include "../../avutil/59/avconfig.h" | ||
#include "../../ffmpeg-7.0.0-single-header.h" | ||
} | ||
|
||
#include <cstring> | ||
|
||
#include "FFmpegFunctions.h" | ||
|
||
#include "wrappers/AVFormatContextWrapper.h" | ||
#include "wrappers/AVInputFormatWrapper.h" | ||
#include "wrappers/AVIOContextWrapper.h" | ||
#include "wrappers/AVOutputFormatWrapper.h" | ||
#include "wrappers/AVStreamWrapper.h" | ||
|
||
#include "wrappers/AVCodecWrapper.h" | ||
|
||
#include "../../FFmpegAPIResolver.h" | ||
|
||
namespace avformat_61 | ||
{ | ||
#include "../AVFormatContextWrapperImpl.inl" | ||
#include "../AVInputFormatWrapperImpl.inl" | ||
#include "../AVIOContextWrapperImpl.inl" | ||
#include "../AVOutputFormatWrapperImpl.inl" | ||
#include "../AVStreamWrapperImpl.inl" | ||
|
||
const bool registered = ([]() { | ||
FFmpegAPIResolver::Get().AddAVFormatFactories(61, { | ||
&CreateAVFormatContextWrapper, | ||
&CreateAVInputFormatWrapper, | ||
&CreateAVIOContextWrapper, | ||
&CreateAVOutputFormatWrapper, | ||
&CreateAVStreamWrapper, | ||
}); | ||
|
||
return true; | ||
})(); | ||
} |
44 changes: 44 additions & 0 deletions
44
modules/import-export/mod-ffmpeg/lib-ffmpeg-support/impl/avutil/59/AVUtilImpl.cpp
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/********************************************************************** | ||
Audacity: A Digital Audio Editor | ||
AVUtilImpl.cpp | ||
Dmitry Vedenko | ||
**********************************************************************/ | ||
|
||
extern "C" | ||
{ | ||
#include "../../avutil/59/avconfig.h" | ||
#include "../../ffmpeg-7.0.0-single-header.h" | ||
} | ||
|
||
#include <wx/log.h> | ||
|
||
#include "FFmpegFunctions.h" | ||
|
||
#include "wrappers/AVChannelLayoutWrapper.h" | ||
#include "wrappers/AVFrameWrapper.h" | ||
|
||
#include "../../FFmpegAPIResolver.h" | ||
#include "../../FFmpegLog.h" | ||
|
||
namespace avutil_59 | ||
{ | ||
#include "../AVChannelLayoutWrapperImpl.inl" | ||
#include "../AVFrameWrapperImpl.inl" | ||
#include "../FFmpegLogImpl.inl" | ||
|
||
const bool registered = ([]() { | ||
FFmpegAPIResolver::Get().AddAVUtilFactories(59, { | ||
&CreateAVFrameWrapper, | ||
&CreateLogCallbackSetter, | ||
&CreateDefaultChannelLayout, | ||
&CreateLegacyChannelLayout, | ||
&CreateAVChannelLayout | ||
}); | ||
|
||
return true; | ||
})(); | ||
} |
8 changes: 8 additions & 0 deletions
8
modules/import-export/mod-ffmpeg/lib-ffmpeg-support/impl/avutil/59/avconfig.h
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/* Generated by ffconf */ | ||
#ifndef AVUTIL_AVCONFIG_H | ||
#define AVUTIL_AVCONFIG_H | ||
#define AV_HAVE_BIGENDIAN 0 | ||
#define AV_HAVE_FAST_UNALIGNED 1 | ||
#define AV_HAVE_INCOMPATIBLE_LIBAV_ABI 0 | ||
#define AV_HAVE_INCOMPATIBLE_FORK_ABI 0 | ||
#endif /* AVUTIL_AVCONFIG_H */ |
File renamed without changes.
File renamed without changes.