File: AVUtilFunctions.h

package info (click to toggle)
audacity 3.7.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 125,252 kB
  • sloc: cpp: 358,238; ansic: 75,458; lisp: 7,761; sh: 3,410; python: 1,503; xml: 1,385; perl: 854; makefile: 122
file content (41 lines) | stat: -rw-r--r-- 1,999 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**********************************************************************

  Audacity: A Digital Audio Editor

  AVUtilFunctions.h

  Dmitry Vedenko

**********************************************************************/

#pragma once

#include <cstdarg>
#include <cstdint>

#include "FFmpegTypes.h"

struct FFMPEG_SUPPORT_API AVUtilFunctions
{
   FFMPegVersion      AVUtilVersion;

   void*              (*av_malloc) (size_t size) = nullptr;
   void               (*av_free) (void *ptr) = nullptr;
   char*              (*av_strdup) (const char *ptr) = nullptr;
   void               (*av_dict_free) (AVDictionary **m) = nullptr;
   AudacityAVDictionaryEntry*
                      (*av_dict_get) (const AVDictionary *m, const char *key, const AudacityAVDictionaryEntry *prev, int flags) = nullptr;
   int                (*av_dict_set) (AVDictionary **pm, const char *key, const char *value, int flags) = nullptr;
   void               (*av_dict_copy) (AVDictionary** dst, const AVDictionary* src, int flags) = nullptr;
   int                (*av_get_bytes_per_sample) (AVSampleFormatFwd sample_fmt) = nullptr;
   void               (*av_log_set_callback) (void (*cb)(void*, int, const char*, va_list)) = nullptr;
   void               (*av_log_default_callback) (void* ptr, int level, const char* fmt, va_list vl) = nullptr;

   int64_t            (*av_rescale_q) (int64_t a, AudacityAVRational bq, AudacityAVRational cq) = nullptr;
   AVFrame*           (*av_frame_alloc) (void) = nullptr;
   void               (*av_frame_free) (AVFrame **frame) = nullptr;
   int                (*av_samples_get_buffer_size) (int *linesize, int nb_channels, int nb_samples, AVSampleFormatFwd sample_fmt, int align) = nullptr;
   int64_t            (*av_get_default_channel_layout) (int nb_channels) = nullptr;
   int                (*av_strerror) (int errnum, char *errbuf, size_t errbuf_size) = nullptr;
   void               (*av_channel_layout_default)(AVChannelLayout *layout, int nb_channels) = nullptr;
};