FFmpeg
Data Structures | Macros | Functions | Variables
hca.c File Reference
#include "libavutil/opt.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "demux.h"
#include "internal.h"

Go to the source code of this file.

Data Structures

struct  HCADemuxContext
 

Macros

#define HCA_MASK   0x7f7f7f7f
 
#define OFFSET(x)   offsetof(HCADemuxContext, x)
 

Functions

static int hca_probe (const AVProbeData *p)
 
static int hca_read_header (AVFormatContext *s)
 
static int hca_read_packet (AVFormatContext *s, AVPacket *pkt)
 

Variables

static const AVOption hca_options []
 
static const AVClass hca_class
 
const FFInputFormat ff_hca_demuxer
 

Macro Definition Documentation

◆ HCA_MASK

#define HCA_MASK   0x7f7f7f7f

Definition at line 30 of file hca.c.

◆ OFFSET

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

Definition at line 131 of file hca.c.

Function Documentation

◆ hca_probe()

static int hca_probe ( const AVProbeData p)
static

Definition at line 39 of file hca.c.

◆ hca_read_header()

static int hca_read_header ( AVFormatContext s)
static

Definition at line 50 of file hca.c.

◆ hca_read_packet()

static int hca_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 121 of file hca.c.

Variable Documentation

◆ hca_options

const AVOption hca_options[]
static
Initial value:
= {
{ "hca_lowkey",
"Low key used for handling CRI HCA files", OFFSET(keyl),
AV_OPT_TYPE_INT64, {.i64=0}, .min = 0, .max = UINT32_MAX, .flags = AV_OPT_FLAG_DECODING_PARAM, },
{ "hca_highkey",
"High key used for handling CRI HCA files", OFFSET(keyh),
AV_OPT_TYPE_INT64, {.i64=0}, .min = 0, .max = UINT32_MAX, .flags = AV_OPT_FLAG_DECODING_PARAM, },
{ "hca_subkey",
"Subkey used for handling CRI HCA files", OFFSET(subkey),
AV_OPT_TYPE_INT, {.i64=0}, .min = 0, .max = UINT16_MAX, .flags = AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}

Definition at line 132 of file hca.c.

◆ hca_class

const AVClass hca_class
static
Initial value:
= {
.class_name = "hca",
.item_name = av_default_item_name,
.option = hca_options,
}

Definition at line 145 of file hca.c.

◆ ff_hca_demuxer

const FFInputFormat ff_hca_demuxer
Initial value:
= {
.p.name = "hca",
.p.long_name = NULL_IF_CONFIG_SMALL("CRI HCA"),
.p.priv_class = &hca_class,
.p.extensions = "hca",
.p.flags = AVFMT_GENERIC_INDEX,
.priv_data_size = sizeof(HCADemuxContext),
}

Definition at line 152 of file hca.c.

hca_class
static const AVClass hca_class
Definition: hca.c:145
hca_options
static const AVOption hca_options[]
Definition: hca.c:132
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:480
read_packet
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_read_callback.c:41
hca_read_packet
static int hca_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: hca.c:121
AV_OPT_TYPE_INT64
@ AV_OPT_TYPE_INT64
Definition: opt.h:236
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
read_header
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:550
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
hca_read_header
static int hca_read_header(AVFormatContext *s)
Definition: hca.c:50
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:106
OFFSET
#define OFFSET(x)
Definition: hca.c:131
hca_probe
static int hca_probe(const AVProbeData *p)
Definition: hca.c:39
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:235
AV_OPT_FLAG_DECODING_PARAM
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition: opt.h:273
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:30
HCADemuxContext
Definition: hca.c:32