FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
noise_bsf.c File Reference
#include <stdlib.h>
#include <string.h>
#include "avcodec.h"
#include "bsf.h"
#include "libavutil/log.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"

Go to the source code of this file.

Data Structures

struct  NoiseContext
 

Macros

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

Functions

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

Variables

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 80 of file noise_bsf.c.

Function Documentation

static int noise ( AVBSFContext ctx,
AVPacket out 
)
static

Variable Documentation

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

Definition at line 81 of file noise_bsf.c.

const AVClass noise_class
static
Initial value:
= {
.class_name = "noise",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:86
static const AVOption options[]
Definition: noise_bsf.c:81
av_default_item_name

Definition at line 87 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:87
static int noise(AVBSFContext *ctx, AVPacket *out)
Definition: noise_bsf.c:38
static void filter(int16_t *output, ptrdiff_t out_stride, int16_t *low, ptrdiff_t low_stride, int16_t *high, ptrdiff_t high_stride, int len, uint8_t clip)
Definition: cfhd.c:80

Definition at line 94 of file noise_bsf.c.