World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
Core functions
+ Граф связей класса Core functions:

Функции

unsigned avformat_version (void)
 
const char * avformat_configuration (void)
 
const char * avformat_license (void)
 
attribute_deprecated void av_register_all (void)
 
attribute_deprecated void av_register_input_format (AVInputFormat *format)
 
attribute_deprecated void av_register_output_format (AVOutputFormat *format)
 
int avformat_network_init (void)
 
int avformat_network_deinit (void)
 
attribute_deprecated AVInputFormatav_iformat_next (const AVInputFormat *f)
 
attribute_deprecated AVOutputFormatav_oformat_next (const AVOutputFormat *f)
 
const AVOutputFormatav_muxer_iterate (void **opaque)
 
const AVInputFormatav_demuxer_iterate (void **opaque)
 
AVFormatContextavformat_alloc_context (void)
 
void avformat_free_context (AVFormatContext *s)
 
const AVClassavformat_get_class (void)
 
AVStreamavformat_new_stream (AVFormatContext *s, const AVCodec *c)
 
int av_stream_add_side_data (AVStream *st, enum AVPacketSideDataType type, uint8_t *data, size_t size)
 
uint8_tav_stream_new_side_data (AVStream *stream, enum AVPacketSideDataType type, int size)
 
uint8_tav_stream_get_side_data (const AVStream *stream, enum AVPacketSideDataType type, int *size)
 
AVProgramav_new_program (AVFormatContext *s, int id)
 

Подробное описание

Functions for querying libavformat capabilities, allocating core structures, etc.

Функции

◆ avformat_version()

unsigned avformat_version ( void  )

◆ avformat_configuration()

const char* avformat_configuration ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Return the libavformat build-time configuration.

◆ avformat_license()

const char* avformat_license ( void  )

◆ av_register_all()

attribute_deprecated void av_register_all ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Initialize libavformat and register all the muxers, demuxers and protocols. If you do not call this function, then you can select exactly which formats you want to support.

См. также
av_register_input_format()
av_register_output_format()

Используется в MPlayer::MPlayer().

+ Граф вызова функции:

◆ av_register_input_format()

attribute_deprecated void av_register_input_format ( AVInputFormat format)

◆ av_register_output_format()

attribute_deprecated void av_register_output_format ( AVOutputFormat format)

◆ avformat_network_init()

int avformat_network_init ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Do global initialization of network libraries. This is optional, and not recommended anymore.

This functions only exists to work around thread-safety issues with older GnuTLS or OpenSSL libraries. If libavformat is linked to newer versions of those libraries, or if you do not use them, calling this function is unnecessary. Otherwise, you need to call this function before any other threads using them are started.

This function will be deprecated once support for older GnuTLS and OpenSSL libraries is removed, and this function has no purpose anymore.

◆ avformat_network_deinit()

int avformat_network_deinit ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Undo the initialization done by avformat_network_init. Call it only once for each time you called avformat_network_init.

◆ av_iformat_next()

attribute_deprecated AVInputFormat* av_iformat_next ( const AVInputFormat f)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

If f is NULL, returns the first registered input format, if f is non-NULL, returns the next registered input format after f or NULL if f is the last one.

◆ av_oformat_next()

attribute_deprecated AVOutputFormat* av_oformat_next ( const AVOutputFormat f)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

If f is NULL, returns the first registered output format, if f is non-NULL, returns the next registered output format after f or NULL if f is the last one.

◆ av_muxer_iterate()

const AVOutputFormat* av_muxer_iterate ( void **  opaque)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Iterate over all registered muxers.

Аргументы
opaquea pointer where libavformat will store the iteration state. Must point to NULL to start the iteration.
Возвращает
the next registered muxer or NULL when the iteration is finished

◆ av_demuxer_iterate()

const AVInputFormat* av_demuxer_iterate ( void **  opaque)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Iterate over all registered demuxers.

Аргументы
opaquea pointer where libavformat will store the iteration state. Must point to NULL to start the iteration.
Возвращает
the next registered demuxer or NULL when the iteration is finished

◆ avformat_alloc_context()

AVFormatContext* avformat_alloc_context ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Allocate an AVFormatContext. avformat_free_context() can be used to free the context and everything allocated by the framework within it.

Используется в Movie::LoadFromLOD() и AudioBufferDataSource::Open().

+ Граф вызова функции:

◆ avformat_free_context()

void avformat_free_context ( AVFormatContext s)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Free an AVFormatContext and all its streams.

Аргументы
scontext to free

◆ avformat_get_class()

const AVClass* avformat_get_class ( void  )

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Get the AVClass for AVFormatContext. It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.

См. также
av_opt_find().

◆ avformat_new_stream()

AVStream* avformat_new_stream ( AVFormatContext s,
const AVCodec c 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Add a new stream to a media file.

When demuxing, it is called by the demuxer in read_header(). If the flag AVFMTCTX_NOHEADER is set in s.ctx_flags, then it may also be called in read_packet().

When muxing, should be called by the user before avformat_write_header().

User is required to call avcodec_close() and avformat_free_context() to clean up the allocation by avformat_new_stream().

Аргументы
smedia file handle
cIf non-NULL, the AVCodecContext corresponding to the new stream will be initialized to use this codec. This is needed for e.g. codec-specific defaults to be set, so codec should be provided if it is known.
Возвращает
newly created stream or NULL on error.

◆ av_stream_add_side_data()

int av_stream_add_side_data ( AVStream st,
enum AVPacketSideDataType  type,
uint8_t data,
size_t  size 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Wrap an existing array as stream side data.

Аргументы
ststream
typeside information type
datathe side data array. It must be allocated with the av_malloc() family of functions. The ownership of the data is transferred to st.
sizeside information size
Возвращает
zero on success, a negative AVERROR code on failure. On failure, the stream is unchanged and the data remains owned by the caller.

◆ av_stream_new_side_data()

uint8_t* av_stream_new_side_data ( AVStream stream,
enum AVPacketSideDataType  type,
int  size 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Allocate new information from stream.

Аргументы
streamstream
typedesired side information type
sizeside information size
Возвращает
pointer to fresh allocated data or NULL otherwise

◆ av_stream_get_side_data()

uint8_t* av_stream_get_side_data ( const AVStream stream,
enum AVPacketSideDataType  type,
int *  size 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>

Get side information from stream.

Аргументы
streamstream
typedesired side information type
sizepointer for side information size to store (optional)
Возвращает
pointer to data if present or NULL otherwise

◆ av_new_program()