World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Functions for querying libavformat capabilities, allocating core structures, etc.
unsigned avformat_version | ( | void | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>
Return the LIBAVFORMAT_VERSION_INT constant.
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.
const char* avformat_license | ( | void | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavformat/avformat.h>
Return the libavformat license.
#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.
Используется в MPlayer::MPlayer().
attribute_deprecated void av_register_input_format | ( | AVInputFormat * | format | ) |
attribute_deprecated void av_register_output_format | ( | AVOutputFormat * | format | ) |
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.
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.
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.
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.
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.
opaque | a pointer where libavformat will store the iteration state. Must point to NULL to start the iteration. |
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.
opaque | a pointer where libavformat will store the iteration state. Must point to NULL to start the iteration. |
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().
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.
s | context to free |
#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.
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().
s | media file handle |
c | If 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. |
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.
st | stream |
type | side information type |
data | the side data array. It must be allocated with the av_malloc() family of functions. The ownership of the data is transferred to st. |
size | side information size |
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.
stream | stream |
type | desired side information type |
size | side information size |
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.
stream | stream |
type | desired side information type |
size | pointer for side information size to store (optional) |
AVProgram* av_new_program | ( | AVFormatContext * | s, |
int | id | ||
) |