Data Structures | Macros | Functions | Variables
vp9_superframe_bsf.c File Reference
#include "libavutil/avassert.h"
#include "bsf.h"
#include "bsf_internal.h"
#include "get_bits.h"

Go to the source code of this file.

Data Structures

struct  VP9BSFContext


#define MAX_CACHE   8
#define wloop(mag, wr)


static void stats (AVPacket *const *in, int n_in, unsigned *_max, unsigned *_sum)
static int merge_superframe (AVPacket *const *in, int n_in, AVPacket *out)
static int vp9_superframe_filter (AVBSFContext *ctx, AVPacket *pkt)
static int vp9_superframe_init (AVBSFContext *ctx)
static void vp9_superframe_flush (AVBSFContext *ctx)
static void vp9_superframe_close (AVBSFContext *ctx)


static enum AVCodecID codec_ids []
const AVBitStreamFilter ff_vp9_superframe_bsf

Macro Definition Documentation

#define MAX_CACHE   8
#define wloop (   mag,
do { \
for (n = 0; n < n_in; n++) { \
wr; \
ptr += mag + 1; \
} \
} while (0)
for(j=16;j >0;--j)

Referenced by merge_superframe().

Function Documentation

static void stats ( AVPacket *const *  in,
int  n_in,
unsigned *  _max,
unsigned *  _sum 
static int merge_superframe ( AVPacket *const *  in,
int  n_in,
AVPacket out 

Definition at line 52 of file vp9_superframe_bsf.c.

Referenced by vp9_superframe_filter().

static int vp9_superframe_filter ( AVBSFContext ctx,
AVPacket pkt 

Definition at line 101 of file vp9_superframe_bsf.c.

static int vp9_superframe_init ( AVBSFContext ctx)

Definition at line 174 of file vp9_superframe_bsf.c.

static void vp9_superframe_flush ( AVBSFContext ctx)

Definition at line 189 of file vp9_superframe_bsf.c.

static void vp9_superframe_close ( AVBSFContext ctx)

Definition at line 200 of file vp9_superframe_bsf.c.

Variable Documentation

enum AVCodecID codec_ids[]
Initial value:

Definition at line 210 of file vp9_superframe_bsf.c.

const AVBitStreamFilter ff_vp9_superframe_bsf
Initial value:
= {
.name = "vp9_superframe",
.priv_data_size = sizeof(VP9BSFContext),
static void flush(AVCodecContext *avctx)
static void vp9_superframe_flush(AVBSFContext *ctx)
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:31
static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *pkt)
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 void vp9_superframe_close(AVBSFContext *ctx)
static int vp9_superframe_init(AVBSFContext *ctx)
static enum AVCodecID codec_ids[]

Definition at line 214 of file vp9_superframe_bsf.c.