Data Structures | Macros | Functions | Variables
hapqa_extract_bsf.c File Reference

HAPQA extract bitstream filter extract one of the two textures of the HAQA. More...

#include "bsf.h"
#include "bsf_internal.h"
#include "bytestream.h"
#include "hap.h"

Go to the source code of this file.

Data Structures

struct  HapqaExtractContext


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


static int check_texture (HapqaExtractContext *ctx, int section_type)
static int hapqa_extract (AVBSFContext *bsf, AVPacket *pkt)


static enum AVCodecID codec_ids []
static const AVOption options []
static const AVClass hapqa_extract_class
const AVBitStreamFilter ff_hapqa_extract_bsf

Detailed Description

HAPQA extract bitstream filter extract one of the two textures of the HAQA.

Definition in file hapqa_extract_bsf.c.

Macro Definition Documentation

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

Definition at line 112 of file hapqa_extract_bsf.c.

Definition at line 113 of file hapqa_extract_bsf.c.

Function Documentation

static int check_texture ( HapqaExtractContext ctx,
int  section_type 

Definition at line 38 of file hapqa_extract_bsf.c.

Referenced by hapqa_extract().

static int hapqa_extract ( AVBSFContext bsf,
AVPacket pkt 

Definition at line 48 of file hapqa_extract_bsf.c.

Variable Documentation

enum AVCodecID codec_ids[]
Initial value:

Definition at line 108 of file hapqa_extract_bsf.c.

const AVOption options[]
Initial value:
= {
{ "texture", "texture to keep", OFFSET(texture), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 1, FLAGS, "texture" },
{ "color", "keep HapQ texture", 0, AV_OPT_TYPE_CONST, { .i64 = 0 }, 0, 0, FLAGS, "texture" },
{ "alpha", "keep HapAlphaOnly texture", 0, AV_OPT_TYPE_CONST, { .i64 = 1 }, 0, 0, FLAGS, "texture" },
{ NULL },
#define NULL
Definition: coverity.c:32
#define OFFSET(x)
#define FLAGS

Definition at line 114 of file hapqa_extract_bsf.c.

const AVClass hapqa_extract_class
Initial value:
= {
.class_name = "hapqa_extract_bsf",
.item_name = av_default_item_name,
.option = options,
Definition: version.h:85
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:235
static const AVOption options[]

Definition at line 121 of file hapqa_extract_bsf.c.

const AVBitStreamFilter ff_hapqa_extract_bsf
Initial value:
= {
.name = "hapqa_extract",
.filter = hapqa_extract,
.priv_data_size = sizeof(HapqaExtractContext),
.priv_class = &hapqa_extract_class,
static enum AVCodecID codec_ids[]
static int hapqa_extract(AVBSFContext *bsf, AVPacket *pkt)
static const AVClass hapqa_extract_class

Definition at line 128 of file hapqa_extract_bsf.c.