Data Structures | Macros | Functions | Variables
noise_bsf.c File Reference
#include <stdlib.h>
#include "bsf.h"
#include "bsf_internal.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  NoiseContext


#define OFFSET(x)   offsetof(NoiseContext, x)


static int noise (AVBSFContext *ctx, AVPacket *pkt)


static const AVOption options []
static const AVClass noise_class
const AVBitStreamFilter ff_noise_bsf

Macro Definition Documentation

#define OFFSET (   x)    offsetof(NoiseContext, x)

Definition at line 70 of file noise_bsf.c.

Definition at line 71 of file noise_bsf.c.

Function Documentation

static int noise ( AVBSFContext ctx,
AVPacket pkt 

Variable Documentation

const AVOption options[]
Initial value:
= {
{ "amount", NULL, OFFSET(amount), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS },
{ "dropamount", NULL, OFFSET(dropamount), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, FLAGS },
{ NULL },
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
Definition: noise_bsf.c:70
#define FLAGS
Definition: noise_bsf.c:71

Definition at line 72 of file noise_bsf.c.

const AVClass noise_class
Initial value:
= {
.class_name = "noise",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
static const AVOption options[]
Definition: noise_bsf.c:72

Definition at line 78 of file noise_bsf.c.

const AVBitStreamFilter ff_noise_bsf
Initial value:
= {
.name = "noise",
.priv_data_size = sizeof(NoiseContext),
.priv_class = &noise_class,
static const AVClass noise_class
Definition: noise_bsf.c:78
filter_frame For filters that do not use the this method is called when a frame is pushed to the filter s input It can be called at any time except in a reentrant way If the input frame is enough to produce then the filter should push the output frames on the output link immediately As an exception to the previous rule if the input frame is enough to produce several output frames then the filter needs output only at least one per link The additional frames can be left buffered in the filter
static int noise(AVBSFContext *ctx, AVPacket *pkt)
Definition: noise_bsf.c:36

Definition at line 85 of file noise_bsf.c.