Audacity 3.2.0
Go to the documentation of this file.
3 Audacity: A Digital Audio Editor
5 AVUtilFunctions.h
7 Dmitry Vedenko
11#pragma once
13#include <cstdarg>
14#include <cstdint>
16#include "FFmpegTypes.h"
18struct FFMPEG_SUPPORT_API AVUtilFunctions
22 void* (*av_malloc) (size_t size) = nullptr;
23 void (*av_free) (void *ptr) = nullptr;
24 char* (*av_strdup) (const char *ptr) = nullptr;
25 void (*av_dict_free) (AVDictionary **m) = nullptr;
27 (*av_dict_get) (const AVDictionary *m, const char *key, const AudacityAVDictionaryEntry *prev, int flags) = nullptr;
28 int (*av_dict_set) (AVDictionary **pm, const char *key, const char *value, int flags) = nullptr;
29 void (*av_dict_copy) (AVDictionary** dst, const AVDictionary* src, int flags) = nullptr;
30 int (*av_get_bytes_per_sample) (AVSampleFormatFwd sample_fmt) = nullptr;
31 void (*av_log_set_callback) (void (*cb)(void*, int, const char*, va_list)) = nullptr;
32 void (*av_log_default_callback) (void* ptr, int level, const char* fmt, va_list vl) = nullptr;
33 AVFifoBuffer* (*av_fifo_alloc) (unsigned int size) = nullptr;
34 int (*av_fifo_generic_read) (AVFifoBuffer *f, void *buf, int buf_size, void (*func)(void*, void*, int)) = nullptr;
35 int (*av_fifo_realloc2) (AVFifoBuffer *f, unsigned int size) = nullptr;
36 void (*av_fifo_free) (AVFifoBuffer *f) = nullptr;
37 int (*av_fifo_size) (const AVFifoBuffer *f) = nullptr;
38 int (*av_fifo_generic_write) (AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)) = nullptr;
39 int64_t (*av_rescale_q) (int64_t a, AudacityAVRational bq, AudacityAVRational cq) = nullptr;
40 AVFrame* (*av_frame_alloc) (void) = nullptr;
41 void (*av_frame_free) (AVFrame **frame) = nullptr;
42 int (*av_samples_get_buffer_size) (int *linesize, int nb_channels, int nb_samples, AVSampleFormatFwd sample_fmt, int align) = nullptr;
43 int64_t (*av_get_default_channel_layout) (int nb_channels) = nullptr;
44 int (*av_strerror) (int errnum, char *errbuf, size_t errbuf_size) = nullptr;
45 int (*av_get_channel_layout_nb_channels)(uint64_t channel_layout) = nullptr;
static const AudacityProject::AttachedObjects::RegisteredFactory key
struct AVDictionary AVDictionary
Definition: FFmpegTypes.h:117
int AVSampleFormatFwd
Definition: FFmpegTypes.h:132
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
void av_free(void *ptr)
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
void av_dict_free(AVDictionary **m)
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
void av_frame_free(AVFrame **frame)
int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align)
int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void(*func)(void *, void *, int))
int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f)
void av_fifo_free(AVFifoBuffer *f)
int av_get_channel_layout_nb_channels(uint64_t channel_layout)
void av_dict_copy(AVDictionary **dst, FF_CONST_AVUTIL53 AVDictionary *src, int flags)
int64_t av_get_default_channel_layout(int nb_channels)
int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int(*func)(void *, void *, int))
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const
int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size)
FFMPegVersion AVUtilVersion
Simply an overlay of AVDictionaryEntry, but we avoid including that type.
Definition: FFmpegTypes.h:143