29 uint8_t **poutbuf,
int *poutbuf_size,
30 const uint8_t *
buf,
int buf_size,
int keyframe){
32 int amount= args ? atoi(args) : (*state % 10001+1);
43 for(i=0; i<buf_size; i++){
44 (*state) += (*poutbuf)[i] + 1;
45 if(*state % amount == 0)
46 (*poutbuf)[i] = *
state;
53 .priv_data_size =
sizeof(int),
memory handling functions
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)
static int noise(AVBitStreamFilterContext *bsfc, AVCodecContext *avctx, const char *args, uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size, int keyframe)
Libavcodec external API header.
main external API structure.
AVBitStreamFilter ff_noise_bsf
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...