FFmpeg
Loading...
Searching...
No Matches
hca.c File Reference
#include "libavutil/opt.h"
#include "libavutil/intreadwrite.h"
#include "libavcodec/bytestream.h"
#include "avformat.h"
#include "avio_internal.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)
 

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 31 of file hca.c.

◆ OFFSET

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

Definition at line 132 of file hca.c.

Function Documentation

◆ hca_probe()

static int hca_probe ( const AVProbeData * p)
static

Definition at line 40 of file hca.c.

◆ hca_read_header()

static int hca_read_header ( AVFormatContext * s)
static

Definition at line 51 of file hca.c.

◆ hca_read_packet()

static int hca_read_packet ( AVFormatContext * s,
AVPacket * pkt )
static

Definition at line 122 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 },
}
#define NULL
Definition coverity.c:32
#define OFFSET(x)
#define AV_OPT_FLAG_DECODING_PARAM
A generic parameter which can be set by the user for demuxing or decoding.
Definition opt.h:355
@ AV_OPT_TYPE_INT64
Underlying C type is int64_t.
Definition opt.h:262
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition opt.h:258

Definition at line 133 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,
}
const char * av_default_item_name(void *ptr)
Return the context name.
Definition log.c:241
#define LIBAVUTIL_VERSION_INT
Definition version.h:85
static const AVOption hca_options[]
Definition hca.c:133

Definition at line 146 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),
}
#define AVFMT_GENERIC_INDEX
Use generic index building code.
Definition avformat.h:499
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
static int read_probe(const AVProbeData *p)
Definition cdg.c:30
static int read_header(FFV1Context *f, RangeCoder *c)
Definition ffv1dec.c:578
static int hca_probe(const AVProbeData *p)
Definition hca.c:40
static int hca_read_header(AVFormatContext *s)
Definition hca.c:51
static int hca_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition hca.c:122
static const AVClass hca_class
Definition hca.c:146
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition internal.h:88

Definition at line 153 of file hca.c.