Data Structures | Defines | Functions | Variables

libavfilter/vf_format.c File Reference

format and noformat video filters More...

#include "libavutil/pixdesc.h"
#include "avfilter.h"

Go to the source code of this file.

Data Structures

struct  FormatContext

Defines

#define PIX_FMT_NAME_MAXSIZE   32

Functions

static av_cold int init (AVFilterContext *ctx, const char *args, void *opaque)
static AVFilterFormatsmake_format_list (FormatContext *format, int flag)
static int query_formats_format (AVFilterContext *ctx)
static int query_formats_noformat (AVFilterContext *ctx)

Variables

AVFilter avfilter_vf_format
AVFilter avfilter_vf_noformat

Detailed Description

format and noformat video filters

Definition in file vf_format.c.


Define Documentation

#define PIX_FMT_NAME_MAXSIZE   32

Definition at line 37 of file vf_format.c.

Referenced by init().


Function Documentation

static av_cold int init ( AVFilterContext ctx,
const char *  args,
void *  opaque 
) [static]

Definition at line 39 of file vf_format.c.

static AVFilterFormats* make_format_list ( FormatContext format,
int  flag 
) [static]

Definition at line 73 of file vf_format.c.

Referenced by query_formats_format(), and query_formats_noformat().

static int query_formats_format ( AVFilterContext ctx  )  [static]

Definition at line 89 of file vf_format.c.

static int query_formats_noformat ( AVFilterContext ctx  )  [static]

Definition at line 119 of file vf_format.c.


Variable Documentation

Initial value:
 {
    .name      = "format",
    .description = NULL_IF_CONFIG_SMALL("Convert the input video to one of the specified pixel formats."),

    .init      = init,

    .query_formats = query_formats_format,

    .priv_size = sizeof(FormatContext),

    .inputs    = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO,
                                    .get_video_buffer= avfilter_null_get_video_buffer,
                                    .start_frame     = avfilter_null_start_frame,
                                    .draw_slice      = avfilter_null_draw_slice,
                                    .end_frame       = avfilter_null_end_frame, },
                                  { .name = NULL}},
    .outputs   = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO },
                                  { .name = NULL}},
}

Definition at line 95 of file vf_format.c.

Initial value:
 {
    .name      = "noformat",
    .description = NULL_IF_CONFIG_SMALL("Force libavfilter not to use any of the specified pixel formats for the input to the next filter."),

    .init      = init,

    .query_formats = query_formats_noformat,

    .priv_size = sizeof(FormatContext),

    .inputs    = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO,
                                    .get_video_buffer= avfilter_null_get_video_buffer,
                                    .start_frame     = avfilter_null_start_frame,
                                    .draw_slice      = avfilter_null_draw_slice,
                                    .end_frame       = avfilter_null_end_frame, },
                                  { .name = NULL}},
    .outputs   = (AVFilterPad[]) {{ .name            = "default",
                                    .type            = AVMEDIA_TYPE_VIDEO },
                                  { .name = NULL}},
}

Definition at line 125 of file vf_format.c.