|
World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Audio sample format enumeration and related convenience functions. Подробнее...
Граф связей класса Audio sample formats:Функции | |
| const char * | av_get_sample_fmt_name (enum AVSampleFormat sample_fmt) |
| enum AVSampleFormat | av_get_sample_fmt (const char *name) |
| enum AVSampleFormat | av_get_alt_sample_fmt (enum AVSampleFormat sample_fmt, int planar) |
| enum AVSampleFormat | av_get_packed_sample_fmt (enum AVSampleFormat sample_fmt) |
| enum AVSampleFormat | av_get_planar_sample_fmt (enum AVSampleFormat sample_fmt) |
| char * | av_get_sample_fmt_string (char *buf, int buf_size, enum AVSampleFormat sample_fmt) |
| int | av_get_bytes_per_sample (enum AVSampleFormat sample_fmt) |
| int | av_sample_fmt_is_planar (enum AVSampleFormat sample_fmt) |
| int | av_samples_get_buffer_size (int *linesize, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align) |
Audio sample format enumeration and related convenience functions.
| enum AVSampleFormat |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Audio sample formats
См. определение в файле samplefmt.h строка 58
| const char* av_get_sample_fmt_name | ( | enum AVSampleFormat | sample_fmt | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Return the name of sample_fmt, or NULL if sample_fmt is not recognized.
| enum AVSampleFormat av_get_sample_fmt | ( | const char * | name | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Return a sample format corresponding to name, or AV_SAMPLE_FMT_NONE on error.
| enum AVSampleFormat av_get_alt_sample_fmt | ( | enum AVSampleFormat | sample_fmt, |
| int | planar | ||
| ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Return the planar<->packed alternative form of the given sample format, or AV_SAMPLE_FMT_NONE on error. If the passed sample_fmt is already in the requested planar/packed format, the format returned is the same as the input.
| enum AVSampleFormat av_get_packed_sample_fmt | ( | enum AVSampleFormat | sample_fmt | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Get the packed alternative form of the given sample format.
If the passed sample_fmt is already in packed format, the format returned is the same as the input.
| enum AVSampleFormat av_get_planar_sample_fmt | ( | enum AVSampleFormat | sample_fmt | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Get the planar alternative form of the given sample format.
If the passed sample_fmt is already in planar format, the format returned is the same as the input.
| char* av_get_sample_fmt_string | ( | char * | buf, |
| int | buf_size, | ||
| enum AVSampleFormat | sample_fmt | ||
| ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Generate a string corresponding to the sample format with sample_fmt, or a header if sample_fmt is negative.
| buf | the buffer where to write the string |
| buf_size | the size of buf |
| sample_fmt | the number of the sample format to print the corresponding info string, or a negative value to print the corresponding header. |
| int av_get_bytes_per_sample | ( | enum AVSampleFormat | sample_fmt | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Return number of bytes per sample.
| sample_fmt | the sample format |
| int av_sample_fmt_is_planar | ( | enum AVSampleFormat | sample_fmt | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Check if the sample format is planar.
| sample_fmt | the sample format to inspect |
| int av_samples_get_buffer_size | ( | int * | linesize, |
| int | nb_channels, | ||
| int | nb_samples, | ||
| enum AVSampleFormat | sample_fmt, | ||
| int | align | ||
| ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/samplefmt.h>
Get the required buffer size for the given audio parameters.
| [out] | linesize | calculated linesize, may be NULL |
| nb_channels | the number of channels | |
| nb_samples | the number of samples in a single channel | |
| sample_fmt | the sample format | |
| align | buffer size alignment (0 = default, 1 = no alignment) |