FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
extract_extradata_bsf.c File Reference
#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "avcodec.h"
#include "bsf.h"
#include "h2645_parse.h"
#include "h264.h"
#include "hevc.h"
#include "vc1_common.h"

Go to the source code of this file.

Data Structures

struct  ExtractExtradataContext
 

Macros

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

Functions

static int val_in_array (const int *arr, int len, int val)
 
static int extract_extradata_h2645 (AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
 
static int extract_extradata_vc1 (AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
 
static int extract_extradata_mpeg12 (AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
 
static int extract_extradata_mpeg4 (AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
 
static int extract_extradata_init (AVBSFContext *ctx)
 
static int extract_extradata_filter (AVBSFContext *ctx, AVPacket *out)
 

Variables

struct {
   enum AVCodecID   id
 
   int(*   extract )(AVBSFContext *ctx, AVPacket
      *pkt, uint8_t **data, int
      *size)
 
extract_tab []
 
static enum AVCodecID codec_ids []
 
static const AVOption options []
 
static const AVClass extract_extradata_class
 
const AVBitStreamFilter ff_extract_extradata_bsf
 

Macro Definition Documentation

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

Definition at line 317 of file extract_extradata_bsf.c.

Function Documentation

static int val_in_array ( const int arr,
int  len,
int  val 
)
static

Definition at line 43 of file extract_extradata_bsf.c.

Referenced by extract_extradata_h2645().

static int extract_extradata_h2645 ( AVBSFContext ctx,
AVPacket pkt,
uint8_t **  data,
int size 
)
static

Definition at line 52 of file extract_extradata_bsf.c.

static int extract_extradata_vc1 ( AVBSFContext ctx,
AVPacket pkt,
uint8_t **  data,
int size 
)
static

Definition at line 148 of file extract_extradata_bsf.c.

static int extract_extradata_mpeg12 ( AVBSFContext ctx,
AVPacket pkt,
uint8_t **  data,
int size 
)
static

Definition at line 183 of file extract_extradata_bsf.c.

static int extract_extradata_mpeg4 ( AVBSFContext ctx,
AVPacket pkt,
uint8_t **  data,
int size 
)
static

Definition at line 214 of file extract_extradata_bsf.c.

static int extract_extradata_init ( AVBSFContext ctx)
static

Definition at line 257 of file extract_extradata_bsf.c.

static int extract_extradata_filter ( AVBSFContext ctx,
AVPacket out 
)
static

Definition at line 274 of file extract_extradata_bsf.c.

Variable Documentation

enum AVCodecID id

Definition at line 245 of file extract_extradata_bsf.c.

const { ... } extract_tab[]
Initial value:
= {
}
static int extract_extradata_mpeg4(AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
preferred ID for MPEG-1/2 video decoding
Definition: avcodec.h:219
static int extract_extradata_h2645(AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
static int extract_extradata_vc1(AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)
static int extract_extradata_mpeg12(AVBSFContext *ctx, AVPacket *pkt, uint8_t **data, int *size)

Referenced by extract_extradata_init().

enum AVCodecID codec_ids[]
static
const AVOption options[]
static
Initial value:
= {
{ "remove", "remove the extradata from the bitstream", OFFSET(remove), AV_OPT_TYPE_INT,
{ .i64 = 0 }, 0, 1 },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define OFFSET(x)

Definition at line 318 of file extract_extradata_bsf.c.

const AVClass extract_extradata_class
static
Initial value:
= {
.class_name = "extract_extradata",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
av_default_item_name
static const AVOption options[]

Definition at line 324 of file extract_extradata_bsf.c.

const AVBitStreamFilter ff_extract_extradata_bsf
Initial value:
= {
.name = "extract_extradata",
.codec_ids = codec_ids,
.priv_data_size = sizeof(ExtractExtradataContext),
.priv_class = &extract_extradata_class,
}
static av_cold int init(AVCodecContext *avctx)
Definition: avrndec.c:35
static int extract_extradata_init(AVBSFContext *ctx)
static const AVClass extract_extradata_class
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
static int extract_extradata_filter(AVBSFContext *ctx, AVPacket *out)
static enum AVCodecID codec_ids[]

Definition at line 331 of file extract_extradata_bsf.c.