39 int amount =
s->amount > 0 ?
s->amount : (
s->state % 10001 + 1);
49 if (
s->dropamount > 0 &&
s->state %
s->dropamount == 0) {
63 if (
s->state % amount == 0)
70 #define OFFSET(x) offsetof(NoiseContext, x)
71 #define FLAGS (AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_BSF_PARAM)
int ff_bsf_get_packet_ref(AVBSFContext *ctx, AVPacket *pkt)
Called by bitstream filters to get packet for filtering.
static av_always_inline void filter(int16_t *output, ptrdiff_t out_stride, const int16_t *low, ptrdiff_t low_stride, const int16_t *high, ptrdiff_t high_stride, int len, int clip)
void av_packet_unref(AVPacket *pkt)
Wipe the packet.
int av_packet_make_writable(AVPacket *pkt)
Create a writable reference for the data described by a given packet, avoiding data copy if possible.
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
const AVBitStreamFilter ff_noise_bsf
static const AVOption options[]
static int noise(AVBSFContext *ctx, AVPacket *pkt)
static const AVClass noise_class
The bitstream filter state.
Describe the class of an AVClass context structure.
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
void * priv_data
Format private data.
This structure stores compressed data.