FFmpeg
Data Structures | Macros | Functions | Variables
vp9_superframe.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
 

Macros

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

Functions

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)
 

Variables

static enum AVCodecID codec_ids []
 
const FFBitStreamFilter ff_vp9_superframe_bsf
 

Macro Definition Documentation

◆ MAX_CACHE

#define MAX_CACHE   8

Definition at line 28 of file vp9_superframe.c.

◆ wloop

#define wloop (   mag,
  wr 
)
Value:
do { \
for (n = 0; n < n_in; n++) { \
wr; \
ptr += mag + 1; \
} \
} while (0)

Function Documentation

◆ stats()

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

◆ merge_superframe()

static int merge_superframe ( AVPacket *const *  in,
int  n_in,
AVPacket out 
)
static

Definition at line 52 of file vp9_superframe.c.

Referenced by vp9_superframe_filter().

◆ vp9_superframe_filter()

static int vp9_superframe_filter ( AVBSFContext ctx,
AVPacket pkt 
)
static

Definition at line 101 of file vp9_superframe.c.

◆ vp9_superframe_init()

static int vp9_superframe_init ( AVBSFContext ctx)
static

Definition at line 183 of file vp9_superframe.c.

◆ vp9_superframe_flush()

static void vp9_superframe_flush ( AVBSFContext ctx)
static

Definition at line 198 of file vp9_superframe.c.

◆ vp9_superframe_close()

static void vp9_superframe_close ( AVBSFContext ctx)
static

Definition at line 209 of file vp9_superframe.c.

Variable Documentation

◆ codec_ids

enum AVCodecID codec_ids[]
static
Initial value:

Definition at line 219 of file vp9_superframe.c.

◆ ff_vp9_superframe_bsf

const FFBitStreamFilter ff_vp9_superframe_bsf
Initial value:
= {
.p.name = "vp9_superframe",
.p.codec_ids = codec_ids,
.priv_data_size = sizeof(VP9BSFContext),
}

Definition at line 223 of file vp9_superframe.c.

VP9BSFContext
Definition: vp9_superframe.c:29
filter
void(* filter)(uint8_t *src, int stride, int qscale)
Definition: h263dsp.c:29
vp9_superframe_init
static int vp9_superframe_init(AVBSFContext *ctx)
Definition: vp9_superframe.c:183
AV_CODEC_ID_VP9
@ AV_CODEC_ID_VP9
Definition: codec_id.h:222
flush
void(* flush)(AVBSFContext *ctx)
Definition: dts2pts.c:370
init
int(* init)(AVBSFContext *ctx)
Definition: dts2pts.c:368
vp9_superframe_filter
static int vp9_superframe_filter(AVBSFContext *ctx, AVPacket *pkt)
Definition: vp9_superframe.c:101
vp9_superframe_close
static void vp9_superframe_close(AVBSFContext *ctx)
Definition: vp9_superframe.c:209
AV_CODEC_ID_NONE
@ AV_CODEC_ID_NONE
Definition: codec_id.h:50
vp9_superframe_flush
static void vp9_superframe_flush(AVBSFContext *ctx)
Definition: vp9_superframe.c:198
codec_ids
static enum AVCodecID codec_ids[]
Definition: vp9_superframe.c:219