filtfmts.c File Reference
#include <stdio.h>
#include "libavformat/avformat.h"
#include "libavutil/pixdesc.h"
#include "libavutil/samplefmt.h"
#include "libavfilter/avfilter.h"
#include "libavfilter/formats.h"
Include dependency graph for filtfmts.c:

Go to the source code of this file.

Macros

#define PRINT_FMTS(inout, outin, INOUT)
 

Functions

static void print_formats (AVFilterContext *filter_ctx)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define PRINT_FMTS (   inout,
  outin,
  INOUT 
)
Value:
for (i = 0; i < filter_ctx->inout##put_count; i++) { \
if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_VIDEO) { \
filter_ctx->inout##puts[i]->outin##_formats; \
for (j = 0; j < fmts->format_count; j++) \
if(av_get_pix_fmt_name(fmts->formats[j])) \
printf(#INOUT "PUT[%d] %s: fmt:%s\n", \
i, filter_ctx->filter->inout##puts[i].name, \
av_get_pix_fmt_name(fmts->formats[j])); \
} else if (filter_ctx->inout##puts[i]->type == AVMEDIA_TYPE_AUDIO) { \
\
fmts = filter_ctx->inout##puts[i]->outin##_formats; \
for (j = 0; j < fmts->format_count; j++) \
printf(#INOUT "PUT[%d] %s: fmt:%s\n", \
i, filter_ctx->filter->inout##puts[i].name, \
av_get_sample_fmt_name(fmts->formats[j])); \
\
layouts = filter_ctx->inout##puts[i]->outin##_channel_layouts; \
for (j = 0; j < layouts->nb_channel_layouts; j++) { \
char buf[256]; \
av_get_channel_layout_string(buf, sizeof(buf), -1, \
layouts->channel_layouts[j]); \
printf(#INOUT "PUT[%d] %s: chlayout:%s\n", \
i, filter_ctx->filter->inout##puts[i].name, buf); \
} \
} \
} \
initialize output if(nPeaks >3)%at least 3 peaks in spectrum for trying to find f0 nf0peaks
struct AVFilterChannelLayouts AVFilterChannelLayouts
A list of supported channel layouts.
const char * av_get_sample_fmt_name(enum AVSampleFormat sample_fmt)
Return the name of sample_fmt, or NULL if sample_fmt is not recognized.
Definition: samplefmt.c:47
void * buf
Definition: avisynth_c.h:594
synthesis window for stochastic i
enum MovChannelLayoutTag * layouts
Definition: mov_chan.c:434
printf("static const uint8_t my_array[100] = {\n")
const char * av_get_pix_fmt_name(enum AVPixelFormat pix_fmt)
Return the short name for a pixel format, NULL in case pix_fmt is unknown.
Definition: pixdesc.c:1700
for(j=16;j >0;--j)
void av_get_channel_layout_string(char *buf, int buf_size, int nb_channels, uint64_t channel_layout)
Return a description of a channel layout.
struct AVFilterFormats AVFilterFormats
Definition: avfilter.h:66

Referenced by print_formats().

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 68 of file filtfmts.c.

static void print_formats ( AVFilterContext filter_ctx)
static

Definition at line 29 of file filtfmts.c.

Referenced by main().