48 template <
typename _Tp1>
struct rebind
60 :
std::allocator<T>(a)
67 :
std::allocator<T>(a)
89 static std::shared_ptr<FFmpegFunctions>
Load(
bool fromUserPathOnly =
false);
94 static std::vector<wxString> GetSearchPaths(
bool fromUserPathOnly);
96 std::unique_ptr<AVIOContextWrapper> CreateAVIOContext()
const;
97 std::unique_ptr<AVFormatContextWrapper> CreateAVFormatContext()
const;
99 std::unique_ptr<AVStreamWrapper> CreateAVStreamWrapper(
AVStream* stream,
bool forEncoding)
const;
102 std::unique_ptr<AVPacketWrapper> CreateAVPacketWrapper()
const;
105 std::unique_ptr<AVFrameWrapper> CreateAVFrameWrapper()
const;
107 std::unique_ptr<AVInputFormatWrapper> CreateAVInputFormatWrapper(
AVInputFormat* inputFormat)
const;
108 std::unique_ptr<AVOutputFormatWrapper> CreateAVOutputFormatWrapper(
const AVOutputFormat* outputFormat)
const;
110 std::unique_ptr<AVCodecWrapper> CreateDecoder(
AVCodecIDFwd codecID)
const;
111 std::unique_ptr<AVCodecWrapper> CreateEncoder(
AVCodecIDFwd codecID)
const;
112 std::unique_ptr<AVCodecWrapper> CreateEncoder(
const char* codecName)
const;
114 std::unique_ptr<AVCodecContextWrapper> CreateAVCodecContextWrapper(
AVCodecContext* context)
const;
115 std::unique_ptr<AVCodecContextWrapper> CreateAVCodecContextWrapperFromCodec(std::unique_ptr<AVCodecWrapper> codec)
const;
117 std::unique_ptr<AVOutputFormatWrapper> GuessOutputFormat(
const char* short_name,
const char* filename,
const char* mime_type);
119 std::unique_ptr<AVChannelLayoutWrapper> CreateDefaultChannelLayout(
int channelsCount)
const;
120 std::unique_ptr<AVChannelLayoutWrapper> CreateLegacyChannelLayout(uint64_t layout,
int channelsCount)
const;
121 std::unique_ptr<AVChannelLayoutWrapper> CreateAVChannelLayout(
const AVChannelLayout* layout)
const;
123 const std::vector<const AVOutputFormatWrapper*>& GetOutputFormats()
const;
124 const std::vector<const AVCodecWrapper*>& GetCodecs()
const;
133 void FillCodecsList();
134 void FillOuptutFormatsList();
140 std::vector<std::unique_ptr<AVCodecWrapper>>
mCodecs;
151 return static_cast<pointer>(mFFmpeg->av_malloc(n *
sizeof(T)));
153 return static_cast<pointer>(::malloc(n *
sizeof(T)));
std::vector< T, AVAllocator< T > > AVDataBuffer
FFMPEG_SUPPORT_API StringSetting AVFormatPath
void deallocate(pointer p, size_type) noexcept
AVAllocator(const AVAllocator &a)
AVAllocator(const AVAllocator< U > &a)
std::shared_ptr< FFmpegFunctions > mFFmpeg
pointer allocate(size_type n) noexcept
Specialization of Setting for strings.
THEME_RESOURCES_API void Load()
AVAllocator< _Tp1 > other
AVDataBuffer< T > CreateMemoryBuffer(int preallocatedSize) const
std::vector< const AVOutputFormatWrapper * > mOutputFormatPointers
std::vector< const AVCodecWrapper * > mCodecPointers
std::vector< std::unique_ptr< AVCodecWrapper > > mCodecs
std::vector< std::unique_ptr< AVOutputFormatWrapper > > mOutputFormats
std::unique_ptr< Private > mPrivate