Audacity 3.2.0
AVFormatFunctions.h
Go to the documentation of this file.
1/**********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 AVFormatFunctions.h
6
7 Dmitry Vedenko
8
9**********************************************************************/
10
11#pragma once
12
13#include <cstdint>
14
15#include "FFmpegTypes.h"
16
17struct FFMPEG_SUPPORT_API AVFormatFunctions
18{
20
21 int (*avformat_find_stream_info) (AVFormatContext *ic, AVDictionary **options) = nullptr;
22 int (*av_read_frame) (AVFormatContext *s, AVPacket *pkt) = nullptr;
23 int (*av_seek_frame) (AVFormatContext *s, int stream_index, int64_t timestamp, int flags) = nullptr;
24 void (*avformat_close_input) (AVFormatContext **s) = nullptr;
25 int (*avformat_write_header) (AVFormatContext *s, AVDictionary **options) = nullptr;
27 AVOutputFormat* (*av_oformat_next) (const AVOutputFormat *f) = nullptr;
28 AVStream* (*avformat_new_stream) (AVFormatContext *s, const AVCodec *c) = nullptr;
29 AVFormatContext* (*avformat_alloc_context) (void) = nullptr;
30 int (*av_write_trailer) (AVFormatContext *s) = nullptr;
31 unsigned int (*av_codec_get_tag) (const struct AVCodecTag * const *tags, AVCodecIDFwd id) = nullptr;
32 int (*avformat_open_input) (AVFormatContext **ic_ptr, const char *filename, const AVInputFormat *fmt, AVDictionary **options) = nullptr;
33 int64_t (*avio_size) (AVIOContext *s) = nullptr;
34 AVIOContext* (*avio_alloc_context) (unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int (*read_packet)(void *opaque, uint8_t *buf, int buf_size), int (*write_packet)(void *opaque, const uint8_t *buf, int buf_size), int64_t (*seek)(void *opaque, int64_t offset, int whence)) = nullptr;
35 AVOutputFormat* (*av_guess_format) (const char *short_name, const char *filename, const char *mime_type) = nullptr;
36 void (*avformat_free_context) (AVFormatContext *s) = nullptr;
37
38 // The following functions are not present in all library versions:
39 void (*av_register_all) (void) = nullptr;
40 void (*avio_context_free)(AVIOContext** s) = nullptr;
41 const AVOutputFormat* (*av_muxer_iterate)(void** opaque);
42};
int AVCodecIDFwd
Definition: AVCodecID.h:407
struct AVDictionary AVDictionary
Definition: FFmpegTypes.h:117
int id
int avformat_open_input(AVFormatContext **ps, const char *filename, AVInputFormat *fmt, AVDictionary **options)
unsigned int av_codec_get_tag(const struct AVCodecTag *const *tags, enum AVCodecID id)
int av_interleaved_write_frame(AVFormatContext *s, AVPacket *pkt)
int64_t avio_size(AVIOContext *s)
int av_read_frame(AVFormatContext *s, AVPacket *pkt)
int avformat_write_header(AVFormatContext *s, AVDictionary **options)
int av_write_trailer(AVFormatContext *s)
void av_register_all(void)
int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int flags)
void avformat_free_context(AVFormatContext *s)
int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
void avformat_close_input(AVFormatContext **s)
void avio_context_free(AVIOContext **s)
FFMPegVersion AVFormatVersion