World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Группы | |
Buffer sink accessors | |
Get the properties of the stream. | |
Файлы | |
файл | buffersink.h |
Классы | |
struct | AVBufferSinkParams |
struct | AVABufferSinkParams |
Определения типов | |
typedef struct AVBufferSinkParams | AVBufferSinkParams |
typedef struct AVABufferSinkParams | AVABufferSinkParams |
Функции | |
int | av_buffersink_get_frame_flags (AVFilterContext *ctx, AVFrame *frame, int flags) |
AVBufferSinkParams * | av_buffersink_params_alloc (void) |
AVABufferSinkParams * | av_abuffersink_params_alloc (void) |
void | av_buffersink_set_frame_size (AVFilterContext *ctx, unsigned frame_size) |
int | av_buffersink_get_frame (AVFilterContext *ctx, AVFrame *frame) |
int | av_buffersink_get_samples (AVFilterContext *ctx, AVFrame *frame, int nb_samples) |
typedef struct AVBufferSinkParams AVBufferSinkParams |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Struct to use for initializing a buffersink context.
typedef struct AVABufferSinkParams AVABufferSinkParams |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Struct to use for initializing an abuffersink context.
int av_buffersink_get_frame_flags | ( | AVFilterContext * | ctx, |
AVFrame * | frame, | ||
int | flags | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Get a frame with filtered data from sink and put it in frame.
ctx | pointer to a buffersink or abuffersink filter context. |
frame | pointer to an allocated frame that will be filled with data. The data must be freed using av_frame_unref() / av_frame_free() |
flags | a combination of AV_BUFFERSINK_FLAG_* flags |
AVBufferSinkParams* av_buffersink_params_alloc | ( | void | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Create an AVBufferSinkParams structure.
Must be freed with av_free().
AVABufferSinkParams* av_abuffersink_params_alloc | ( | void | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Create an AVABufferSinkParams structure.
Must be freed with av_free().
void av_buffersink_set_frame_size | ( | AVFilterContext * | ctx, |
unsigned | frame_size | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Set the frame size for an audio buffer sink.
All calls to av_buffersink_get_buffer_ref will return a buffer with exactly the specified number of samples, or AVERROR(EAGAIN) if there is not enough. The last buffer at EOF will be padded with 0.
int av_buffersink_get_frame | ( | AVFilterContext * | ctx, |
AVFrame * | frame | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Get a frame with filtered data from sink and put it in frame.
ctx | pointer to a context of a buffersink or abuffersink AVFilter. |
frame | pointer to an allocated frame that will be filled with data. The data must be freed using av_frame_unref() / av_frame_free() |
int av_buffersink_get_samples | ( | AVFilterContext * | ctx, |
AVFrame * | frame, | ||
int | nb_samples | ||
) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavfilter/buffersink.h>
Same as av_buffersink_get_frame(), but with the ability to specify the number of samples read. This function is less efficient than av_buffersink_get_frame(), because it copies the data around.
ctx | pointer to a context of the abuffersink AVFilter. |
frame | pointer to an allocated frame that will be filled with data. The data must be freed using av_frame_unref() / av_frame_free() frame will contain exactly nb_samples audio samples, except at the end of stream, when it can contain less than nb_samples. |