Audacity
3.2.0
libraries
lib-ffmpeg-support
AVUtilFunctions.h
Go to the documentation of this file.
1
/**********************************************************************
2
3
Audacity: A Digital Audio Editor
4
5
AVUtilFunctions.h
6
7
Dmitry Vedenko
8
9
**********************************************************************/
10
11
#pragma once
12
13
#include <cstdarg>
14
#include <cstdint>
15
16
#include "
FFmpegTypes.h
"
17
18
struct
FFMPEG_SUPPORT_API
AVUtilFunctions
19
{
20
FFMPegVersion
AVUtilVersion
;
21
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
;
26
AudacityAVDictionaryEntry
*
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
;
46
};
key
static const AudacityProject::AttachedObjects::RegisteredFactory key
Definition:
CommandManager.cpp:200
FFmpegTypes.h
AVDictionary
struct AVDictionary AVDictionary
Definition:
FFmpegTypes.h:117
AVSampleFormatFwd
int AVSampleFormatFwd
Definition:
FFmpegTypes.h:132
av_get_bytes_per_sample
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
av_free
void av_free(void *ptr)
av_log_set_callback
void av_log_set_callback(void(*callback)(void *, int, const char *, va_list))
av_dict_free
void av_dict_free(AVDictionary **m)
size
size_t size
Definition:
ffmpeg-2.3.6-single-header.h:412
av_strerror
int av_strerror(int errnum, char *errbuf, size_t errbuf_size)
av_log_default_callback
void av_log_default_callback(void *avcl, int level, const char *fmt, va_list vl)
av_dict_set
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
av_frame_free
void av_frame_free(AVFrame **frame)
av_samples_get_buffer_size
int av_samples_get_buffer_size(int *linesize, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align)
av_fifo_generic_read
int av_fifo_generic_read(AVFifoBuffer *f, void *dest, int buf_size, void(*func)(void *, void *, int))
av_fifo_size
int av_fifo_size(FF_CONST_AVUTIL53 AVFifoBuffer *f)
av_fifo_free
void av_fifo_free(AVFifoBuffer *f)
av_get_channel_layout_nb_channels
int av_get_channel_layout_nb_channels(uint64_t channel_layout)
av_dict_copy
void av_dict_copy(AVDictionary **dst, FF_CONST_AVUTIL53 AVDictionary *src, int flags)
av_get_default_channel_layout
int64_t av_get_default_channel_layout(int nb_channels)
av_fifo_generic_write
int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int(*func)(void *, void *, int))
av_rescale_q
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const
av_fifo_realloc2
int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size)
AVFifoBuffer
Definition:
ffmpeg-2.3.6-single-header.h:4912
AVFrame
Definition:
ffmpeg-2.3.6-single-header.h:1530
AVUtilFunctions
Definition:
AVUtilFunctions.h:19
AVUtilFunctions::AVUtilVersion
FFMPegVersion AVUtilVersion
Definition:
AVUtilFunctions.h:20
AudacityAVDictionaryEntry
Simply an overlay of AVDictionaryEntry, but we avoid including that type.
Definition:
FFmpegTypes.h:143
AudacityAVRational
Definition:
FFmpegTypes.h:137
FFMPegVersion
Definition:
FFmpegTypes.h:168
Generated by
1.9.3