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 "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 AVInputFormat ff_hca_demuxer
 

Macro Definition Documentation

◆ HCA_MASK

#define HCA_MASK   0x7f7f7f7f

Definition at line 29 of file hca.c.

◆ OFFSET

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

Definition at line 130 of file hca.c.

Function Documentation

◆ hca_probe()

static int hca_probe ( const AVProbeData p)
static

Definition at line 38 of file hca.c.

◆ hca_read_header()

static int hca_read_header ( AVFormatContext s)
static

Definition at line 49 of file hca.c.

◆ hca_read_packet()

static int hca_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 120 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 131 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 144 of file hca.c.

◆ ff_hca_demuxer

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

Definition at line 151 of file hca.c.

hca_class
static const AVClass hca_class
Definition: hca.c:144
hca_options
static const AVOption hca_options[]
Definition: hca.c:131
AVFMT_GENERIC_INDEX
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition: avformat.h:481
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:120
AV_OPT_TYPE_INT64
@ AV_OPT_TYPE_INT64
Definition: opt.h:226
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:49
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:130
hca_probe
static int hca_probe(const AVProbeData *p)
Definition: hca.c:38
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
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:255
read_probe
static int read_probe(const AVProbeData *p)
Definition: cdg.c:29
flags
#define flags(name, subs,...)
Definition: cbs_av1.c:474
HCADemuxContext
Definition: hca.c:31