World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Группы | |
Pixel formats | |
Functions for working with pixel formats. | |
FFT functions | |
Классы | |
struct | AVBitStreamFilterContext |
struct | AVBSFContext |
struct | AVBitStreamFilter |
Определения типов | |
typedef struct AVBitStreamFilterContext | AVBitStreamFilterContext |
typedef struct AVBSFInternal | AVBSFInternal |
typedef struct AVBSFContext | AVBSFContext |
typedef struct AVBitStreamFilter | AVBitStreamFilter |
typedef struct AVBSFList | AVBSFList |
Перечисления | |
enum | AVLockOp { AV_LOCK_CREATE, AV_LOCK_OBTAIN, AV_LOCK_RELEASE, AV_LOCK_DESTROY } |
Miscellaneous utility functions related to both encoding and decoding (or neither).
typedef struct AVBitStreamFilterContext AVBitStreamFilterContext |
typedef struct AVBSFInternal AVBSFInternal |
typedef struct AVBSFContext AVBSFContext |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
The bitstream filter state.
This struct must be allocated with av_bsf_alloc() and freed with av_bsf_free().
The fields in the struct will only be changed (by the caller or by the filter) as described in their documentation, and are to be considered immutable otherwise.
typedef struct AVBitStreamFilter AVBitStreamFilter |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Structure for chain/list of bitstream filters. Empty list can be allocated by av_bsf_list_alloc().
enum AVLockOp |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Lock operation used by lockmgr
Элементы перечислений | |
---|---|
AV_LOCK_CREATE | Create a mutex. |
AV_LOCK_OBTAIN | Lock the mutex. |
AV_LOCK_RELEASE | Unlock the mutex. |
AV_LOCK_DESTROY | Free mutex resources. |
См. определение в файле avcodec.h строка 6129
attribute_deprecated size_t av_get_codec_tag_string | ( | char * | buf, |
size_t | buf_size, | ||
unsigned int | codec_tag | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Put a string representing the codec tag codec_tag in buf.
buf | buffer to place codec tag in |
buf_size | size in bytes of buf |
codec_tag | codec tag to assign |
void avcodec_string | ( | char * | buf, |
int | buf_size, | ||
AVCodecContext * | enc, | ||
int | encode | ||
) |
const char* av_get_profile_name | ( | const AVCodec * | codec, |
int | profile | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Return a name for the specified profile, if available.
codec | the codec that is searched for the given profile |
profile | the profile value for which a name is requested |
const char* avcodec_profile_name | ( | enum AVCodecID | codec_id, |
int | profile | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Return a name for the specified profile, if available.
codec_id | the ID of the codec to which the requested profile belongs |
profile | the profile value for which a name is requested |
int avcodec_default_execute | ( | AVCodecContext * | c, |
int(*)(AVCodecContext *c2, void *arg2) | func, | ||
void * | arg, | ||
int * | ret, | ||
int | count, | ||
int | size | ||
) |
int avcodec_default_execute2 | ( | AVCodecContext * | c, |
int(*)(AVCodecContext *c2, void *arg2, int, int) | func, | ||
void * | arg, | ||
int * | ret, | ||
int | count | ||
) |
int avcodec_fill_audio_frame | ( | AVFrame * | frame, |
int | nb_channels, | ||
enum AVSampleFormat | sample_fmt, | ||
const uint8_t * | buf, | ||
int | buf_size, | ||
int | align | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Fill AVFrame audio data and linesize pointers.
The buffer buf must be a preallocated buffer with a size big enough to contain the specified samples amount. The filled AVFrame data pointers will point to this buffer.
AVFrame extended_data channel pointers are allocated if necessary for planar audio.
frame | the AVFrame frame->nb_samples must be set prior to calling the function. This function fills in frame->data, frame->extended_data, frame->linesize[0]. |
nb_channels | channel count |
sample_fmt | sample format |
buf | buffer to use for frame data |
buf_size | size of buffer |
align | plane size sample alignment (0 = default) |
void avcodec_flush_buffers | ( | AVCodecContext * | avctx | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Reset the internal decoder state / flush internal buffers. Should be called e.g. when seeking or when switching to a different stream.
Используется в AVStreamWrapper::reset().
int av_get_bits_per_sample | ( | enum AVCodecID | codec_id | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Return codec bits per sample.
[in] | codec_id | the codec |
enum AVCodecID av_get_pcm_codec | ( | enum AVSampleFormat | fmt, |
int | be | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Return the PCM codec associated with a sample format.
be | endianness, 0 for little, 1 for big, -1 (or anything else) for native |
int av_get_exact_bits_per_sample | ( | enum AVCodecID | codec_id | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Return codec bits per sample. Only return non-zero if the bits per sample is exactly correct, not an approximation.
[in] | codec_id | the codec |
int av_get_audio_frame_duration | ( | AVCodecContext * | avctx, |
int | frame_bytes | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Return audio frame duration.
avctx | codec context |
frame_bytes | size of the frame, or 0 if unknown |
int av_get_audio_frame_duration2 | ( | AVCodecParameters * | par, |
int | frame_bytes | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
This function is the same as av_get_audio_frame_duration(), except it works with AVCodecParameters instead of an AVCodecContext.
attribute_deprecated void av_register_bitstream_filter | ( | AVBitStreamFilter * | bsf | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
attribute_deprecated AVBitStreamFilterContext* av_bitstream_filter_init | ( | const char * | name | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
attribute_deprecated int av_bitstream_filter_filter | ( | AVBitStreamFilterContext * | bsfc, |
AVCodecContext * | avctx, | ||
const char * | args, | ||
uint8_t ** | poutbuf, | ||
int * | poutbuf_size, | ||
const uint8_t * | buf, | ||
int | buf_size, | ||
int | keyframe | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
attribute_deprecated void av_bitstream_filter_close | ( | AVBitStreamFilterContext * | bsf | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
const attribute_deprecated AVBitStreamFilter* av_bitstream_filter_next | ( | const AVBitStreamFilter * | f | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
const AVBitStreamFilter* av_bsf_get_by_name | ( | const char * | name | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
const AVBitStreamFilter* av_bsf_iterate | ( | void ** | opaque | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Iterate over all registered bitstream filters.
opaque | a pointer where libavcodec will store the iteration state. Must point to NULL to start the iteration. |
const attribute_deprecated AVBitStreamFilter* av_bsf_next | ( | void ** | opaque | ) |
int av_bsf_alloc | ( | const AVBitStreamFilter * | filter, |
AVBSFContext ** | ctx | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Allocate a context for a given bitstream filter. The caller must fill in the context parameters as described in the documentation and then call av_bsf_init() before sending any data to the filter.
filter | the filter for which to allocate an instance. |
ctx | a pointer into which the pointer to the newly-allocated context will be written. It must be freed with av_bsf_free() after the filtering is done. |
int av_bsf_init | ( | AVBSFContext * | ctx | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Prepare the filter for use, after all the parameters and options have been set.
int av_bsf_send_packet | ( | AVBSFContext * | ctx, |
AVPacket * | pkt | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Submit a packet for filtering.
After sending each packet, the filter must be completely drained by calling av_bsf_receive_packet() repeatedly until it returns AVERROR(EAGAIN) or AVERROR_EOF.
pkt | the packet to filter. The bitstream filter will take ownership of the packet and reset the contents of pkt. pkt is not touched if an error occurs. This parameter may be NULL, which signals the end of the stream (i.e. no more packets will be sent). That will cause the filter to output any packets it may have buffered internally. |
int av_bsf_receive_packet | ( | AVBSFContext * | ctx, |
AVPacket * | pkt | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Retrieve a filtered packet.
[out] | pkt | this struct will be filled with the contents of the filtered packet. It is owned by the caller and must be freed using av_packet_unref() when it is no longer needed. This parameter should be "clean" (i.e. freshly allocated with av_packet_alloc() or unreffed with av_packet_unref()) when this function is called. If this function returns successfully, the contents of pkt will be completely overwritten by the returned data. On failure, pkt is not touched. |
void av_bsf_flush | ( | AVBSFContext * | ctx | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Reset the internal bitstream filter state / flush internal buffers.
void av_bsf_free | ( | AVBSFContext ** | ctx | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Free a bitstream filter context and everything associated with it; write NULL into the supplied pointer.
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Get the AVClass for AVBSFContext. It can be used in combination with AV_OPT_SEARCH_FAKE_OBJ for examining options.
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Allocate empty list of bitstream filters. The list must be later freed by av_bsf_list_free() or finalized by av_bsf_list_finalize().
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Free list of bitstream filters.
lst | Pointer to pointer returned by av_bsf_list_alloc() |
int av_bsf_list_append | ( | AVBSFList * | lst, |
AVBSFContext * | bsf | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Append bitstream filter to the list of bitstream filters.
lst | List to append to |
bsf | Filter context to be appended |
int av_bsf_list_append2 | ( | AVBSFList * | lst, |
const char * | bsf_name, | ||
AVDictionary ** | options | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Construct new bitstream filter context given it's name and options and append it to the list of bitstream filters.
lst | List to append to |
bsf_name | Name of the bitstream filter |
options | Options for the bitstream filter, can be set to NULL |
int av_bsf_list_finalize | ( | AVBSFList ** | lst, |
AVBSFContext ** | bsf | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Finalize list of bitstream filters.
This function will transform AVBSFList to single AVBSFContext, so the whole chain of bitstream filters can be treated as single filter freshly allocated by av_bsf_alloc(). If the call is successful, AVBSFList structure is freed and lst will be set to NULL. In case of failure, caller is responsible for freeing the structure by av_bsf_list_free()
lst | Filter list structure to be transformed | |
[out] | bsf | Pointer to be set to newly created AVBSFContext structure representing the chain of bitstream filters |
int av_bsf_list_parse_str | ( | const char * | str, |
AVBSFContext ** | bsf | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Parse string describing list of bitstream filters and create single AVBSFContext describing the whole chain of bitstream filters. Resulting AVBSFContext can be treated as any other AVBSFContext freshly allocated by av_bsf_alloc().
str | String describing chain of bitstream filters in format bsf1[=opt1=val1:opt2=val2][,bsf2] | |
[out] | bsf | Pointer to be set to newly created AVBSFContext structure representing the chain of bitstream filters |
int av_bsf_get_null_filter | ( | AVBSFContext ** | bsf | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Get null/pass-through bitstream filter.
[out] | bsf | Pointer to be set to new instance of pass-through bitstream filter |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Same behaviour av_fast_malloc but the buffer has additional AV_INPUT_BUFFER_PADDING_SIZE at the end which will always be 0.
In addition the whole buffer will initially and after resizes be 0-initialized so that no uninitialized data will ever appear.
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Same behaviour av_fast_padded_malloc except that buffer will always be 0-initialized after call.
unsigned int av_xiphlacing | ( | unsigned char * | s, |
unsigned int | v | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Encode extradata length to a buffer. Used by xiph codecs.
s | buffer to write to; must be at least (v/255+1) bytes long |
v | size of extradata in bytes |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Register the hardware accelerator hwaccel.
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
If hwaccel is NULL, returns the first registered hardware accelerator, if hwaccel is non-NULL, returns the next registered hardware accelerator after hwaccel, or NULL if hwaccel is the last one.
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Register a user provided lock manager supporting the operations specified by AVLockOp. The "mutex" argument to the function points to a (void *) where the lockmgr should store/get a pointer to a user allocated mutex. It is NULL upon AV_LOCK_CREATE and equal to the value left by the last call for all other ops. If the lock manager is unable to perform the op then it should leave the mutex in the same state as when it was called and return a non-zero value. However, when called with AV_LOCK_DESTROY the mutex will always be assumed to have been successfully destroyed. If av_lockmgr_register succeeds it will return a non-negative value, if it fails it will return a negative value and destroy all mutex and unregister all callbacks. av_lockmgr_register is not thread-safe, it must be called from a single thread before any calls which make use of locking are used.
cb | User defined callback. av_lockmgr_register invokes calls to this callback and the previously registered callback. The callback will be used to create more than one mutex each of which must be backed by its own underlying locking mechanism (i.e. do not use a single static object to implement your lock manager). If cb is set to NULL the lockmgr will be unregistered. |
enum AVMediaType avcodec_get_type | ( | enum AVCodecID | codec_id | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Get the type of the given codec.
const char* avcodec_get_name | ( | enum AVCodecID | id | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Get the name of a codec.
int avcodec_is_open | ( | AVCodecContext * | s | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
int av_codec_is_encoder | ( | const AVCodec * | codec | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
int av_codec_is_decoder | ( | const AVCodec * | codec | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
const AVCodecDescriptor* avcodec_descriptor_get | ( | enum AVCodecID | id | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
const AVCodecDescriptor* avcodec_descriptor_next | ( | const AVCodecDescriptor * | prev | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Iterate over all codec descriptors known to libavcodec.
prev | previous descriptor. NULL to get the first descriptor. |
const AVCodecDescriptor* avcodec_descriptor_get_by_name | ( | const char * | name | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
AVCPBProperties* av_cpb_properties_alloc | ( | size_t * | size | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavcodec/avcodec.h>
Allocate a CPB properties structure and initialize its fields to default values.
size | if non-NULL, the size of the allocated struct will be written here. This is useful for embedding it in side data. |