FFmpeg
|
#include <stdint.h>
#include <stdio.h>
#include "libavutil/avstring.h"
#include "libavutil/common.h"
#include "libavutil/lfg.h"
#include "libavutil/libm.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
#include "libavutil/samplefmt.h"
#include "avresample.h"
Go to the source code of this file.
Macros | |
#define | PUT_FUNC(name, fmt, type, expr) |
#define | PUT_SAMPLE put_sample(data, sample_fmt, channels, k, ch, v); |
Functions | |
static double | dbl_rand (AVLFG *lfg) |
PUT_FUNC (u8, AV_SAMPLE_FMT_U8, uint8_t, av_clip_uint8(lrint(v_dbl *(1<< 7))+128)) | |
static void | audiogen (AVLFG *rnd, void **data, enum AVSampleFormat sample_fmt, int channels, int sample_rate, int nb_samples) |
int | main (int argc, char **argv) |
Variables | |
static enum AVSampleFormat | formats [] |
static const int | rates [] |
static const uint64_t | layouts [] |
Definition at line 40 of file avresample-test.c.
Referenced by audiogen().
|
static |
Definition at line 35 of file avresample-test.c.
Referenced by audiogen().
PUT_FUNC | ( | u8 | , |
AV_SAMPLE_FMT_U8 | , | ||
uint8_t | , | ||
av_clip_uint8(lrint(v_dbl *(1<< 7))+128) | |||
) |
Definition at line 53 of file avresample-test.c.
|
static |
Definition at line 81 of file avresample-test.c.
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 188 of file avresample-test.c.
|
static |
Definition at line 162 of file avresample-test.c.
Referenced by aeval_query_formats(), asink_query_formats(), avfilter_make_format64_list(), ff_add_format(), ff_formats_unref(), ff_make_format_list(), ff_merge_formats(), ff_merge_samplerates(), ff_set_common_samplerates(), filter_query_formats(), make_format_list(), query_formats(), reduce_formats_on_filter(), and vsink_query_formats().
|
static |
Definition at line 175 of file avresample-test.c.
Referenced by get_wb_bitrate_mode(), and query_formats().
|
static |
Definition at line 181 of file avresample-test.c.